331+ free tools. No sign-up. No hidden fees. Explore the toolkit

Margin vs Markup: How to Price Your Products (With Examples)

By Ali Husnain

Margin is profit as a share of the selling price; markup is profit as a share of the cost. On a product that costs $40 and sells for $50, the profit is $10 — a 20% margin and a 25% markup. This guide explains the formulas, shows how to convert between the two, warns you about the mistake that costs sellers money, and works through gross vs net margin and the break-even point.

Free calculator

Try the free Margin Calculator →

Find your margin and markup from any cost and price — or work backwards from the margin you want to the price you need.

Calculate my margin free
Save to Pinterest
Disclaimer: This guide is general education, not financial or tax advice. Pricing decisions depend on your costs, your market and your tax situation; the examples use the stated figures only.

The Short Answer: Margin Is a Share of Price, Markup Is a Share of Cost

Margin and markup both describe the same $10 of profit — they just measure it against different numbers. If you buy a product for $40 and sell it for $50, your profit is $10. Your margin is that $10 as a share of the selling price: 20%. Your markup is the same $10 as a share of the cost: 25%. Same product, same profit, two different percentages — and confusing them is one of the most common and most expensive pricing mistakes a small seller can make.

The confusion matters because margin and markup are used for different jobs. Margin tells you how much of each dollar of sales you keep, which is what your accounts, your tax return and your break-even analysis all run on. Markup tells you how much to add to a cost to reach a price, which is how most sellers actually set prices day to day. You need both numbers, and you need to know which one you are looking at. A seller who thinks they are earning a 20% margin when they have actually applied a 20% markup is earning 16.67% — and on thin-margin products, that gap is the difference between profit and loss.

Margin vs Markup: The Formulas

Both formulas start from the same two numbers — cost and price — and both are simple division. Margin divides profit by the selling price. Markup divides profit by the cost. Because the selling price is always higher than the cost (when you are making a profit), the markup percentage is always higher than the margin percentage for the same sale.

MeasureFormulaCost $40, price $50
ProfitPrice − cost$50 − $40 = $10
Margin(Price − cost) ÷ price × 100$10 ÷ $50 = 20%
Markup(Price − cost) ÷ cost × 100$10 ÷ $40 = 25%

Notice what happens when the price rises while the cost stays at $40. At a $60 price, the profit is $20, the margin is 33.33% and the markup is 50%. At an $80 price, the profit is $40, the margin is 50% and the markup is 100%. The markup grows faster than the margin because it is measured against the smaller, fixed cost. The Margin Calculator runs both numbers from any cost and price, and also works backwards from a target margin to the price you need.

CostPriceProfitMarginMarkup
$40$50$1020.00%25%
$40$60$2033.33%50%
$40$80$4050.00%100%
$40$120$8066.67%200%
$40$160$12075.00%300%

Why Margin Can Never Be 100%

Margin is profit divided by price, and profit is always less than the price whenever the cost is more than zero. Even if you sell a $40 product for $1,000, your margin is $960 ÷ $1,000 = 96% — high, but not 100%. A 100% margin would mean the product cost you nothing at all, which is only possible if the cost is genuinely zero. Markup has no such ceiling: a $40 product sold for $160 carries a 300% markup, and there is no mathematical limit to how high markup can go.

This asymmetry is why margin is the number accountants and investors use. Margin is bounded between 0% and 100%, so it works as a clean measure of efficiency: a 40% gross margin means 40 cents of every sales dollar survives the cost of goods. Markup is unbounded, which makes it useful for setting prices — "add 50% to cost" is a simple rule — but poor for comparing businesses, because a 100% markup and a 200% markup sound wildly different while the margins behind them, 50% and 66.67%, are much closer together. When someone quotes you a percentage without saying which one it is, ask. A "50% margin" business and a "50% markup" business are not the same business at all.

Converting Markup to Margin (and Back)

You will often need to convert between the two — a supplier quotes a markup, your accounts need a margin, or you want to check what margin your current markup actually delivers. The conversions are simple once you know them, and the table below covers the values most sellers use.

Markup to margin: margin = markup ÷ (1 + markup). A 25% markup becomes 0.25 ÷ 1.25 = 20% margin. A 100% markup — doubling the cost — becomes 1.00 ÷ 2.00 = 50% margin, not 100%. Margin to markup: markup = margin ÷ (1 − margin). A 20% margin needs a markup of 0.20 ÷ 0.80 = 25%. A 40% margin needs a markup of 0.40 ÷ 0.60 = 66.67%.

If your markup isYour margin isIf your margin isYour markup is
25%20.00%20%25.00%
50%33.33%30%42.86%
100%50.00%40%66.67%
200%66.67%50%100.00%
300%75.00%60%150.00%

