Markup calculator: markup, margin and selling price
Markup and margin formulas
Markup and margin formulas
| What you want | Formula | Example (cost $40) |
|---|---|---|
| Markup % | (price - cost) / cost x 100 | ($60 - $40) / $40 = 50% |
| Gross margin % | (price - cost) / price x 100 | ($60 - $40) / $60 = 33.3% |
| Price from markup | cost x (1 + markup) | $40 x 1.5 = $60 |
| Price from margin | cost / (1 - margin) | $40 / 0.6 = $66.67 |
| Margin from markup | markup / (1 + markup) | 0.5 / 1.5 = 33.3% |
| Markup from margin | margin / (1 - margin) | 0.4 / 0.6 = 66.7% |
Gross profit margin vs net profit margin
Gross profit margin = (revenue - cost of goods sold) / revenue. It shows how much each sale contributes before overhead. Net profit margin = net income / revenue, after all expenses including rent, salaries, marketing, interest and taxes. A business can have a healthy 60% gross margin and still lose money if overhead is too high. In Excel: gross margin = (B2-A2)/B2, formatted as a percentage.
Shopify and marketplace margins
For online stores, include payment processing, platform or app fees, packaging and shipping in cost before calculating margin. A product costing $18 with $6 of fees and shipping, sold at $45, has a margin of ($45 - $24) / $45 = 46.7%, and a markup of 87.5% on the $24 total cost. Then check advertising with the break-even ROAS calculator. Marketplace commissions (such as on eBay) are a cost too; see commission calculator.
Markup by industry: why it varies
Industries with high overhead, spoilage or slow-moving stock use higher markups: restaurants often price food at three to four times ingredient cost, jewelry and furniture retailers commonly use 100% or more, while grocery stores and gas stations run thin margins and rely on volume. Service businesses price from labor cost plus overhead rather than a product markup. Whatever your industry, check the result against competitors and against the margin your break-even analysis says you need.
Choosing your markup
- Start from the margin you need to cover overhead and profit, then convert to markup.
- Retail keystone pricing doubles cost (100% markup, 50% margin).
- Check competitors' prices and customer willingness to pay.
- Revisit prices when costs change; a fixed markup on a lower cost reduces your profit dollars.
- Discounts hit margin hard: a 20% discount on a 33% margin product cuts margin to about 17%.
Worked example
A bakery's cake costs $14 in ingredients and packaging. Target gross margin 65%: price = $14 / 0.35 = $40. Markup = $26 / $14 = 186%. Selling 300 cakes a month earns $7,800 of gross profit toward rent and wages; see the small business guide for break-even and insurance.
How we got these numbers
Standard pricing formulas; examples are illustrative.
Figures were checked on 22 November 2026. Averages are estimates, not quotes or advice; rules and prices change, so confirm with the official source or a licensed professional before you act.
Sources and further reading
Questions people ask
How do I calculate markup percentage?
What is the markup formula?
What is the gross profit margin formula?
What is the net profit margin formula?
Is a 50% markup the same as a 50% margin?
How do I calculate selling price using markup percentage?
How do I calculate profit margin in Excel?
What is a good gross profit margin?
How do I convert margin to markup?
Results are estimates for information only, not financial advice. Read the full disclaimer.