Margin Calculator
Work out your profit margin, markup and gross profit from cost and selling price, or find the selling price you need to hit a target margin.
What is profit margin?
Profit margin tells you what share of each sale you keep as profit. If you sell something for $100 and it cost you $60, your gross profit is $40, and your margin is 40%. Margin is always expressed against the selling price, which makes it easy to compare products, shops and businesses of different sizes.
This calculator uses gross margin: selling price minus the direct cost of the item. It does not include rent, wages, advertising, platform fees or tax, so your real take-home margin will be lower. Include those costs in the cost field if you want a net figure.
Margin vs markup: the difference
People mix these up constantly, and it leads to underpriced products. Both use the same profit figure, but they divide it by different things:
- Margin = profit ÷ selling price
- Markup = profit ÷ cost
Because the selling price is larger than the cost, markup is always a bigger number than margin for the same sale. A product bought for $60 and sold for $100 has a 40% margin but a 66.7% markup.
Margin and markup formulas
Profit margin
Markup
Selling price from a target margin
Selling price from a target markup
Maximum cost for a required margin
Margin to markup conversion table
Use this table to translate between the two quickly. The conversions come from Markup = Margin ÷ (1 − Margin).
| Margin | Equivalent markup | Price on $100 cost |
|---|---|---|
| 10% | 11.1% | $111.11 |
| 20% | 25% | $125.00 |
| 25% | 33.3% | $133.33 |
| 30% | 42.9% | $142.86 |
| 40% | 66.7% | $166.67 |
| 50% | 100% | $200.00 |
| 60% | 150% | $250.00 |
| 75% | 300% | $400.00 |
Typical margins by industry
“Good” margin depends heavily on the business. These are rough, commonly cited ranges for gross margin. Real figures vary a lot by country, product and scale, so treat them as a starting point rather than a target.
| Business type | Typical gross margin range | Why |
|---|---|---|
| Grocery / supermarket | Roughly 20–30% | High volume, thin margins |
| General retail | Roughly 30–50% | Depends on category and brand |
| Restaurants | Roughly 60–70% (before labour and rent) | Food cost is only part of total cost |
| E-commerce / dropshipping | Roughly 15–40% | Ad spend and fees reduce what is left |
| Software / digital products | Often 70–90% | Low cost to serve each extra customer |
| Services / consulting | Often 50–80% | Mostly time, little material cost |
Common pricing mistakes
- Confusing markup with margin — The most frequent error. Set prices using the formula for the one you actually want to hit.
- Forgetting hidden costs — Shipping, payment processing fees, packaging, returns and platform commissions all belong in your cost.
- Discounting without checking margin — A 20% discount on a 25% margin product leaves you with roughly a 6% margin. Check with our Discount Calculator before running a sale.
- Pricing from competitors only — Matching a competitor’s price is risky if their costs are lower than yours.
- Ignoring currency changes — If you import goods, exchange rate moves can erase your margin between ordering and selling.