The most useful conversion for day-to-day pricing runs the other way: from a target margin to a price. If your cost is $40 and you want a 30% margin, the price is cost ÷ (1 − margin) = $40 ÷ 0.70 = $57.14. Check it: ($57.14 − $40) ÷ $57.14 = 30.0%. That formula — price = cost ÷ (1 − target margin) — is the one worth memorising, because it lets you set a price from the margin you actually want to earn, rather than guessing a markup and hoping the margin works out.

The Mistake That Costs Sellers Money

The classic pricing error is applying a markup when you meant a margin.

Worked Example: The $2 Mistake on Every Sale

Say you buy a product for $40 and decide you want a 20% margin. If you add 20% to the cost, you get a price of $48.00 — and your actual margin is ($48 − $40) ÷ $48 = 16.67%, not 20%. You have given away $2 of profit on every sale — $10 of profit per unit at the correct $50 price, versus $8 at $48. On a product selling 1,000 units a month, that is $2,000 a month of profit lost to an arithmetic slip — $24,000 a year.

The correct price for a 20% margin on a $40 cost is $40 ÷ (1 − 0.20) = $50.00, which needs a 25% markup. The gap between the two mistakes grows as the target margin rises: a seller aiming for a 40% margin who applies a 40% markup prices at $56 and earns a margin of only 28.57% — nearly twelve points short. The fix is simple: always price from the margin formula, or run the numbers through the calculator before you commit. The error is especially common in retail and wholesale, where "keystone" pricing — doubling the cost, a 100% markup — is often described loosely as "50% margin" by people who have done the conversion correctly, and as "100% margin" by people who have not. Doubling the cost gives a 50% margin. There is no such thing as a 100% margin on a product that costs money.

The Reverse Mistake: Overpricing by Mixing Them Up

The confusion cuts both ways. A seller who wants a 25% markup but reaches for the margin formula prices the $40 product at $40 ÷ (1 − 0.25) = $53.33 instead of $50.00. The result is a 25% margin and a 33.33% markup — $3.33 above the intended price, or 6.67% dearer than planned. On a single item that looks trivial, but on a product competing on price it can cost sales: a customer comparing two identical items will pick the $50 one, and the seller who overpriced by accident will never know why their conversion rate fell.

The two mistakes have opposite symptoms, which is how you can spot them. If your margins keep coming in below target even though your prices look right, you are probably applying markups where you meant margins. If your prices keep coming in above competitors' even though your costs are similar, you may be applying margins where you meant markups. In both cases the fix is the same: write down which percentage you mean before you calculate, use the formula for that percentage, and check the result by running it backwards — take your price and cost, compute both the margin and the markup, and confirm they match what you intended. The Margin Calculator shows both figures side by side for exactly this reason.

Gross Margin vs Net Margin

So far this guide has used "margin" to mean gross margin: revenue minus the direct cost of the goods sold, divided by revenue. But a business has other costs — rent, wages, advertising, software, shipping — and those are captured by net margin: profit after all expenses, divided by revenue. The gap between the two is where many small businesses get surprised.

Take a shop with $100,000 of annual revenue and $60,000 in cost of goods sold. Gross profit is $40,000 and gross margin is 40% — a healthy-looking number. But if operating expenses are $25,000, net profit is $15,000 and net margin is 15%. The business keeps 15 cents of each sales dollar, not 40. Both numbers matter: gross margin tells you whether your pricing works at the product level, and net margin tells you whether the business as a whole works. A high gross margin with a low net margin points to overheads, not pricing, as the problem. A low gross margin points the other way — the price is too low, or the cost of goods is too high, and no amount of cost-cutting on overheads will fix it.

When you compare your margins with other businesses, make sure you are comparing like with like. A software business with near-zero cost of goods can run a gross margin above 80%; a grocery store runs closer to 25% and makes its money on volume. Neither is "better" — they are different models. What matters is whether your margin covers your operating costs and leaves the profit you need, at the volume you can actually sell.

Finding Your Break-Even Point

Margin tells you what you keep per sale; the break-even point tells you how many sales you need before you keep anything at all. Every business has fixed costs — rent, insurance, subscriptions — that must be paid whether you sell one unit or a thousand. Each sale contributes its price minus its variable cost toward covering those fixed costs. The break-even point is where total contribution exactly covers fixed costs.

Take a seller with fixed costs of $3,000 a month, selling a product for $50 with a variable cost of $30 per unit. Each sale contributes $50 − $30 = $20 toward fixed costs. The break-even point is $3,000 ÷ $20 = 150 units a month, or $7,500 of revenue. Sell 149 units and the month loses money; sell 151 and it makes $20. Sell 200 units and the profit is 200 × $20 − $3,000 = $1,000. The Break-Even Calculator runs this for your own costs, and shows how the break-even point moves when you change price or cost.

Units sold per monthRevenueTotal costProfit
100$5,000$6,000−$1,000
150 (break-even)$7,500$7,500$0
200$10,000$9,000$1,000
300$15,000$12,000$3,000

