Calculate profit, margin and markup
Enter your selling price and costs to see total revenue, total cost, profit, profit margin and markup. Results update as you type, and the numbers you enter stay in your browser.
Changes how amounts are shown. It does not change the calculation.
For example shipping, packaging or payment fees per unit. Leave empty for 0.
Profit margin vs markup
Both numbers describe the same profit, but they divide it by different amounts. Profit margin compares profit with the selling price (revenue), so it tells you how many cents of every sale you keep. Markup compares profit with what the goods cost you, so it tells you how much you add on top of cost. For the same sale, markup is always larger than margin when profit is positive, which is why a 40% margin equals a 66.67% markup.
Formulas used
Total cost = (cost per unit + additional costs per unit) × quantity sold
Total profit = total revenue − total cost
Profit margin (%) = total profit ÷ total revenue × 100
Markup (%) = total profit ÷ total cost × 100
Margin needs a revenue above zero and markup needs a total cost above zero. When the denominator is zero the percentage is not defined, so the calculator says so instead of showing a number.
You sell 2 units at 100 each. Each unit costs 60, plus 5 of shipping and packaging.
Revenue = 100 × 2 = 200. Total cost = (60 + 5) × 2 = 130. Profit = 200 − 130 = 70.
Margin = 70 ÷ 200 = 35%. Markup = 70 ÷ 130 = 53.85%.
Frequently asked questions
What is the difference between revenue and profit?
Revenue is the total amount customers pay you for what you sold. Profit is what is left after you subtract the costs of producing or buying and delivering those items. A business can have high revenue and low profit, or even a loss, if costs are close to or above the selling price.
How are additional costs treated?
Additional costs are entered per unit and added to the cost of each unit, then multiplied by the quantity sold. Use them for costs that grow with every sale, such as shipping, packaging or payment fees. Fixed costs such as rent or software subscriptions are not per-unit costs, so include them only if you spread them across your units yourself. If your prices include VAT or sales tax, enter the price without it, because that tax is not revenue you keep.
Why does the calculator say a percentage cannot be calculated?
Margin divides by revenue and markup divides by total cost. If the selling price is zero there is no revenue, and if both costs are zero there is no cost to compare against, so the percentage has no meaning. Enter a price or a cost above zero to see it.
Can profit margin be negative?
Yes. If the total cost is higher than the revenue you make a loss, and the margin and markup are negative. A margin of −25% means you lose 25 cents of every unit of revenue.
Related tools and guides
- Break-even point calculator: how many units you need to cover fixed costs.
- Payment gateway fee calculator: the commission that eats into each sale.
- How to price a project without losing margin.
- SaaS MRR growth calculator.
Converting between margin and markup
The two numbers describe the same profit over different bases, so there is a fixed conversion. This table is the one worth memorising:
| Margin | Equivalent markup |
|---|---|
| 10% | 11.11% |
| 20% | 25.00% |
| 30% | 42.86% |
| 40% | 66.67% |
| 50% | 100.00% |
| 60% | 150.00% |
The gap widens as the numbers grow: at a 20% margin the difference is 5 points, at 50% it is 50 points. That is why "we work on a 30% markup" and "we work on a 30% margin" are two very different businesses.
Setting a price from a target margin
If you already know the margin you need, the price is not cost plus margin: it is cost divided by what is left.
Price = cost per unit ÷ (1 − target margin)
With a cost of 60 per unit and a target margin of 40%: 60 ÷ (1 − 0.40) = 100. If you had added 40% to the cost instead, you would have charged 84 - and the real margin would be 28.6%, not 40%.
That mistake is common enough to have a name: adding the margin as if it were a markup. On a 40% target it costs you more than a tenth of the price on every sale.
What the margin does not tell you
A healthy margin on a unit does not mean a healthy business. The number above covers variable costs only: what it takes to produce or buy and deliver that unit. Three things stay outside:
- Fixed costs. Rent, salaries, software and subscriptions are paid whether you sell one unit or a thousand. A 40% margin on low volume can still leave the month in the red.
- Taxes. VAT is not revenue and income tax depends on the profit of the whole business, not on a single sale.
- Payment and marketplace fees. If a processor keeps 3%, that comes out of the sale as well. Put it in "additional costs" to see the real margin.
To check whether the volume covers the rest, the break-even calculator is the right next step: it takes your fixed costs and this same contribution margin and returns how many units you need to sell.
More questions
Which one should I quote to a customer?
For internal pricing, margin. For explaining a price to a customer, markup is often easier: "I add 60% on top of what it costs me". Just be consistent, because mixing the two is how a 40% margin becomes a 28% one by accident.
Do these numbers work for services?
Yes. The "cost per unit" is then the direct cost of delivering the service, typically hours at your internal rate plus any materials. Everything else is the same.
How do I account for discounts?
Apply the discount to the selling price and recalculate: the margin falls faster than the discount. A 10% discount on a 40% margin leaves a 33.3% margin, not 30%.
Is a negative margin always a mistake?
Not always: a deliberate loss leader exists. But it has to be a decision with a number attached (how many full-price sales it is expected to generate), not a surprise found at the end of the quarter.