Unit Economics Wiki

Gross Margin

Gross margin is the share of revenue left after the costs required to deliver that revenue — and the hard part is deciding which costs those are.

Unit EconomicsUpdated Aug 13, 202610 min read

Snapshot

What it is

Revenue minus cost of revenue, expressed as a percentage. It measures how much of each dollar survives the act of delivering the product, and therefore how much is left to fund engineering, sales, and overhead.

Why it matters

Every downstream metric — CAC payback, LTV, burn multiple, the multiple a buyer will pay — runs on gross profit, not revenue. Founders who model payback on revenue overstate recoverable value by exactly the cost of delivery.

What it is not

It is not contribution margin (which keeps going, into sales and success costs), not cash flow, and not a fixed property of your product. A blended gross margin is an artifact of revenue mix as much as of delivery efficiency.

Key takeaways

  • The arithmetic is trivial; the cost boundary is the whole exercise. For SaaS, hosting, support, professional services, and amortization of capitalized software all normally sit in cost of revenue.

  • Report by stream, not blended. Confluent's 2025 subscription margin was 78.1% and its services margin was −16.0%. The 74.3% blend describes neither business.

  • "Adjusted" gross margin is a non-GAAP measure. Confluent's own GAAP and non-GAAP total gross margins for 2025 differ by 4.1 percentage points.

  • Margin can improve without the cost curve changing at all — better utilization of the same fixed delivery capacity looks identical in the percentage.

What is gross margin?#

gross profit = revenue − cost of revenue
gross margin = gross profit / revenue

Cost of revenue (often "COGS", even where nothing is a good) is the set of costs a company classifies as necessary to deliver the revenue it recognized in the period. That classification is where all the judgment lives, and it is not fully prescribed. GAAP requires cost of revenue to be presented and to be applied consistently; it does not hand you a line-by-line list for a software business.

What belongs in cost of revenue for a SaaS company?#

DocuSign's disclosure is a useful template, because it is explicit about the items founders most often get wrong:

CostUsually in cost of revenue?Why
Cloud hosting, compute, storage, CDN
Yes
Required to run the service the customer bought
Third-party APIs, data, model inference
Yes
Consumed per unit of delivered service
Technical support and customer operations
Yes
Required to keep the service working
Customer success personnel
Usually yes where the role is service delivery
Split, and disclose, if the role is really upsell
Professional services and implementation labor
Yes
Delivers the services revenue you recognized
Amortization of capitalized internal-use software
Yes
The delivered product is the capitalized asset
Amortization of acquired developed technology
Yes
Same logic
Payment processing fees
Yes
Required to collect the revenue
Allocated overhead (facilities, IT, security)
Yes, pro rata by headcount
Under a stated allocation policy
Sales commissions
No — operating expense
Acquires revenue; does not deliver it
R&D and product engineering
No — operating expense
Builds future product
Marketing, G&A
No — operating expense

Two of these trip up founders repeatedly. Amortization of capitalized software belongs in cost of revenue — capitalizing development spend moves cost off the R&D line but it comes back through COGS later, so capitalization policy directly moves reported gross margin. And professional services cost belongs in cost of revenue even when services are sold at or below cost as a land-and-expand play; the cost does not disappear because the strategy is deliberate.

Where GAAP leaves room#

Cost-of-revenue classification is an area of genuine, disclosed discretion:

  • Support versus success. The same person can be classified in COGS or in sales and marketing depending on how the role is described. This moves gross margin by points at services-heavy companies.
  • Capitalization thresholds. How much internal software development gets capitalized, and over how many years it amortizes, changes both the timing and the line.
  • Overhead allocation. The allocation base — headcount, square footage, usage — is a policy choice.
  • Non-GAAP adjustments. Stock-based compensation and amortization of acquired intangibles are routinely excluded from "adjusted" gross margin. That is permitted with proper labelling and reconciliation, but the SEC's staff interpretations are clear that adjustments which individually tailor a recognition or measurement principle, or which remove normal recurring cash operating expenses, can render a measure misleading.

The practical consequence: compare cost descriptions, not just percentages. Two SaaS companies reporting 75% gross margin may be running very different businesses.

Why does gross margin matter to founders?#

It sets the ceiling on everything downstream. CAC payback and LTV must be computed on gross profit. A $1,000/month customer at 70% gross margin recovers a $10,000 CAC in 14.3 months; the same customer at 45% margin takes 22.2 months. Same revenue, an eight-month difference in when the business can reinvest.

It reveals which packages are quietly unprofitable. Usage-heavy tiers, generous support SLAs, bundled third-party licenses, and hardware attach can make a popular package economically weak. Product-level margin surfaces it; blended margin buries it.

It prices the company. Investors and acquirers apply revenue multiples that are, in practice, gross-profit multiples in disguise. A services-heavy early business can be perfectly rational and still be valued lower — the founder's job is to explain the mix, the trajectory, and the operating evidence behind it.

