How to Calculate Gross Profit and Net Profit Margin
Quick Answer
To calculate gross profit, subtract your cost of goods sold from your revenue. To calculate net profit margin, subtract all costs from revenue and divide the result by revenue. Then multiply by 100. A business with $50,000 in revenue and $8,000 in net profit has a net profit margin of 16%. You can use our profit margin calculator for the profit of a single sale.
This guide looks at your whole business instead. You will learn the three profit margins and the exact formula for each. You will also see two full examples and a simple way to read the results.
Key Takeaways
- Gross margin shows whether your prices cover your product costs.
- Operating margin shows whether your running costs are under control.
- Net margin shows how much of each sales dollar you keep.
What Is Profit Margin for a Business?
Profit margin is the share of your revenue that stays as profit after you pay costs. It is a percentage. That makes it easy to compare months and years even when your sales change in size.
A business has three profit margins because it has three layers of cost. Each margin uses totals from your income statement. None of them describe a single product or sale.
| Margin | What it shows | Formula |
|---|---|---|
| Gross profit margin | How your prices compare with product costs | Gross profit divided by revenue times 100 |
| Operating profit margin | How well daily operations earn before interest and tax | Operating profit divided by revenue times 100 |
| Net profit margin | What you keep after every cost | Net profit divided by revenue times 100 |
Every formula in this guide follows one pattern. Take a profit figure and divide it by revenue. Then multiply by 100.
The Order of an Income Statement
Your income statement lists money in a fixed order. Every margin comes from this order.
- Start with your revenue.
- Subtract cost of goods sold to get gross profit.
- Subtract operating expenses to get operating profit.
- Subtract interest and taxes to get net profit.
Learn this order and the formulas become easy to remember.
How to Calculate Gross Profit
Gross profit is your revenue minus the cost of goods sold. Cost of goods sold (COGS) covers what you spend to make or buy the items you sell.
Gross Profit = Revenue minus Cost of Goods Sold
Gross Profit Margin (%) = Gross Profit divided by Revenue times 100
Some people call the gross profit margin the gross profit ratio. Others call it gross margin. All three names mean the same thing. Gross margin is one type of profit margin and it does not show the whole picture.
A low gross margin means your prices barely cover your product costs. Fix pricing or sourcing before you look at anything else.
What Counts as Cost of Goods Sold?
Cost of goods sold includes only the direct cost of your products. Everything else belongs to operating expenses.
| Cost | Where it usually goes |
|---|---|
| Raw materials | Cost of goods sold |
| Wholesale price of items you resell | Cost of goods sold |
| Wages of staff who make the product | Cost of goods sold |
| Packaging | Cost of goods sold |
| Shipping to the customer | Depends on your policy |
| Payment processing fees | Depends on your policy |
| Rent and utilities | Operating expense |
| Marketing and ads | Operating expense |
| Office salaries | Operating expense |
| Software and subscriptions | Operating expense |
Pick one rule for the items marked policy. Then use that rule every month. A changing rule makes your margins impossible to compare. Your accountant can confirm the right treatment for your business.
How to Calculate Operating Profit Margin
Operating profit is your gross profit minus your operating expenses. Accountants often call this figure operating income.
Operating Profit = Gross Profit minus Operating Expenses
Operating Profit Margin (%) = Operating Profit divided by Revenue times 100
This margin shows how well your core business earns. Interest and taxes do not affect it. That makes it a fair way to compare businesses that carry different loans.
How to Calculate Net Profit Margin
Net profit is your operating profit minus interest and taxes and any other costs. It is the bottom line of your income statement.
Net Profit = Operating Profit minus Interest minus Taxes minus Other Costs
Net Profit Margin (%) = Net Profit divided by Revenue times 100
What is net margin in simple terms? It is the share of each sales dollar you keep after every cost. When people say profit margin with no other label they usually mean this figure.
Example 1: A Small Online Shop
A small online shop earned $50,000 in revenue last year. Its cost of goods sold was $30,000. Its operating expenses were $10,000. It paid $2,000 in interest and taxes. These numbers are illustrative.
| Step | Calculation | Result |
|---|---|---|
| Gross profit | $50,000 minus $30,000 | $20,000 |
| Operating profit | $20,000 minus $10,000 | $10,000 |
| Net profit | $10,000 minus $2,000 | $8,000 |
| Margin | Calculation | Result |
|---|---|---|
| Gross profit margin | $20,000 divided by $50,000 times 100 | 40% |
| Operating profit margin | $10,000 divided by $50,000 times 100 | 20% |
| Net profit margin | $8,000 divided by $50,000 times 100 | 16% |
The shop keeps 16 cents of every sales dollar. The margin shrinks at each step. That is normal. Look at the biggest drop. Gross margin falls from 40% to 20% once operating expenses come out. Those costs take 20 cents of every sales dollar. That is where this shop should look first.
Example 2: A Service Business
A freelance design studio earned $12,000 in one month. It paid $3,000 to contractors and project software. It paid $5,000 for rent and marketing and accounting. It paid $700 in interest and taxes.
| Step | Calculation | Result |
|---|---|---|
| Gross profit | $12,000 minus $3,000 | $9,000 |
| Operating profit | $9,000 minus $5,000 | $4,000 |
| Net profit | $4,000 minus $700 | $3,300 |
| Margin | Calculation | Result |
|---|---|---|
| Gross profit margin | $9,000 divided by $12,000 times 100 | 75% |
| Operating profit margin | $4,000 divided by $12,000 times 100 | 33.3% |
| Net profit margin | $3,300 divided by $12,000 times 100 | 27.5% |
Service businesses sell time and skill instead of goods. Their gross margins often look high. The operating margin gives a clearer view of how the studio really performs.
How to Read Your Three Margins Together
| Pattern | Likely meaning | Check first |
|---|---|---|
| Gross margin high and operating margin low | Running costs are too heavy | Rent and payroll and advertising spend |
| Gross margin low | Prices barely cover product costs | Supplier prices and discounts |
| Operating margin healthy and net margin low | Interest or taxes take a large share | Loan terms and tax planning |
| All three margins fall for several months | Costs grow faster than sales | Every cost line |
How to Improve Your Profit Margins
You have two levers. You can earn more from each sale or spend less on each sale. Use the online shop again and hold every other cost equal.
- A 5% price rise lifts revenue to $52,500. Net profit becomes $10,500. Net margin rises from 16% to 20%.
- A 5% cut in cost of goods sold lowers it from $30,000 to $28,500. Net profit becomes $9,500. Net margin rises from 16% to 19%.
These figures ignore the tax on the extra profit. They still show how strongly price affects margin. Set prices from cost with care. Margin and markup are different measures. Our guide on profit margin vs markup explains how to convert between them before you change a price.
Track all three margins every month. Watch the trend and not a single number. A margin that moves from 12% to 15% has risen by 3 percentage points. That is also a 25% relative increase. Our guide on percentage increase and decrease shows how to tell the two apart.
Common Profit Margin Mistakes
- Mixing time periods. Use revenue and costs from the same period.
- Counting a cost twice. Put each cost on one line only.
- Changing your cost rules. Treat shipping and fees the same way every month.
- Leaving costs out. Refunds and card fees and your own pay belong in the numbers.
- Judging by gross margin alone. A healthy gross margin can hide a loss once operating costs come out.
- Comparing with the wrong businesses. Margins differ a lot between industries.
Frequently Asked Questions
Subtract your cost of goods sold from your revenue. A business with $50,000 in revenue and $30,000 in cost of goods sold has a gross profit of $20,000.
Net profit margin equals net profit divided by revenue times 100. Net profit is revenue minus every cost. It includes product costs and operating expenses plus interest and taxes.
Gross margin removes only the cost of goods sold. Net margin removes every cost. Net margin is therefore always equal to or lower than gross margin.
Operating profit margin shows the share of revenue left after product costs and operating expenses. It ignores interest and taxes. Divide operating profit by revenue and multiply by 100.
Calculate them every month. Compare each month with the month before and with the same month last year. Monthly checks show problems early.