SaaS guide · Cash & equity
SaaS gross margin: what belongs in COGS
Gross margin looks like an accounting detail until you use it in LTV and CAC payback. Then it becomes one of the most consequential inputs in the model.
Quick answer
Gross margin is (revenue − cost of goods sold) ÷ revenue × 100. For SaaS, COGS includes hosting, third-party services used by customers and direct support or implementation costs.
Formula: Gross margin = (revenue − COGS) ÷ revenue × 100
Software has no manufacturing line, so teams often assume there is no cost of goods sold. There is: every customer uses infrastructure, APIs and usually some human support. Those costs belong below gross profit.
What belongs in COGS
Include hosting and infrastructure, third-party services consumed by customers, support staff directly tied to delivery, and implementation work required to serve a customer. Exclude sales, marketing, product development and general administration — those are operating expenses.
The boundary matters because several other metrics use gross margin. A higher COGS figure lowers LTV, lengthens CAC payback and changes how much burn is really caused by delivery rather than growth spend.
Reading the result
Many software businesses target 70–85% gross margin. Lower figures often signal heavy infrastructure costs, a large services component, or support that has not yet scaled with the customer base.
Margin can change for innocent reasons — a new region, a more expensive API, a customer support promise — so read it with the notes rather than as a pass or fail score.
Worked example
Using $85,000 of revenue and $17,000 of cost of goods sold:
| Result | Value |
|---|---|
| Gross profit | $68,000 |
| Gross margin | 80.0% |
Values shown are the default outputs of the Gross Margin Calculator calculator.
Common questions
What counts as COGS for SaaS?
Hosting, infrastructure, third-party services used by customers, direct support and implementation costs tied to delivery.
Are salaries included?
Only the salaries of people directly delivering the product, such as support engineers. Sales, marketing and admin are operating expenses.
What is a healthy SaaS gross margin?
Many software businesses target 70–85%. Lower margins often point to heavy infrastructure or services costs.