TontonTools

Margin Calculator

Calculate profit, margin and markup from cost and price — and see the difference.

100% Free No signup Privacy-friendly Calculators
Updated Sep 2026
Profit
%
Margin
%
Markup
Share X / Twitter Facebook LinkedIn WhatsApp

How to use Margin Calculator

  1. Enter your cost — what the product or job costs you.
  2. Enter the revenue / selling price — what the customer pays.
  3. Read the three cards instantly: profit in currency, margin (profit ÷ revenue) and markup (profit ÷ cost).
  4. Price backwards when needed: adjust the selling price until the margin card hits your target percentage.

What is Margin Calculator?

Markup vs margin — what is the difference? Both compare profit to money, but against different bases, and confusing them misprices products:

Margin is profit as a share of the selling price: Margin = (Revenue − Cost) ÷ Revenue × 100. Markup is profit as a share of the cost: Markup = (Revenue − Cost) ÷ Cost × 100.

Same sale, two numbers: buy at $60, sell at $90, and your profit is $30 — a 50% markup (30 ÷ 60) but only a 33.3% margin (30 ÷ 90). Markup is always the larger number. Common pairs: 25% markup = 20% margin, 50% markup = 33% margin, 100% markup = 50% margin.

About the Margin Calculator

Enter your cost and selling price, and this calculator shows all three numbers at once — profit, margin and markup — so the two percentages can never get mixed up.

Why it matters commercially: retail buyers and accountants talk margin (share of revenue — it is what P&L statements show), while many workshops and trades quote markup (share of cost — it is how you build a price from expenses). A team that hears "we need 50%" and applies it as markup when the target was margin will underprice: hitting a 50% margin on a $60 cost requires selling at $120 (100% markup), not $90.

Reference points: grocery retail runs 1–3% net margins on high volume, restaurants markup food 300%+ to gross 65–70% margins, and software gross margins often exceed 80%. To price for a target margin, use Price = Cost ÷ (1 − margin as decimal): a $40 cost priced for 35% margin is 40 ÷ 0.65 = $61.54. All math runs instantly in your browser.

Frequently Asked Questions

Margin divides profit by the selling price; markup divides the same profit by the cost. Buy at $60, sell at $90: margin 33.3%, markup 50%. Markup is always the bigger number for the same sale.
Margin = Markup ÷ (100 + Markup) × 100. So 50% markup → 50 ÷ 150 = 33.3% margin; 100% markup → 50% margin. Reverse: Markup = Margin ÷ (100 − Margin) × 100.
Divide cost by (1 − target margin): for a 40% margin on a $30 cost, price = 30 ÷ 0.60 = $50. Multiplying cost by 1.40 instead gives only a 28.6% margin — the classic pricing mistake.
Depends on the model: 5–10% net is respectable in retail, 10–20% in services and restaurants (gross much higher), 20%+ net is strong in most industries, and software gross margins run 70–90%. Compare within your industry, not across.
This calculator shows gross margin — revenue minus direct cost. Net margin also subtracts overheads, salaries and tax, so it is always lower; a 40% gross margin business might net 8%.

Learn more

Markup vs Margin: What's the Difference (and How to Calculate Each)

Markup and margin sound the same but mean very different things — and confusing them costs businesses money. Here is how to calculate both.

Read the guide

We use cookies for analytics and to keep the tools free via ads. See our Privacy Policy.