Gross Margin Calculator
Product figures
Enter a value from 0 to 1,000,000.
Enter a value from 0 to 1,000,000.
Whole units are used in the totals.
Gross marginLive
64.0%
- Gross profit per unit
- $32.00
- Markup on cost
- 177.8%
- Gross profit on 20 units
- $640.00
The formula
Gross profit = revenue − cost of goods sold. Gross margin = gross profit ÷ revenue × 100.
Worked example
Ten units sold for $30 each generate $300. If each costs $18 to purchase, cost of goods sold is $180, gross profit is $120 and gross margin is 40%. Selling expenses and overhead still come out of that $120.
How to use the gross margin calculator
- Match the sales and inventory
Use the selling price and the cost of the same units.
- Read the gross contribution
Use the gross profit figure to see what is available to cover operating expenses.
Frequently asked questions
How should I combine margins on a batch?
Add revenue across the batch and subtract the total cost of units sold. Divide that combined gross profit by combined revenue. Averaging product percentages gives each item equal weight even when sales volumes differ.