Skip to main content
Business Finance

Markup vs Margin: Formulas, Chart and Examples

Markup vs margin explained with simple formulas, a markup-to-margin conversion chart, worked pricing examples and the costly mistakes small businesses make.

By Invoice Creator Editorial Team 8 min read

Quick answer: Markup is profit divided by cost; margin is profit divided by selling price. If something costs $60 and sells for $100, the $40 profit is a 66.7% markup ($40 ÷ $60) but a 40% margin ($40 ÷ $100). Margin can never reach 100%, while markup can go as high as you like. Confusing the two is one of the most common ways businesses underprice.

Markup vs margin is not an academic distinction. If you think "I add 30%" means you keep 30% of every sale, you are pricing below where you think you are. This guide gives you the formulas, a conversion chart, worked examples with real numbers and the pricing mistakes to avoid. When your prices are set, put them on a clear itemized invoice with our free invoice generator.

Markup vs margin: the definitions

Both measures start with the same number, gross profit: selling price minus the cost of the goods or service. They differ only in what you divide by.

  • Markup answers "how much did I add on top of cost?" It is the language of quoting and purchasing.
  • Margin (gross margin, or gross profit margin) answers "how much of each sale do I keep before overheads?" It is the language of your profit and loss report.

Because price is always bigger than cost (if you are making a profit), the margin percentage is always smaller than the markup percentage for the same sale.

Markup and margin formulas

What you wantFormulaExample (cost $60, price $100)
Gross profitPrice − Cost$100 − $60 = $40
Markup %(Price − Cost) ÷ Cost × 100$40 ÷ $60 = 66.7%
Margin %(Price − Cost) ÷ Price × 100$40 ÷ $100 = 40%
Price from markupCost × (1 + Markup)$60 × 1.6667 = $100
Price from marginCost ÷ (1 − Margin)$60 ÷ 0.60 = $100
Markup → marginMarkup ÷ (1 + Markup)0.6667 ÷ 1.6667 = 40%
Margin → markupMargin ÷ (1 − Margin)0.40 ÷ 0.60 = 66.7%

Use decimals in the formulas (25% = 0.25), then multiply by 100 to show a percentage.

Markup to margin conversion chart

Keep this chart near wherever you quote prices. Figures are rounded to two decimal places.

MarkupEquivalent marginPrice on a $100 cost
10%9.09%$110.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
75%42.86%$175.00
100%50.00%$200.00
150%60.00%$250.00
200%66.67%$300.00
300%75.00%$400.00

Margin to markup chart

If you start from a target margin, this is the markup you need to apply to cost.

Target marginMarkup requiredPrice on a $100 cost
10%11.11%$111.11
20%25.00%$125.00
25%33.33%$133.33
30%42.86%$142.86
40%66.67%$166.67
50%100.00%$200.00
60%150.00%$250.00

Notice how fast the markup climbs as margin rises. A 60% margin needs a 150% markup, and a 100% margin is impossible because it would mean the item cost nothing.

Worked example: the 25% confusion

A small retailer buys a product for $80 and wants a 25% margin. The owner multiplies cost by 1.25.

  1. Price charged: $80 × 1.25 = $100.00. Profit $20.00.
  2. Actual margin: $20 ÷ $100 = 20%, not 25%.
  3. Correct price for a 25% margin: $80 ÷ 0.75 = $106.67. Profit $26.67, and $26.67 ÷ $106.67 = 25%.
  4. Shortfall per unit: $106.67 − $100.00 = $6.67.
  5. Over 500 units a year: 500 × $6.67 ≈ $3,333 of gross profit the owner thought they were earning but never did.

Nothing about the product or the customer changed. Only the formula was wrong.

Worked example: materials markup on a service invoice

Contractors and trades usually mark up materials rather than talk about margin. Say a contractor buys $2,400 of materials and applies a 15% markup:

LineAmount
Materials at cost$2,400.00
Markup at 15%$360.00
Materials billed to client$2,760.00
Labor: 32 hours × $75$2,400.00
Invoice subtotal$5,160.00

The 15% markup on materials is only a 13.04% margin ($360 ÷ $2,760). That margin has to cover the time spent ordering, collecting, storing and warrantying the materials. Many trades show materials as one line at the marked-up price rather than showing the markup separately; whichever you choose, keep it consistent and in line with your contract. Our contractor invoice template guide shows how to lay out labor and materials, and the classic template suits itemized job invoices.

When to use markup and when to use margin

  • Use markup when quoting quickly from a cost, for example materials on a job, wholesale price lists or cost-plus contracts. It is easy to apply on a calculator.
  • Use margin when you set targets, compare products, read your accounts or talk to lenders and investors. Your gross margin on the income statement is a margin, never a markup.
  • Translate between them whenever a target is set in one and pricing is done in the other. That is where most errors happen.

For service businesses, the "cost" is mostly your time. Our guide on how to set freelance rates works through costing your hours before you add profit.

Common pricing mistakes with markup and margin

1. Treating markup and margin as the same number

As the example above shows, applying a markup equal to your target margin always leaves you short. Use price = cost ÷ (1 − margin).

2. Forgetting that discounts come out of margin

Say an item costs $60 and sells for $100: a 40% margin and $40 profit. Offer 20% off and the price drops to $80, but cost stays at $60. Profit falls to $20 and the margin to 25%. A 20% discount has cut your profit per sale in half, so you would need to sell twice as many units just to stand still. The same logic applies to early payment discounts on invoices, so price them knowingly.

3. Calculating margin on a tax-inclusive price

Sales tax and VAT belong to the tax authority. If a customer pays $108.25 including 8.25% sales tax, your revenue is $100.00. Work out margin on $100, not $108.25. If you only have the total, use our guide to reverse sales tax calculation or the sales tax calculator in inclusive mode to strip the tax out first.

4. Leaving out real costs

Freight in, import duties, packaging, card processing fees and platform commissions are part of the cost of a sale. A 3% card fee on a 20% margin product removes a sizeable share of the profit. Include them in cost, or at least in your target margin.

5. Ignoring overheads

Gross margin is before rent, insurance, software, marketing and your own salary. A healthy-looking gross margin can still produce a net loss. Track both, and watch how they affect cash in our cash flow management guide.

6. Rounding the wrong way

Rounding a calculated price down to a "nice" number shaves margin on every unit. If $106.67 is awkward, $107 or $109 keeps you at or above target; $105 does not.

How to set up a quick margin calculator in a spreadsheet

If you price a lot of items, a three-column sheet saves time:

  1. Column A: cost. Column B: target margin as a decimal (for example 0.35).
  2. Column C (price): =A2/(1-B2).
  3. Column D (markup, for reference): =(C2-A2)/A2.
  4. Column E (check margin): =(C2-A2)/C2. It should equal column B.

For a $40 cost at a 35% target: price = $40 ÷ 0.65 = $61.54; markup = $21.54 ÷ $40 = 53.85%; margin = $21.54 ÷ $61.54 = 35%.

Markup vs margin for a service business

The same maths applies when the thing you sell is time. Suppose your fully loaded cost per billable hour, covering your target salary, software, insurance and unbilled admin time, is $45. You want a 30% margin on top of that.

  • Hourly rate = $45 ÷ (1 − 0.30) = $64.29, which you might round up to $65.
  • At $65, profit per hour is $20, a margin of 30.8% ($20 ÷ $65) and a markup of 44.4% ($20 ÷ $45).
  • Had you simply added 30% to cost, you would charge $58.50 and earn a margin of only 23.1%.

Over 1,200 billable hours a year, the gap between $58.50 and $65.00 is $7,800.

Showing prices on your invoice

Customers see prices, not your markup or margin, and in most cases there is no need to show either. What they should see is a clear description, quantity, unit price, any discount on its own line, tax shown separately and a total that adds up. Our guide to the itemized invoice covers layout, and the US sales tax on invoices guide explains how to present tax.

Next step

Pick your five best-selling products or services and calculate the actual margin on each using today's costs, including fees and freight. If any are below your target, reprice using price = cost ÷ (1 − margin), then update your quote and invoice templates in the invoice generator so the new prices go out on the next job.

Frequently asked questions

What is the difference between markup and margin?

Markup is profit as a percentage of cost; margin is profit as a percentage of the selling price. The same sale always shows a higher markup than margin. For example, buying at $60 and selling at $100 is a 66.7% markup but a 40% margin.

Is a 50% markup the same as a 50% margin?

No. A 50% markup on a $100 cost gives a $150 price, which is a 33.3% margin. To reach a 50% margin on a $100 cost you need a $200 price, which is a 100% markup.

How do I convert markup to margin?

Divide the markup by one plus the markup: margin = markup ÷ (1 + markup). A 25% markup is 0.25 ÷ 1.25 = 20% margin. To go the other way, markup = margin ÷ (1 − margin).

How do I price a product to get a specific margin?

Divide the cost by one minus the target margin. For a $40 cost and a 30% target margin, price = $40 ÷ 0.70 = $57.14. Multiplying cost by 1.30 instead would give $52, which is only a 23.1% margin.

What is a good profit margin for a small business?

It varies widely by industry. Retail and distribution often run on thin gross margins, while services and software can carry much higher ones. Compare yourself with businesses like yours and make sure your gross margin covers overheads and still leaves a net profit.

Should margin be calculated before or after sales tax?

Before. Sales tax or VAT collected from customers is not your revenue, so remove it from the price before working out margin. If you only have a tax-inclusive total, back the tax out first.

What is keystone pricing?

Keystone pricing means setting the retail price at double the wholesale cost, which is a 100% markup and a 50% gross margin. An item that costs $25 sells for $50, leaving $25 of gross profit. It is a common starting point in retail, but it is only a rule of thumb: check that a 50% margin really covers your overheads, discounts and card fees before you rely on it.

What is the difference between gross margin and net margin?

Gross margin is selling price minus the direct cost of what you sold, divided by revenue. Net margin is what is left after all expenses, including rent, software, marketing, interest, taxes and your own pay, divided by revenue. A business can show a healthy 45% gross margin and still have a thin or negative net margin if overheads are high, so track both on your profit and loss report.

What is contribution margin and how is it different from gross margin?

Contribution margin is the selling price minus all variable costs of a sale, such as materials, card fees, commissions and shipping, often shown per unit. Gross margin subtracts only the cost of goods sold as reported in your accounts. Contribution margin is useful for break-even maths: divide your fixed costs by the contribution margin per unit to see how many sales you need to cover them.

Do I have to tell clients how much I mark up materials?

Usually not, unless your contract says so. On a fixed-price quote, the client agrees to the price, not to your cost. On a cost-plus or time-and-materials contract, you typically bill actual cost plus an agreed markup, so you may need to show receipts. Some industries and public contracts have their own disclosure rules, so read your contract and any local regulations before deciding how to show materials.

IC

Invoice Creator Editorial Team

Guides on invoicing, cash flow and small-business finance from Invoice Creator, operated by Next Software Development Company. Content is reviewed for accuracy against the fields our own invoice generator produces.

Try the invoice generator

Related reading