Free calculator
Gross Margin Calculator
Enter your revenue and cost of goods sold to get your gross margin. Or watch Claude or ChatGPT work it out from a real set of books, and say why it moved.
Work it out here
Total sales for the period, before any costs.
What it cost to make or buy what you sold.
Damodaran, NYU Stern, January 2026, 5,994 US firms.
Gross margin
39.9%
Gross profit
$178,000
Get your real margin from your books
Connect QuickBooks, Xero or NetSuite, then ask Claude or ChatGPT.
The formula: (Revenue − Cost of goods sold) ÷ Revenue × 100
Or ask Claude or ChatGPT
ChatGPT can make mistakes. Check important info.
A recorded example. Copy the question, then ask it yourself in the interactive demo.
Side by side
Typed numbers vs your real books
Typing your figures into Claude or ChatGPT works. But the assistant only knows what you typed. Here's what changes when it can read your books.
Typing the numbers
Connected to your books
What the assistant can see
Typing the numbers
The figures you typed, and nothing else.
Connected to your books
Every invoice, bill, payment and line item behind those figures.
Why the number moved
Typing the numbers
It can suggest the usual causes and ask you to go and check.
Connected to your books
It opens the bills behind the cost line and names the ones that changed.
Doing it again next month
Typing the numbers
Find the figures and type them in again.
Connected to your books
Ask the same question. The numbers are already current.
Splitting it up
Typing the numbers
You'd have to work out each category's figures first.
Connected to your books
Split by Class, Tracking Category or Department, whichever your system uses.
Trusting the answer
Typing the numbers
The assistant takes your word for the inputs.
Connected to your books
Figures come out of your accounting system, read-only, and trace back to a record.
Connect your books and skip the typing
Start a free trial, connect QuickBooks, Xero or NetSuite, and ask for your real margin.
Both assistants
Use Claude or ChatGPT, whichever you have
Kipper connects to both and returns the same figures to either, so the answer doesn't change with the tool. Pick one to see it in the demo.
ChatGPT can make mistakes. Check important info.
Connect once, then ask from either one
Read-only access to QuickBooks, Xero or NetSuite, with the same permissions behind each.
Three steps
How to calculate gross margin
Add up your revenue
Total sales for the period, before any costs come off. It's the top line of your profit and loss.
Add up your cost of goods sold
What it cost to make or buy the things you sold. Materials, the staff who made it, subcontractors. Rent and admin salaries stay out.
Subtract, then divide
Revenue minus cost of goods sold gives gross profit. Divide that by revenue and multiply by 100 for the percentage.
Gross margin
Gross profit ÷ Revenue
$178,000 ÷ $446,000 = 39.9%. The share of each sale you keep.
Markup
Gross profit ÷ Cost
$178,000 ÷ $268,000 = 66.4%. How much you added on top of what it cost you.
Same sale, same profit, two very different percentages. If you want a 30% margin on something that cost you $100, charge $142.86. Adding 30% to the cost gets you $130. That's a margin of 23.1%.
Benchmarks
Average gross margin by industry
A percentage on its own doesn't tell you much. Here are the real averages, so you can see where yours sits. Across all US firms in the dataset, the average is 37.8%.
- Software (system & application) 71.7%
- Software (internet) 62.6%
- Advertising 36.2%
- Business & consumer services 33.4%
- Retail (general) 33.2%
- Restaurant / dining 32.2%
- Retail (grocery & food) 26.3%
- Construction supplies 25.5%
The dashed line is the all-firms average. Source: Aswath Damodaran, NYU Stern, US industry dataset, January 2026, 5,994 firms. View the data.
What is a good gross margin?
It depends on what you sell. A software company with a 35% gross margin is in trouble. A grocer with 35% is doing very well.
- 1
Compare yourself with your industry first. The chart shows where you sit.
- 2
Then compare with your own last six months. The direction usually matters more than the number.
- 3
If your margin falls three points in a quarter, find out why, even if it's still above average.
The month-by-month comparison needs your real numbers. To see why your margin moved, read financial analysis with Claude or ChatGPT.
FAQ
Gross margin questions
What people ask most about the formula, and what the number means.
Connect your accounting system and ask
One read-only connection to QuickBooks, Xero or NetSuite. Then Claude or ChatGPT reads your real figures, not the ones you typed. We'll help you set it up.