Gross Margin

Gross margin is the percentage of revenue remaining after subtracting the cost of goods sold (COGS). It represents the portion of each dollar of revenue available to cover operating expenses and generate profit.

Also known as: gross profit margin, gross profit percentage

Formula

((Revenue - COGS) / Revenue) x 100

Try Calculator

Why It Matters

Gross margin reveals the fundamental economics of your product. A high gross margin means you keep most of each dollar earned, giving you more room for sales, marketing, R&D, and profit. Software companies typically enjoy 70-85% gross margins, while physical product businesses operate at 30-60%.

Gross margin is critical for unit economics because it determines how much of your CLV is actual profit. A customer with $10,000 in lifetime revenue and 80% gross margin contributes $8,000 to cover operating expenses and profit. The same revenue at 40% margin only contributes $4,000.

Trending gross margin over time reveals operational efficiency. Improving gross margin means you are either commanding higher prices, reducing production costs, or shifting toward a more favorable product mix. Declining margins signal rising costs, competitive price pressure, or an unfavorable shift in revenue composition.

How to Calculate

Subtract cost of goods sold (COGS) from revenue, then divide by revenue and multiply by 100. COGS for software includes hosting, infrastructure, customer support costs, and third-party software fees. For ecommerce, COGS includes product cost, shipping, packaging, and payment processing fees. Be consistent in what you include in COGS to make the metric comparable over time.

Gross Margin Calculator

((Revenue - COGS) / Revenue) x 100

Gross Margin75.00%

Industry Applications

SaaS

A SaaS company reduces its gross margin from 82% to 75% after scaling customer support, prompting a shift to AI-powered support tools that restore margins to 80% within two quarters.

Benchmark: Top SaaS companies achieve 75-85% gross margins; below 70% raises concerns about scalability

E-commerce

An ecommerce brand discovers that its best-selling product has a 25% gross margin while a slower-selling product has 65% margin, leading to a marketing strategy shift to promote the higher-margin item.

Benchmark: Ecommerce gross margins range from 30-60% depending on category; DTC brands typically achieve 50-70%

How to Track in KISSmetrics

While KISSmetrics focuses on behavioral analytics, you can use revenue tracking combined with cost data to monitor per-customer and per-segment gross margins. Track revenue events with product category properties, then compare against your COGS data by category to identify which products and segments deliver the best margins.

Common Mistakes

  • -Inconsistently categorizing expenses as COGS vs. operating expenses, which makes margin comparisons unreliable
  • -Ignoring customer support costs in COGS for SaaS businesses, which overstates true gross margin
  • -Focusing only on blended gross margin and missing significant margin variation across products or customer segments
  • -Confusing gross margin with net margin, which also accounts for operating expenses, taxes, and interest

Pro Tips

  • +Calculate gross margin by product line and customer segment to identify where your highest-margin revenue comes from
  • +Track gross margin trend monthly - even small sustained declines compound into significant profit impact over time
  • +For SaaS, target 70%+ gross margin; for ecommerce, target 40%+ depending on category
  • +Use gross margin data to prioritize which products to promote and which to sunset or reprice

Related Terms

See Gross Margin in action

KISSmetrics tracks every user across sessions and devices so you can measure what matters. Start free - no credit card required.