Gross margin %
Pure `(Revenue − COR) ÷ Revenue` with **max(revenue, 1)** guard—pairs with your loaded-cost and NRR tools on finance stacks.
Example scenario
A subscription analytics vendor closes a fiscal quarter with $890,000 in recognized subscription revenue after ASC 606 netting of refunds and credits and loads $195,000 of cost of revenue covering third-party hosting, embedded LLM inference fees, customer-support payroll tied to ticket volumes, and amortized onboarding personnel classified under COS. Gross profit dollars equal $695,000 and gross margin rounds to about 78.09%. FP&A still reconciles services-heavy deals whose COR lands in professional-services COGS outside this numerator.
Gross margin %
(Revenue − cost of revenue) ÷ revenue × 100
Want a similar calculator on your website?
Describe your fields and formula in plain English, match your brand, and embed the widget anywhere—WordPress, Webflow, Shopify, or custom HTML. Capture leads when you're ready.
How to use the gross margin %
- Input period subscription revenue ($) consistent with your GAAP or management reporting definition—recognized revenue after allowances, not contracted ACV booked in CRM.
- Input cost of revenue ($) using your chart-of-accounts mapping for COS: hosting, third-party APIs billed per tenant, success labor coded below gross profit, and payment fees tied to subscription billing.
- Read gross margin percentage and gross profit dollars; flag outliers where COR excludes embedded AI usage spikes still hitting hosting invoices.
- Compare rolling gross margin to cohort revenue mix before tying results to Rule of 40 or sales-comp planning.
SaaS gross margin benchmarks
- Software-heavy SaaS gross margin bands
- Public SaaS benchmarks frequently cite mid-to-high seventy-percent gross margins as common among scalable cloud software vendors once COS for hosting and customer success scales sublinearly.
- Cost-of-revenue composition
- ASC-compliant COR typically bundles hosting, payment processor fees allocable to subscriptions, customer-support labor mapped to COS, and embedded third-party data fees—distinct from R&D and field sales opex.
- Services-heavy portfolios
- Implementations booked below margin often compress consolidated gross margin unless segmented into PS revenue lines with their own COS treatment.
Best use cases
- Forecasting and scenario planning
- Client education and pre-qualification
- Budget and performance decision support
Frequently asked questions
Should stock-based compensation live in cost of revenue?
Follow your auditor policy; many SaaS firms allocate customer-success SBC into COS while engineering SBC stays in R&D so gross margin reflects loaded delivery labor tied to customers.
Why exclude sales commissions from gross margin?
Commissions usually classify as sales and marketing opex under ASC 606 incremental-cost guidance unless capitalized for commission deferrals unique to your facts.
Does blended subscription plus usage pricing change interpretation?
Yes—usage-based inference or SMS costs may spike COR independent of seat revenue; segment blended streams when diagnosing gross-margin erosion.
Is gross margin the same as contribution margin?
No. Contribution margin typically subtracts variable sales and marketing beyond COS; gross margin stops after revenue minus COS.
Glossary
Scenario modeling
Testing multiple assumptions to estimate possible outcomes before execution.
Commercial intent
User behavior indicating readiness to buy, subscribe, or request a quote.
Related calculators
Category: SaaS profitability and unit economicsTopics: Gross margin, Cost of revenue, Subscription revenue
Last reviewed: 2026-05-07
Reviewed by: Calclet Growth Team