Gross Margin Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Calculate the gross margin of a product or a business: gross profit as a percentage of the selling price.
Result
Gross margin
Gross profit per unit
- Markup
- Total gross profit
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Cost per unit, in dollars: enter 0.01 or more.
- Selling price per unit, in dollars: enter 0.01 or more.
- Units sold: enter 0 or more.
- Read the result: Gross margin; the panel also shows Gross profit per unit, Markup and Total gross profit.
How this calculator works
Gross margin = (revenue − cost of goods sold) ÷ revenue × 100. For one product, revenue is the selling price and the cost is what the unit costs you; for a company, use revenue and cost of goods sold from the income statement.
Gross margin leaves out rent, wages that are not part of production, marketing and taxes, which come into operating and net margin.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Cost per unit | $ | |
| Selling price per unit | $ | |
| Gross profit per unit | $ | |
| Gross margin | % |
Worked example
| Cost per unit | $60 |
|---|---|
| Selling price per unit | $100 |
| Units sold | 1 |
| Gross profit per unit | $40.00 |
|---|---|
| Markup | 66.67% |
| Total gross profit | $40.00 |
Gross margin 40%
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the gross margin on an item that costs $30 and sells for $50?
40%: $20 of gross profit on a $50 price.
What price gives a 40% margin on a $30 cost?
Price = cost ÷ (1 − margin) = $30 ÷ 0.6 = $50.