Business, Marketing & E-commerce Pricing, Margin & Markup Retail pricing arithmetic (markup on cost vs margin on price)

Markup vs Margin Calculator

Markup and margin describe the same dollars of gross profit, but they divide it by different numbers — markup divides by cost, margin divides by price. That is why a 50% markup is only a 33.3% margin, and why a buyer who confuses the two prices every item too low. Pick which figure you know, enter your unit cost, and this calculator returns the other percentage, the selling price, the gross profit per unit, and the margin you actually keep after rounding the price to a retail ending such as $19.99.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Which figure do you know?Choose the number you have in hand; the calculator derives the other two from it.Markup % on cost
Unit costWhat the item costs you delivered — invoice price plus inbound freight and duty, not your retail price.40 $
Markup on costGross profit as a percentage of cost. A 100% markup means you double the cost, which retailers call keystone pricing.50 %
Gross margin on priceGross profit as a percentage of the selling price. This is the figure that appears on an income statement.40 %
Selling priceThe price the customer pays, net of any discount you routinely give.60 $
Round the price toCharm and round-dollar endings move the price a few cents, which changes the margin you actually realise.Nearest $0.99 ending
Units in the batchHow many units you expect to sell, so the calculator can total the gross profit for the order or the season.250 units

It returns

  • Selling price — The exact price implied by your cost and the percentage you entered, before any retail rounding.
  • Gross margin on price — Gross profit ÷ selling price. Never larger than the markup, because price is the bigger denominator.
  • Markup on cost — Gross profit ÷ cost. Has no upper limit.
  • Gross profit per unit
  • Price at your chosen ending
  • Margin at the rounded price
  • Gross profit on the batch

The formula

m=u1+uu=m1m
P=C(1+u)=C1m
u=GCm=GP

In plain text: Margin = Markup ÷ (1 + Markup) and Markup = Margin ÷ (1 − Margin)

  • mGross margin, as a decimal fraction of the selling price (decimal)
  • uMarkup, as a decimal fraction of the unit cost (decimal)
  • CUnit cost ($)
  • PSelling price ($)
  • GGross profit per unit, equal to P − C ($)

Both percentages describe the same dollars of gross profit. Markup divides that profit by cost; margin divides it by price. Because price is always the larger denominator on a profitable item, the margin is always the smaller percentage.

Updated Category Pricing, Margin & Markup Verified against published test cases Reading time 13 min

Markup and margin are the same profit divided by different numbers

Buy an item for $40, sell it for $60, and you have made $20 of gross profit. That $20 is a fact. What is not a fact — what depends entirely on which denominator you choose — is the percentage you call it. Divide by the $40 cost and you have a 50% markup. Divide by the $60 price and you have a 33.3% gross margin. Same $20, same transaction, two very different-looking numbers.

The distinction matters because different people in the same business habitually use different ones. Buyers, wholesalers and trade estimators quote markup, because they start from a cost and build a price on top of it. Accountants, investors and anyone reading an income statement use margin, because every line on that statement is a percentage of revenue. Point-of-sale systems, marketplaces and spreadsheets are split between the two, often without labelling which they mean.

The failure mode is always the same direction and always expensive. Someone is told to hit a 30% margin, applies 30% to the same $40 cost, and prices the item at $40 × 1.30 = $52.00 instead of the $40 ÷ 0.70 = $57.14 a 30% margin actually requires. The realised margin comes in at $12 ÷ $52 = 23.1%, and nobody notices until the year-end accounts. On a business turning over $2 million of cost of goods, that confusion is a six-figure error.

Because markup is measured against the smaller number, it is always the larger percentage on a profitable item. If you ever see a markup below the margin for the same product, one of the two figures is wrong.

The conversion formulas, and why they are not symmetric

Write gross profit as G = PC. Markup is G ÷ C and margin is G ÷ P. To convert between them, substitute one into the other.

Start with markup u. Then P = C(1 + u) and G = C·u, so the margin is C·u ÷ C(1 + u) — the cost cancels, leaving m = u ÷ (1 + u). Going the other way, P = C ÷ (1 − m) and G = P·m, which gives u = m ÷ (1 − m).