Break-even analysis also shows why margin and volume trade off against each other. Raising the price from $50 to $55 lifts the contribution per unit to $25 and drops the break-even point to 120 units — but only if customers still buy at $55. Cutting the price to $45 drops the contribution to $15 and pushes break-even to 200 units, which only pays if the lower price brings in at least that many extra sales. There is no universally right price; there is a price that covers your costs at the volume your market will support, and the break-even calculation is how you find it.

How to Price as a Freelancer or Small Seller

The same arithmetic applies when you sell your time instead of a product — the "cost" is what the job costs you, including your own hours valued at a real rate. A freelancer who takes a job with $200 of direct costs (materials, subcontractors, software) and wants a 40% margin should price it at $200 ÷ (1 − 0.40) = $333.33, not $280 (which is a 40% markup and only a 28.57% margin). If the job takes 10 hours, the $133.33 of gross profit values those hours at $13.33 each — which may reveal that the margin target, not the arithmetic, needs revisiting. Getting the rate right starts with valuing your time properly — a freelance hourly rate calculator works out what to charge per hour.

A practical pricing routine for a small seller has four steps. First, know your true cost per unit, including the costs that are easy to forget: payment processing fees, packaging, shipping, platform commissions and returns. A product that costs $40 to buy and $6 to ship and sell has a true cost of $46, and pricing it as if the cost were $40 understates the margin by several points. Second, set a target margin that covers your fixed costs at a realistic volume — run the break-even calculation before you set the price, not after. Third, check the market: if the price your margin needs is far above what competitors charge, the problem is your cost, not your ambition, and the fix is a cheaper supplier or a different product, not a lower margin. Fourth, if you pay commission — to a marketplace, an agent or a salesperson — remember that commission comes out of your margin. A 10% commission on a $50 sale is $5, which cuts a 20% margin to 10% unless the price accounts for it. The Commission Calculator shows the effect, and the Unit Rate Calculator helps compare supplier prices per unit so your cost figure is accurate in the first place.

One more freelancer decision is whether to price by the hour or by the project. Hourly pricing is simple, but it punishes efficiency: the faster you get, the less you earn for the same result. Project pricing lets you keep the margin from your own speed, but it needs an honest cost estimate — if a job you priced at $333.33 takes 15 hours instead of 10, your effective rate drops from $13.33 an hour of profit to $8.89, and the margin that looked healthy on paper evaporates. Whichever way you price, track your actual hours against your estimates for a month. The gap between estimated and actual time is where freelancer margins usually leak, and closing it is worth more than any pricing formula.

Finally, review your prices on a schedule, not when a crisis forces it. Costs creep — suppliers raise prices, shipping rates change, fees go up — and a margin that was 20% last year can be 14% this year without a single price change on your side. A quarterly check of your best-selling products against current costs takes an hour and protects the margin you worked out when you set the price.

Sources: all figures in this guide are arithmetic from the stated costs, prices and formulas — no external data is used. Every worked example (margin/markup conversions, the $57.14 target-margin price, the 16.67% classic-mistake margin, the 150-unit break-even point, the gross/net margin example and the $333.33 freelancer price) was recomputed in Python for this guide. Last reviewed: 15 November 2026.

Frequently Asked Questions

What is the difference between margin and markup?

Margin is profit as a share of the selling price; markup is profit as a share of the cost. On a product that costs $40 and sells for $50, the profit is $10, the margin is 20% and the markup is 25%. Same profit, different denominator.

Why can margin never be 100%?

Margin is profit divided by price, and profit is always less than the price whenever the product costs anything at all. Even a $40 product sold for $1,000 has a margin of 96%, not 100%. Markup has no ceiling: the same product at $160 carries a 300% markup.

How do I convert markup to margin?

Divide the markup by one plus the markup: margin equals markup divided by (1 plus markup). A 50% markup becomes 0.50 divided by 1.50, which is 33.33% margin. To go the other way, markup equals margin divided by (1 minus margin).

What price gives me a 30% margin on a $40 cost?

Divide the cost by one minus the target margin: $40 divided by 0.70 is $57.14. Check it: ($57.14 minus $40) divided by $57.14 is 30.0%. Adding a 30% markup instead would price it at $52 and give only a 23.08% margin.

What is the difference between gross margin and net margin?

Gross margin is revenue minus the direct cost of goods sold, divided by revenue. Net margin is profit after all expenses, divided by revenue. A shop with $100,000 of revenue, $60,000 of goods costs and $25,000 of operating expenses has a 40% gross margin but only a 15% net margin.

How do I find my break-even point?

Divide your fixed costs by your contribution per unit (price minus variable cost). With $3,000 of monthly fixed costs, a $50 price and a $30 variable cost, the contribution is $20 and the break-even point is 150 units a month, or $7,500 of revenue.

Last updated: