The formula
Profit = selling price − cost
Gross margin = profit ÷ selling price × 100
Markup = profit ÷ cost × 100
Price for a target margin = cost ÷ (1 − margin)
Price for a target markup = cost × (1 + markup)
Margin = markup ÷ (1 + markup); markup = margin ÷ (1 − margin)
Worked example
- A product costs $60 and sells for $100.
- Profit = 100 − 60 = $40.
- Gross margin = 40 ÷ 100 = 40%. Markup = 40 ÷ 60 = 66.67%.
- To get a 40% margin from a $60 cost: price = 60 ÷ (1 − 0.40) = $100.
- A 50% markup instead gives 60 × 1.5 = $90, which is only a 33.3% margin.
Margin vs markup
Both describe profit, but against different bases. Margin is profit as a share of the selling price; markup is profit as a share of the cost. A product bought for $60 and sold for $100 has a $40 profit: a 40% margin but a 66.67% markup. Mixing them up is a classic pricing error. If you want a 50% margin but add a 50% markup, you'll only make 33.3%. Retailers often think in markup; finance and investors think in margin.
Quick conversion table
- 20% margin = 25% markup
- 25% margin = 33.3% markup
- 33.3% margin = 50% markup
- 40% margin = 66.7% markup
- 50% margin = 100% markup ("keystone" pricing in retail)
- 60% margin = 150% markup
Margin can never reach 100% (that would mean zero cost), but markup can be any size.
Pricing for a target margin
To hit a target margin, divide cost by (1 − margin). For a 40% margin on a $60 cost: 60 ÷ 0.6 = $100. Choose Target margin in the calculator to do it automatically. Don't simply add the margin percentage to the cost, which gives a markup and a lower margin. Always calculate on prices excluding VAT or sales tax, because that tax isn't your revenue. Use the VAT calculator to remove it first.
Gross, operating and net margin
This calculator works out gross margin: price minus the direct cost of the product (materials, manufacturing or wholesale cost, inbound shipping). Operating margin also subtracts overheads such as rent, salaries and marketing; net margin subtracts everything, including interest and tax. A healthy gross margin is needed to cover those other costs, so it's the first number to get right. Typical gross margins vary widely by industry: grocery retail is often 25–30%, software 70–90%.
What to include in cost
For product businesses, include the purchase or manufacturing cost, inbound freight, duties (see the landed cost calculator), packaging and payment processing fees if you treat them as direct costs. For services, include the direct labour cost of delivering the work. Underestimating cost overstates margin, which can make an unprofitable product look healthy.
Discounts eat margin fast
Because margin is a share of the price, a discount comes straight out of profit. On a 40% margin product, a 20% discount halves your profit per unit, and you'd need to sell twice as many to make the same total profit. Check promotions with the discount calculator before you run them, and compare the margin you'll have left.
A worked check
Suppose a supplier raises your cost from $60 to $66 and you keep the $100 price. Margin falls from 40% to 34%, and profit per unit drops by 15%, from $40 to $34. To keep a 40% margin you'd need to charge $110. Run this check whenever costs change, so price increases keep up with them.
Using quantity
Enter the number of units to see total revenue and total profit for an order, a month or a year. Combine with your fixed costs to find your break-even volume: fixed costs ÷ profit per unit. For advertising, check that the profit per order covers the cost of acquiring it with the ROAS and break-even CPA calculator.