Cents to SharesGet the app

Home / Calculators

Profit margin calculator

Enter what an item costs you and what you sell it for, or the margin or markup you want, to see the gross profit, margin, markup and selling price.

What one item costs you to buy or make

Example with the starting values

Gross margin

20%

Selling price
100.00
Gross profit
20.00
Gross margin
20%
Markup
25%

Gross margin only: rent, wages, shipping you pay, fees and tax aren't included unless you add them to the cost.

Assumptions you can change

Every calculator starts from assumptions. These are this one's starting values; change any of them above, and read every fixed assumption under How it's calculated.

Cost
80
Selling price
100
Target margin (%)
30%
Markup (%)
40%

Why it matters: in a 2019 study by Corporate Insight, 12 retirement calculators given the same profile projected monthly incomes up to about 60% apart, mostly because of different return assumptions (NAPA report). Try a cautious and a hopeful number, not just the defaults.

How to use the calculator

  1. Choose what you know: Cost and price, Cost and margin or Cost and markup.
  2. Enter the Cost of one item: what you pay to buy or make it. Add per-sale costs such as packaging or marketplace fees if you want them counted.
  3. Enter the Selling price, the Target margin (%) or the Markup (%), depending on the choice above.
  4. Read the gross margin (or the price you need) and the line underneath: selling price, gross profit, gross margin and markup for the same sale.
  5. Use the markup vs margin table further down to translate a markup you're used to into the margin it gives, or the other way round.

What it's good for

  • Shows margin and markup side by side, which stops a 25% markup being mistaken for a 25% margin.
  • Works backwards from a target margin or markup to the price you'd need.
  • Warns when a price is below cost or a margin target can't be reached.

Where it falls short

  • Gross margin only. Rent, wages, marketing, interest and tax aren't included, so it isn't your net margin.
  • It looks at one item. Discounts, returns and unsold stock change the real margin across a month.
  • It uses one cost per item. Volume discounts, or a cost that changes from batch to batch, need a separate run for each.

How it's calculated

Formula. Gross profit = selling price − cost. Gross margin = gross profit ÷ selling price × 100. Markup = gross profit ÷ cost × 100. Price for a target margin = cost ÷ (1 − margin). Price for a markup = cost × (1 + markup). Margin from markup = markup ÷ (1 + markup).

Worked example. Cost 80, price 100: gross profit 20.00, margin 20%, markup 25%. For a 30% margin on the same cost the price is 114.29; a 40% markup gives 112.00, a margin of 28.57%.

Assumptions.

  • One item, one cost and one price; the cost is whatever you enter (buying price alone, or with per-sale costs added).
  • Gross margin only. Operating costs, interest and tax are not included, so this is not net margin.
  • Results are shown rounded to the cent and to two decimal places of a percent.

The formula is covered by automated tests, and it was checked on the review date at the bottom of this page. See the editorial policy and methodology.

Margin and markup are not the same number

Both start from the gross profit: selling price minus cost. Margin divides that profit by the selling price. Markup divides it by the cost. Because the cost is smaller than the price, the markup is always the bigger percentage for the same sale.

An item that costs 80 and sells for 100 makes a gross profit of 20. The margin is 20 ÷ 100 = 20%, and the markup is 20 ÷ 80 = 25%. To earn a 30% margin on the same cost, the price has to be 80 ÷ (1 − 0.3) = 114.29. Adding a 40% markup instead gives 80 × 1.4 = 112.00, which is a margin of 28.57%.

Markup vs margin table

The same sale described both ways. Margin = markup ÷ (1 + markup); markup = margin ÷ (1 − margin).

Markup on costGross marginPrice for a cost of 100
10%9.09%110.00
20%16.67%120.00
25%20%125.00
30%23.08%130.00
40%28.57%140.00
50%33.33%150.00
60%37.5%160.00
75%42.86%175.00
100%50%200.00
150%60%250.00
200%66.67%300.00

Gross margin is not net margin

This calculator works out gross figures. In the SEC's beginners' guide to financial statements, revenue minus the costs of sales gives a subtotal called gross profit, sometimes gross margin. Operating expenses, interest and income tax all come after it, and only then do you reach net profit. A net margin needs every one of those costs, so it can't be worked out from one item's cost and price.

For a single product, the cost you enter decides what the margin means. The buying price alone gives the widest margin. Adding packaging, shipping you pay and payment or marketplace fees per sale gives a figure closer to what each sale leaves you.

Questions

How do I calculate profit margin?
Subtract the cost from the selling price, divide by the selling price and multiply by 100. Cost 80, price 100: (100 − 80) ÷ 100 × 100 = 20%.
How do I turn a markup into a margin?
Divide the markup by 1 plus the markup. A 25% markup is 0.25 ÷ 1.25 = 20% margin; a 100% markup is a 50% margin. The table above lists more.
Why can't the margin reach 100%?
Margin is the share of the price you keep after the cost. 100% would mean the item cost nothing, so for any real cost the margin stays below 100%, however high the price goes. Markup has no such limit.
What is a good profit margin?
It depends on the trade and on your other costs. A gross margin only works if what's left after the cost of each sale also covers rent, wages, marketing and the other running costs of the business.
Is gross profit the same as gross margin?
Gross profit is the amount (price minus cost). Gross margin usually means that amount as a percentage of the price, although company reports sometimes use "gross margin" for the amount too.

Sources · last checked

Formula: see "How it's calculated" above; tested against the worked example shown there.

Last reviewed

Education, not advice. I'm not a financial adviser and I don't know your situation. These tools show the maths behind common rules of thumb; check important decisions with a qualified professional. Full disclaimer.