Business

Profit margin calculator

Margin and markup from cost and price, or the price you need for a target margin or markup.

Example figures shown. Replace them with yours.

Gross margin

38.46%

markup 62.5%

Selling price
$65.00
Profit per unit
$25.00
Gross margin
38.46%
Markup
62.5%
Revenue for 1 unit
$65.00
Profit for 1 unit
$25.00

Saved scenarios

Save different inputs to compare them side by side.

No saved scenarios yet. Press “Save scenario” to keep the current inputs and result here.

How it’s calculated

Margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost. For a target margin, price = cost ÷ (1 − margin). For a target markup, price = cost × (1 + markup). A 50% markup is only a 33.3% margin.

How to use the profit margin calculator

  1. Enter your numbers: I want to find, Cost per unit, Selling price, Units sold. Example figures are filled in to start.
  2. Read your result instantly: the gross margin appears in the results panel, with a full breakdown underneath.
  3. Save as PDF, copy the results, or save a scenario to compare different inputs side by side.

Worked example

With these inputs: I want to find Margin from cost and price; Cost per unit $40; Selling price $65; Units sold 1, the calculator shows Gross margin: 38.46% (markup 62.5%).

It also reports Selling price: $65.00; Profit per unit: $25.00; Gross margin: 38.46%; Markup: 62.5%; Revenue for 1 unit: $65.00.

How it’s calculated

Margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost. For a target margin, price = cost ÷ (1 − margin). For a target markup, price = cost × (1 + markup). A 50% markup is only a 33.3% margin.

Last reviewed November 19, 2026. Results are estimates for planning, not financial, tax or medical advice.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a share of the selling price. Markup is profit as a share of the cost. Selling a $40 item for $65 is a 38.5% margin but a 62.5% markup.

How do I price for a target margin?

Divide the cost by (1 − target margin). For a 35% margin on a $40 cost, the price is $40 ÷ 0.65 = $61.54.

Is gross margin the same as net profit?

No. Gross margin only subtracts the cost of the item. Net profit also subtracts overhead such as rent, salaries, marketing and taxes.

Read the guide: Margin vs. markup: what is the difference?

Add this calculator to your website

Free for any website or blog. Paste this code into your page (in WordPress, use a Custom HTML block). It works on phones and desktops, resizes itself to fit, needs no sign-up, and shows no ads.

Preview the widget · All free widgets

Related calculators: NPV & IRR calculatorBreak-even calculator

All calculators

Free, instant, and private. Every calculation runs in your browser, so nothing you type leaves your device.

Finance

Mortgage calculatorMonthly house payment with tax, insurance, PMI and HOA, extra payments, affordability and a full schedule.Loan calculatorMonthly payment, true cost with fees, and how extra payments shorten your loan.Compound interest calculatorGrow a balance with monthly deposits, rising contributions, any compounding, and inflation-adjusted results.Savings goal calculatorWhat to save each month, each week, or all at once to hit a target by a date.Retirement calculatorProject your nest egg, the income it can pay, and how long it lasts at your planned spending.Refinance calculatorCompare your current mortgage with a new one, including points and cash-out, and find your break-even.Rental property calculatorCash flow, cap rate, cash-on-cash, DSCR, the 1% rule and total return over your holding period.Credit card payoff calculatorYour payoff date, the payment needed for a target date, and what minimum payments really cost.Inflation calculatorWhat things will cost later, what your money will be worth, and the raise you need to keep up.Salary to hourly calculatorConvert pay between every period, add overtime, and estimate take-home pay.Auto loan calculatorCar payment with sales tax, fees, down payment and trade-in, plus the total cost of the car.Home affordability calculatorHow much house you can afford from your income, debts, down payment and rate, using lender debt-to-income limits.Investment return calculatorTotal return (ROI) and annualized growth rate (CAGR) of an investment, including income received.Debt payoff calculatorPlan payoff for up to three debts with the avalanche or snowball method, and see which one saves more.

Business

Everyday

Health & fitness

Math