Markup and Margin Calculator

A margin calculator divides profit by the selling price. An item that costs $60 and sells for $80 earns $20 profit, so the margin is $20 ÷ $80 = 25%. Markup divides the same $20 by the cost instead: $20 ÷ $60 ≈ 33.33%. To price for a target margin, use price = cost ÷ (1 − margin).

What do you want to work out?

Business profit margin, not trading margin

Pick any two of cost, selling price, profit, margin and markup. The calculator finds the other three. A loss is fine: enter a price below the cost, or a negative profit or margin.
Margin
25%
Selling for $80.00 something that costs $60.00 leaves $20.00 profit: a 25% margin and a 33.33% markup.

Cost (entered)$60.00
Selling price (entered)$80.00
Profit$20.00
Margin25%
Markup33.33%
Formula
Margin = (price − cost) ÷ price × 100
= ($80.00 − $60.00) ÷ $80.00 × 100 = 25%
Margin vs. markup with your numbers
Margin = profit ÷ price$20.00 ÷ $80.00 = 25%
Markup = profit ÷ cost$20.00 ÷ $60.00 ≈ 33.33%
Same $20.00 profit, two different bases. Margin compares it with what the customer pays; markup compares it with what you paid.
Common mix-up: a 33.33% markup turns $60.00 into $80.00, but that is only a 25% margin. To keep 33.33% of the price as profit you would need $60.00 ÷ (100% − 33.33%) = $90.00.
Show steps
  1. Profit is what is left of the price after the cost: profit = price − cost = $80.00 − $60.00 = $20.00.
  2. Margin is profit as a share of the selling price: $20.00 ÷ $80.00 = 0.25, and 0.25 × 100 = 25%.
  3. Markup is the same profit as a share of the cost: $20.00 ÷ $60.00 ≈ 0.333333, and 0.333333 × 100 ≈ 33.33%.
  4. Check: $60.00 + $20.00 = $80.00 ✓. Margin and markup describe the same profit; they only divide by different amounts.
Where the price goes
Cost $60.00 (75% of the price)Profit $20.00 (25% margin)
This cost at other margins
Margin Price Profit Markup
10% $66.67 $6.67 11.11%
20% $75.00 $15.00 25%
25% (yours) $80.00 $20.00 33.33%
30% $85.71 $25.71 42.86%
40% $100.00 $40.00 66.67%
50% $120.00 $60.00 100%
60% $150.00 $90.00 150%
Margin here means gross margin on the costs you enter. Include only the cost of the goods for gross margin, or every cost per item for a net figure. Percents are rounded to 2 decimals and money to the cent; the math behind them is exact. Results are for checking your arithmetic, not financial advice.

How to use the margin and markup calculator

  1. Pick a tab. Any two values solves cost, selling price, profit, margin and markup from any two of them. Markup ↔ margin converts one percent to the other. Price for a margin finds the price that keeps a target margin. Several items works out the blended margin of a product mix.
  2. Type your numbers. Money goes in dollars and cents; margin and markup go in as percents, for example 25 for 25%.
  3. Read the answer, then the Margin vs. markup with your numbers box, which shows both percents for the same profit.
  4. Open Show steps for the full working, and use the table to compare other margins at your cost.

Margin and markup formulas

Let C be the cost of one item, P the selling price (revenue) and profit = P − C. Write percents as decimals.

  • Margin = (P − C) ÷ P. Profit as a share of the price.
  • Markup = (P − C) ÷ C. Profit as a share of the cost.
  • Price from a margin: P = C ÷ (1 − margin).
  • Price from a markup: P = C × (1 + markup).
  • Markup to margin: margin = markup ÷ (1 + markup).
  • Margin to markup: markup = margin ÷ (1 − margin).

Every one of these is a percent of a number, so the percentage calculator is a good place to practice the basic step.

Margin vs. markup: why the two percents differ

Margin and markup describe the same profit. They only divide it by different amounts. Margin divides by the price, which is what the customer pays. Markup divides by the cost, which is what you paid. When there is a profit, the cost is smaller than the price, so the markup is always the larger percent.

The mix-up costs real money. Suppose you want a 40% margin on an item that costs $60 and you add 40% to the cost: $60 × 1.4 = $84. The profit is $24, and $24 ÷ $84 ≈ 28.57%, well short of 40%. The right price is $60 ÷ (1 − 0.4) = $60 ÷ 0.6 = $100, which leaves $40 profit, and $40 ÷ $100 = 40%.

A margin can never reach 100%, because profit would have to be the whole price and the cost would be $0. A markup has no such limit: doubling the cost is a 100% markup, which is a 50% margin.

Worked examples

Example 1: margin and markup from cost and price

A shop buys a lamp for $45 and sells it for $72. Profit = $72 − $45 = $27. Margin = $27 ÷ $72 = 0.375 = 37.5%. Markup = $27 ÷ $45 = 0.6 = 60%. Check with the conversion formula: 0.6 ÷ 1.6 = 0.375.

Example 2: price for a target margin

