# Gross Margin: What Revenue Keeps After Direct Costs

Understand gross margin, how it is calculated, what it says about pricing power and cost structure, and why investors compare it by industry and segment.

Canonical: https://wiki.fcontext.com/stocks/gross-margin/
Fact checked: 2026-07-20

> For educational purposes only; not investment advice.

<a id="answer"></a>

## Direct answer

**Gross margin** measures how much revenue remains after subtracting the direct costs of producing or delivering goods and services.

`gross margin = gross profit / revenue`

`gross profit = revenue - cost of revenue`

It helps show the basic economic "spread" of a product or service before operating expenses, interest, taxes, and other items.

<a id="mechanism"></a>

## How it works

Gross margin depends on price, mix, input costs, labor, logistics, manufacturing efficiency, cloud or hosting costs, warranty costs, and accounting classification. A software company, retailer, manufacturer, and airline can have very different normal gross margins because their direct cost structures differ.

The line item may be called cost of revenue, cost of sales, or cost of goods sold. Investors should read the notes and MD&A to understand what the company includes. Some companies include depreciation, fulfillment, service labor, or payment-processing costs differently.

A rising gross margin can signal pricing power, better product mix, scale efficiency, or lower input costs. A falling gross margin can signal discounts, competition, inflation, inventory write-downs, underused capacity, or a shift toward lower-margin products.

<a id="example"></a>

## Example

Suppose a company reports:

- revenue: `$500 million`
- cost of revenue: `$300 million`

Gross profit is:

`$500m - $300m = $200m`

Gross margin is:

`$200m / $500m = 40%`

If revenue later rises to `$600 million` but gross margin falls to `32%`, gross profit is `$192 million`. Sales grew, but direct costs consumed more of each dollar of revenue.

<a id="risks"></a>

## Risks

- **Classification risk:** Companies may classify costs differently, reducing comparability.
- **Mix risk:** A margin change may come from product mix rather than price or efficiency.
- **Scale risk:** High gross margin does not guarantee operating profit if sales, R&D, or overhead are large.
- **Inventory risk:** Write-downs or obsolete inventory can pressure gross margin.
- **Temporary benefit risk:** Lower input costs or one-time credits may not repeat.

<a id="misconceptions"></a>

## Common misconceptions

Gross margin is not net profit margin.

High gross margin does not automatically mean the company is valuable. Growth, operating expenses, cash flow, reinvestment needs, and valuation still matter.

Low gross margin does not automatically mean a poor business. Some retailers, distributors, and asset-turnover businesses can earn acceptable returns with thin margins if volume, working capital, and capital intensity are favorable.

<a id="related"></a>

## Related topics

- [Income Statement](/stocks/income-statement/)
- [Revenue and Profit](/stocks/revenue-and-profit/)
- [Earnings Bridge Analysis](/stocks/earnings-bridge-analysis/)

<a id="sources"></a>

## Sources

- SEC and Investor.gov: financial-statement and periodic-report reading guidance.