Margin Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter what an item costs you and what you sell it for to get its gross margin, its markup and the profit it makes.
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 = (selling price − cost) ÷ selling price × 100. It is the share of each sales dollar left after paying for the goods sold (cost of goods sold, COGS).
Markup = (selling price − cost) ÷ cost × 100. Markup is measured on cost, margin on price, so the markup is always the larger of the two percentages for a profitable sale.
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 difference between margin and markup?
Both use the same profit. Margin divides it by the selling price, markup by the cost: an item that costs $60 and sells for $100 has a 40% margin and a 66.67% markup.
Can a margin be over 100%?
No. Margin is profit as a share of the price, so it stays below 100% as long as the cost is above zero. Markup has no upper limit.
Is gross margin the same as net margin?
No. Gross margin only subtracts the cost of the goods. Net margin also subtracts operating costs, interest and taxes.