Skip to content
UseCalcNow
Finance

Gross Margin Calculator — Hit Your Target Margin

Compute gross margin from revenue and COGS, measure the gap to your target, and test price or cost changes before committing.

About This Calculator

Gross margin is the share of every sales dollar left after paying for the goods you sold — on the defaults here, $100,000 of gross profit on $250,000 of revenue is a 40% margin. This tool computes that ratio from your revenue and COGS, then goes two steps further: it measures the gap against your target margin and projects what a price change or a cost change would do to it. Set both levers to 0 for a clean baseline, then move them to compare scenarios before you commit.

The Formula Behind This Calculator

The core ratio is gross margin = (revenue − COGS) ÷ revenue × 100. On the defaults, $250,000 − $150,000 = $100,000 of gross profit, and $100,000 ÷ $250,000 = 40.0%. The markup companion divides by cost instead: $100,000 ÷ $150,000 = 66.7%, which is why a 40% margin and a 66.7% markup describe the same transaction. The target gap compares your projected margin against the target you set. The required-revenue line works backward: at a 40% target, revenue must cover COGS ÷ 0.60, so $150,000 of cost demands $250,000 of sales, equivalent to pricing every $1 of COGS at $1.667. The price and COGS change fields scale revenue and cost respectively, then recompute everything, so a +5% price test and a −5% cost test can be compared side by side.

Understanding the math helps you verify results and make better decisions for your project.

How to Use

  1. 1Enter total revenue for the period you are pricing or reviewing — a month, quarter, or year works as long as COGS covers the same span.
  2. 2Enter COGS for that same period: product cost, freight-in, duties, direct labor, and any cost that moves only when a unit sells.
  3. 3Set your target gross margin — 40% is the default; substitute your industry norm, board plan, or lender covenant number.
  4. 4Add a price change and a COGS change to test levers. Both start at 0, so the baseline reads untouched until you move them.
  5. 5Read the gap line in the explanation: it states how far the projected margin sits from target, the revenue required to close it, and what each margin point is worth in dollars.

When to Use

  • →Before sending a new price list — confirm the prices clear your target margin after planned discounts and freight-in.
  • →When a vendor announces a cost increase — model the COGS change before agreeing to it or passing it through to customers.
  • →During quarterly reviews — compare the margin you actually ran against the target and convert the miss into dollars.
  • →When lenders or investors ask for margin assumptions in a projection — back the number with the exact revenue requirement it implies.

Tips

  • ✓Quote markup when you talk to vendors and margin when you talk to bankers — a 40% markup is only a 28.6% margin, and mixing the two understates your price needs by 11.4 points.
  • ✓Use the price-per-dollar rule as a fast sanity check: a 40% target means every $1 of product cost must carry $1.667 of selling price.
  • ✓Test discounts here before offering them — a 10% cut on a 40%-margin product needs 33.3% more volume just to hold gross profit dollars.
  • ✓Track margin by product line rather than blended: a 45% line growing faster than a 30% line pulls the blend from 37.5% to 40.5% with zero price action.
  • ✓Confirm freight-in, duties, and direct labor sit inside COGS while selling and admin costs stay out — reclassification silently moves this ratio.
  • ✓Remember what a point is worth: on $250,000 of revenue, each margin point is $2,500, so small percentage fights are real money at scale.

What Gross Margin Actually Measures

Gross margin answers one question: of every dollar customers paid you, how much survives after paying for the goods themselves? On the defaults, $0.40 of each dollar survives. That surviving 40% is what funds everything else — rent, sales salaries, marketing, interest, and whatever is left as profit. It is the first quality test of a business model, taken before any overhead judgment enters the picture.

The denominator discipline matters as much as the ratio. COGS should contain product cost, inbound freight, duties, direct labor, and packaging — costs that exist only because a unit was sold. Rent, accounting, and marketing stay below the line. When those boundaries drift, the margin moves without any real change in the business, which is why auditors and lenders probe the COGS classification first. The COGS calculator works through the same classification from the cost side.

Tracked over several periods, the ratio becomes a trend line on pricing power and cost control. Two firms can post identical revenue and end up with wildly different margins, and the difference is entirely strategy: one buys cheap commodity inputs and sells on volume, the other differentiates and commands price. Neither is wrong, but the margin tells you which game each one is playing.

The Two Ratios People Confuse

Markup and margin describe the same transaction with different denominators. Markup divides profit by cost — $100,000 of profit on $150,000 of cost is a 66.7% markup. Margin divides profit by price — the same numbers on $250,000 of revenue are a 40.0% margin. Both statements are true simultaneously, which is exactly why the confusion is expensive.