Two structural facts fall out of those denominators, and they explain most of the confusion in practice.

  • Margin has a hard ceiling at 100%; markup has none. A margin of 100% would mean gross profit equals the whole selling price, so the cost is zero. Anything above 100% is arithmetically impossible. Markup, dividing by cost, is unbounded — a $2 wristband sold for $30 carries a 1,400% markup and a perfectly ordinary 93.3% margin.
  • The two percentages converge at zero and diverge without limit. At a 1% markup the margin is 0.99% — near enough identical that the confusion is harmless. At a 50% markup the gap is 16.7 points. At a 300% markup the margin is 75%, a gap of 225 points. The higher the profit, the more the mistake costs you.

The price formulas are the practical payoff. To build a price from cost, multiply by one plus the markup. To build a price from a target margin, divide by one minus the margin. Multiplying cost by one plus the margin — the single most common pricing error in retail — always undershoots, and it undershoots more the higher your target. If your target margin is set after marketplace and payment fees, the divisor changes again, which is what the selling price from target margin calculator handles.

Worked example: a $40 cost priced three ways

You import a garden tool. Landed cost, including freight and duty, is $40 a unit. Work each of the three routes by hand.

Route 1 — you were told to apply a 50% markup.

  1. Gross profit = $40 × 0.50 = $20.00
  2. Selling price = $40 × 1.50 = $60.00
  3. Margin = $20 ÷ $60 = 0.3333 = 33.33%

Route 2 — you were told to hit a 50% margin.

  1. Selling price = $40 ÷ (1 − 0.50) = $40 ÷ 0.50 = $80.00
  2. Gross profit = $80 − $40 = $40.00
  3. Markup = $40 ÷ $40 = 100%, the retail practice known as keystone pricing

The two instructions differ by $20 a unit — a third of the retail price. On a 250-unit order that is $5,000 of gross profit, which is why the wording of a pricing rule deserves as much care as the number in it.

Route 3 — the competition sells it for $69.99, and you want to know where that leaves you.

  1. Gross profit = $69.99 − $40.00 = $29.99
  2. Margin = $29.99 ÷ $69.99 = 0.4285 = 42.85%
  3. Markup = $29.99 ÷ $40.00 = 0.74975 = 74.98%

Now check the rounding effect, because charm endings are not free. An exact 33.33% margin on the $40 cost gives $60.00. Round that down to $59.99 and gross profit falls to $19.99, so the realised margin is $19.99 ÷ $59.99 = 33.32% — a loss of 0.01 points, or one cent a unit. Round it instead to $59.95 and you give up 5 cents and 0.06 points. Trivial per unit; $12.50 across 250 units. Round up to $60.99 and you gain 99 cents a unit and 1.1 points of margin, which is why so many retail prices end in .99 just above a round number rather than just below it.

How to read the result: what margin does your business need?

Gross margin has to cover everything that is not the cost of the goods themselves — rent, payroll, marketing, card fees, shrinkage, returns — and then leave a profit. That is why the sensible target varies so widely by trade, and why comparing your margin to a general benchmark tells you almost nothing.

The rules of thumb practitioners actually use run roughly like this. Grocery and commodity distribution live on thin margins, often in the 20–30% range, and make their money on turnover and volume rebates. General apparel and hard-goods retail aim near keystone — a 100% markup, so a 50% margin — precisely because so much stock eventually sells at markdown, and the initial margin has to absorb that. Restaurants think in food cost rather than margin: a 30% food cost is a 70% gross margin, a 233% markup. Manufacturers and wholesalers sit lower than retail because they sell in bulk with fewer costs to cover downstream.

Two adjustments matter more than picking the right benchmark. First, use your landed cost, not the invoice price. Ocean freight, duty, brokerage and inbound handling all belong in the cost, and on an imported product a margin computed on the invoice alone is fiction; work it out properly with the landed cost calculator. Second, decide whether your target margin is before or after selling fees. A 40% margin computed before a 15% marketplace commission and a 2.9% card fee is not a 40% margin — it is closer to 22%, and the payment processing fee calculator shows how quickly those percentages compound.

Finally, remember what gross margin does not tell you: how much volume you need. A 60% margin on twelve units a year is a hobby. Feed the same figures into the break-even point calculator to convert a margin into the volume that pays your fixed costs.

Markup to margin conversion table

