Markup calculator: markup, margin and selling price

Updated 22 November 2026 ยท ClearCost USA ยท 3 min read

Markup is profit divided by cost; gross margin is profit divided by selling price. A $40 item sold for $60 has a $20 profit: a 50% markup but a 33.3% margin. To price from a target margin, divide cost by (1 - margin): a 40% margin on a $40 cost needs a price of $66.67. Enter cost and either markup, margin or price below.
Advertisement

Markup and margin formulas

Markup and margin formulas

What you wantFormulaExample (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 markupcost x (1 + markup)$40 x 1.5 = $60
Price from margincost / (1 - margin)$40 / 0.6 = $66.67
Margin from markupmarkup / (1 + markup)0.5 / 1.5 = 33.3%
Markup from marginmargin / (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.

Advertisement

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.

Advertisement

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.

Advertisement

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?
Subtract cost from price, divide by cost and multiply by 100.
What is the markup formula?
Price = cost x (1 + markup %). Markup % = (price - cost) / cost.
What is the gross profit margin formula?
(Revenue - cost of goods sold) / revenue x 100.
What is the net profit margin formula?
Net income / revenue x 100, after all expenses and taxes.
Is a 50% markup the same as a 50% margin?
No. A 50% markup is a 33.3% margin; a 50% margin requires a 100% markup.
How do I calculate selling price using markup percentage?
Multiply cost by 1 plus the markup: $25 x 1.4 = $35 for a 40% markup.
How do I calculate profit margin in Excel?
Use =(price-cost)/price and format as a percentage.
What is a good gross profit margin?
It depends on the industry: software and services can exceed 70%, retailers often run 25% to 50%, and grocery stores much less. Compare with businesses like yours and make sure the margin covers overhead and profit.
How do I convert margin to markup?
Markup = margin / (1 - margin). A 25% margin is a 33.3% markup.

Results are estimates for information only, not financial advice. Read the full disclaimer.

More free calculators

Advertisement