Home/Gross Margin Calculator

Gross Margin Calculator

Calculate gross margin, markup, and profit percentage for any product or service.

What this calculator does

This gross margin calculator turns revenue and cost of goods sold into the three figures pricing decisions actually rest on: gross profit in dollars, gross margin as a percentage of revenue, and the equivalent markup on cost. Enter what you sold for and what it cost you to deliver, and it returns all three along with a table showing how markup and margin correspond at different levels.

Gross margin measures the profitability of the thing you sell, before any overhead. It is deliberately narrow, and that narrowness is what makes it useful — it isolates whether the product itself makes money, separate from whether the company does.

When to use it

The most common moment is setting or reviewing a price. Working backward from a target margin gives a defensible number rather than a guess, and it is the only way to be sure a price increase actually delivers the profit you intended once volume effects are considered.

It is also the right tool for a mix question. When two products sell at similar prices but one carries a 55 percent margin and the other 22, the sales effort behind them should not be equal. Run each line separately, and use the comparison to decide where to push, where to reprice, and which line to quietly discontinue rather than defend.

Understanding the inputs

Revenue should be net of discounts, refunds, and returns — the money you kept, not the money you invoiced. Gross revenue with a healthy return rate hidden inside it will flatter margin by several points.

Cost of goods sold includes only costs that move with volume: materials, inbound freight, direct labor, and payment processing. Rent, salaries for administrative staff, and marketing belong below the line. The unit cost field drives the markup table, so enter the fully loaded cost of one unit rather than a materials-only figure if you want the resulting price guidance to be reliable.

How is this calculated?

Gross Profit = Revenue − COGS. Gross Margin % = (Gross Profit / Revenue) × 100. Markup = (Gross Profit / COGS) × 100.

A worked example

A distributor books $480,000 in annual revenue against $312,000 in cost of goods sold. Gross profit is $168,000, gross margin is 35 percent, and the equivalent markup on cost is roughly 54 percent. Every dollar of sales leaves 35 cents to cover rent, payroll, and everything else before profit.

Suppose renegotiating with suppliers cuts cost of goods to $288,000. Gross margin rises to 40 percent and gross profit to $192,000 — an extra $24,000 with no additional sales. Reaching the same $24,000 through growth at the original 35 percent margin would require close to $69,000 in new revenue, which is a far harder year's work.

Limitations and assumptions

Gross margin says nothing about whether the business is profitable overall. A company can run an 80 percent gross margin and still lose money if overhead outstrips gross profit, which is the normal condition of most early-stage software businesses.

The figure is also only as good as your cost classification, and there is real judgment in where the line falls — particularly for support costs, freelance labor, and warehousing. Move an item across the line and margin shifts without anything real changing. If the number will appear in an investor deck, a bank application, or your income statement, agree the treatment with your accountant and then apply it consistently.

Common Questions

What is the difference between margin and markup?
Margin is profit as a percentage of the selling price; markup is profit as a percentage of cost. They describe the same dollars from different ends. A 40 percent margin is a 67 percent markup, and a 50 percent markup is only a 33 percent margin — which is why confusing them systematically underprices a business.
What belongs in cost of goods sold?
Only costs that vary directly with what you sell: materials, inbound freight, direct production labor, manufacturing overhead, and for software the hosting and support attributable to serving customers. Rent, marketing, and salaried administration are operating expenses and sit below the gross margin line, not inside it.
What is a healthy gross margin?
It varies enormously by model, so treat any single number with caution. As a common rule of thumb, SaaS businesses aim for 70 to 85 percent, professional services for 40 to 60, manufacturing for 25 to 40, and grocery retail can operate below 25. Compare against your own sector, not a cross-industry average.
Should payment processing fees reduce gross margin?
Yes. Card fees of 2 to 3 percent scale directly with sales and behave exactly like a cost of goods. Leaving them out overstates gross margin by a couple of points, which matters when you are trying to hold a target within a percentage point or two.
Why is gross margin more important than net margin for pricing?
Gross margin is the part you control at the moment of the sale. Net margin depends on overhead decisions made months earlier. When you are deciding what to charge or whether to accept a deal, gross margin is the number that answers the question in front of you.
My revenue grew but gross margin fell. What happened?
Usually mix or discounting. Growth driven by lower-margin products, larger customers negotiating better terms, or a promotion that ran longer than planned all raise revenue while diluting margin. Break the figure down by product line and by customer segment before assuming input costs are to blame.
How much does one point of gross margin actually matter?
More than most owners assume, because it drops directly to the bottom line. On $500,000 of revenue, a single percentage point is $5,000 of pure profit with no additional sales, no extra delivery cost, and no new customers to acquire. Few operational projects offer that return for the effort.
Can I use gross margin to set a price?
Yes, by working backward. Divide unit cost by one minus your target margin: a $30 item at a 45 percent target prices at about $54.55. This is where the margin-markup confusion costs real money, since adding 45 percent to cost would give $43.50 and a margin of only 31 percent.
How does gross margin affect what I can spend on acquisition?
It sets the ceiling. Only gross profit is available to fund sales, marketing, and overhead. A business at 30 percent margin has thirty cents per revenue dollar to work with, so a customer acquisition cost that looks affordable against revenue can be ruinous against gross profit.
TheFinanceCalculators

Professional-grade financial calculators. Accurate, fast, and completely free. Not financial advice.

© 2026 TheFinanceCalculators. All rights reserved.