Gross vs Net Profit Margin: Formula, Difference, Example

Jul 20, 2026

Try it now, capture a real invoice

Your file is processed for the demo only and never stored.

Gross profit margin and net profit margin both measure profitability as a percentage of revenue, but they subtract different costs. Gross margin subtracts only the cost of goods sold, showing how profitable your products are before overhead. Net margin subtracts every expense, operating costs, interest, and taxes, showing what actually reaches the bottom line. Reading them together tells you whether a profit problem sits in production costs or in everything that happens after.

The two numbers sit at the top and bottom of the income statement, and the distance between them is where operating expenses, financing, and taxes live. Here are the formulas, a worked example, where operating margin fits in between, and what a good margin looks like.

Gross vs net profit margin: the formulas

MarginFormulaSubtracts
Gross profit margin(Revenue minus COGS) divided by revenueCost of goods sold only
Operating marginOperating income divided by revenueCOGS plus operating expenses
Net profit marginNet income divided by revenueAll costs, interest, and taxes

Each margin peels back one more layer of cost. Gross margin stops after production. Operating margin also removes selling, general, and administrative expenses. Net margin removes what is left, including interest on debt and income tax, to land on net income.

What is gross profit margin?

Gross profit margin is revenue minus cost of goods sold, divided by revenue, expressed as a percentage. It measures how efficiently a company turns direct production costs into profit before any overhead. A 60 percent gross margin means 60 cents of every sales dollar remains after the direct cost of making the product, available to cover operating expenses and profit. Because it isolates production economics, gross margin is the first place to look when pricing or input costs change. The direct costs it subtracts are your cost of goods sold.

What is net profit margin?

Net profit margin is net income divided by revenue, expressed as a percentage. It is the most complete profitability measure because it subtracts every cost the business incurs: production, operating expenses, interest, and taxes. A 10 percent net margin means the company keeps 10 cents of profit from every dollar of sales after all expenses. Net margin is the number investors and lenders watch most, because it reflects the full picture of how well revenue converts into actual earnings.

How do you calculate net profit margin?

Divide net income by revenue and multiply by 100. Net income is the last line of the income statement, after COGS, operating expenses, interest, and taxes have all been subtracted from revenue. If a company earns $2 million in revenue and $200,000 in net income, the net profit margin is 10 percent. The calculation is straightforward; the work is making sure every expense, including often-overlooked items like interest and one-time charges, is captured in net income first.

Worked example: gross vs net margin

Take a company with $2,000,000 in revenue for the year:

  • Cost of goods sold: $800,000.
  • Operating expenses (SG&A): $760,000.
  • Interest expense: $80,000.
  • Income taxes: $72,000.

Working down the statement:

  • Gross profit = $2,000,000 minus $800,000 = $1,200,000. Gross margin = 60 percent.
  • Operating income = $1,200,000 minus $760,000 = $440,000. Operating margin = 22 percent.
  • Net income = $440,000 minus $80,000 interest minus $72,000 tax = $288,000. Net margin = 14.4 percent.

The 60 percent gross margin says the products themselves are healthy. The drop to 14.4 percent net shows that operating costs, financing, and taxes consume most of that gross profit. If gross margin were fine but net margin thin, you would focus on overhead and financing, not pricing.

What is the difference between gross and net profit margin?

The difference is the range of costs each one subtracts. Gross profit margin subtracts only the direct cost of goods sold, measuring product profitability before overhead. Net profit margin subtracts every expense, including operating costs, interest, and taxes, measuring the profit that actually reaches the bottom line. Gross margin is almost always the higher number, and the gap between the two shows how much of your product profit is eaten by everything that is not direct production cost. Watching both tells you where margin pressure comes from.

Where operating margin fits

Operating margin sits between the two and is often the most useful for judging the core business. It subtracts operating expenses from gross profit but leaves out interest and taxes, so it reflects how profitable operations are regardless of how the company is financed or taxed. A strong gross margin with a weak operating margin points to bloated overhead. A strong operating margin with a weak net margin points to heavy debt or a high tax burden. Comparing all three margins isolates exactly which layer is dragging profitability down, which is the starting point for any budget variance analysis.

What is a good net profit margin?

A good net profit margin depends on the industry. Software and other asset-light businesses can run net margins above 20 percent, while grocery, retail, and construction often operate on low single digits because their cost structures are heavy. As a rough guide, a net margin around 10 percent is considered healthy across many industries, 20 percent is strong, and 5 percent or below is thin. The more useful comparison is against your own history and direct competitors: a margin that is rising over time and at or above your peers matters more than hitting any absolute benchmark.

How to improve your margins

Gross margin improves through pricing and input costs: raising prices where the market allows, negotiating better supplier terms, and reducing waste in production. Net margin improves through those plus operating discipline, controlling overhead, financing efficiently, and cutting avoidable expenses. Because the numbers come straight off the income statement, clean and current books matter; teams that keep their accounting records in QuickBooks up to date can pull accurate margins on demand instead of waiting for a manual reconciliation. Related to the gross side, contribution margin, which strips out all variable costs rather than just COGS, is covered in our guide to contribution margin.

The bottom line

Gross profit margin measures product profitability before overhead, and net profit margin measures what survives after every cost, with operating margin bridging the two. Track all three, because the distance between them tells you whether margin pressure comes from production, overhead, or financing and taxes. Compare each against your own trend and your industry rather than a single benchmark, and the three margins together become a fast diagnostic for where profit is won or lost.

Stop keying invoices by hand

AutoPayables captures vendor, amounts and dates from any invoice with AI, routes approvals, and syncs to QuickBooks, Xero, NetSuite or Sage Intacct.

See the product

From the same family of tools