The short answer
- Gross profit = revenue − cost of goods sold. Gross margin = gross profit ÷ revenue. A product that costs $12 and sells for $20 makes $8 of gross profit: a 40% margin.
- Markup = gross profit ÷ cost. The same product has a 66.7% markup. Margin is a share of the price; markup is a share of the cost. Markup is always the bigger number.
- To price from a target margin: price = cost ÷ (1 − target margin). Adding the margin percentage to the cost gives you a smaller margin than you think.
- Net margin is what’s left after every expense (fees, rent, wages, interest and tax) divided by revenue.
- Always work with prices excluding VAT or sales tax. That money belongs to the tax authority, not to you.
Margin vs markup: the definitions
AccountingTools puts it simply: margin is profit as a percentage of the selling price, while markup is profit as a percentage of the product’s cost. Both start from the same figure, gross profit.
| Term | Formula | What it tells you |
|---|---|---|
| Gross profit | Revenue − cost of goods sold (COGS) | What each sale leaves, in money |
| Gross margin | Gross profit ÷ revenue | The share of the price you keep before overheads |
| Markup | Gross profit ÷ cost | How much you added on top of cost |
| Operating margin | Operating profit ÷ revenue | What’s left after running costs |
| Net margin | Net profit ÷ revenue | What’s left after everything, including interest and tax |
Gross profit
FormulaRevenue − cost of goods sold (COGS)
What it tells youWhat each sale leaves, in money
Gross margin
FormulaGross profit ÷ revenue
What it tells youThe share of the price you keep before overheads
Markup
FormulaGross profit ÷ cost
What it tells youHow much you added on top of cost
Operating margin
FormulaOperating profit ÷ revenue
What it tells youWhat’s left after running costs
Net margin
FormulaNet profit ÷ revenue
What it tells youWhat’s left after everything, including interest and tax
Cost of goods sold is what the goods you actually sold cost you, including shipping in and import duties. It isn’t the same as what you bought this month. For a period, COGS = opening inventory + purchases − closing inventory, the same structure as Part III of the IRS Schedule C.
Worked example: one product
Lena runs a small homeware shop in Manchester. She buys a ceramic vase for £12 (excluding VAT) and sells it for £24 including 20% VAT.
- Price excluding VAT = £24 ÷ 1.20 = £20. Divide by 1.20; don’t take 20% off (£24 − 20% = £19.20, which is wrong).
- Gross profit = £20 − £12 = £8 per vase.
- Gross margin = £8 ÷ £20 = 40%.
- Markup = £8 ÷ £12 = 66.7%.
If she wrongly used the VAT-inclusive price, she’d get (£24 − £12) ÷ £24 = 50%, overstating her margin by 10 points. The £4 of VAT goes to HMRC.
In the US, sales tax works the same way for this purpose: it’s added at the till, collected for the state and passed on, so it isn’t revenue. A $20 item in a city with 8% sales tax is still $20 of revenue.
PROFIT MARGIN WORKSHEET
Product: [Ceramic vase] SKU: [CV-01]
Tax rate: [20% VAT / 0% / local sales tax]
Purchase cost (ex tax) [12.00]
+ Freight in, duties, packaging [0.00]
= Landed cost [12.00]
Selling price (incl. tax) [24.00]
Selling price ex tax = incl. ÷ (1+rate) [20.00]
Gross profit = price ex tax − cost [8.00]
Gross margin = profit ÷ price ex tax [40.0%]
Markup = profit ÷ cost [66.7%]
Selling fees per unit (card, platform) [0.00]
Profit after selling fees [8.00]
Margin after selling fees [40.0%]
In a spreadsheet, with cost in B2, the tax-inclusive price in B3 and the tax rate in B4: price ex tax =B3/(1+B4), gross profit =B3/(1+B4)-B2, margin =(B3/(1+B4)-B2)/(B3/(1+B4)), markup =(B3/(1+B4)-B2)/B2. Format the rates as percentages.
Converting markup to margin (and back)
Two formulas do all the work:
- Margin = markup ÷ (1 + markup)
- Markup = margin ÷ (1 − margin)
| Markup | Gross margin | Price multiplier (× cost) |
|---|---|---|
| 25% | 20% | 1.25 |
| 33.3% | 25% | 1.333 |
| 50% | 33.3% | 1.50 |
| 66.7% | 40% | 1.667 |
| 100% | 50% | 2.00 |
| 150% | 60% | 2.50 |
| 200% | 66.7% | 3.00 |
25%
Gross margin20%
Price multiplier (× cost)1.25
33.3%
Gross margin25%
Price multiplier (× cost)1.333
50%
Gross margin33.3%
Price multiplier (× cost)1.50
66.7%
Gross margin40%
Price multiplier (× cost)1.667
100%
Gross margin50%
Price multiplier (× cost)2.00
150%
Gross margin60%
Price multiplier (× cost)2.50
200%
Gross margin66.7%
Price multiplier (× cost)3.00
A 100% markup, doubling the cost, is often called keystone pricing in retail. It gives a 50% margin, not 100%. And no markup, however large, can give a 100% margin: that would mean the product cost nothing.
Pricing from a target margin
If you know the margin you want to keep:
Price = cost ÷ (1 − target margin)
Marcus sells candles from a small shop in Austin, Texas. He wants a 45% margin on a new candle that costs him $12: $12 ÷ 0.55 = $21.82. He rounds to $21.99, which gives $9.99 of gross profit and a 45.4% margin.
The common mistake is to add 45% to the cost: $12 × 1.45 = $17.40. That leaves $5.40 of profit, a 31% margin. He’d lose $4.42 on every candle compared with what he thought he was earning.
The formula gives you a floor, not the final price. Check it against competitors and what your customers will pay. If the market price is below your floor, you need a cheaper supplier, a different product, or a reason for customers to pay more.
Selling fees: the margin you don’t see
Card and platform fees come out of your margin, not the customer’s pocket. Stripe’s standard US rate for domestic online card payments is 2.9% + 30¢ per successful charge. Take a $20 candle that cost Marcus $12: on the $20 sale, the fee is $0.58 + $0.30 = $0.88. His $8 of gross profit becomes $7.12, and his margin drops from 40% to 35.6%. On low-priced items the fixed 30¢ hurts most: on a $5 sale it alone takes 6% of the price.
Add every per-sale cost the same way: marketplace commission, packaging, free shipping, returns. Then look at your margin after fees, not before.
From gross margin to net margin
A healthy gross margin doesn’t mean the business makes money. Here’s a typical month for Marcus’s shop:
| Line | Amount | % of revenue |
|---|---|---|
| Revenue (ex tax) | $12,000 | 100% |
| − Cost of goods sold | $7,200 | 60% |
| = Gross profit | $4,800 | 40% |
| − Card fees and packaging | $300 | 2.5% |
| = Contribution margin | $4,500 | 37.5% |
| − Fixed costs: rent $1,800, utilities and internet $300, insurance $100, bookkeeping $200, marketing $300, bank charges $100, other $500 | $3,300 | 27.5% |
| = Operating profit | $1,200 | 10% |
Revenue (ex tax)
Amount$12,000
% of revenue100%
− Cost of goods sold
Amount$7,200
% of revenue60%
= Gross profit
Amount$4,800
% of revenue40%
− Card fees and packaging
Amount$300
% of revenue2.5%
= Contribution margin
Amount$4,500
% of revenue37.5%
− Fixed costs: rent $1,800, utilities and internet $300, insurance $100, bookkeeping $200, marketing $300, bank charges $100, other $500
Amount$3,300
% of revenue27.5%
= Operating profit
Amount$1,200
% of revenue10%
Two useful numbers come out of this:
- Break-even revenue = fixed costs ÷ contribution margin = $3,300 ÷ 0.375 = $8,800 a month. Below that, the shop loses money.
- Net margin subtracts interest and income tax too. If, say, $240 went on tax, net profit would be $960, a net margin of 8%.
For a sole trader, that profit is also your pay. Anything you take from stock for yourself is a withdrawal, not a sale; our guide to separating personal and business records explains why that matters.
What’s a good profit margin?
There’s no universal “good” margin; it depends on the industry and your model. One free, regularly updated benchmark is Aswath Damodaran’s dataset at NYU Stern, updated in January 2026 and covering 5,994 US-listed companies.
| Industry (Jan 2026) | Firms | Gross margin | Net margin |
|---|---|---|---|
| Retail (grocery and food) | 15 | 26.31% | 1.32% |
| Retail (general) | 23 | 33.18% | 5.61% |
| Retail (special lines) | 94 | 35.30% | 5.19% |
| Restaurant/dining | 64 | 32.24% | 9.37% |
| Apparel | 35 | 56.88% | 3.85% |
| Total market | 5,994 | 37.76% | 9.74% |
Retail (grocery and food)
Firms15
Gross margin26.31%
Net margin1.32%
Retail (general)
Firms23
Gross margin33.18%
Net margin5.61%
Retail (special lines)
Firms94
Gross margin35.30%
Net margin5.19%
Restaurant/dining
Firms64
Gross margin32.24%
Net margin9.37%
Apparel
Firms35
Gross margin56.88%
Net margin3.85%
Total market
Firms5,994
Gross margin37.76%
Net margin9.74%
These are large public companies, not small shops, so use them as context, not targets. The lesson that carries over is the gap between the two columns: a clothing business can keep more than half of each sale at the gross level and still end up with a thin net margin once stores, staff and marketing are paid.
Mistakes that wreck the calculation
- Price and cost are both ex VAT or sales tax
- Cost includes freight, duties and packaging (landed cost)
- You know whether you’re quoting margin or markup
- Price comes from cost ÷ (1 − margin), not cost × (1 + margin)
- Card, marketplace and shipping fees are deducted
- Discounts, breakage and shrinkage are allowed for in your average margin
- The final price makes sense next to competitors
Discounts also hit margin harder than they look. On the $20 candle with $8 of gross profit, a 20% discount ($4) halves the profit: you’d need to sell twice as many to earn the same.
Track your margins without a spreadsheet
The maths only works if your costs are up to date. In Binome360, each product in your “Shop” assistant has a cost and a selling price, and stock movements are logged in one sentence. Your assistant prepares the entry; you confirm.
Sold 3 ceramic vases at £24
Ready in your “Shop” assistant: 3 Ceramic vase out, £72 received. Stock after this: 17. Save it?
The Shop module keeps your products, stock movements and margins.
Try Binome360 for freeFor the stock side, see our guide to inventory management for a small business.
Frequently asked questions
What’s the formula for profit margin?
Profit margin = profit ÷ revenue × 100. Use gross profit (revenue − cost of goods sold) for gross margin, operating profit for operating margin, and net profit after all expenses, interest and tax for net margin. Always use revenue excluding sales tax or VAT.
Is a 50% markup a 50% margin?
No. A 50% markup gives a 33.3% margin. An item that costs $10 with a 50% markup sells for $15: $5 of profit is 50% of the cost but only 33.3% of the price.
How do I calculate a selling price from a margin?
Divide the cost by (1 − the margin as a decimal). For a 40% margin on a $30 cost: $30 ÷ 0.60 = $50. Check: $20 of profit ÷ $50 = 40%.
Should I use margin or markup?
Use whichever you like to set prices, but label it. Margin is better for comparing products and reading your accounts, because it’s a share of revenue. Markup is handy at the stockroom shelf, because you apply it to the cost you see on the supplier invoice.
What is a good net profit margin for a small business?
There’s no single answer. It varies widely by industry, and public benchmarks such as Damodaran’s describe large listed companies. Compare yourself with your own past months and with trade association data for your sector, and make sure your net margin pays you a fair wage on top.
In short
Work ex tax, say clearly whether you mean margin (a share of the price) or markup (a share of the cost), and set prices with cost ÷ (1 − target margin). Then subtract selling fees and fixed costs to see what the business really earns. Your first step: fill in the worksheet above for your five best-selling products this week.
Sources
- AccountingTools (Steven Bragg), “The difference between margin and markup”: accountingtools.com.
- Aswath Damodaran, “Operating and Net Margins by Industry Sector”, NYU Stern, data as of January 2026 (5,994 US companies): pages.stern.nyu.edu/~adamodar.
- IRS, Schedule C (Form 1040), Part III “Cost of Goods Sold”: irs.gov/forms-pubs/about-schedule-c-form-1040.
- GOV.UK, “VAT rates on different goods and services”, updated 10 July 2026: gov.uk/guidance/rates-of-vat-on-different-goods-and-services.
- Stripe, “Pricing” (US standard online card rate, 2.9% + 30¢), consulted September 2026: stripe.com/pricing.
Also available in Français.