Margin Calculator
Turn a cost and a selling price into gross margin, markup and profit — or work backwards to find the price that delivers a target margin.
Margin ↔ markup quick reference
| Gross margin | Markup |
|---|---|
| 5% | 5.3% |
| 10% | 11.1% |
| 15% | 17.6% |
| 20% | 25% |
| 25% | 33.3% |
| 30% | 42.9% |
| 40% | 66.7% |
| 50% | 100% |
Margin divides profit by the selling price; markup divides the same profit by the cost. A 20% margin and a 25% markup describe an identical sale.
How to Use the Margin Calculator
The Margin Calculator works out the two profitability ratios every seller lives by — gross margin and markup — from a product's cost and selling price. It also runs the arithmetic backwards, telling you what price to charge to reach a target margin, or the highest cost you can afford when the selling price is already fixed. All figures are computed instantly in your browser and nothing is uploaded.
Get the margin from cost and price. Open the Cost & price tab and enter what you pay for the item and what you sell it for. If a product costs 40 and sells for 100, the calculator returns a gross profit of 60, a gross margin of 60% and a markup of 150%. The margin means 60 cents of every sales dollar is gross profit.
Read margin and markup side by side. Margin divides the profit by the selling price; markup divides the same profit by the cost. On the 40-cost, 100-price example the profit of 60 is 60% of the price but 150% of the cost. Both numbers describe one sale, so they are never interchangeable: a 150% markup is only a 60% margin.
Find the price for a target margin. Switch to Target margin → price when you are pricing something new. If the item costs 25 and you want a 40% margin, the required price is 25 ÷ (1 − 0.40) = 41.67. That price produces 16.67 of gross profit and a 66.7% markup, even though the margin is only 40%.
Check the cost you can afford. Use Target margin → cost when the market sets the price. A product that must sell at 80 with a 35% margin allows a maximum cost of 80 × (1 − 0.35) = 52, leaving 28 of gross profit. If your real cost is 58, the deal cannot reach the target at that price.
Use the reference table. The table lists common margins with their markup equivalent — 20% margin equals 25% markup, 33.3% margin equals 50% markup and 50% margin equals 100% markup. It is the fastest way to check a figure someone quotes in the other convention.
Copy the result. The Copy result button places the profit, the margin and the markup on your clipboard in one line, ready to paste into a spreadsheet, a quote or an email to a supplier.
What Is Gross Margin and How Does It Differ from Markup?
Gross margin is the share of revenue left after the direct cost of the goods sold is removed. It is computed as (selling price − cost) ÷ selling price × 100. Selling at 100 an item that cost 40 leaves 60 of gross profit, so the gross margin is 60 ÷ 100 = 60%. Markup measures that same profit against a different base: (price − cost) ÷ cost × 100, which here is 60 ÷ 40 = 150%. The two ratios describe one transaction and answer different questions. Margin asks what share of the price is profit; markup asks how much was added on top of the cost. The distinction matters because each ratio drives a different decision. Margin is the language of profitability and the income statement: it shows how much of every dollar of sales survives to cover rent, wages, marketing and, eventually, net profit. Markup is the language of buying and merchandising: it tells a buyer how hard they are pricing relative to acquisition cost. Since the denominators differ, margin is always the smaller number for any profitable sale, and the gap widens as the figures grow. A 100% markup is a 50% margin; a 200% markup is a 66.7% margin. Margin can approach 100% but never reach it, while markup has no ceiling. The exact link, expressed as fractions, is margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin). Working from the cost side, the pricing formula is price = cost ÷ (1 − target margin), which is why the price needed to reach a given margin climbs faster than the margin itself. To make a 20% margin on a 50 cost the price is 62.50, but to make 50% on the same cost it is 100 — double. Discounting runs the same relationship backwards, and that is where margin errors become expensive. A 20% discount on an item carrying a 30% margin does not leave 10%: the price falls to 80% of its former level, so the margin collapses to 12.5% (25 of profit on 80 of revenue), erasing more than half of the original margin. The asymmetry is the most common reason a promotion quietly destroys profit.
Common Applications
1. Retail product pricing: a jacket bought for 30 and sold for 75 shows 45 of gross profit, a 60% margin and a 150% markup.
2. Café menu costing: a coffee whose beans, milk and cup cost 0.80 and which sells for 3.50 returns 2.70 of gross profit, a 77.1% margin and a 337.5% markup.
3. Wholesale versus retail: a distributor buys at 12 and sells at 15 for a 20% margin and a 25% markup, while the shop that buys at 15 and sells at 24 earns a 37.5% margin and a 60% markup on the same item.
4. Freelance pricing: a contractor whose time and overhead cost 40 per hour and who bills 100 per hour works on a 60% margin; to net a 70% margin on that cost the rate must rise to 133.33.
5. Discount planning: cutting 15% off a 120 price with an 80 cost drops the price to 102 and the margin from 33.3% to 21.6%, surrendering roughly a third of the margin on every unit sold.
Common Margin and Markup Mistakes
Confusing the two conventions is the costliest error in pricing. Saying "we run a 50% margin" when the figure is actually a 50% markup means the real margin is 33.3%, and a product priced on that assumption may barely break even. Adding a margin straight onto cost is the second trap: a 30% margin on a 70 cost is not 70 × 1.30 = 91, which yields only a 23.1% margin, but 70 ÷ 0.70 = 100. A third mistake is treating a discount as a subtraction from margin — 10% off a 25% margin item leaves 16.7%, not 15%. Finally, gross margin counts only the direct cost of the goods; shipping, card fees and returns come out of it before any money reaches profit.
Where Margin Meets the Break-Even Point
A 40% gross margin means 40 cents of every sales dollar is available to cover fixed costs. A shop with 8,000 of monthly rent, wages and other fixed costs must therefore generate 20,000 of sales just to break even (8,000 ÷ 0.40). The same shop at a 25% margin needs 32,000 of sales. This is why margin is leverage: every point of margin raises the contribution from every unit sold, and a small fall in margin can require a large rise in volume to compensate.
Discounting and the Margin You Really Lose
Because margin divides profit by the discounted price, a discount cuts margin faster than it cuts price. Take a 50 cost and a 100 price, a 50% margin. A 10% discount drops the price to 90 and the margin to 44.4%; a 20% discount leaves 80 and a 37.5% margin; a 30% discount leaves 70 and a 28.6% margin. To restore a 50% margin after a 20% discount the price must return to 100 or the cost must fall to 40 — a 20% reduction in buying cost, which shows how hard discounting is to undo through negotiation alone.
Related Utilities
- Percentage Calculator — Increase, Decrease, X of Y
- Fraction Calculator — Simplify & Convert Fractions
- Random Number Generator — Pick Numbers Online
- Percentage Increase Calculator — Percent Change
- X out of Y Calculator — Score to Percentage
- Remove Duplicate Lines — Online Line Remover
Guides
Frequently Asked Questions - FAQ
What is the difference between margin and markup?
Margin is profit divided by the selling price; markup is profit divided by the cost. An item bought for 40 and sold for 100 has 60 of profit, a 60% margin (60 ÷ 100) and a 150% markup (60 ÷ 40). Margin can never reach 100%, but markup has no upper limit.
Is a 50% markup the same as a 50% margin?
No. A 50% markup produces a 33.3% margin, because margin = markup ÷ (1 + markup) = 0.50 ÷ 1.50. Getting this wrong on a price list can turn an intended profit into a loss.
How do I find the selling price for a target margin?
Divide the cost by 1 minus the margin as a decimal. For a 40% margin on a 25 cost, the price is 25 ÷ (1 − 0.40) = 41.67. Never simply add the margin percentage to the cost.
How do I convert markup to margin?
Divide the markup by one plus the markup. A 25% markup gives 0.25 ÷ 1.25 = 20% margin; a 100% markup gives 0.50 ÷ 1.50 = 50% margin. The calculator shows both at once so you never have to convert by hand.
Can gross margin be 100%?
Only in theory, as the cost approaches zero. Margin is bounded by 100% because it can never exceed the selling price, whereas markup has no ceiling and can run to several hundred percent for low-cost, high-value items.
Last updated: