Profit Margin Calculator: Revenue, Cost, Margin & Markup
Margin and markup are the two ways to express the same profit dollar, and confusing them is one of the most common pricing mistakes. This calculator returns both alongside the gross profit, so you can price and report consistently.
Adjust the inputs and select Calculate for a full breakdown.
Compare Common Scenarios
How the numbers shift across typical situations for this calculator:
| Scenario | Profit margin | Markup | Gross profit |
|---|---|---|---|
| $100 revenue, $60 cost (40% margin) | 40.00% | 66.67% | $40.00 |
| $1,000 revenue, $250 cost (75% margin — SaaS-like) | 75.00% | 300.00% | $750.00 |
| $5 revenue, $4.85 cost (3% margin — grocery) | 3.00% | 3.09% | $0.15 |
How This Calculator Works
Enter the selling price (revenue) and the cost. The calculator returns three figures: the gross profit in dollars (revenue − cost), the profit margin as a percentage of revenue, and the markup as a percentage of cost. Use margin when communicating about a sale's contribution to the top line (income statements always read margin); use markup when setting a price from a cost (the manufacturer or wholesaler typically thinks in markup). On the same $40 profit, a 40% margin equals a 67% markup — same dollars, different denominator.
The Formula
Profit Margin and Markup
Markup = (Revenue − Cost) / Cost × 100 — the same profit measured against cost instead of revenue
Worked Example
Sell something for $100 that costs $60. Gross profit is $40. Margin is $40 / $100 = 40%. Markup is $40 / $60 = 66.7%. If a supplier offers a 25% markup, that means cost × 1.25 = price — so a $60 cost becomes a $75 price, a $15 profit, and a 20% margin (not 25%). Confusing the two is how retailers accidentally underprice items: applying a 'margin' of 25% to a $60 cost as if it were markup gives $75, not the $80 you would need to actually achieve a 25% margin.
Key Insight
Margin is a financial KPI — it shows up on income statements at three nested levels (gross / operating / net), each progressively including more costs. Markup is a pricing rule — it's how you go from a cost to a price. Healthy gross margins differ wildly by industry (SaaS 70–90%, grocery 1–3%, restaurants 60–70% on food cost), so the only useful benchmark is your own trend and direct competitors. The most common operational lever isn't 'sell higher' but cost discipline: a one-point reduction in COGS at constant price drops straight to the gross-margin line. The inverse — discounting — compounds the wrong way: a 10% price cut on a 40%-margin product takes margin down to 33%, not 30%, because the discount comes out of margin, not revenue.
Margin and markup are the same dollar — different denominator
The gross profit is one number: revenue minus cost. Margin divides that by REVENUE; markup divides it by COST. On a $100 sale with $60 cost, the $40 profit is a 40% margin OR a 66.7% markup. Use margin to communicate profitability (income statements always read margin); use markup to set a price from a cost.
Conversion shortcuts: margin = markup / (1 + markup); markup = margin / (1 − margin). At 0% they coincide, and markup is always larger than margin for any positive profit.
Three margin layers on an income statement
Gross margin = (Revenue − COGS) / Revenue. Measures product-level profitability. Used for SKU pricing and unit-economics analysis.
Operating margin = (Revenue − COGS − Opex) / Revenue. Adds rent, salaries, marketing, depreciation. Measures how the business runs day-to-day.
Net margin = (Revenue − all costs incl. interest and tax) / Revenue. What shareholders see. This is the figure that headline 'profit margin' usually refers to in financial press.
Each layer narrows from the one above. A SaaS firm typically shows ~80% gross, ~20% operating, ~15% net; a grocer shows ~25% gross, ~3% operating, ~2% net. Healthy ratios are industry-specific — benchmark within your sector.
The pricing trap — discounting compounds the wrong way
A 10% price cut on a 40%-margin product does NOT cut margin to 30%. The discount comes out of profit, not revenue: $100 sale with $60 cost is 40% margin; cut the price to $90 and the new margin is ($90 − $60) / $90 = 33.3%. You lose 6.7 percentage points of margin to a 10% discount.
Conversely, every dollar of cost reduction at constant price drops straight to the gross-profit line. This is why operations teams obsess over COGS while sales teams obsess over price — both move the same metric, in opposite directions, with very different feasibility.
Frequently Asked Questions
What's the difference between margin and markup?
They measure the same gross profit but use different denominators. Margin = profit / revenue. Markup = profit / cost. On a $100 sale with $60 cost, the $40 profit is a 40% margin OR a 66.7% markup — same dollars. Margin is what shows up on income statements; markup is what most pricing rules use.
Which margin should I use — gross, operating, or net?
Depends on the question. Gross margin (revenue − COGS) measures product-level profitability; it's the right number for pricing and SKU analysis. Operating margin adds opex (rent, salaries, marketing) and measures how the business runs day-to-day. Net margin includes interest and tax and measures what shareholders actually get. This calculator works for any of them — just match the 'cost' input to the layer you want.
How do I convert markup to margin (or back)?
Margin = markup / (1 + markup). Markup = margin / (1 − margin). So 50% markup = 33.3% margin; 25% margin = 33.3% markup. The two are equal only at 0, and markup is always the larger number above that.
Is a high margin always good?
Not by itself. A high margin on tiny volume can yield less profit than a thin margin on huge volume — luxury brands and supermarkets are extreme cases at each end. Margin matters in the context of inventory turn, marketing payback period, and competitive moat. The best businesses pair healthy margin with high turn, not maximum margin alone.
What margin should I target as a small business?
Use industry benchmarks as a sanity check, not a target. Restaurants survive on ~5–10% net, software firms ~15–25% net, retail varies widely. Setting margin targets blindly leads to either uncompetitive prices or unprofitable scale. Anchor to your unit economics — cost per unit, customer acquisition cost, lifetime value — not to a generic 'good margin' number.
Why does my reported margin differ from this calculator?
Most likely because 'cost' is broader than you put in. Reported margins include discounts taken, returns, freight, shrinkage, and allocated overhead — those reduce the effective revenue or inflate cost. If your accounting margin is lower than this calculator's, line-by-line reconcile what's in COGS vs. SG&A on your P&L.
References & Authoritative Sources
- U.S. Securities and Exchange Commission — Beginners' Guide to Financial Statements · consulted June 1, 2026 · Definitions of gross/operating/net profit on the income statement.
- U.S. Small Business Administration — Calculate your startup costs and pricing · consulted June 1, 2026 · SBA guidance on margin and markup for small businesses.
- U.S. Bureau of Labor Statistics — Industry Productivity — Industry Productivity and Costs · consulted June 1, 2026 · Reference for industry-level cost structures.
Related Calculators
Methodology & Review
Profit margin = (revenue − cost) / revenue × 100. Markup = (revenue − cost) / cost × 100. Both quantify the same profit dollar; margin divides it by revenue (the sale price), markup divides it by cost (what you paid). The two figures are mathematically related — markup is always the larger of the two — but they answer different business questions. RELIABILITY: Reliable for gross/operating/net margin given the matching cost figure (COGS for gross, COGS + opex for operating, all costs incl. tax for net). Less reliable when 'cost' is ambiguous — discounts, returns, freight, and overhead allocations can move the result substantially; a clean P&L is the prerequisite.
Updated