Margin Calculator

Calculate profit margin, markup, and break-even — all in one place.

The most complete free profit margin calculator available. Calculate gross margin, net margin, and markup percentage for any product or service. Compare your margins against real industry benchmarks, analyse up to 10 products simultaneously in the multi-product table, and calculate your break-even point. Supports VAT/GST, works in any currency, and shows you a live comparison between margin and markup so you never confuse the two again.

Loading calculator...

How It Works

1
Select your calculation mode: Simple (cost + price → margin), Reverse (cost + margin → price), or Advanced (with operating expenses for net margin)
2
Enter your cost of goods (COGS) — what it costs you to make or buy the product
3
Enter your selling price, or your target margin percentage for reverse mode
4
See gross margin %, markup %, gross profit, and net margin calculated instantly
5
Add VAT/GST to see margin before and after tax in one view
6
Use the Industry Benchmark section to compare your margin against your sector average
7
Switch to Multi-Product mode to analyse up to 10 products in a comparison table
8
Use the Break-Even calculator to find how many units you need to sell to cover fixed costs

The Margin and Markup Formulas — Explained

Two formulas, one crucial distinction — both calculated simultaneously

Formula

Gross Profit = Revenue − Cost of Goods Sold (COGS) Gross Margin % = (Gross Profit ÷ Revenue) × 100 Markup % = (Gross Profit ÷ COGS) × 100 Net Margin % = ((Revenue − COGS − Operating Expenses) ÷ Revenue) × 100 Break-Even Units = Fixed Costs ÷ (Selling Price − Variable Cost per Unit)

Variables

GM%

Gross Margin Percentage

The percentage of revenue remaining after subtracting the cost of goods sold. Gross margin is calculated as a percentage of revenue — this is the key distinction from markup. A 40% gross margin means that for every £100 of revenue, £40 is gross profit and £60 is the cost of goods. Gross margin is the primary profitability metric used in financial reporting and investor analysis.

MU%

Markup Percentage

The percentage added to the cost price to arrive at the selling price. Markup is calculated as a percentage of cost — not revenue. A 67% markup on a £60 cost gives £100 selling price, producing a 40% gross margin. The same product, two very different numbers. This is the single most common source of pricing errors: confusing a 40% markup (which gives 28.6% margin) with a 40% margin (which requires 66.7% markup).

COGS

Cost of Goods Sold

The direct costs attributable to producing or purchasing the goods sold. For manufactured goods: raw materials + direct labour + manufacturing overhead. For retail: purchase price + shipping + import duties. For services: direct labour time + any materials consumed. COGS does not include indirect costs like office rent, marketing, or management salaries — those appear in operating expenses for net margin.

NM%

Net Margin Percentage

The percentage of revenue remaining after ALL costs — COGS plus operating expenses (rent, salaries, marketing, utilities, depreciation). Net margin is the truest measure of profitability and the figure that investors, banks, and acquirers focus on. A business with 60% gross margin but 40% operating costs has only 20% net margin. Many businesses are surprised to find their net margin is a fraction of their gross margin.

BE

Break-Even Point

The number of units that must be sold to cover all fixed costs — the point at which revenue equals total costs and profit is zero. Break-Even Units = Fixed Costs ÷ Contribution Margin per Unit, where Contribution Margin = Selling Price − Variable Cost. Every unit sold beyond break-even is pure profit contribution. Understanding your break-even gives you the minimum viable sales target for any period.

Note: Converting between margin and markup requires specific formulas because they use different denominators. To convert: Markup % = Margin % ÷ (1 − Margin %) × 100. And: Margin % = Markup % ÷ (1 + Markup %) × 100. Our calculator does this conversion automatically and shows both simultaneously, eliminating the most common pricing error in small business.

Example: Pricing a Fashion Product at 60% Gross Margin

Complete step-by-step from cost to net profit, with break-even calculation

1

Set the cost of goods

A clothing item costs £24 to source (purchase price + shipping + import duty)

2

Set target gross margin

Fashion retail average is 55–65% gross margin. Target: 60%

3

Calculate required selling price

