Profit Margin Calculator

Last updated: October 2026

Profit margin is what you keep after costs, as a percentage of revenue. Gross margin = (revenue − cost of goods sold) ÷ revenue × 100; net margin = (revenue − all costs) ÷ revenue × 100. On £120,000 of sales with £84,000 of costs, margin is (£120,000 − £84,000) ÷ £120,000 = 30%.

Know what you actually keep

Revenue is vanity; margin is sanity. A business doing £500,000 in sales with a 4% margin keeps £20,000. A business doing £120,000 with a 30% margin keeps £36,000 — nearly twice as much from less than a quarter of the sales. Yet most small businesses track revenue obsessively and margin barely at all.

This calculator computes gross margin (revenue minus cost of goods sold) and net margin (revenue minus all costs), shows the formulas step by step, and lets you work backwards: enter the margin you want and the costs you have, and it tells you the revenue you need.

Margin is profit as a share of the selling price; markup is profit as a share of cost. A 50% markup equals a 33.3% margin - they are not the same number.

Email me the full breakdown

Get this calculation as a tidy email you can keep, forward to your accountant, or file with your records.


We will only use your details to send the breakdown. Read our privacy policy.

How to use it

  1. Enter your revenue for the period (a month, a project, a product line — any period, as long as revenue and costs cover the same one).
  2. Enter your cost of goods sold (COGS): the direct costs of what you sold — materials, direct labour, delivery.
  3. Enter your operating expenses: rent, software, marketing, admin, everything else.
  4. Read your gross profit, gross margin %, net profit and net margin %.
  5. Flip to target mode: enter a desired margin and your costs to find the revenue target.

What it calculates and how the formulas work

Measure Formula
Gross profit Revenue − cost of goods sold
Gross margin (Gross profit ÷ revenue) × 100
Net profit Revenue − COGS − operating expenses
Net margin (Net profit ÷ revenue) × 100
Revenue needed for target margin Total costs ÷ (1 − target margin as decimal)

Assumptions:

  • Margin is always expressed as a percentage of revenue (the selling price), not of cost. This is the single most common confusion in small-business pricing — margin and markup are different things (see the markup calculator).
  • COGS vs operating expenses is your call: the split matters less than including all costs somewhere. Freelancers with no “goods” can put subcontractor and tool costs in COGS.
  • The tool reports one period at a time. Margins move with volume, so a single quiet month is not your business’s margin — track the trend.

Worked example: online candle shop

Amara sells handmade candles online in the UK. Last month:

  • Revenue: £8,400
  • COGS (wax, jars, wicks, packaging, postage): £2,940
  • Operating expenses (Etsy fees, ads, studio rent share, insurance): £2,100

The calculator shows:

  • Gross profit: £8,400 − £2,940 = £5,460 → gross margin 65%
  • Net profit: £5,460 − £2,100 = £3,360 → net margin 40%

Healthy. But Amara wants to know what happens if ad costs rise £600 next month: net profit falls to £2,760, net margin to 32.9%. She can model it before spending, instead of discovering it after.

Target mode: Amara wants a 45% net margin with total costs of £5,040. Revenue needed = £5,040 ÷ (1 − 0.45) = £9,164 — about £764 more in monthly sales.

Important considerations and limitations

  • “Good” margins depend entirely on industry. Software can run 70–80% gross margins; grocery retail runs 2–3% net. Compare yourself to your industry, not to a universal benchmark.
  • Margin is not cash. A 40% net margin with customers paying in 90 days can still leave you unable to make rent. Watch cash flow alongside margin.
  • Do not confuse margin with markup. A 50% markup on cost is a 33.3% margin on price. Pricing with the wrong one quietly gives away profit — the markup calculator explains the difference with examples.
  • One period can mislead. Seasonal businesses should compare like-for-like periods (this October vs last October), not adjacent months.
  • Browser-local: your financial figures never leave your browser.

Markup to margin conversion table

Markup and margin describe the same profit in different ways: markup is profit as a share of cost, margin as a share of price. The conversion is margin = markup / (1 + markup). Bookmark this table — it is the fastest way to translate between the two.

Markup Equals margin Markup Equals margin
5% 4.8% 50% 33.3%
10% 9.1% 66.7% 40.0%
20% 16.7% 100% 50.0%
25% 20.0% 150% 60.0%
33.3% 25.0% 200% 66.7%

The classic mix-up: a 50% markup is not a 50% margin — it is a 33.3% margin, because the profit is measured against the higher selling price. Enter any pair into the calculator above to check your own numbers.

What are the three layers of profit margin?

Margins come in three layers. Gross margin is pricing power: (revenue minus COGS) divided by revenue, times 100. Operating margin adds running costs to the same formula. Net margin is the bottom line after tax and interest: net profit divided by revenue, times 100. Use gross to price, operating to judge efficiency, net to judge the business.

Five terms do all the work:

  • Revenue: total sales before any costs are taken off.
  • COGS (cost of goods sold): the direct cost of what you sold: materials, packaging and delivery.
  • Operating expenses: the day-to-day cost of running the business: fees, ads, rent, insurance, tools.
  • Gross profit: revenue minus COGS.
  • Net profit: what is left after every cost, including tax and interest.