The classic mistake is pricing by markup when the target was stated in margin. A business told to hit 40% that applies a 40% markup to a $100 cost lands at a $140 price — a 28.6% margin, missing the target by 11.4 points. On a $2 million revenue plan, that slip is roughly $228,000 of gross profit gone, discovered only when the P&L closes.

The conversions are worth memorizing because nobody runs them correctly in their head: markup = margin ÷ (100 − margin), and margin = markup ÷ (100 + markup). The markup calculator handles the price-and-cost direction of the same math; this tool handles the margin, target, and what-if direction.

Reading the Gap to Your Target

A margin number means nothing until it stands next to a target. The target field accepts whatever standard you answer to — a board plan of 42%, a lender covenant floor of 35%, or the industry norm you are trying to reach. The gap is reported in points, and the explanation converts each point into dollars: on $250,000 of revenue, one point is $2,500, so a 3-point miss is a $7,500 problem with a specific owner.

The required-revenue output is the more actionable half. At a 40% target with $150,000 of COGS, revenue must reach $250,000 — the formula is simply COGS ÷ (1 − target). Flip it into the pricing rule and every $1 of cost must carry $1.667 of price. Buying inventory to $151 of cost per unit at the same target means the shelf price needs to be $251.67, and that is the number buyers actually control.

When the gap is negative you have three levers — price, cost, and mix — and the two change fields here quantify the first two directly. When the gap is positive, the surplus margin is what funds growth spending, debt service, or the next product line. Profit planning at that point hands off to break even calculator math, which converts the margin into the sales level where fixed costs are covered.

The Markup-to-Margin Conversion Table

The conversion table is short enough to internalize. Margin 20% equals a 25.0% markup and prices $1 of cost at $1.250. Margin 25% equals 33.3% markup, $1.333 per dollar. Margin 30% equals 42.9%, $1.429. Margin 35% equals 53.8%, $1.538. Margin 40% equals 66.7%, $1.667. Margin 50% equals a 100% markup, $2.000, and margin 60% equals 150%, $2.500.

Notice the gap widening as margin climbs. The distance from 20% to 25% margin costs 8.3 markup points, but the step from 50% to 60% costs 50 markup points. High-margin businesses live in a region where small margin shifts translate into violent markup swings, which is why software firms can discount 20% and stay profitable while a grocer discounting 20% sells below cost.

Retail has named one row of this table: keystone pricing, a 100% markup, is a 50% margin. When a vendor says they need 40 points over cost they almost always mean markup, and when a bank says they want to see 40 points of gross margin they mean margin. Asking which one they mean has saved more negotiations than any spreadsheet.

Discounts, Price Increases, and Recovery Math

Discounts hit gross margin harder than intuition suggests. Take the default product: $100 price, $60 cost, 40% margin. A 10% discount drops the price to $90 and the margin to 33.3% — and because gross profit per unit fell from $40 to $30, volume must rise 33.3% just to keep gross profit dollars flat. A 20% discount takes margin to 25% and requires doubling volume. Very few promotions clear bars that high.

Price increases run the arithmetic in your favor. A 5% increase on the defaults lifts margin from 40.0% to 42.9% and adds $12,500 of gross profit on the same unit volume. On a business running a 30% margin, a 3% price increase lands at 32.0%. The asymmetry is the point: a small price move produces a margin shift that would take a much larger cost-cutting project to replicate, though cost cuts win on margin points per percent, as the next section shows.

All of this also works per unit, which is how quoting should be done: price per unit minus cost per unit over price per unit gives the identical ratio. The discount calculator prices the register-side of a markdown, and the price per unit calculator normalizes multi-pack and bulk quotes so unit economics stay visible.

Where Cost Cuts Actually Come From

Compare the two 5% levers on the defaults. A 5% COGS cut saves $7,500 and lifts the margin a full 3.0 points to 43.0%, because the saving lands on a smaller base. A 5% price increase earns $12,500 more gross profit but lifts margin only 2.9 points to 42.9%, because it is diluted across the larger revenue figure. Cost cuts win on points; price wins on dollars. Knowing which metric you are actually optimizing prevents choosing the wrong lever.

Real cost reductions stack from small pieces. A 2% vendor renegotiation followed by a 1% shrink and waste program takes COGS from $150,000 to $145,530 and the margin from 40.0% to 41.8% with no price action at all. Freight consolidation, payment-term trades for unit price, packaging redesign, and yield improvement each contribute fractions of a point — and fractions compound into the gap-closing number.

Inventory accounting shifts reported margin too. In inflationary periods FIFO puts older, cheaper costs into COGS and reports a higher margin than LIFO, with no operational change behind it. Estimating margins between physical counts uses the gross profit method, and count accuracy determines whether estimated margins survive the year-end adjustment — the ending inventory calculator covers both the count-based and estimate-based closings.

Benchmarks: What Good Looks Like

