Gross Profit Margin Calculator
Revenue minus cost of goods, as a percentage.
Calculate gross profit margin from revenue and cost of goods sold, with the markup equivalent and what the margin leaves for overheads.
Gross profit margin
60.0%
$30.00 on $50.00
Everything else: advertising, overheads, your own wages, has to come out of this figure.
How the Gross Profit Margin Calculator works
Gross margin is the share of revenue left after the direct cost of the goods you sold, before any overhead. It is the first number that tells you whether a product can work at all: everything else: advertising, rent, salaries, your own wages, has to come out of it.
Also known as: GP margin calculator · gross margin percentage · gross profit percentage · gross profit margin formula · GP margin formula · gross profit margin percentage · gross margin calculator · gross profit calculator
The underlying calculation
Gross profit margin is revenue less the cost of goods sold, divided by revenue. Written out: (price − cost) ÷ price, expressed as a percentage. The denominator is the price, not the cost, that single detail is the difference between margin and markup, and confusing the two is the most expensive arithmetic error in retail.
What belongs in cost of goods is anything that varies directly with a unit sold: the item itself, inbound freight, duty, and any per-unit assembly or packing that only happens because the unit exists. What does not belong is rent, salaries, software or advertising, all of which sit below the gross margin line in operating expenses.
An example
An item costs $18 landed and sells for $45. Gross profit is $27, and $27 ÷ $45 is 60%. That is the margin.
The markup on the same item is $27 ÷ $18, which is 150%. Both figures are correct and they describe the same transaction, but a seller who thinks in markup and applies a 60% figure will price the item at $28.80 rather than $45, a 36% shortfall on a product they believed was correctly priced.
The gap widens as the number rises. At a 50% margin the markup is 100%. At 75% margin the markup is 300%. Anyone who has priced from a spreadsheet inherited from someone else has probably met this problem without identifying it.
What gets missed
Gross margin says nothing about whether the business makes money. A shop running 60% gross and spending 35% of revenue on advertising, 15% on fulfilment and 12% on overheads is losing two points on every sale, and the gross margin figure looks excellent throughout.
It is also sensitive to what you decide to put in cost of goods. Moving inbound freight from cost of goods to operating expenses raises gross margin by several points without changing a single thing about the business. That is legitimate accounting and it means gross margins are only comparable between businesses that draw the line in the same place.
What this changes
Use gross margin to compare products against each other within your own business, where the cost definition is consistent. It is the right tool for deciding which lines deserve stock, promotion and shelf space.
Do not use it to decide whether to run a discount, that question needs contribution margin, which subtracts every variable cost rather than only the goods. And do not use it as a health check on the business, which needs net margin. Gross margin answers one question well and three questions badly, and most of the trouble it causes comes from using it for the other three.
What a healthy gross margin looks like
There is no universal figure, and the ranges that get quoted are more useful as a sanity check than a target. Handmade and craft products commonly run 55% to 75% because labour is embedded in the cost and the price carries a craft premium. Resale and dropshipping run 20% to 40% because the product is a commodity someone else made. Private label sits between, typically 50% to 65%.
What matters more than the level is whether the margin can carry everything that comes after it. Work backwards: if advertising takes 20% of revenue, fulfilment 12% and overheads 10%, then 42 points of gross margin are already committed before any profit exists. A 45% gross margin business in that shape is running on three points, which is not a business so much as a rehearsal for one.
That backwards calculation is the useful one, and it is why two businesses with identical gross margins can be in completely different positions. The number is only meaningful against the cost structure sitting behind it.
Where to go next
The Gross Profit Margin question rarely arrives on its own. These are the ones that usually come with it:
- Net Profit Margin Calculator — What survives after every cost, as a percentage.
- Markup vs Margin Calculator — The same sale, two very different percentages.
- Contribution Margin Calculator — What each sale contributes toward fixed costs.
- Etsy Fee Calculator — Every Etsy fee on one sale, itemised.
Not financial advice. Marketplace fees change, and they vary by country, plan and seller status. Every rate here is an editable default, not a quoted price, check the platform's current fee schedule before you price a product against it. This is not tax or business advice.
Frequently asked questions
How do you calculate gross profit margin?
(Revenue − cost of goods sold) ÷ revenue × 100. On a £50 sale with £20 of goods, gross profit is £30 and gross margin is 60%. Note the denominator is revenue, not cost, dividing by cost gives markup instead, which is a much larger number.
What is a good gross margin?
It varies enormously by model. Retail and general ecommerce often run 30-50%. Handmade and private label can reach 60-70%. Dropshipping frequently sits at 15-25%, which is why it needs volume. Software approaches 80-90%. Compare against your own sector, not a universal figure.
What counts as cost of goods sold?
Only costs that scale directly with each unit: materials, manufacturing, inbound freight, packaging, and the per-unit fulfilment cost. Marketing, software subscriptions, rent and salaries are operating expenses and belong below the gross margin line.
Why is my gross margin healthy but my business unprofitable?
Because gross margin ignores everything except cost of goods. A 60% gross margin means nothing if advertising consumes 40% of revenue and overheads take the other 25%. Net margin is the number that answers whether the business works.
Put this calculator on your own site
Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.
<iframe src="https://www.thecalclibrary.com/embed/gross-profit-margin-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Gross Profit Margin Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/gross-profit-margin-calculator" style="color:#64748b">Gross Profit Margin Calculator</a> from The Calc Library</p>The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.
Related calculators
Net Profit Margin Calculator
What survives after every cost, as a percentage.
OpenMarkup vs Margin Calculator
The same sale, two very different percentages.
OpenContribution Margin Calculator
What each sale contributes toward fixed costs.
OpenEtsy Fee Calculator
Every Etsy fee on one sale, itemised.
Open