Glossary
Finance

Gross Margin

Also: Gross Profit Margin, GM, Gross Margin Ratio

Gross margin is the share of revenue left after subtracting the direct cost of producing goods or services, expressed as a percentage of revenue.

What It Is

Gross margin measures how much of each revenue dollar remains after paying the direct costs of delivering a product or service, known as the cost of goods sold (COGS). It is usually shown as a percentage:

Gross Margin % = (Revenue, COGS) / Revenue x 100

The absolute dollar figure (Revenue, COGS) is called gross profit, while gross margin expresses that profit as a ratio. COGS typically includes direct materials, direct labor, manufacturing overhead, payment processing fees, hosting, or cloud delivery costs for software. It excludes operating expenses such as sales, marketing, R&D, and general administration.

Why it matters

Gross margin is a core indicator of unit economics and pricing power. It tells you whether the core business model generates enough profit per sale to cover everything else (overhead, growth investment, and net profit).

  • A high and stable gross margin signals pricing strength and efficient production.
  • A declining gross margin can warn of rising input costs, discounting, or an unfavorable product mix.
  • Investors and CFOs use it to compare companies within an industry, since it strips out financing and operating structure differences.

How it is used in practice

  • Benchmarking: Software companies often target 70 to 90 percent gross margins, while retailers may run 20 to 40 percent. Comparisons are only meaningful within a sector.
  • Pricing decisions: A target gross margin guides minimum acceptable prices and discount limits.
  • Forecasting: Finance teams model gross margin to project how revenue growth converts into profit.
  • Product mix analysis: Shifting sales toward higher margin lines lifts the blended margin without raising prices.

Be careful about what is classified as COGS versus operating expense, because reclassifying costs can distort the metric and break comparability across periods or firms.

Concrete Example

A SaaS company earns $2,000,000 in annual revenue. Cloud hosting, support staff directly tied to delivery, and payment fees total $400,000 in COGS.

  • Gross profit = 2,000,000, 400,000 = $1,600,000
  • Gross margin = 1,600,000 / 2,000,000 = 80%

This means 80 cents of every revenue dollar is available to fund marketing, R&D, overhead, and profit. If hosting costs rise to $600,000, the margin falls to 70 percent, signaling a need to optimize infrastructure or raise prices.

From Revenue to Gross MarginRevenue: $2,000,000 (100%)COGS$400kGross Profit: $1,600,000(Gross Margin = 80%)Gross Margin % = (Revenue - COGS) / Revenue= (2,000,000 - 400,000) / 2,000,000 = 80%
Gross profit is revenue minus direct costs (COGS); gross margin expresses it as a percentage.

Frequently asked questions

What is gross margin, in one sentence?

Gross margin is the share of revenue left after subtracting the direct cost of producing goods or services (COGS), expressed as a percentage: (Revenue - COGS) / Revenue x 100. The dollar amount behind it, Revenue minus COGS, is called gross profit. A company with $2M revenue and $400K of COGS has a gross margin of 80%.

What is the difference between gross profit and gross margin?

Gross profit is an absolute amount (Revenue - COGS), gross margin is that same amount expressed as a percentage of revenue. Gross profit tells you how many dollars the core activity generates; gross margin tells you how efficiently each revenue dollar converts into that profit. Margin is what allows comparison between companies of different sizes.

Which costs belong in COGS and which do not?

COGS covers costs directly tied to delivering the product: direct materials, direct labor, manufacturing overhead, payment processing fees, hosting or cloud delivery for software. It excludes sales, marketing, R&D and general administration, which are operating expenses. Where you draw that line matters, because reclassifying a cost from operating expense to COGS changes the margin without changing the business.

What is a good gross margin level?

It depends entirely on the sector, so a single target makes no sense. Software companies often aim for 70 to 90 percent, while retailers commonly run 20 to 40 percent because their COGS is dominated by purchased goods. Comparisons are only meaningful inside a sector, and the trend over time usually says more than the absolute level.

My gross margin is falling. What should I look at first?

Three causes explain most declines: rising input or delivery costs, heavier discounting, and a product mix that has shifted toward lower margin lines. Isolate them by recomputing the margin per product line before looking at the blended figure. In the SaaS example where hosting rises from $400K to $600K on $2M of revenue, the margin drops from 80 to 70 percent, which points to infrastructure optimization or a price increase rather than a sales problem.