Margin & Markup Calculator
Profit margin and markup on a product, from its cost and selling price, with the gross profit per unit.
Estimate only — not financial advice. Results are estimates based on the numbers you enter; actual amounts depend on your bank, lender or investment provider. This calculation runs entirely in your browser — nothing you enter is stored or sent anywhere.
How to use the margin & markup calculator
- Enter the cost of one unit.
- Enter the selling price of one unit.
- Press “Calculate margin & markup” to see the margin, markup and gross profit.
Margin & markup formula
Margin = (selling price − cost) ÷ selling price × 100. Markup = (selling price − cost) ÷ cost × 100. Margin is a share of the price; markup is a share of the cost.
Margin vs markup with one example
An item costs 60 and sells for 100. The profit is 40.
- Margin = profit ÷ price = 40 ÷ 100 = 40%.
- Markup = profit ÷ cost = 40 ÷ 60 = 66.7%.
Tips for using the margin & markup calculator
- To hit a target margin, price = cost ÷ (1 − margin). For a 40% margin on a cost of 60: 60 ÷ 0.6 = 100.
- A margin can never reach 100%; a markup can be any size.
- Include delivery, packaging and platform fees in cost, or the margin will look better than it is.
Margin & markup calculator: common 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. A 50% markup on a $40 cost gives a $60 price and a 33.33% margin.
- Can margin be over 100%?
- No — margin is a share of the price, so it stays below 100%. Markup can be over 100% when the price is more than double the cost.
- Does this include tax or shipping?
- No. Include any per-unit tax, shipping or fees in the cost for a true margin.
- Why is markup always bigger than margin?
- Both use the same profit, but markup divides by the smaller number (cost) while margin divides by the price.