It is the cleanest early test of whether the model scales. If delivering the next dollar costs nearly a dollar, there is no software business underneath, whatever the pitch deck says.

Key Facts

01

Subscription and services margins can sit on opposite sides of zero

Confluent's fiscal 2025 results show subscription revenue of $1,119.7M against subscription cost of revenue of $245.4M (78.1% margin), and services revenue of $47.0M against services cost of revenue of $54.6M (−16.0% margin, a $7.5M gross loss). Blended total gross margin: 74.3%.

Confluent FY2025 Form 10-K
02

GAAP and adjusted gross margin differ materially at the same company in the same year

Confluent reported 74.3% GAAP total gross margin and 78.4% non-GAAP total gross margin for fiscal 2025 — a 4.1-point gap created entirely by adding back stock-based compensation and amortization of acquired intangibles.

Confluent Q4 and FY2025 results
03

A software company's COGS is mostly hosting and people

DocuSign discloses that cost of subscription revenue consists of hosting the platform and providing support — including employee costs for technical infrastructure, customer success and customer support — plus third-party hosting fees, amortization of capitalized internal-use software and acquired intangibles, credit-card processing fees, and allocated overhead.

DocuSign FY2026 Form 10-K
04

Infrastructure decisions move the number in real time

DocuSign reported fourth-quarter fiscal 2026 non-GAAP gross margin of 81.8%, down 50 basis points year over year, attributed to cloud infrastructure migration costs.

Docusign FY2026 results

How do you build a gross-margin view you can act on?#

  1. Fix the revenue basis. Use recognized revenue for the accounting view. Never divide ARR by a period's cost of revenue — the numerator and denominator must cover the same period on the same basis.
  2. Map the delivery chain and write down, once, what is in and out: infrastructure and third-party services; materials and freight; implementation and delivery labor; support and customer operations; payment, warranty, and loss cost; delivery-related depreciation and amortization; allocated delivery overhead.
  3. Compute stream and segment margins — (segment revenue − segment cost of revenue) / segment revenue — and reconcile them back to the company total so nothing is lost in allocation.
  4. Build a bridge for every period change. Attribute the movement to price, discount, usage, product mix, customer mix, supplier cost, infrastructure efficiency, support load, services mix, and accounting-policy change. If you cannot bridge it, you do not understand it.
  5. Separate scale from utilization. Margin often improves because fixed delivery capacity is better used, not because unit cost fell. Track cost per quality-adjusted unit alongside the percentage so you know which one is happening.
  6. Reconcile to contribution margin. Gross margin stops at cost of revenue. Contribution margin keeps deducting variable selling, success, and transaction costs. They answer different questions and must not share a label.

Worked example: why the blend lies#

A software-and-services company reports $500,000 of monthly recognized revenue: $425,000 subscription and $75,000 implementation services.

Cost of revenue, by stream

Cost lineSubscriptionServicesTotal
Cloud, compute, storage, third-party APIs
$62,000
—
$62,000
Support and customer operations
$23,000
—
$23,000
Implementation / professional-services labor
—
$78,000
$78,000
Amortization of capitalized software + allocated delivery overhead
$15,000
$12,000
$27,000
Total cost of revenue
$100,000
$90,000
$190,000

Company gross margin

gross profit = $500,000 − $190,000 = $310,000
gross margin = $310,000 / $500,000 = 62.0%

By stream

subscription = ($425,000 − $100,000) / $425,000 = $325,000 / $425,000 = 76.5%
services     = ($75,000  − $90,000)  / $75,000  = −$15,000 / $75,000  = −20.0%

The 62% blend describes neither business. There is a healthy 76.5%-margin software product and a services organization losing $15,000 a month, and the blend is simply the weighted average of the two. If services were merely brought to breakeven, blended margin would rise to 65.0% with no change to the software product at all.

If those services genuinely enable subscription adoption, running them at negative margin can be a defensible acquisition investment — but then treat it as one. Move it into a contribution or payback analysis where it can be measured against the subscription revenue it unlocks. Do not let it vanish into a blended percentage.

Now the adjusted-margin trap. Suppose management excludes the $15,000 of delivery-related amortization from an "adjusted" view:

adjusted gross margin = ($500,000 − $175,000) / $500,000 = 65.0%

Three points of margin appear from nothing. This is legitimate only if the measure is labelled adjusted, reconciled to the 62.0% GAAP figure, and presented with the GAAP measure given no less prominence. It is not interchangeable with a peer's GAAP gross margin — and note that this particular exclusion (amortization of capitalized software) removes a cost that is, economically, the delivered product.

What are the common mistakes?#

  • Excluding delivery labor because it is salaried. Support, implementation, and customer operations do not become free when the people are on payroll. Salaried cost is still cost of revenue.
  • Dividing ARR by period cost of revenue. Mismatched basis, mismatched period, meaningless answer.
  • Comparing blended margins across companies with different mixes. Subscription, services, hardware, and payments have structurally different economics. Compare stream to stream.
  • Letting capitalization policy flatter the number silently. Aggressive capitalization of internal software lowers R&D today and raises COGS later. If the policy changes, disclose it and bridge the effect.
  • Calling an adjusted measure "gross margin." If you removed a cost, the label has to say so, and the GAAP measure has to be shown.