Read left to right to convert a markup into the margin it produces, or right to left to find the markup a target margin requires. The last column is the price on a $100 cost.
Markup on costEquivalent gross marginPrice on a $100 cost
5%4.76%$105.00
10%9.09%$110.00
15%13.04%$115.00
20%16.67%$120.00
25%20.00%$125.00
30%23.08%$130.00
33.33%25.00%$133.33
40%28.57%$140.00
50%33.33%$150.00
60%37.50%$160.00
66.67%40.00%$166.67
75%42.86%$175.00
100%50.00%$200.00
125%55.56%$225.00
150%60.00%$250.00
200%66.67%$300.00
300%75.00%$400.00
400%80.00%$500.00

Four pairs are worth memorising because they come up constantly: 25% markup = 20% margin, 33.3% markup = 25% margin, 50% markup = 33.3% margin, and 100% markup = 50% margin.

Never multiply cost by one plus your target margin

This is the error the whole calculator exists to prevent. To reach a 40% margin on a $60 cost you must divide: $60 ÷ 0.60 = $100.00. Multiplying instead gives $60 × 1.40 = $84.00, which delivers a margin of $24 ÷ $84 = 28.6% — over eleven points short of target, and the shortfall widens as the target rises. At a 60% target the multiply-error yields 37.5% instead of 60%.

The reliable habit is to name the denominator out loud every time. Percent of cost means multiply by one plus the rate. Percent of price means divide by one minus the rate. If a supplier, spreadsheet or point-of-sale system gives you a bare percentage with no denominator named, treat it as unknown until you confirm which one it is.

Mistakes that quietly destroy margin

  • Applying a margin percentage to cost. The headline error. It always underprices, and the gap grows with the target: 11.4 points short at a 40% target, 22.5 points at a 60% target.
  • Averaging margin percentages across products. Percentages do not average unless the sales dollars behind them are equal. Add up total gross profit and total revenue, then divide once — that is what the gross profit margin calculator does.
  • Using invoice cost instead of landed cost. Freight, duty, brokerage and inbound handling belong in cost. Leaving them out overstates every margin you report.
  • Ignoring markdowns when you set the initial markup. If a fifth of the range eventually sells at 40% off, your maintained margin is far below your initial margin. Retailers price near keystone specifically to survive that.
  • Forgetting selling fees. Marketplace commission, payment processing and affiliate payouts are percentages of price, so they come straight out of margin. Subtract them from the target before you solve for price.
  • Quoting markup to an accountant or margin to a buyer. Both will assume their own convention and neither will ask. State the denominator in every written price instruction.
  • Rounding a price down without re-checking the margin. On thin-margin goods a 5% round-down can remove a fifth of the gross profit. Round up to the charm ending rather than down whenever the market allows it.

Where markup and margin sit among the other pricing measures

Markup and margin are both gross measures: they stop at the cost of goods and say nothing about overhead. Three neighbouring measures continue the story, and each answers a question this one cannot.

Contribution margin subtracts every variable cost, not just the cost of goods — so it includes card fees, outbound shipping and sales commission. It is the right measure for any decision about volume or price, and the contribution margin calculator works it per unit and in total. Gross margin is the reporting number; contribution margin is the decision number.

Operating and net margin keep going down the income statement, subtracting overhead, then interest and tax. These are the figures investors compare across companies, and they are much lower than gross margin — a retailer with a 45% gross margin might run a 5% net margin.

Elasticity is the missing half of any pricing decision. Markup arithmetic tells you what a price change does to profit per unit; it says nothing about what it does to unit volume. Before cutting price to win share, work out the volume you would need to stand still using the price elasticity of demand calculator — on a 33% margin, a 10% price cut needs a 43% unit increase just to break even on gross profit.

One historical note explains why both conventions survive. Cost-plus markup is the older practice, natural to a merchant who buys a crate and adds a third. Margin-on-revenue became standard once financial reporting standardised on revenue as the top line of the income statement, which made every other line a percentage of it. Neither convention is wrong; using them interchangeably is.

Key terms