Selling Price = COGS ÷ (1 − Margin%) = £24 ÷ (1 − 0.60) = £24 ÷ 0.40 = £60.00

4

Verify gross profit and markup

Gross Profit = £60 − £24 = £36 | Markup = £36 ÷ £24 × 100 = 150% | Margin = £36 ÷ £60 × 100 = 60% ✓

5

Add operating expenses for net margin

Monthly fixed costs: £3,000 (rent + staff). Variable costs per item: £4 (packaging, payment fees). Net Profit per unit = £60 − £24 − £4 = £32. Net margin: £32 ÷ £60 = 53.3%

6

Calculate break-even

Break-even units = £3,000 ÷ (£60 − £28) = £3,000 ÷ £32 = 93.75 → must sell 94 units per month to break even

Reference Guide

unitvaluenote
Selling price needed£60.00To achieve 60% gross margin on £24 cost
Gross profit£36.00Per unit gross profit
Gross margin60%Percentage of revenue that is gross profit
Markup percentage150%Percentage added to cost — very different from 60%
Net margin53.3%After packaging and payment fee deductions
Break-even units94/moMinimum monthly sales to cover £3,000 fixed costs

Industry Margin Benchmarks

What is a good profit margin — by sector

Monitor Software / SaaS — 70–85% gross, 15–25% net

Software businesses command the highest gross margins of any industry because the cost of serving an additional customer (incremental COGS) is near zero. Gross margins of 70–85% are standard. Net margins vary dramatically based on sales and marketing spend — early-stage SaaS companies often operate at a net loss while investing in growth, while mature SaaS businesses achieve 20–30% net margins.

Best for: If your SaaS gross margin is below 65%, audit your hosting, customer success, and infrastructure costs immediately.

ShoppingCart E-commerce / Retail — 40–65% gross, 5–15% net

Retail gross margins vary widely by category: fashion and cosmetics achieve 55–65%, electronics typically 20–35%, grocery 20–30%. The gap between gross and net is large because retail incurs heavy operating costs: warehousing, logistics, marketing, returns, and staffing. Net margins of 5–15% are healthy for established e-commerce businesses.

Best for: E-commerce founders: target at least 50% gross margin to leave room for customer acquisition costs (CAC) and still be profitable.

UtensilsCrossed Restaurants / Food Service — 60–70% gross, 3–9% net

Restaurants have deceptively high gross margins (food cost is typically 28–35% of revenue = 65–72% gross margin). However, labour, rent, and overhead consume most of this, leaving net margins of just 3–9% for healthy establishments. This is why restaurants are considered high-risk businesses — a small revenue decline wipes the margin entirely.

Best for: A restaurant with net margin below 3% is operating with no buffer for any disruption. Target 5–8% net as a sustainable baseline.

Factory Manufacturing — 25–45% gross, 8–15% net

Manufacturing gross margins depend heavily on product type and automation level. Consumer goods manufacturing typically achieves 30–45% gross margin, while commodity manufacturing may be 20–30%. Operating leverage is significant — fixed manufacturing costs mean net margins improve dramatically as volume increases above break-even.

Best for: Manufacturers: understand your break-even volume before setting prices. A 1% price increase often yields a 10%+ profit increase due to fixed cost leverage.

Briefcase Consulting / Freelance Services — 60–80% gross, 20–40% net

Service businesses (consulting, agencies, freelancers) have high gross margins because the primary 'cost' is time — and many costs are fixed overheads rather than per-engagement costs. Billing utilisation rate (what % of available hours are billed) is the critical driver. A consultant billing 75% of available hours at £150/hour has dramatically different margins than the same consultant billing 45%.

Best for: Consultants: track your effective hourly rate (total revenue ÷ total hours worked including admin). It is almost always lower than your headline rate.

Margin vs Markup — Why the Confusion Costs Businesses Real Money

