KPI library / General business / Finance

Gross margin.

Gross margin is revenue minus cost of goods sold, divided by revenue: the share of each revenue dollar left after direct costs.

Definition and formula.

Gross margin, also called gross profit margin, is the percentage of revenue that remains after subtracting the direct costs of producing or delivering what was sold (cost of goods sold, or cost of revenue).

Formula

Gross margin = (Revenue − Cost of goods sold) ÷ Revenue × 100

Inputs and typical data sources.

Revenue
Net revenue for the period, after returns and discounts, per accounting policy.
Cost of goods sold
Direct costs of delivering the product or service, as classified in the chart of accounts.

Typical sources:

  • General ledger
  • ERP or accounting system
  • Management P&L

Worked example.

Illustrative arithmetic, not a benchmark

Revenue is $500,000 and cost of goods sold is $200,000.

Gross margin = ($500,000 − $200,000) ÷ $500,000 × 100 = 60%.

Common pitfalls.

  • No shared rule for which costs belong in cost of goods sold, so teams compare unlike numbers.
  • Matching revenue and cost from different periods.
  • Allocating shared costs to product lines inconsistently.
  • Confusing gross margin (a percent of revenue) with markup (a percent of cost).

Record it in your KPI data dictionary.

Copy these fields into your KPI data dictionary and adjust them to your organization.

Numerator
Revenue minus cost of goods sold
Denominator
Revenue
Unit
Percent of revenue
Grain
One row per period, optionally per product line or business unit.
Typical refresh cadence
Monthly
Owner
Name one accountable person or role.
Target
Set and sourced by your team. No target is implied here.
  • Operating margin: Operating margin is operating income divided by revenue: the share of revenue left after operating costs, before interest and taxes.
  • Customer acquisition cost: Customer acquisition cost is the average spend needed to win one new customer: acquisition spend divided by new customers in the same period.
  • Average order value: Average order value is total revenue divided by the number of orders in a period: the average amount spent per order.

Back to the KPI library

Quick answers.

What is the formula for gross margin?

Gross margin = (Revenue − Cost of goods sold) ÷ Revenue × 100. Unit: percent of revenue.

What data do you need to calculate gross margin?

Revenue, Cost of goods sold. Typical sources: General ledger; ERP or accounting system; Management P&L.

Keep this definition where everyone can find it.

MeasureMap is a self-hosted KPI registry. It records each KPI's definition, owner, formula, source reference, and reporting link in one place. It documents meaning; your existing tools do the calculating. See how it works.

Book a 20-min call