# Gross Margin

Gross margin measures the share of revenue remaining after the costs classified as delivering the product or service.

- Type: metric
- Domain: Market & business
- Level: Intermediate
- Last reviewed: 2026-10-19
- Original: [Soroush’s Product Wiki](<https://wiki.soroush.uk/topic/gross-margin/>)

## What it means

Gross margin is gross profit divided by revenue, usually expressed as a percentage: \(revenue minus cost of revenue\) / revenue × 100. Gross profit is the currency amount; gross margin is its proportion. Cost-of-revenue classification follows the business’s accounting policy and is not simply a list of all variable expenses.

## Why it matters

A product can grow sales while leaving too little gross profit to fund acquisition, development, and administration. Margin analysis makes costly service features, infrastructure usage, and discounting visible before a revenue-only target encourages uneconomic growth.

## When to use it

Use gross margin when comparing plans, delivery models, or pricing changes with finance-approved cost allocation. Compare like businesses and periods. Do not use it as a substitute for net profitability, cash-flow analysis, or the incremental economics of a single decision.

## How it works

1. Choose a reporting period and reconcile revenue to the agreed accounting basis.
2. Identify delivery costs using a documented cost-of-revenue policy.
3. Subtract those costs to obtain gross profit.
4. Divide gross profit by revenue and state the result as a percentage.
5. Investigate segment changes and allocation differences before attributing movement to product performance.

## A practical example

An illustrative SaaS product earns $100,000 in monthly revenue with $28,000 in classified delivery costs. Gross profit is $72,000 and gross margin is 72%. A proposed AI feature adds inference expense, so the team models its margin effect before including unlimited usage.

## Where it breaks

Cost allocation can materially change the result, especially for shared support and infrastructure. Gross margin excludes other substantial expenses and does not show cash timing. A percentage is undefined when the revenue denominator is zero.

## Common mistakes

- Treating gross profit dollars and gross margin percentage as interchangeable.
- Excluding delivery costs to make a feature look more profitable.
- Assuming positive gross margin means the business is profitable overall.

## Sources

1. [Gross Margin Ratio](<https://corporatefinanceinstitute.com/resources/accounting/gross-margin-ratio/>) — Corporate Finance Institute · Educational reference
2. [SaaS gross margin explained: What it is and why it is important](<https://stripe.com/resources/more/saas-gross-margin-explained-what-it-is-and-why-it-is-important>) — Stripe · Official documentation

## Related topics

- [Unit Economics](<https://wiki.soroush.uk/topic/unit-economics/>)
- [Pricing Strategy](<https://wiki.soroush.uk/topic/pricing-strategy/>)
- [Inference Cost](<https://wiki.soroush.uk/topic/inference-cost/>)
