Profitability
How To Calculate Profit Margin
Profit margin is the share of revenue left over after cost, computed as revenue minus cost divided by revenue. Everything contentious about the topic comes from a single choice: which number sits on the bottom of the fraction.
Quick Answer
Profit margin = (Revenue - Cost) / Revenue x 100%
- R
- Revenue — what customers paid, before any costs come off
- C
- Cost of what was sold, matched to the margin you want
- R - C
- Profit left after cost, the numerator of the fraction
- m
- Margin as a decimal; multiply by 100 for the percentage
Subtract cost from revenue to get profit, then divide that profit by revenue — never by cost — and multiply by 100 to read it as a percentage. On revenue of 200000 and cost of 150000 the profit is 50000, the margin is 25%, and the same profit described as markup on cost is 33.3333%. If you are setting a price rather than measuring one, work backwards with price = cost / (1 - margin): a 25% margin on 150000 of cost means charging 200000, not 187500.
What Is Profit Margin?
Profit margin answers a narrow question in the language of percentages: of every unit of money a customer handed over, how much did the business keep. The calculation is profit divided by revenue, so a 25% margin means that for each unit of revenue, 0.25 survives after the cost of delivering it. That framing is what makes the number portable — the same 25% describes a corner shop and a software firm, even though the sums behind them differ by orders of magnitude.
The denominator is where nearly all the difficulty lives. Dividing by revenue rather than by cost is not a stylistic preference; it is what makes the result a share of the customer's payment. Because the numerator can never exceed the denominator in an ordinary sale, margin is capped at 100%, and a figure above that is a signal that revenue or cost has been misstated somewhere in the ledger.
Normalising by revenue is also what makes comparison possible at all. A profit of 50000 on revenue of 200000 and a profit of 50000 on revenue of 2000000 are identical in absolute terms and completely different as businesses. The first keeps a quarter of what it takes; the second keeps a fortieth. Reporting the raw profit figure alone hides that entirely, which is why operators reach for the percentage first.
Margin and markup describe the same profit against two different bases, and conflating them is the single most common error in commercial arithmetic. Take revenue of 200000 against cost of 150000: the profit of 50000 is 25% of revenue but 33.3333% of cost. Both are correct, they answer different questions, and the gap between them widens as profitability rises, so it cannot be waved away as rounding.
The two are linked by an exact conversion rather than an approximation. Margin equals markup divided by one plus markup, so 0.3333333 / 1.3333333 returns 0.25 precisely. Running that conversion in both directions is the quickest way to check whether a figure quoted in a meeting was computed on a revenue base or a cost base, and it takes one line on a calculator.
The asymmetry between the two measures has a practical consequence worth internalising. Margin is bounded above by 100%, while markup has no ceiling at all: a 50% margin corresponds to a 100% markup, and a 90% margin corresponds to a 900% markup. Near the top of the range, markup explodes while margin creeps, which is why purchasing teams naturally speak in markup and finance teams report in margin. It is also why the two figures should never appear in the same column of a report without a label on each.
Setting a price from a target margin requires inverting the formula rather than applying it forward. Price equals cost divided by one minus the target margin. On cost of 150000 with a target of 25%, that is 150000 / 0.75 = 200000. Adding 25% to cost instead gives 150000 x 1.25 = 187500, which produces only 37500 of profit on 187500 of revenue — a margin of 20%, a fifth less than intended, and the shortfall grows as the target rises.
Three varieties of margin sit on top of the same arithmetic, and they are routinely quoted without saying which is meant. Gross margin subtracts only the cost of goods sold. Operating margin also removes overhead, payroll and marketing. Net margin additionally takes out interest and tax. One business in one period therefore has three correct margins, and a 25% gross margin can sit comfortably alongside a 6% net margin without either being wrong. What separates them is nothing more than how far down the cost list you were willing to walk, so the discipline is consistency: pick a layer, document it, and hold it across every period you compare.
Finally, margin says nothing about time, cash or volume. A 60% margin on a line that sells four units a month contributes less than a 15% margin on one that sells four hundred, and a healthy margin on paper is still compatible with running out of cash while waiting to be paid. Read margin next to turnover, stock rotation and return on capital, and treat it as one instrument on a panel rather than the verdict.
Formula
m = (R - C) / R
The standard form. Profit left after cost, expressed as a share of what the customer paid. Multiply by 100 to read it as a percentage.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| R | Revenue | currency | What customers paid over the period, before any costs come off. |
| C | Cost of what was sold | currency | Cost of goods sold for gross margin, or fully loaded cost for net margin. |
| m | Profit margin | ratio | A decimal between 0 and 1 in any ordinary sale. Capped at 100%. |
u = (R - C) / C, and m = u / (1 + u)
Markup divides the same profit by cost instead of revenue. The second half converts a markup back into the margin it actually delivers.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| u | Markup on cost | ratio | Unbounded above. A markup of 1.00 is a doubling of cost and yields a 50% margin. |
| C | Cost of what was sold | currency | The base here, so the same profit always reads larger as markup than as margin. |
| R | Revenue | currency | Equal to cost plus the marked-up amount when pricing forward from cost. |
P = C / (1 - m)
The inversion used when a margin has been decided and the price is unknown. Never add the margin percentage to cost; divide by what is left.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| C | Cost of what will be sold | currency | Include every variable cost attached to the sale before applying this. |
| m | Target margin as a decimal | ratio | 0.25 for a 25% target. Values at or above 1 make the formula meaningless. |
| P | Price to charge | currency | The revenue figure that delivers the target margin exactly. |
How To Calculate Profit Margin
- 1
Decide which margin you actually need
Gross margin takes off only the cost of goods sold; operating margin also removes overhead, payroll and marketing; net margin takes out interest and tax as well. Pick one before you touch a number, and label the result with it. Three correct answers exist for the same period, and an unlabelled percentage invites the reader to assume the most flattering one, which is usually the gross figure. Write the layer into the column heading rather than into a footnote nobody reads.
- 2
Total the revenue for the period
Use what customers actually paid, net of refunds and discounts already granted. Do not use list prices or forecast billings. This figure is the denominator, and because it sits at the bottom of the fraction, overstating it quietly improves every margin derived from it.
- 3
Total the matching cost
For gross margin this is the cost of goods sold: materials, purchase price, freight in and direct labour. For net margin it also carries rent, salaries, marketing, payment fees and interest. The discipline is matching — whatever you call the margin, the cost has to be the set of expenses that label promises. Where a cost serves several periods at once, apportion it rather than dropping it, because a cost left out of the sum is a margin quietly overstated.
- 4
Subtract, then divide by revenue
Revenue of 200000 less cost of 150000 leaves profit of 50000. Divide that by revenue, not by cost: 50000 / 200000 = 0.25, or 25%. Dividing by cost would give 33.3333%, which is a markup, and reporting it as a margin overstates profitability by a third of the stated figure.
- 5
Cross-check with the conversion, or price backwards
Convert the figure into markup and back with margin = markup / (1 + markup); 0.3333333 / 1.3333333 returns 0.25, confirming the base was revenue. If instead you are setting a price, invert the formula: cost of 150000 against a 25% target is 150000 / 0.75 = 200000, whereas adding 25% to cost yields 187500 and a real margin of 20%.
Examples
Example 1: Revenue of 200000 against cost of 150000
- Revenue
- 200000
- Cost
- 150000
| Step | Calculation | Result |
|---|---|---|
| Profit left after cost | 200000 - 150000 | 50000 |
| Divide by revenue | 50000 / 200000 | 0.25 |
| Margin as a percentage | 0.25 x 100% | 25% |
| The same profit as markup on cost | 50000 / 150000 | 33.3333% |
| Revenue generated per unit of cost | 200000 / 150000 | 1.3333333 |
Result: A margin of 25% and 50000 of profit. The identical profit reads as 33.3333% when divided by cost instead, and each unit of cost produced 1.3333333 units of revenue.
Example 2: Chasing a 25% margin and missing it, then correcting the price
- Cost
- 150000
- Target margin
- 25%
| Step | Calculation | Result |
|---|---|---|
| Wrong method: add 25% to cost | 150000 x 1.25 | 187500 |
| Profit actually left at that price | 187500 - 150000 | 37500 |
| Margin actually delivered | 37500 / 187500 | 20% |
| Right method: divide by what is left | 150000 / (1 - 0.25) | 200000 |
| Margin at the corrected price | (200000 - 150000) / 200000 | 25% |
Result: Adding 25% to cost gives a price of 187500 and a margin of only 20%, not the 25% intended. The correct price is 200000, which delivers exactly 25%.
Example 3: Turning a 100% markup into the margin it really is
- Cost
- 40000
- Markup on cost
- 100%
| Step | Calculation | Result |
|---|---|---|
| Price at a 100% markup | 40000 x (1 + 1.00) | 80000 |
| Profit after cost | 80000 - 40000 | 40000 |
| Margin on that revenue | 40000 / 80000 | 50% |
| Straight from markup to margin | 1.00 / (1 + 1.00) | 50% |
| What a 90% margin would need | 9.00 / (1 + 9.00) | 90% |
Result: A 100% markup is only a 50% margin. Reaching a 90% margin requires a 900% markup, because 9.00 / 10.00 = 0.9 — margin is capped at 100% while markup is not.
Calculator
Profit margin
25.00%
- Profit left after cost
- 50,000
- The same profit expressed as markup on cost
- 33.33%
- Revenue generated per unit of cost
- 1.3333
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the Profit Margin calculator page.
Common Mistakes
Treating the markup percentage as if it were a margin
The two divide the same profit by different bases. On revenue of 200000 and cost of 150000 the profit of 50000 is 25% of revenue but 33.3333% of cost, so quoting the markup as a margin overstates profitability by a third of the stated figure. Convert with margin = markup / (1 + markup) before repeating a number anyone else produced.
Setting prices by adding the margin percentage to cost
This is the most expensive version of the previous error, because it is built into the price list rather than into a report. Aiming at 25% on cost of 150000 and adding 25% gives 187500, at which the true margin is 20% — 37500 of profit instead of 50000. Price from cost / (1 - margin) to get 200000, and the shortfall grows as the target rises.
Putting cost in the denominator by accident
The formula divides by revenue. A spreadsheet that pulls the wrong cell, or a habit inherited from markup calculations, produces a larger and more flattering number that nobody notices until budgets are missed. Sanity-check any margin above 60% in a conventional goods business: it is far more likely to be a markup than a genuine margin.
Quoting gross, operating and net margin interchangeably
Gross margin removes only the cost of goods sold, operating margin also strips overhead and payroll, and net margin takes interest and tax as well. One period legitimately has three values, and a business can hold a 25% gross margin and a 6% net margin at the same time. Always state which is meant, and never compare a competitor's net figure against your own gross one.
Leaving variable costs out of the cost side
Payment processing fees, freight, packaging, commissions and returns handling all scale with each sale, so they belong in the cost base. Omitting them inflates margin and makes volume growth look profitable when each additional unit is in fact thinner than the last. Fixed costs are the ones that legitimately sit outside a gross margin — variable costs never do.
FAQ
What is a good profit margin?
There is no universal figure, because the answer depends on the layer being measured and on the industry. Gross margins in retail are routinely thin while software gross margins are routinely high, and net margins in both tend to land in the single or low double digits once overhead, interest and tax are removed. The useful benchmark is your own trend over time and the margin of the closest comparable competitor, measured on the same layer.
What is the difference between margin and markup?
They divide the same profit by different bases. Margin divides by revenue; markup divides by cost. On revenue of 200000 against cost of 150000 the profit of 50000 is a 25% margin and a 33.3333% markup. Move between them with margin = markup / (1 + markup), so 0.3333333 / 1.3333333 returns 0.25.
Can profit margin exceed 100%?
Not in an ordinary sale, because profit cannot be larger than the revenue it came out of. The bound is the reason margin behaves oddly at high profitability: a 50% margin needs only a 100% markup, but a 90% margin needs a 900% markup, and the markup figure runs away towards infinity as margin approaches 100%. A reported margin above 100% almost always means revenue was misstated.
How do I set a price from a target margin?
Divide the cost by one minus the target margin rather than adding the percentage to cost. For a 25% target on cost of 150000 the price is 150000 / 0.75 = 200000. Adding 25% to cost instead gives 187500, which yields 37500 of profit and a real margin of 20% — a fifth less than the target, and the error widens as the target climbs.
Why does a small discount cut profit so sharply?
Because the discount comes entirely out of profit while the cost is unchanged. On revenue of 200000 with cost of 150000 the margin is 25% and profit is 50000. A 10% price cut takes revenue to 180000, leaves profit at 30000, and drops the margin to 16.6667%: revenue fell by 10% while profit fell by 40%, since the whole 20000 of discount came straight off the bottom line.
References
- [1]Wikipedia, Profit margin — https://en.wikipedia.org/wiki/Profit_margin
- [2]Wikipedia, Gross margin — https://en.wikipedia.org/wiki/Gross_margin
- [3]Wikipedia, Markup (business) — https://en.wikipedia.org/wiki/Markup_(business)