Skip to main content
PM

Profit Margin Calculator

Enter revenue and cost to instantly see your profit, margin percentage, and markup percentage side by side.

Did you like the tool? Thanks!
Share:

Margin is profit ÷ revenue; markup is profit ÷ cost — same profit, different denominator.

How to Use Profit Margin Calculator

Enter your revenue (what you sold something for) and cost (what it cost you). The calculator shows profit, margin (profit as a percentage of revenue), and markup (profit as a percentage of cost) — all three update live as you type.

About Profit Margin Calculator

Profit margin and markup are two of the most confused numbers in business, largely because they're calculated from the same raw figures — revenue and cost — but divide by different denominators. Understanding the difference matters because pricing decisions based on the wrong one can quietly erode profitability. Profit itself is simple: revenue minus cost. If you buy a product for £60 and sell it for £100, your profit is £40. The confusion begins when you turn that £40 into a percentage. Margin expresses profit as a share of the selling price (revenue): £40 ÷ £100 = 40% margin. Markup expresses the same £40 profit as a share of what it cost you to acquire or produce the item: £40 ÷ £60 = 66.7% markup. Both numbers are correct, they just answer different questions — margin tells you "what portion of each sale is profit," while markup tells you "how much did I add on top of cost." The practical danger is that these numbers can look deceptively similar at low percentages but diverge sharply as they grow, and business owners who set prices using a rule of thumb like "add a 50% markup" sometimes assume that gives them a 50% margin, when it actually gives them a 33.3% margin (profit of £50 on a cost of £100 gives revenue of £150, and £50 ÷ £150 = 33.3%). This gap widens the higher the intended markup goes, and retailers who don't distinguish the two can end up pricing products lower than they intend, cutting into the margin they thought they'd secured. A worked example: a café buys coffee beans for £8 per kg and blends them into drinks sold for a combined £24 per kg equivalent. Profit is £24 − £8 = £16. Margin is £16 ÷ £24 = 66.7%. Markup is £16 ÷ £8 = 200%. Both describe the exact same £16 of profit, but "200% markup" sounds dramatically larger than "66.7% margin," even though they're the identical pound amount — this is exactly why margin is the number most commonly used in financial reporting and investor communications (it's bounded below 100% for any profitable-but-not-absurd business), while markup is more common in retail pricing conversations (it's a more intuitive way to think about "how much do I add to my cost price"). One important edge case: if revenue is zero, margin is undefined (there's no sale to take a percentage of) — the calculator shows this as a dash rather than a misleading 0% or an error. Similarly, if cost is zero (a purely digital product with no marginal cost, for instance), markup is undefined because you can't calculate "percentage on top of zero." In both cases the underlying profit figure is still shown and still meaningful; only the ratio built on the zero denominator becomes meaningless. The upshot for anyone pricing a product or service: decide up front whether you're targeting a margin or a markup, and be explicit about which one you mean when discussing numbers with colleagues or clients, because the same word "40%" can describe two very different amounts of actual profit depending on which base it's measured against.

Details & Tips

**Formulas used** - Profit = Revenue − Cost - Margin % = (Profit ÷ Revenue) × 100 — undefined (shown as "—") when Revenue is 0 - Markup % = (Profit ÷ Cost) × 100 — undefined (shown as "—") when Cost is 0 **Worked example 1** A product costs £40 to make and sells for £100. - Profit = 100 − 40 = £60 - Margin = 60 ÷ 100 × 100 = 60% - Markup = 60 ÷ 40 × 100 = 150% **Worked example 2 — reverse-engineering a target margin** Suppose you want a 25% margin on a product that costs £30 to make. Margin is profit ÷ revenue, so if revenue is R: (R − 30) ÷ R = 0.25, which rearranges to R = 30 ÷ 0.75 = £40. Checking: profit = 40 − 30 = £10, and 10 ÷ 40 = 25% margin, correct. Note this is a different calculation than markup — a 25% *markup* on the same £30 cost would only require a price of 30 × 1.25 = £37.50, a full £2.50 less, which is exactly the kind of gap that catches people out when they set prices assuming markup and margin are interchangeable. **Edge cases the widget handles** - Revenue of £0 shows margin as "—" (division by zero), while profit and markup (if cost is non-zero) still display normally. - Cost of £0 shows markup as "—", while profit and margin still calculate normally — common for pure digital products or services with no direct cost of goods. - Negative profit (selling at a loss) is fully supported and displays as a negative margin/markup percentage, which is useful for identifying underpriced products. - Non-numeric input in either field shows dashes rather than a broken calculation. **Practical tip** If you're setting prices from a target profitability goal, always confirm whether your target is expressed as a margin or a markup before doing the arithmetic — a 50% margin target requires roughly double the markup percentage (100% markup, not 50%) to hit the same pound profit. A quick way to convert between them without a calculator: Margin = Markup ÷ (1 + Markup), and Markup = Margin ÷ (1 − Margin), both expressed as decimals. Keeping this distinction explicit in pricing spreadsheets — labeling columns "margin %" and "markup %" separately rather than just "%" — prevents a huge and very common source of pricing errors.

Frequently Asked Questions

What is the difference between margin and markup?
Margin is profit divided by revenue (selling price); markup is profit divided by cost. The same profit amount produces a lower margin percentage than markup percentage whenever there is a profit at all.
How do I convert markup to margin?
Margin = Markup ÷ (1 + Markup), using decimal form. For example a 100% markup converts to a 50% margin: 1 ÷ (1 + 1) = 0.5.
How do I convert margin to markup?
Markup = Margin ÷ (1 − Margin), using decimal form. For example a 60% margin converts to a 150% markup: 0.6 ÷ 0.4 = 1.5.
Why does my margin show as a dash?
Margin is undefined when revenue is zero, since you cannot express profit as a percentage of no sale. Enter a non-zero revenue to see a margin figure.
Why does my markup show as a dash?
Markup is undefined when cost is zero, since there is no base cost to calculate a percentage on top of. This is common for pure digital or zero-cost-of-goods items.
Can margin ever be higher than 100%?
No, margin approaches but never reaches 100% as cost approaches zero, because profit can never exceed revenue in this calculation. Markup, by contrast, has no upper limit.
Which figure should I use for investor reporting?
Gross margin (profit ÷ revenue) is the standard figure used in financial statements and investor communications, since it is bounded and easier to compare across companies of different sizes.
Which figure should I use for retail pricing?
Markup is more commonly used when setting retail prices from a known cost, since it directly answers "how much do I add on top of what I paid."
What if I enter a cost higher than revenue?
The calculator will show a negative profit and negative margin/markup percentages, correctly indicating you are selling at a loss.
Does this calculator account for taxes or overhead costs?
No, it uses only the revenue and cost figures you enter. For a fully loaded profitability picture, include all relevant costs (materials, labour, overhead) in the cost figure before calculating.
Is a 50% margin the same as doubling your cost price?
No — doubling your cost price gives a 100% markup, which actually works out to a 50% margin. This mismatch in intuition is exactly why the two figures are so often confused.

Part of These Collections

Also Available As

profit margin calculator, markup calculator, margin vs markup, gross margin calculator, profit calculator, pricing calculator, margin percentage calculator

Found a Problem?

Let us know if something with Profit Margin Calculator isn't working as expected.

Thanks — we'll take a look.