Markup
Gross profit as a percentage of cost. Multiply cost by one plus the markup to get the price. Unbounded above.
Gross margin
Gross profit as a percentage of the selling price. Divide cost by one minus the margin to get the price. Capped at 100%.
Keystone pricing
The retail convention of doubling cost: a 100% markup, which is exactly a 50% gross margin. Still the reference point in apparel and general merchandise.
Cost complement
One minus the margin — the share of the selling price that is cost. Used in the retail inventory method to convert retail values back to cost.
Initial vs maintained margin
Initial margin is set when the item is first ticketed. Maintained margin is what survives markdowns, shrinkage and employee discounts, and it is always lower.
Landed cost
Invoice cost plus freight, duty, brokerage, insurance and inbound handling. The only cost figure that gives an honest margin on imported goods.
Charm pricing
Ending a price just below a round number, such as $19.99. It costs a few cents of margin per unit, which is worth quantifying rather than assuming.

Frequently asked questions

What margin is a 50% markup?

A 50% markup is a 33.33% gross margin. Divide the markup by one plus itself: 0.50 ÷ 1.50 = 0.3333. Concretely, a $40 cost marked up 50% sells for $60, gross profit is $20, and $20 ÷ $60 is 33.33%. The same arithmetic gives the other pairs worth remembering: 25% markup is a 20% margin, 33.3% markup is a 25% margin, and 100% markup is a 50% margin.

What markup do I need for a 40% margin?

66.67%. Divide the margin by one minus itself: 0.40 ÷ 0.60 = 0.6667. So a $60 cost has to sell for $100 — $60 × 1.6667, or equivalently $60 ÷ 0.60. If you instead marked the $60 up by 40% you would price at $84 and realise only a 28.6% margin, which is the single most common pricing mistake in retail and wholesale.

Is markup or margin the better number to work in?

Use margin for anything that touches your accounts and markup for anything that starts from a supplier cost. Margin is what your income statement, your bank and your investors read, and it makes products with different costs directly comparable. Markup is more natural at the point of buying, because you are literally adding to a cost. The important discipline is not choosing one but always labelling which you mean.

Why can margin never exceed 100%?

Because margin divides gross profit by the selling price, and gross profit is the price minus the cost. The largest gross profit possible is the whole price, which happens only when the cost is zero — so 100% is the mathematical ceiling. Markup divides by cost instead, and as cost approaches zero the markup approaches infinity. That is why a $2 item sold for $30 has a sensible 93.3% margin and an eye-watering 1,400% markup.

Does gross margin include shipping and payment fees?

Under normal accounting practice, inbound freight belongs in cost of goods and therefore reduces gross margin, while outbound shipping and payment processing are usually treated as operating expenses below the gross-profit line. For pricing decisions, though, ignore that convention and subtract every variable cost, because a 15% marketplace fee is as real as the product cost. Set your target margin net of those fees, or you will consistently underprice.

How do I work out the margin on a price that already includes sales tax or VAT?

Strip the tax out first, then compute the margin on the net price. With 20% VAT included, divide the shelf price by 1.20 to get net revenue: a £59.99 shelf price is £49.99 net. Margin is then based on that £49.99, never on the tax-inclusive figure. Sales tax and VAT are collected on behalf of the government and are not your revenue, so including them inflates every margin you report.

What is a good gross margin for a small business?

It depends entirely on what your gross margin has to pay for. As rough rules of thumb, grocery and commodity distribution often run 20–30% and survive on volume; general retail targets near 50% because markdowns eat into it; restaurants convert a 28–35% food cost into a 65–72% gross margin; software and services can exceed 80% because there is almost no unit cost. The useful test is not the absolute figure but whether gross profit dollars comfortably exceed your fixed costs at realistic volume.

Can I average the margins of several products?

Not by averaging the percentages — that only works if every product generates identical revenue. Add up total gross profit across the products, add up total revenue, and divide once. A product with a 70% margin on $1,000 of sales and one with a 20% margin on $9,000 of sales give a blended margin of $2,500 ÷ $10,000 = 25%, not the 45% a simple average of the percentages would suggest.

How much margin does charm pricing cost me?

Usually a few cents a unit, but check rather than assume. Rounding an exact $60.00 down to $59.99 costs one cent and 0.01 points of margin. Rounding to $59.95 costs five cents. On a thin-margin item the proportion matters more: dropping a $10.00 price to $9.99 on a $9.00 cost takes that cent out of a gross profit of only one dollar, so you lose a full 1% of the profit on the unit even though the margin itself only slips from 10.00% to 9.91%. Where the market allows it, round up to the ending above rather than down.

References