An item costs $60 and you want a 40% margin. Price = $60 ÷ (1 − 0.40) = $60 ÷ 0.6 = $100. The markup that gets you there is $40 ÷ $60 ≈ 66.67%, not 40%.

Example 3: blended margin on several products

A stall sells 120 notebooks (cost $2.50, price $4.00), 40 pen sets (cost $6.00, price $9.00) and 15 backpacks (cost $18.00, price $30.00). Sales are $480 + $360 + $450 = $1,290 and costs are $300 + $240 + $270 = $810, so profit is $480 and the blended margin is $480 ÷ $1,290 ≈ 37.21%. The item margins are 37.5%, 33.33% and 40%, and their plain average is about 36.94%. The plain average is wrong because it ignores how much of each item sold; the blended margin is a sales-weighted average, the same idea as the weighted average calculator.

Markup and margin conversion table

Margin Markup Price = cost ×
10% 11.11% 1.1111
20% 25% 1.25
25% 33.33% 1.3333
30% 42.86% 1.4286
40% 66.67% 1.6667
50% 100% 2
60% 150% 2.5
75% 300% 4

Read it either way: a 25% margin needs a 33.33% markup, and a 100% markup gives a 50% margin. The multipliers in the last column are rounded to 4 decimal places.

Gross margin, operating margin and net margin

The word “margin” depends on which costs you subtract. The SEC’s Beginners’ Guide to Financial Statements calls revenue minus the cost of sales “gross profit” or sometimes “gross margin.” Subtract operating expenses as well and you reach operating income, and the guide defines operating margin as income from operations divided by net revenues. Net profit, also called net income, is what remains after every expense.

  • Gross margin: enter only the cost of the goods themselves.
  • A per-item net figure: add shipping, packaging and fees to the cost before you enter it.

Discounts and sales tax

A discount comes straight out of your profit. With a $60 cost and an $80 price, a 10% discount brings the price to $72, the profit to $12 and the margin to $12 ÷ $72 ≈ 16.67%. A 10% price cut took 40% of the profit. The percent change calculator shows changes like this one.

Sales tax is collected for the state, so it is not revenue. Work out margin on the price before tax; the sales tax calculator can take the tax out of a total first.

Not trading margin

This page is about profit margin on goods and services. In investing, a margin account is a brokerage account in which the broker lends you cash, using your account as collateral. That kind of margin, along with portfolio margin requirements, is a different subject and this calculator does not cover it. Investor.gov explains margin accounts (see Sources).

Common margin mistakes

  • Adding the margin percent to the cost. Divide by (1 − margin) instead.
  • Calling a markup a margin. A 50% markup is only a 33.33% margin.
  • Averaging item margins. Divide total profit by total sales.
  • Including sales tax in the price. Use the price before tax.
  • Forgetting costs. Shipping and fees lower the real margin.

Results are estimates for checking arithmetic and planning prices. They are not financial or accounting advice.

Sources

Checked November 2026.

Markup and margin practice quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. An item costs $30 and sells for $50. What is the profit margin?

Found a mistake? Let us know!

2. An item costs $30 and sells for $50. What is the markup?

Found a mistake? Let us know!

3. A product costs $48. What price gives a 20% margin?

Found a mistake? Let us know!

4. What margin does a 25% markup give?

Found a mistake? Let us know!

5. What markup do you need for a 60% margin?

Found a mistake? Let us know!

6. A store sells a jacket for $120 with a 35% margin. What did the jacket cost?

Found a mistake? Let us know!

7. You sell $500 of item A at a 50% margin and $1,500 of item B at a 20% margin. What is the blended margin?

Found a mistake? Let us know!

8. An item costs $40 and sells for $32. What is the margin?

Found a mistake? Let us know!

9. An item costs $60 and sells for $80. After a 10% discount on the price, what is the margin?

Found a mistake? Let us know!

10. Which statement is true?

Found a mistake? Let us know!

Frequently asked questions

What is the difference between margin and markup?

Both use the same profit. Margin divides it by the selling price and markup divides it by the cost. An item bought for $60 and sold for $80 has a 25% margin and a 33.33% markup.

How do I calculate a 30% profit margin?

Divide the cost by 1 − 0.30 = 0.7. For a $70 cost, the price is $70 ÷ 0.7 = $100, which leaves $30 profit, or 30% of the price.

What markup gives a 50% margin?

A 100% markup. Doubling the cost makes the profit equal to the cost, which is half of the price: 0.5 ÷ (1 − 0.5) = 1, or 100%.

Can a profit margin be more than 100%?

No. Profit can never exceed the price, so a margin stays below 100% (it can be negative for a loss). A markup can be any size: a 300% markup is a 75% margin.

How do I calculate margin in Excel?

With the cost in A2 and the price in B2, enter =(B2-A2)/B2 and format the cell as a percentage. For markup, use =(B2-A2)/A2.

Related calculators

Related to This Article

What people say about "Margin Calculator: Profit Margin, Markup and Price"?

No one replied yet.

Leave a Reply