Method
How to calculate gross margin
Gross profit is revenue less direct cost. Dividing that profit by revenue makes businesses of different sizes easier to compare.
Worked example
Gross margin calculator example
Revenue of $120,000 and direct cost of $72,000 produce $48,000 in gross profit.
Change one assumption at a time to see what drives the result. The output is an estimate, not a quote, forecast or recommendation.
Rule
Exact rule used by the gross margin calculator
Gross profit is revenue minus the direct cost of what was sold. Gross margin is that profit divided by revenue, shown as a percentage, and the cost share on the page is the complement. A margin of 27% means 73 cents of each revenue dollar goes to direct cost.
If revenue is zero the margin is undefined. If direct cost exceeds revenue the margin is negative. Which costs count as direct, such as materials, production labor or fulfillment, depends on the business and its accounting policy, so apply the same definition each period.
Step by step
Worked through step by step
With revenue of $84,000 and cost of goods sold of $61,320, gross profit is $22,680 and gross margin is 27.00%. To reach 35% on the same cost base, revenue would have to be $61,320 divided by 0.65, which is $94,338, an increase of about 12.3%.
The cost share of 73% is also the lever to watch. A one-point rise in cost share, from 73% to 74%, takes the margin from 27% to 26% whatever the revenue level is.
Pitfalls
Common mistakes with the gross margin calculator
- Mixing up margin and markup. A 27% margin corresponds to a markup of 37% on cost, not 27%.
- Using revenue before returns and discounts. Net revenue gives the figure that was actually earned.
- Including overhead such as rent or administration in cost of goods sold. Those usually sit below gross profit.
- Comparing margins across industries. Retail, software and manufacturing carry very different direct-cost structures.
FAQ
Gross margin calculator FAQ
Is gross margin the same as markup?
No. Margin divides profit by selling price or revenue; markup divides profit by cost.
Does gross margin include overhead?
Usually not. Rent, administration and other operating costs sit below gross profit unless they are classified as direct costs.
Can gross margin exceed 100%?
Not under ordinary positive revenue and cost inputs. Negative costs or accounting adjustments require a fuller model.
What is a good gross margin?
It depends on the industry and the business model, so compare against your own history and similar businesses rather than a single number.
Should revenue be net of returns and discounts?
Yes. Use net revenue so the margin reflects what the business kept, and use the same basis for cost of goods sold.