Gross Margin Calculator
Find gross margin, gross profit, and profit per unit from your cost and selling price.
Published by Blueprint Dynamics. Planning tools, not professional advice. Read the formula, assumptions, and examples below before relying on a result. Independent professional review is not claimed. Learn more about our methodology →
AllTemplates • Blueprint Dynamics • hello@bpdynamics.io. Educational worksheet; entries and assumptions are not independently verified. This document is not tax, legal, medical, investment or engineering approval. Review current official rules and seek a qualified specialist where appropriate.
Specialist review required for real decisions
Simplified management models, not GAAP statements, audited accounts, investment advice or a financing forecast. An accountant must check classifications, periods and reconciliation for formal use.
Primary reading context, not an endorsement or evidence that the linked organization reviewed this tool. No independent professional sign-off is claimed.
About the Gross Margin Calculator
Gross margin is the percentage of each sales dollar left after you pay for the product itself, and it is the number that ultimately decides whether a business can survive. Two companies can sell the same volume at the same price, but the one with the healthier gross margin has more room to cover overhead, weather price wars, and reinvest. This calculator turns your unit cost and selling price into that margin instantly, plus the profit each unit and each batch produces.
It also distinguishes margin from markup — two figures people constantly confuse. Markup is measured against your cost; margin is measured against your selling price. Mixing them up leads to underpricing that quietly erodes profit, so seeing both from the same inputs is a quick guard against a common and expensive mistake.
For anyone setting prices, sourcing suppliers, or evaluating a product line, gross margin is the first diagnostic: it tells you whether the unit economics work before overhead even enters the picture.
How the Gross Margin Calculator works
You enter three inputs: Unit Cost, Selling Price, and Units Sold. The calculator first finds Profit per Unit = Selling Price − Unit Cost. From there, Gross Margin = Profit per Unit ÷ Selling Price, expressed as a percentage — the share of the price that is profit.
It also shows Markup = Profit per Unit ÷ Unit Cost, so you can see the same spread measured against cost rather than price. Because margin divides by the larger number (price) and markup divides by the smaller number (cost), markup is always the higher percentage — an easy way to catch which one you are looking at.
Finally, Total Gross Profit = Profit per Unit × Units Sold scales the per-unit economics up to the batch or period level. This is pre-overhead profit: it covers everything except your fixed costs, which you subtract separately to reach net profit.
Worked example
With the defaults, Unit Cost is $40, Selling Price is $100, and Units Sold is 500. Profit per Unit is $100 − $40 = $60. Gross Margin is $60 ÷ $100 = 60% — sixty cents of every sales dollar is gross profit.
Markup, measured against cost, is $60 ÷ $40 = 150% — notice how much larger the markup percentage looks than the margin for the identical dollar spread, which is exactly why the two must not be confused. Scaling up, Total Gross Profit is $60 × 500 = $30,000. If a supplier raised your unit cost to $55, profit per unit would fall to $45, margin would drop to 45%, and total gross profit on 500 units would slide to $22,500 — a $7,500 hit from a $15 cost increase.
Tips & common mistakes
- Never set prices from markup while thinking in margin. A 50% markup on cost is only a 33% margin on price, and confusing the two systematically underprices your product.
- Include every per-unit cost in Unit Cost — materials, inbound freight, packaging, and payment processing — not just the factory price, or your margin will read higher than reality.
- Compare your gross margin to your industry norm; retail and food often run thin, while software and services run high, so a 'good' margin is entirely context-dependent.
- Remember gross margin is before overhead. A 60% gross margin can still leave a net loss if rent, salaries, and marketing consume more than the gross profit.
- Use the total gross profit figure to test volume-versus-price trade-offs — sometimes a small price cut that lifts units sold raises total gross profit, and sometimes it destroys it.
Gross Margin Calculator: frequently asked questions
What is the difference between margin and markup?
Margin is profit as a percentage of the selling price; markup is the same profit as a percentage of cost. On the defaults, a $60 profit on a $100 price is a 60% margin but a 150% markup because it divides by the $40 cost. Markup is always the larger number for the same dollar spread.
What should I include in unit cost?
Include all costs directly tied to producing or delivering one unit: raw materials, inbound shipping, packaging, and per-transaction payment fees. Leaving any of these out makes your gross margin look better than it truly is and can lead to underpricing.
Is gross profit the same as net profit?
No. Gross profit is revenue minus the direct cost of goods, before overhead. Net profit subtracts fixed costs like rent, salaries, and marketing. A product with a strong 60% gross margin can still produce a net loss if overhead is too high relative to volume.
What counts as a good gross margin?
It depends entirely on the industry. Grocery and restaurants often operate on thin margins offset by volume, while software and consulting can exceed 70%. Compare your margin to peers in your sector rather than to a universal target.
How does total gross profit help with pricing decisions?
It scales per-unit economics to reality, so you can test trade-offs. A price cut that boosts units sold may raise or lower total gross profit; multiplying the new profit per unit by the new volume shows which effect wins before you commit.