Calculators

Margin Calculator

By Talcart · Last updated July 10, 2026

Margin Calculation Guide


Understanding Margins

Gross Margin Formula

  • Margin = ((Selling Price - Cost) / Selling Price) × 100

  • Example: (($100 - $60) / $100) × 100 = 40% margin

Markup vs Margin

  • Margin is based on selling price

  • Markup is based on cost

  • Same profit can have different margin and markup percentages

Business

Margin Calculator

This margin calculator expresses profit as a percentage of revenue: sell for $100 what costs $60 and your margin is 40%. It reports gross, operating and net margin depending on which costs you enter, and translates between margin and markup — the pair of look-alike percentages whose confusion quietly underprices thousands of products.

Key facts

  • Margin = profit ÷ revenue; markup = profit ÷ cost — identical profit, different denominators, so markup is always the bigger percentage.
  • Exact conversions: markup = margin ÷ (1 − margin) and margin = markup ÷ (1 + markup); a 50% markup is precisely a 33.33% margin.
  • Margin is capped below 100% whenever cost is positive, but markup is unbounded — a $10 cost sold at $100 is a 900% markup yet a 90% margin.

What is the Margin Calculator?

Profit margin is the percentage of revenue that remains as profit after subtracting costs, calculated as profit divided by revenue times 100. It comes in three standard grades matching the levels of the income statement: gross margin (after cost of goods sold), operating margin (after operating expenses), and net margin (after everything, including interest and tax). Margin is the universal language of profitability because it is scale-free — a 40% gross margin means the same thing at a market stall and at a multinational.

How does the Margin Calculator work?

Compute profit first, then divide by revenue: Margin % = (Revenue − Cost) ÷ Revenue × 100. Revenue of $100 against $60 of cost gives ($100 − $60) ÷ $100 × 100 = 40%. The critical distinction from markup is the denominator — markup divides the same $40 profit by the $60 cost, giving 66.7%. The conversions are exact: markup = margin ÷ (1 − margin) and margin = markup ÷ (1 + markup), so a 50% markup always lands at a 33.33% margin.

What is the Margin Calculator formula?

Margin% = (Profit / Revenue) × 100
  • Profit – Revenue minus relevant costs

Margin to markup equivalence (selling price $100)

Target marginRequired markup on costCostProfit
10%11.11%$90.00$10.00
15%17.65%$85.00$15.00
20%25.00%$80.00$20.00
25%33.33%$75.00$25.00
30%42.86%$70.00$30.00
40%66.67%$60.00$40.00
50%100.00%$50.00$50.00

How do you use the Margin Calculator?

  1. Enter revenue and cost.
  2. Read the margin %.

Worked example

ScenarioRevenue $100, cost $60
Calculation(100 − 60) / 100 × 100
ResultMargin 40%.

Common use cases

Pricing
Budget reviews
Investor reporting

Tips & best practices

Margin and markup are not the same — see Markup Calculator.

Frequently asked questions

Margin divides profit by the selling price, while markup divides the same profit by the cost — so markup is always the larger number. An item bought for $80 and sold for $100 carries a 20% margin but a 25% markup. Pricing with the wrong one is costly: applying a "40% markup" when you need a 40% margin leaves you 11.4 points of margin short (a 40% markup yields only a 28.6% margin).

Subtract cost from revenue, divide by revenue, and multiply by 100: Margin % = (Revenue − Cost) ÷ Revenue × 100. A product sold for $100 with $60 of cost has a ($100 − $60) ÷ $100 × 100 = 40% margin. Use COGS alone for gross margin, add operating expenses for operating margin, and include interest and tax for net margin.

Gross margins vary enormously by business model: software and SaaS commonly run 70–90%, restaurants and general retail often 20–40%, and grocery frequently under 25%. A "good" margin is one at or above your industry norm that still covers operating costs with profit left over. Track the trend too — a falling gross margin usually signals rising input costs or discounting pressure before net profit shows it.

Divide the margin by one minus the margin: Markup = Margin ÷ (1 − Margin). A 30% target margin therefore requires a 0.30 ÷ 0.70 = 42.86% markup on cost, and a 50% margin requires a full 100% markup. Going the other way, Margin = Markup ÷ (1 + Markup). The gap between the two widens sharply as percentages rise.

No — as long as cost is not negative, margin cannot reach 100%, because profit can never exceed the revenue it is divided by. A 100% margin would require zero cost; anything sold above that is still capped below 100%. Markup, by contrast, has no ceiling: selling a $10 item for $100 is a 900% markup, yet still only a 90% margin.

They are the same ratio applied at three depths of the income statement: gross margin uses profit after COGS only, operating margin also deducts operating expenses, and net margin deducts everything including interest and tax. A company with $100,000 revenue, $60,000 COGS, $25,000 operating costs and $5,000 of interest and tax shows margins of 40%, 15% and 10% respectively. Comparing the three reveals where money leaks.