Gross Margin Calculator

Comparing Businesses of Any Size on Equal Footing

A $50,000 gross profit means something completely different for a business with $100,000 in revenue than one with $2 million in revenue. Gross margin fixes that by converting gross profit into a percentage of revenue, making it possible to compare a corner bakery against a national chain, or this quarter against the same quarter three years ago, without size distorting the picture.

The Formula

Gross Margin = ((Revenue − COGS) / Revenue) × 100

Revenue must be nonzero for the ratio to be defined — a business with no sales has no margin to measure.

A Worked Example

Gross margin at different revenue and COGS levels
RevenueCOGSGross Margin
$500,000$300,00040%
$500,000$400,00020%
$500,000$250,00050%

Same revenue, three different COGS levels — margin moves inversely with cost of goods sold, holding price constant.

Where Gross Margin Matters

  • Industry benchmarking — software and services businesses typically run far higher gross margins than retailers or distributors, so margin is only meaningful when compared within a similar business model.
  • Pricing sensitivity — a thin gross margin means small cost increases can wipe out profitability quickly, which is a key input when deciding how much price flexibility a business can safely absorb.
  • Trend monitoring — a gradually shrinking gross margin, even with rising revenue, is a common early warning sign of cost creep or discounting that hasn't been corrected.
  • Investor due diligence — gross margin stability over time is often used to judge how defensible a company's pricing power actually is.

How to Use This Calculator

  1. Enter Revenue for the period.
  2. Enter Cost of Goods Sold (COGS) for the same period.
  3. Select Calculate to see Gross Margin as a percentage.

Related Calculations

See the dollar figure behind this percentage with the Gross Profit Calculator, or move further down the income statement with the Operating Margin Calculator.