Gross Margin Calculator
Calculate gross profit and gross margin percentage.
Calculator Inputs
Your Result
Enter your details and press Calculate to see your result.
Formula
How it works
- Enter your total revenue.
- Enter your cost of goods sold (COGS).
- View your gross profit and gross margin percentage.
Share on Social Media:
Gross margin is the share of revenue left after paying the direct cost of what you sold. Enter revenue and cost of goods sold (COGS) to get gross profit and gross margin.
Formulas and example
- Gross profit = Revenue − COGS
- Gross margin = Gross profit ÷ Revenue × 100
Revenue $100,000, COGS $60,000: gross profit $40,000, gross margin 40%.
What goes into COGS?
Direct costs of producing or buying what you sold: materials, inventory purchases, direct labour and manufacturing overheads. Not rent for offices, marketing or admin salaries; those are operating expenses, which come out later and affect net margin.
Margin vs markup
| Measure | Formula | Same product |
|---|---|---|
| Margin | Profit ÷ Selling price | $40 profit on a $100 sale = 40% |
| Markup | Profit ÷ Cost | $40 profit on a $60 cost = 66.7% |
Confusing the two is a common pricing mistake: a 40% markup gives only a 28.6% margin.
Typical gross margins
They vary hugely: grocery retail often runs at 20–30%, while software can exceed 70–80%. Compare yourself with your own industry.