Gross margin

DEFINITION

Gross margin is the share of revenue a business keeps after subtracting the direct cost of delivering its product or service, expressed as a percentage. It measures the efficiency of the core delivery engine and sets the ceiling on how profitable a business can be.

Gross margin is the share of revenue a business keeps after subtracting the direct cost of delivering its product or service, expressed as a percentage. It is calculated as revenue minus cost of goods sold, divided by revenue, then multiplied by 100. For a subscription business, cost of goods sold typically covers hosting and infrastructure, third-party fees tied to delivering the service, payment processing, and the customer support directly attributable to the product. A higher gross margin means more of each revenue dollar is left to cover operating expenses such as sales, marketing, and research and development, and ultimately to reach profitability.

Gross margin measures the efficiency of the core delivery engine, before any of the costs of running the wider company. The numerator, revenue minus cost of goods sold, is often called gross profit; gross margin simply states that gross profit as a percentage of revenue so it can be compared across periods and across businesses of different sizes. The line that separates cost of goods sold from operating expense matters: cost of goods sold is the cost of delivering what has already been sold, while operating expense is the cost of running and growing the business. Two companies with identical revenue can report very different gross margins depending on how much it costs each of them to actually serve a customer. For subscription and software businesses, once the product is built, serving an additional subscriber usually adds little incremental cost, so gross margin tends to hold or improve as the business scales. A subscription management and billing platform such as Recurly sits on the revenue side of this calculation, giving finance a clean record of recognized revenue and the billing activity behind it.

Why gross margin matters for subscription businesses

Gross margin sets the ceiling on how profitable a business can be. Every dollar not retained at the gross level is unavailable to fund growth or fall to the bottom line, so a thin gross margin caps profitability no matter how lean the rest of the organization runs. Investors and operators watch it closely because it signals pricing power, delivery efficiency, and the fundamental economics of the model. It also feeds directly into other unit-economics metrics: a customer's lifetime value is usually calculated on a gross-margin basis rather than on raw revenue, because only the margin dollars are truly available to earn back acquisition cost. Tracking gross margin over time surfaces whether delivery is getting more or less efficient as volume grows.

A subscription management and billing platform such as Recurly supports gross margin work by giving finance teams a clean, auditable record of recognized revenue and the billing activity behind it, so the revenue side of the calculation is trustworthy and consistent from period to period. Reporting and analytics can surface revenue trends and the transaction-level costs a platform touches directly, such as payment processing, which feed the cost-of-goods-sold side of the picture. Accurate revenue recognition and exportable data also make it easier to hand finance the inputs it needs to calculate margin in its own accounting system.

How to calculate gross margin

Gross margin is calculated with the following formulas:

Gross profit = Revenue - Cost of goods sold

Gross margin = (Gross profit / Revenue) x 100

Written as a single expression:

Gross margin = ((Revenue - Cost of goods sold) / Revenue) x 100

To calculate it for a period:

  1. Add up revenue for the period you want to measure.

  2. Add up cost of goods sold for the same period, including the direct costs of delivering the service such as hosting, payment processing, third-party fees, and directly attributable support.

  3. Subtract cost of goods sold from revenue to get gross profit.

  4. Divide gross profit by revenue and multiply by 100 to state the result as a percentage.

Worked example (illustrative figures):

  • Revenue for the period: 1,000,000

  • Cost of goods sold for the period: 250,000

Gross profit = 1,000,000 - 250,000 = 750,000

Gross margin = (750,000 / 1,000,000) x 100 = 75%

The same formula works at any level, whether you are measuring a single product line or the whole business, as long as the revenue and the cost of goods sold you use cover the same scope and the same period.

How to use gross margin

Read gross margin as a trend, not a one-off figure. Be consistent about which costs you classify as cost of goods sold from period to period so the comparison stays valid, and compare the result to prior periods to see whether delivery is getting more or less efficient as volume grows.

Use gross margin alongside recurring-revenue metrics rather than on its own. Pairing it with monthly recurring revenue and retention measures shows not just how much revenue is coming in, but how much of it the business actually keeps after delivery.

Gross margin vs contribution margin vs net margin

These three margins measure profitability at different depths, and mixing them up leads to the wrong conclusion about where money is made or lost.

  • Gross margin subtracts only the cost of goods sold, the direct cost of delivering the product, from revenue. It answers how efficient the core delivery is.

  • Contribution margin subtracts all variable costs from revenue, which can include variable selling costs beyond cost of goods sold. It answers how much each incremental sale contributes toward fixed costs and profit, and is often used for pricing and unit-economics decisions.

  • Net margin subtracts every expense, including operating expenses, interest, and taxes, from revenue. It answers what the business actually keeps at the bottom line.

Gross margin sits highest on the income statement of the three, net margin sits lowest, and contribution margin is a management view that does not appear as a standard income-statement line. A business can have a strong gross margin and still post a weak net margin if operating costs are high.

Benefits and examples

A gross margin calculated the same way each period gives operators a quick read on the health of the core model and a figure that finance, leadership, and investors can all compare against. Its main benefits:

  • A quick read on how efficient the core delivery model is.

  • Comparability across time and against peers of very different sizes, because it is expressed as a percentage.

  • An early signal of efficiency gains, since a rising margin can show infrastructure or support costs scaling more slowly than revenue.

  • An early warning of margin pressure, since a falling margin can flag rising delivery costs or discounting that eats into the price.

As an illustration, a subscription business with revenue of 2,000,000 and cost of goods sold of 600,000 would report a gross margin of 70 percent.

Frequently asked questions

How do you calculate gross margin? Subtract cost of goods sold from revenue to get gross profit, divide that by revenue, and multiply by 100 to express it as a percentage. Use the same time period and the same scope for both revenue and cost of goods sold so the number is meaningful.

What is the difference between gross margin and gross profit? Gross profit is a dollar amount: revenue minus cost of goods sold. Gross margin is that same gross profit expressed as a percentage of revenue. Gross profit tells you how many dollars you kept; gross margin tells you what share of revenue that represents, which makes it easier to compare across periods and businesses.

What counts as cost of goods sold for a SaaS business? Generally the direct costs of delivering the service: hosting and infrastructure, payment processing fees, third-party costs tied to the product, and the portion of customer support directly attributable to running the service. Costs of running and growing the company, such as sales, marketing, and research and development, are operating expenses and are not included in cost of goods sold.

What is a good gross margin for a subscription business? It varies widely by model and cost structure, and software businesses are often associated with high gross margins because serving another subscriber adds little incremental cost. Rather than anchoring to a single benchmark, compare your gross margin to your own trend over time and to peers with a similar model.

Why is gross margin important for lifetime value? Customer lifetime value is usually calculated on a gross-margin basis rather than on raw revenue, because only the margin dollars are actually available to earn back what you spent to acquire the customer. A higher gross margin raises lifetime value and improves the payback on acquisition spend.