Guide
Pricing with margin and markup without mixing them up
“We add 30% to cost” and “we work on a 30% margin” sound like the same policy, but they produce different prices and very different profits. Confusing margin and markup is one of the most common pricing mistakes in small businesses, and it consistently underprices products. This calculator shows both measures side by side and works in any direction.
Margin versus markup
Take a product that costs 40 and sells for 60. The profit is 20.
- Margin = profit ÷ price = 20 ÷ 60 = 33.3%
- Markup = profit ÷ cost = 20 ÷ 40 = 50%
The same profit gives two different percentages. Retail and accounting usually talk in margin; many tradespeople and wholesalers price with markup. Handy equivalents:
| Markup | Margin |
|---|---|
| 25% | 20% |
| 50% | 33.3% |
| 100% | 50% |
| 150% | 60% |
| 200% | 66.7% |
Three ways to use the calculator
Choose what you already know:
- Cost and price: you have a price and want to know the margin and markup. Useful for checking existing products.
- Cost and margin: you know your target margin and need the price:
price = cost ÷ (1 − margin). For a 40% margin on a cost of 30, the price is 30 ÷ 0.6 = 50. - Cost and markup: you price with a markup:
price = cost × (1 + markup).
Each mode shows the selling price, gross profit per sale, margin and markup, with the formulas written out underneath.
The classic mistake
A shop wants a 40% margin and adds 40% to the cost: 30 × 1.4 = 42. Check that price in “Cost and price” mode and the margin is only 28.6%. To reach 40%, the price has to be 50. Across a product range, that difference can decide whether a business makes money.
What goes into “cost”
The result is only as good as the cost you enter. For a per-sale view, include everything you pay per unit sold:
- Purchase or production cost.
- Packaging.
- Payment processing and marketplace fees.
- Shipping, if you pay it.
Fixed costs, such as rent, software, salaries and advertising, aren’t per unit. They’re covered by the total gross profit across all sales. The calculator shows gross margin; net profit depends on those overheads too.
Discounts eat margin fast
A 20% discount on a product with a 40% margin doesn’t leave a 20% margin. It leaves 25%: on a price of 50 with a cost of 30, the discounted price of 40 earns 10, a quarter of the sale. Use the Discount Calculator to find a sale price, then check its margin here before launching a promotion.
Who calculates margins
- Small-business owners and online sellers set prices that cover costs and leave profit.
- Freelancers check whether a project price covers their time and expenses.
- Retail buyers compare supplier costs with selling prices.
- Business students learn the difference between margin and markup.
A complete example: pricing a product
A product costs 40 to make and ship:
- Cost and price with a price of 60: gross profit 20, margin 33.3%, markup 50%.
- You want a 40% margin instead. Use Cost and margin with 40%: the price must be 66.67.
- Check what a 10% sale does: 66.67 becomes 60, and the margin drops back to 33.3%. Every discount comes straight out of profit.
Margin versus markup
| Markup | Margin |
|---|---|
| 25% | 20% |
| 50% | 33.3% |
| 100% | 50% |
| 200% | 66.7% |
Mixing the two is a classic pricing mistake: adding a 30% markup gives only a 23% margin.
Tips
- Include every cost in “cost”: materials, packaging, shipping, payment fees and marketplace commissions.
- Gross margin doesn’t include rent, salaries and other overheads; those must also be covered by the total profit.
- Compare your margin with typical margins in your industry before deciding a price is too high or too low.
Related tools
- GST / VAT / Sales Tax to turn a net price into the price customers see.
- ROI Calculator to judge a campaign or an investment.
- Invoice Generator to bill customers.
These figures are for planning, not business advice. Your numbers stay in your browser.
Checked against the current version of the Profit Margin Calculator on .