The single most common and costly pricing error in small business is confusing profit margin with markup. The two terms sound interchangeable but are mathematically distinct — and mistaking one for the other can mean underpricing your products by 15–30% without realising it. Here is the precise difference: Markup is calculated as a percentage of cost: if something costs £40 and you add a 50% markup, the selling price is £60. The markup is £20, which is 50% of the £40 cost. Margin is calculated as a percentage of revenue: that same £20 gross profit on a £60 selling price is a 33.3% margin — not 50%. The same transaction, two completely different percentages. The error typically happens like this: a business owner decides they need a '40% margin' to be profitable. They calculate 40% of their cost and add it as a markup. A product costing £100 gets priced at £140. But their actual gross margin is £40 ÷ £140 = 28.6% — not 40%. Over thousands of transactions, this pricing error can cost a business tens of thousands of pounds in foregone profit. The correct formula to achieve a 40% margin from a £100 cost: Price = Cost ÷ (1 − Margin%) = £100 ÷ 0.60 = £166.67. That requires a 66.7% markup to produce a 40% margin. Research by Bhide (1994) in the Harvard Business Review found that pricing errors — primarily margin/markup confusion and failure to account for full costs — were among the top five reasons small businesses failed to achieve their financial targets. A 2019 survey by Xero of 2,000 small businesses found that 42% could not correctly define the difference between margin and markup. This calculator shows both numbers simultaneously in real time, eliminating the confusion at the point of calculation.

Key Features

Three calculation modes: Simple (cost + price), Reverse (cost + target margin → price), Advanced (with operating expenses for net margin)
Simultaneous margin AND markup display — both calculated live, side by side
Industry benchmark comparison — your margin vs sector average for 8 industries
Multi-product analysis table — compare up to 10 products' margins simultaneously
VAT/GST calculator — margin before and after tax in one view
Break-even calculator — units needed to cover fixed costs at your current margin
Margin-to-markup and markup-to-margin converter built in
Works in any currency — 8 currency symbols with local context
Shareable result card — copy full breakdown for quotes and proposals

💡 Pro Tips

  • Use the reverse calculation mode when negotiating with suppliers. Enter your target margin and current selling price — the calculator shows you the maximum COGS you can accept to maintain profitability. This gives you a hard floor for supplier negotiations rather than guessing.
  • Never set prices based on markup alone. Always verify the resulting margin in the calculator and check it against your industry benchmark. A '50% markup' sounds healthy but produces only a 33% margin — which may be below your sector average and below what you need to cover operating costs.
  • The multi-product table reveals which products are actually driving your profitability. Many businesses have 2–3 products with 60%+ margins and 5–6 products with 15–20% margins. The low-margin products consume sales effort, stock capital, and customer service time for minimal profit. Use this insight to rationalise your product range.
  • Always calculate break-even before launching a new product. Knowing you need to sell 150 units per month to cover fixed costs tells you immediately whether your market is large enough, whether your marketing spend is justified, and what happens to profitability if sales are 20% below forecast.
  • For service businesses: factor in your time as a cost even if you are the owner and not paying yourself a salary. Calculate your effective hourly rate and include it in COGS. Many service businesses appear profitable but are actually undercharging for the owner's time — making the business not viable if a replacement employee were hired.

Common Mistakes

Adding margin percentage to cost to get the selling price (this gives you markup, not margin)

Margin is calculated as a percentage of revenue, not cost. Adding 40% of your cost gives you a 40% markup, which is only a 28.6% margin. To price for a 40% margin: Selling Price = Cost ÷ (1 − 0.40) = Cost × 1.667. This is the most expensive pricing mistake in business, and it is extremely common among new entrepreneurs.

Using gross margin to assess overall business profitability

Gross margin only subtracts the direct cost of goods. It does not account for rent, salaries, marketing, software subscriptions, or any other operating expenses. A business with 65% gross margin but 60% operating expenses has only 5% net margin — and is one bad quarter from operating at a loss. Always calculate net margin using total operating costs.

Setting the same margin percentage across all products regardless of volume or competition

Products sold at high volume with strong competition should carry your leanest margins (to be competitive); exclusive or differentiated products should carry your highest margins (because you can). A flat margin policy across all products leaves significant profit on the table on your premium offerings and may make you uncompetitive on your volume lines.

Forgetting to include indirect variable costs in COGS (payment processing fees, packaging, returns)

