The gross margin ratio is the share of revenue left after the cost of goods sold, shown as a percentage: (revenue less COGS) / revenue. It tells you how much of every sales dollar is available to cover overheads, marketing, wages and profit before any of those costs are paid. It is also called gross profit margin or simply gross margin.
For finance teams it is the first read on whether the core product or service makes money before any overheads are counted. A healthy gross margin gives you room to fund operations, marketing and growth; a thin one means even small cost rises or a round of discounting can wipe out profit. It sits at the top of the income statement, directly below revenue and above operating and net margin, which is why it is often the first ratio anyone checks.
Revenue left after COGS.It is (revenue less cost of goods sold) divided by revenue, as a percentage.
It covers everything else.The margin funds overheads, wages, marketing and profit, so higher is generally better.
Compare within an industry.A good ratio for software is very different from one for groceries, so benchmark against peers.
Subtract the cost of goods sold from revenue to get gross profit, then divide gross profit by revenue and multiply by 100. The formula is simple, but the answer is only as good as your COGS figure. COGS includes the direct costs of making the sale: raw materials and components, the direct labour that produces the goods or delivers the service, and inbound freight. It deliberately excludes rent, admin and sales salaries, marketing, distribution and finance costs, which all sit lower down the income statement as operating expenses. Draw that line in the same place every period and the trend you see is real. Use the calculator below to get your margin, gross profit and cost share for any pair of numbers.
Use direct costs only for COGS. General information, not financial advice.
So $500,000 in revenue with $300,000 of COGS gives $200,000 gross profit and a 40% gross margin ratio: 40 cents of every sales dollar is left to run the business. Read it per dollar and the ratio stops being abstract. At 40%, every $1,000 invoice contributes $400 toward your overheads and profit, so you can see immediately how many sales it takes to cover a fixed cost. Track margin alongside how fast you collect, since a strong margin only helps cash flow once invoices are actually paid. Our accounts receivable reporting shows margin in context with overdue balances.
The gross margin ratio measures profit after only the direct cost of sales, while net profit margin measures what is left after all costs, including overheads, interest and tax. Gross margin tells you whether the product itself is profitable; net margin tells you whether the whole business is. A company can have a strong gross margin and still lose money overall if overheads are too high, which is why investors rarely look at one without the other.
| Margin | Costs deducted | What it tells you |
|---|---|---|
| Gross margin | Direct cost of sales (COGS) only. | Whether the product itself is profitable. |
| Operating margin | COGS plus operating expenses. | Whether day-to-day operations make money. |
| Net profit margin | All costs, including interest and tax. | Whether the whole business is profitable. |
Reading all three together shows where profit is won or lost: a wide gross margin that shrinks to a thin net margin points at bloated overheads, not a product problem, while a thin gross margin tells you the issue starts with the product or its pricing. For the full set of profitability measures, see margin analysis.
A good gross margin ratio depends entirely on the industry: software and services often run 70% or higher, while retail and grocery can be healthy in the single or low double digits. The number on its own means little, so always compare against direct competitors and your own trend over time. Manufacturing and wholesale typically land somewhere in the middle, often 20% to 40%, because physical inputs eat more of each sale. A falling gross margin is a warning sign that costs are rising faster than prices, that discounting has crept in, or that your sales mix has shifted toward lower-margin lines. A rising one suggests pricing power, a better product mix, or tighter cost control. The trend matters more than any single reading, and a steady margin through a period of rising input costs is itself a sign of a well-run business. Benchmark against published figures for your sector, then judge yourself mainly against your own history.
You improve gross margin by raising prices, lowering the direct cost of sales, or shifting your mix toward higher-margin products, and small moves compound quickly. Because the ratio is so sensitive, a modest price increase that customers accept usually does more for margin than chasing supplier discounts.
Review pricing regularlyRevisit prices rather than leaving them static for years, since a small accepted rise moves margin most.
Reprice low-margin linesRetire or reprice products that persistently drag your average margin down.
Negotiate input costsUse rising volume as leverage to bring down the direct cost of what you sell.
Control discountingHabitual end-of-quarter discounts and unmanaged early-payment offers quietly erode margin, so set clear rules.
Discounting is the lever that is easiest to overlook. Paidnice can automate disciplined prompt payment discounts so you pull cash forward without giving away more margin than you intend.
Gross margin sets the ceiling on the cash a sale can ever generate, but only collections turn that margin into money in the bank. A high gross margin business that lets invoices run 60 or 90 days past due can still be starved of cash, because the profit is locked up in outstanding receivables rather than funding payroll. This is the gap finance teams feel most. The two levers work together: protect margin on the way in by pricing well and discounting with discipline, then shorten the time to collect on the way out. Automating reminders, statements and follow-up with AR automation means the margin you earned actually arrives, and arrives sooner, which is the whole point of measuring it.
The most common mistake is putting the wrong costs into COGS, which distorts the ratio and makes comparisons meaningless. Include only the direct costs of producing what you sold; leave admin salaries, rent and marketing in operating expenses. Two other traps catch people out. The first is confusing markup with margin: a 50% markup on cost is only a 33% margin, so quoting the two interchangeably overstates how profitable you are. The second is comparing gross margin across industries with very different cost structures, which tells you nothing useful. Keep the definition consistent period to period so the trend is real, and watch for one-off costs landing in COGS and skewing a single quarter.

Don't let these critical mistakes hurt your
collections - See how to fix them, today!