Here is Amara’s candle shop through all three layers:

Layer Formula Amara’s numbers Margin
Gross (revenue – COGS) / revenue x 100 (£8,400 – £2,940) / £8,400 65%
Operating (revenue – COGS – operating expenses) / revenue x 100 (£8,400 – £2,940 – £2,100) / £8,400 40%
Net net profit / revenue x 100 same as operating in this example: Amara holds tax and interest aside 40%

For a limited company, net is always the lowest of the three, because tax and interest sit below the operating line. Most freelancers and sole traders can work with two layers, but adding operating margin is what shows whether the business runs efficiently before tax clouds the picture.

Can a margin be negative?

Yes, and a negative margin is simply a loss. If Amara’s costs hit £9,000 on £8,400 of revenue, her margin is minus 7.1%. The mirror image is a zero-cost service business: a consultant with no COGS has a gross margin near 100%, which makes operating margin the honest measure for services. Break-even is exactly 0% margin: costs equal revenue.

How do you raise your profit margin?

You have three levers: charge more, spend less, or sell more high-margin work. Test a 5 percent rise on your least price-sensitive line and watch volume. Then cut the quiet cost lines: delivery, fees and waste for product sellers; subcontractors and tools for freelancers. Review margin by line every quarter and steer sales toward what keeps the most.

  1. Test prices up, not down. A 5% rise on Amara’s £8,400 revenue is £420 of pure margin if volume holds; a 5% discount costs the same £420. Test the rise first.
  2. Audit one cost line a month. Re-run the calculator before signing any new expense: a £200-a-month tool has to pay for itself in margin, not just convenience.
  3. Watch the fee trap. Marketplace and payment fees come out of your margin, not your price. An Etsy seller paying 6.5% transaction fees plus payment processing loses well over a tenth of revenue before any other cost, so model the fees first with the Etsy fee calculator and price after them, not before.
  4. Review margin by line every quarter. One product usually carries the rest. Steer marketing and shelf space toward the lines with the highest margin, and fix or drop the laggards.

Can a margin be too high? Rarely a problem on its own, but a margin far above your industry average invites competitors to undercut you, or signals that you are underinvesting in the business. Balance pricing power with reinvestment, and check yourself against our UK industry profit margin benchmarks.

Margin stress-test: three scenarios before every big decision

Run these three scenarios in the calculator above before every pricing change or big spend. Amara’s base case, a £600 rise in ad costs, and a 10% price rise with volume flat:

Base case Ad costs +£600 Price +10%, volume flat
Revenue £8,400 £8,400 £9,240
COGS £2,940 £2,940 £2,940
Operating expenses £2,100 £2,700 £2,100
Gross profit £5,460 £5,460 £6,300
Gross margin 65% 65% 68.2%
Net profit £3,360 £2,760 £4,200
Net margin 40% 32.9% 45.5%

The lesson: a £600 cost rise and a 10% price rise look like similar-sized moves, but one takes the margin from 40% to 32.9% while the other lifts it to 45.5%. Scenario tables beat gut feeling every time.

Frequently asked questions

How do I calculate profit margin?

Subtract all costs from revenue to get profit, then divide profit by revenue and multiply by 100. For example, £3,360 profit on £8,400 revenue = 40% net margin.

What is the difference between gross margin and net margin?

Gross margin covers only the direct cost of what you sold (revenue minus COGS). Net margin subtracts everything, including rent, marketing and admin. Gross margin shows pricing power; net margin shows whether the business actually works.

What is a good profit margin for a small business?

It depends on the industry. Service businesses often target 20–40% net; retail and hospitality frequently run 5–15% net; digital products can exceed 60%. The honest answer is: better than last year, and better than your direct competitors. Our guide breaks down good profit margins by industry, with real benchmarks. For UK-specific figures by sector, see our industry profit margin benchmarks for UK businesses, built from ONS data.

What is the difference between profit margin and markup?

Margin is profit as a percentage of the selling price; markup is profit as a percentage of cost. A product costing £50 sold for £100 has a 100% markup but a 50% margin. Mixing them up is one of the costliest small-business maths errors. For the full comparison with formula examples, read Profit Margin vs Markup: What’s the Difference.

How do I work out what revenue I need for a target margin?

Divide your total costs by (1 − target margin as a decimal). Costs of £5,040 and a 45% target → £5,040 ÷ 0.55 = £9,164 revenue needed.

Can freelancers use this calculator?

Yes. Treat your subcontractor costs and tools as COGS and everything else as operating expenses. Your “revenue” is what you billed. Many freelancers discover their real net margin is far lower than the hourly rate suggested.

Is my financial data uploaded anywhere?

No. All calculations happen locally in your browser.

Link to this tool: writing about profit margin calculators? Paste this HTML on your site:
<a href="https://lancerbill.com/profit-margin-calculator/">Profit Margin Calculator</a>

Related tools

External references

This tool provides estimates for guidance only and is not professional financial, tax, or legal advice.

Reviewed by

Arham Arshad, founder of LancerBill, checked this tool and its calculation method in October 2026.