When does gross margin break as a decision tool?#

When the real variable cost sits below the gross-profit line. Performance marketing, field sales commissions, marketplace incentives, and customer-specific success work are all genuinely variable and all excluded from cost of revenue. For "should we take this deal" questions, use contribution margin instead.

Around capacity thresholds. Gross margin understates long-run economics during deliberate underutilization and overstates them when assets are fully used and the next capacity block is imminent. Pair the percentage with incremental cost and the utilization level.

When comparing across accounting policies or jurisdictions. Classification differs across companies and between GAAP and IFRS filers. Read the cost-of-revenue description before you conclude anything from a percentage difference.

When you need cash. Gross margin is not cash flow. Capitalized software, depreciation schedules, annual prepayments, working capital, and supplier commitments all hit cash on different timelines than they hit gross profit.

Frequently asked questions

01

Should customer success sit in COGS or operating expense?

Split it by what the role actually does. Reactive support and delivery work required to keep the customer running is cost of revenue. Proactive expansion and renewal selling is sales and marketing. Pick a defensible split, disclose it, and apply it consistently — this is one of the biggest sources of non-comparability between two SaaS companies quoting the same headline margin.

02

What gross margin should a SaaS company target?

Public subscription software clusters in the mid-70s to low-80s (Confluent's 2025 subscription margin was 78.1%; DocuSign's Q4 FY2026 non-GAAP margin was 81.8%). But target the subscription stream, not the blend, and expect an early-stage company with heavy implementation to sit well below that for entirely rational reasons.

03

Does capitalizing software development improve gross margin?

Not durably. Capitalization moves spend off R&D onto the balance sheet, then amortizes it back through cost of revenue over the useful life. It improves operating margin in the near term and reduces gross margin later. Investors adjust for it, so treat it as a presentation choice rather than an economic improvement.

04

How do AI inference costs change this?

They make cost of revenue genuinely variable with usage rather than roughly fixed with capacity, which is a structural change for a software P&L. Model inference, tool calls, and human review all belong in cost of revenue, and they scale with what the customer does rather than with what you provisioned. See AI Unit Economics.

05

Is it acceptable to run professional services at negative margin?

Yes, as a deliberate strategy — Confluent does it at scale. What is not acceptable is hiding it. Report the services margin separately, and justify the loss with a measured payback against the subscription revenue it enables.

Sources#

  1. Confluent, Inc., FY2025 Form 10-K, for the year ended December 31, 2025. Primary source for subscription and services revenue and cost of revenue used in the stream-margin calculation.
  2. Confluent, Inc., Fourth Quarter and Fiscal Year 2025 Financial Results (Form 8-K, Exhibit 99.1), February 11, 2026. GAAP total gross margin of 74.3% and non-GAAP total gross margin of 78.4%, with the reconciliation of adjustments.
  3. DocuSign, Inc., FY2026 Form 10-K, for the year ended January 31, 2026. Composition of cost of subscription revenue and the overhead-allocation policy.
  4. Docusign, Inc., Fourth Quarter and Fiscal Year 2026 Financial Results, 2026. Q4 FY2026 non-GAAP gross margin of 81.8% and the cloud-migration explanation.
  5. US Securities and Exchange Commission, Non-GAAP Financial Measures — Compliance and Disclosure Interpretations, Division of Corporation Finance; questions 100.01 and 100.04–100.06 last updated December 13, 2022. Staff position on misleading adjustments and individually tailored recognition and measurement methods.

Source-use note: Confluent's stream-level gross margins (78.1%, −16.0%, 74.3%) were calculated by us from the revenue and cost-of-revenue figures the company reported; the 74.3% and 78.4% totals are as reported by the company.

Note: This page is educational and does not constitute accounting, audit, tax, or securities-law advice. Cost-of-revenue classification, software capitalization, overhead allocation, and the presentation of non-GAAP measures involve judgment and are governed by rules that vary by jurisdiction and change over time. Consult a qualified accountant or securities counsel before relying on any of this in financial statements, investor materials, or a filing.

Author

Dr. Sarah Zou

Independent economist · EconNova

Commercial strategy for technical products, with a focus on pricing, unit economics, and the operating choices behind the model.

About Sarah

Topics

gross margingross profitcost of revenueCOGSSaaS metricsunit economicsnon-GAAP

Cite this page

Suggested citation

Zou, S. (2026). Gross Margin: Measuring the Economics of Delivering Revenue. In Unit Economics. Pricing & Monetization Wiki. https://sarahzou.com/wiki/unit-economics/gross-margin

Open license

Reuse with attribution

This content is available for reuse. When referencing or republishing it, please credit Dr. Sarah Zou and link back to the original source.

Licensed under Creative Commons Attribution 4.0 International. You may share and adapt the material with appropriate credit.