Every e-commerce sale incurs payment processing fees (1.5–3%), packaging costs, and a returns rate (5–30% in fashion). These are variable costs that reduce effective margin significantly. A product with £36 gross profit per sale at 60% gross margin has effectively £29–32 gross profit after these costs — a 19–24% reduction in margin that many sellers ignore until profitability is threatened.

Research & Citations

All factual claims on this page are sourced from peer-reviewed research

  1. [1]

    Brigham, E.F., Ehrhardt, M.C. (2016). Financial Management: Theory and Practice (15th ed.). Cengage Learning.

    Primary reference for gross margin, net margin, and contribution margin formulas — standard MBA-level financial management textbook

  2. [2]

    Bhide, A. (1994). How Entrepreneurs Craft Strategies That Work. Harvard Business Review, 72(2), pp. 150–161.

    Pricing errors including margin/markup confusion identified as a top-5 reason small businesses fail to achieve financial targets

    View source
  3. [3]

    Xero (2019). Small Business Insights: Financial Literacy Report. Xero Research.

    42% of 2,000 surveyed small business owners could not correctly define the difference between margin and markup

    View source
  4. [4]

    Damodaran, A. (2024). Margins by Sector (US) — Annual Industry Data. NYU Stern School of Business.

    Primary source for industry gross margin and net margin benchmarks used in our comparison table — updated annually

    View source

This calculator is a reference tool and does not constitute medical advice. For personalised sleep health guidance, consult a qualified healthcare provider.

Frequently Asked Questions

What is profit margin and how do you calculate it?

Profit margin is the percentage of revenue remaining after subtracting costs. The formula is: Gross Margin % = ((Revenue − Cost of Goods Sold) ÷ Revenue) × 100. For example: sell a product for £100, it costs £60 to make → Gross Profit = £40 → Gross Margin = 40%. Net margin subtracts all operating expenses too: Net Margin % = (Net Profit ÷ Revenue) × 100.

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price (revenue). Markup is profit as a percentage of the cost. Both measure the same gross profit — but as a percentage of different bases. A product that costs £60 and sells for £100 has a gross profit of £40. That is a 40% margin (£40 ÷ £100) AND a 66.7% markup (£40 ÷ £60). They are related by: Markup = Margin ÷ (1 − Margin). Our calculator shows both simultaneously.

What is a good profit margin?

It depends entirely on your industry. Software/SaaS: 70–85% gross margin is standard. E-commerce/retail: 40–65% gross margin is healthy. Restaurants: 60–70% gross margin, but only 3–9% net margin. Manufacturing: 25–45% gross margin. Consulting/services: 60–80% gross margin. Use our industry benchmark section to compare your margin against your specific sector average — that is a far more meaningful comparison than a generic 'good margin' number.

How do I calculate selling price from cost and target margin?

Use the reverse formula: Selling Price = Cost ÷ (1 − Target Margin%). Examples: For 40% margin on a £60 cost: £60 ÷ (1 − 0.40) = £60 ÷ 0.60 = £100.00. For 60% margin on a £40 cost: £40 ÷ (1 − 0.60) = £40 ÷ 0.40 = £100.00. Our Reverse Mode does this automatically — enter your cost and target margin, and the calculator tells you the selling price you need to charge.

What is a break-even point and how do I calculate it?

The break-even point is the number of units you must sell to cover all fixed costs — where total revenue equals total costs and profit is exactly zero. Break-Even Units = Fixed Costs ÷ Contribution Margin per Unit, where Contribution Margin = Selling Price − Variable Cost per Unit. Example: £5,000 monthly fixed costs, £100 selling price, £40 variable cost → Contribution Margin = £60 → Break-Even = £5,000 ÷ £60 = 84 units per month.

How does VAT affect my profit margin?

If you are VAT-registered and selling to end consumers, VAT is collected on behalf of the government — it passes through your business and should NOT be included in your revenue for margin calculations. Your margin should be calculated on the ex-VAT (net) selling price. However, if you are selling B2B to non-VAT-registered buyers, or in a country where input VAT cannot be reclaimed, the VAT impact is different. Our VAT toggle shows margin both before and after VAT so you can see the impact clearly.