Gross Margin Calculator
Enter a selling price and the cost of goods sold to find your gross margin — and the equivalent markup, side by side.
On €100.00 of revenue with €60.00 of cost, the profit is €40.00. That's a gross margin of 40.00% — and an equivalent markup of 66.67%.
Results update as you type.
Formula
Gross margin is profit as a percentage of revenue:
margin% = (revenue − cost) / revenue × 100.
The same gap expressed as markup divides by cost instead:
markup% = (revenue − cost) / cost × 100.
For a profitable product, markup is always the larger of the two — they only equal at zero.
When this calculator helps
Gross margin is the proportion of each sale you keep after the direct cost of goods, and it is a number every business across the euro area should know off by heart. Use this calculator when you are pricing a product or service, judging whether a line is worth carrying, or working out how a supplier price rise will affect profitability. Enter the selling price and the cost of goods sold, and it returns the profit, the margin as a percentage of revenue, and the equivalent markup.
It is most valuable in the decisions that determine whether a business stands up: pricing against competitors in your market, comparing the profitability of two ranges sold at different price points, or presenting a clear figure to a bank or an investor. Lenders and equity backers across the euro area watch gross margin closely, because a solid margin shows the model can absorb a weak quarter and still fund the next step.
How to read your result
The percentage is your gross profit expressed as a share of the selling price. A 40% margin means that for every euro of revenue, 40 cents is gross profit and 60 cents covered the direct cost of what you sold. The larger the figure, the more headroom you have to cover overheads, salaries and social charges before reaching break-even.
The recurring confusion to guard against is margin versus markup. Margin divides profit by the selling price; markup divides the same profit by the cost. A €40 profit on a €100 item that cost €60 is a 40% margin but a 67% markup — identical euros, two very different percentages. Retail tends to think in markup while finance reports in margin, so if you price using a markup figure in the belief it is your margin, you will under-charge on every sale. Decide which measure you are using and apply it consistently.
A worked example
Imagine you run a speciality food business and buy a case of olive oil for €30 net of VAT, then sell it for €75 net. Your gross profit is €45, which is a 60% margin (45 ÷ 75) and a 150% markup (45 ÷ 30). If your supplier raises the cost to €36, holding the €75 price cuts the margin to about 52% — a cost rise erodes margin much faster than it touches the headline price. Viewing both figures together stops you from sliding into under-pricing unawares.
Common mistakes to avoid
Across the euro area most margin errors come from comparing figures that were never calculated on the same basis.
- Confusing margin with markup and pricing on the markup number as if it were margin — this under-prices every sale.
- Leaving VAT in your revenue figure; the VAT you charge is owed onward to the tax authority, so use VAT-exclusive figures.
- Treating gross margin as profit — it only covers direct cost of goods, not salaries, social charges, rent or marketing.
- Combining a net cost with a VAT-inclusive selling price, which overstates the margin.
VAT and the euro-area picture
VAT applies across every euro-area country, though the standard rate varies by member state — roughly 17% to 27% — and reduced rates apply to certain goods. Whatever the rate, the VAT you collect from customers is owed to your national tax authority and never forms part of your margin, so always enter VAT-exclusive figures. If your numbers are mixed, strip the VAT out first so the margin reflects money you genuinely keep.
Bear in mind that a strong gross margin does not by itself make a business profitable. Net margins across the euro area are often squeezed by employer social charges, which can add 20–40% on top of salaries depending on the country. Once you have your gross margin, the real test is whether it covers those overheads and still leaves a net profit — so treat the figure here as the starting point and work down to the bottom line.
Related calculators
Frequently asked questions
What's the difference between margin and markup?▾
Margin = profit / revenue; markup = profit / cost. Same euro gap, two denominators. €40 profit on a €100 sale that cost €60: 40% margin, ~67% markup. Retail thinks in markup, finance reports in margin — the two diverge on the same product, so don't substitute one for the other when pricing.
Is this gross or net margin?▾
Gross — only direct cost of goods sold is deducted from revenue. Net margin deducts overheads, salaries, social charges, rent, depreciation, finance costs, and tax. EU social charges in particular eat into net margins meaningfully (employer contributions can run 20–40% on top of salaries depending on member state). A 40% gross margin can become a low single-digit net margin once everything is settled.
What's a typical gross margin by industry?▾
SaaS: 70–85%. Hospitality: 65–75% on food. Grocery: 20–30%. Wholesale distribution: 10–20%. Manufacturing: 20–40%. Cross-border EU comparisons are noisy because labour, energy, and tax costs differ a lot — compare within your country first.
Does this account for VAT?▾
No — enter VAT-exclusive figures. VAT collected from customers is owed onward to the tax authority, so it isn't your revenue and shouldn't be in the margin calculation. The Reverse VAT Calculator strips VAT from a gross figure if your numbers are mixed in.
How do I price for a target margin?▾
price = cost / (1 − margin%/100). For 30% margin on €70 cost: 70 / 0.70 = €100. The Markup Calculator solves the same problem from the cost-up direction.