Margin levels are industry-specific to a degree that makes cross-industry comparison meaningless. Typical ranges: grocery runs 22-25%, manufacturing 25-35%, apparel retail 48-55%, restaurants 68-74% (equivalently, a 26-32% food cost), and software 70-90%. Treat these as orientation, not targets — pull current figures from peer filings or trade data before setting your own number.

The margin level only means something next to how fast inventory or assets turn. A grocer at 24% margin turning inventory 15 times a year and a jeweler at 55% turning it once can produce similar returns on capital. Margin and velocity trade against each other across business models, so judging a business on gross margin alone misses half the economics.

Below the gross line sits the overhead test. The distance between gross margin and EBITDA margin measures how much of the gross profit the operating structure consumes — two firms with identical 40% gross margins can post 15% and 5% EBITDA margins purely on overhead intensity. The EBITDA margin calculator continues the cascade from where this tool stops.

Gross Margin in the P&L Cascade

Gross margin is the first stop in a chain of ratios. Revenue minus COGS gives gross profit; gross profit minus operating expenses gives operating profit; below that sit interest and tax. On the defaults, $250,000 of revenue produces $100,000 of gross profit, and $70,000 of operating expenses would leave $30,000 of operating profit — a 12% operating margin. Every downstream ratio inherits the gross margin's quality.

Contribution margin splits the same revenue by a different axis: variable versus fixed costs, rather than production versus non-production. A factory with spare capacity should accept an order priced above variable cost even at a gross margin below the company average, because fixed manufacturing overhead is already paid. That decision belongs to the contribution margin calculator, while gross margin governs the external, full-cost view.

For the full statement — interest, taxes, and the residual that owners actually keep — the accounting profit calculator completes the cascade. Analysts reading the chain top-down locate problems fast: a healthy gross margin with a weak bottom line points at overhead or financing, while a weak gross margin points at pricing, cost, or mix.

Turning Margin Into Inventory Returns

GMROI connects gross margin to the capital tied up in stock: gross profit divided by average inventory at cost. The default case earns $100,000 of gross profit; carried on roughly $40,000 of average inventory that is a GMROI of 2.5, meaning each dollar of inventory returns $2.50 of gross profit annually. A 30%-margin line that turns fast can beat a 45%-margin line that turns slowly on this measure.

That is why ranking categories by GMROI rather than margin alone changes decisions. Slow luxury lines with high margins can hide dead capital, while fast commodity lines with thin margins can be the quiet profit engine. Markdown timing also falls out of the same math — holding a 40%-margin item for another season to avoid a 15% markdown has to be weighed against the capital it freezes.

Practical target-setting pairs the two: pick the gross margin this tool measures, then set the inventory turn needed to hit the return figure, and let the pair drive open-to-buy decisions. The GMROI calculator runs the full return-on-inventory math with benchmark bands for judging the result.

FAQ

What is a good gross margin?

It depends on the industry. Typical ranges run roughly 22-25% for grocery, 25-35% for manufacturing, 48-55% for apparel retail, 68-74% for restaurants (a 26-32% food cost), and 70-90% for software. Compare against direct peers — a healthy 25% for a grocer would alarm a software company. Verify current figures against peer filings or industry data before setting targets.

What is the difference between gross margin and markup?

Markup divides gross profit by COST; margin divides it by PRICE. A 40% markup on a $100 cost gives a $140 price, which is only a 28.6% margin. At a 40% margin the same transaction implies a 66.7% markup. The conversion is markup = margin ÷ (100 − margin), so 25% margin equals a 33.3% markup and 50% margin equals a 100% markup.

Can gross margin ever exceed 100%?

No. With COGS at zero or above, margin tops out at exactly 100%. Software and some services approach that ceiling because the marginal cost of delivering one more unit is near zero, but no business selling physical goods at a positive cost can cross it.

My revenue grew but gross margin fell — what happened?

Four usual suspects: mix shift toward lower-margin lines, deeper discounting, input or freight cost inflation you absorbed, and reclassification of costs into or out of COGS. Decompose the change into price, volume, cost, and mix components — the product-line view in this tool's tips section shows how mix alone can move the blend from 37.5% to 40.5%.

Is gross margin the same as contribution margin?

No. Gross margin subtracts COGS, which under absorption costing includes fixed manufacturing overhead. Contribution margin subtracts only variable costs, including variable selling costs that sit below the gross line. For pricing decisions when you have spare capacity, contribution margin is the better guide because fixed costs do not change with the next order.

Should I close a margin gap with price increases or cost cuts?

On the defaults, a 5% COGS cut lifts margin 3.0 points while a 5% price increase lifts it 2.9 points — but the price move earns more gross profit dollars ($12,500 vs $7,500). Cost cuts usually take longer to negotiate; price moves are immediate but risk volume. Combining a small one of each is the most reliable path.

Related Calculators