SaaS Cost of Sales Examples: Line-by-Line Breakdown

SaaS cost of sales examples show the direct costs of delivering software to paying customers in a period. Typical lines are hosting, embedded third-party services, DevOps, direct support, and delivery-related onboarding. Sales, marketing, product development, and general admin stay out, because they are operating expenses.

Key takeaways
  • Cost of sales means delivery cost. If a cost serves current customers, it usually belongs here.
  • Hosting is the clearest line. Cloud infrastructure scales with the customers you serve.
  • Support is usually included. Teams serving live accounts are part of delivery.
  • Customer success can be split. Retention work may count; quota-carrying upsell work does not.
  • Consistency matters most. Use the same rules each period so margins stay comparable.

What is SaaS cost of sales?

Cost of sales, often called COGS, is what you spend to deliver the product customers pay for. It sits above gross profit in your accounts.

ChurnZero defines it as the total expenses associated with creating and delivering the product or service. For SaaS, delivery means hosting, running, and supporting software.

It differs from operating expenses, which run the business. Rent, marketing, and admin salaries support the company, not a specific customer's service.

Write down your inclusion rules and keep them stable. Changing which lines count each quarter makes gross margin trends meaningless for leaders and investors.

  • Hosting and infrastructure
  • Embedded third-party services
  • Site operations and DevOps
  • Direct customer support
  • Delivery onboarding and services

Put this into practice by reviewing hosting and infrastructure and embedded third-party services with the named owner this month. Record what you find, assign any fix a date, and check it again at the next review.

Keep the focus narrow each month. Review one change, one owner decision, and one open risk for this topic, then record the outcome where the whole team can find and reuse it later.

What does a worked SaaS cost of sales example look like?

Example: a company has $200,000 of monthly revenue. Its hosting is $10,000, DevOps is $8,000, support is $15,000, and embedded services are $5,000.

Total cost of sales is $10,000 plus $8,000 plus $15,000 plus $5,000. That equals $38,000 for the month in this example.

Cost of sales is $38,000 divided by $200,000, or 19% of revenue. Gross margin is 100% minus 19%, which equals 81%. Check with the gross margin calculator.

Recompute every example from its lines before you publish or present it. A total that does not match its parts destroys trust in the whole report.

  1. Revenue for the same period
  2. Each delivery cost line listed
  3. Total cost of sales added correctly
  4. Cost as a percentage of revenue
  5. Gross margin after subtraction

A useful test is to pick one recent case and trace it against revenue for the same period and total cost of sales added. Where the case and the rule differ, decide which one is wrong, then fix it and note the decision.

Revisit this section whenever your team, tools, or costs change in a material way. Small updates made early are far cheaper than a large clean-up project after problems have already reached customers or auditors.

Cost lineExample amountIn cost of sales?
Production hosting$10,000Yes, delivery
DevOps and site operations$8,000Yes, delivery
Direct support team$15,000Yes, delivery
Embedded third-party services$5,000Yes, delivery
Sales and marketingNot countedNo, operating expense

Which hosting and infrastructure lines are included?

Include production hosting, storage, bandwidth, and content delivery. These costs rise as customers use the product more heavily.

Include monitoring and incident tooling for production systems. Your team uses those tools to keep the live service running for customers.

Exclude development and test environments used to build future features. Those belong with product development in operating expenses.

Split cloud bills by environment and tag production resources. Untagged cloud spend is the main reason hosting lines drift between delivery and development.

  • Production cloud hosting and storage
  • Bandwidth and content delivery
  • Production monitoring and alerting
  • Backup for live customer data
  • Development environments: excluded

Document your approach to bandwidth and content delivery in one short page that new team members can follow. A written approach survives staff changes, while knowledge held by one person leaves with them.

Share the result with the people who depend on it, not only the people who produced it. Visibility creates accountability, and accountability is what keeps a good process working after the first push ends.

How do support and success costs fit in examples?

Support staff serving live customers are a delivery cost. Their salaries, tooling, and management share usually sit in cost of sales.

Onboarding that gets a customer live can also count. It is required to deliver the service the customer bought.

Customer success is the split case. Retention and adoption work may be delivery; work carrying an expansion quota is selling. See spend management for tracking.

Use time or activity splits for mixed roles, and review them twice a year. A fixed guess made once will drift as teams change their work.

  • Support salaries and ticketing tools
  • Onboarding required for go-live
  • Retention-focused success time
  • Expansion quota work: excluded
  • Support management allocation

Put this into practice by reviewing support salaries and ticketing tools and onboarding required for go-live with the named owner this month. Record what you find, assign any fix a date, and check it again at the next review.

Keep the focus narrow each month. Review one change, one owner decision, and one open risk for this topic, then record the outcome where the whole team can find and reuse it later.

Tip

Tag cloud and vendor costs by purpose when you buy them. Purpose tags decided later become arguments, and arguments become inconsistent margins.

What about third-party and transaction costs?

Embedded third-party services belong in cost of sales. If customers consume an API, data feed, or AI service inside your product, you pay to deliver it.

Payment processing fees are usually included too. They are a per-transaction cost of collecting subscription revenue from customers.

Internal tools your own team uses are different. Your CRM, payroll, or design software supports operations, so it sits in operating expenses.

List embedded vendors beside the product feature they power. When a feature is cut, its delivery cost should leave cost of sales with it.

  • APIs consumed inside the product
  • Data feeds served to customers
  • Payment processing fees
  • Per-customer licence costs you resell
  • Internal team tools: excluded

A useful test is to pick one recent case and trace it against apis consumed inside the product and payment processing fees. Where the case and the rule differ, decide which one is wrong, then fix it and note the decision.

Revisit this section whenever your team, tools, or costs change in a material way. Small updates made early are far cheaper than a large clean-up project after problems have already reached customers or auditors.

How do professional services appear in cost of sales?

Paid implementation and training services have their own delivery costs. Match those costs against the services revenue they generate, not subscription revenue.

Blending services into subscription margin hides problems. A low-margin services line can drag down a healthy subscription margin in one combined figure.

Report two margins where services are material: subscription margin and services margin. Leaders can then fix the line that actually underperforms.

Track services staff time by project from the start. Project-level time is the only reliable way to price and staff the next implementation well.

  • Implementation staff time by project
  • Training delivery costs
  • Services revenue matched to its costs
  • Subscription margin reported separately
  • Services margin reported separately

Document your approach to training delivery costs in one short page that new team members can follow. A written approach survives staff changes, while knowledge held by one person leaves with them.

Share the result with the people who depend on it, not only the people who produced it. Visibility creates accountability, and accountability is what keeps a good process working after the first push ends.

What common examples show costs in the wrong place?

Putting all engineering in cost of sales is a frequent error. Engineers building new features create future product, which is development expense.

Leaving support out is the opposite error. It flatters gross margin while hiding the real cost of serving current customers.

Fix errors by restating the rules, not by moving one line quietly. Document changes so period comparisons stay honest. More examples are on the blog.

Review your cost of sales policy with finance once a year. Product, pricing, and team structures change, and the policy should change openly with them.

  • All engineering counted as delivery
  • Support left out of cost of sales
  • Internal tools counted as delivery
  • Services blended into subscription margin
  • Rules changed without documentation

Put this into practice by reviewing all engineering counted as delivery and support left out of cost with the named owner this month. Record what you find, assign any fix a date, and check it again at the next review.

Keep the focus narrow each month. Review one change, one owner decision, and one open risk for this topic, then record the outcome where the whole team can find and reuse it later.

Sources

Frequently asked questions

What is included in SaaS cost of sales?

SaaS cost of sales includes production hosting and infrastructure, embedded third-party services customers consume, DevOps and site operations, direct support, and delivery-related onboarding or professional services. It excludes sales, marketing, product development, and general administration.

How do you calculate SaaS cost of sales as a percentage?

Add all delivery cost lines for the period and divide by revenue for the same period. Example: $38,000 of cost of sales on $200,000 of revenue equals 19%. Gross margin is then 100% minus 19%, or 81%.

Is customer support part of SaaS cost of sales?

Usually yes. Support teams serve current customers and are part of delivering the service, so their salaries and tools are commonly included. Customer success may be split: retention work can count, while quota-carrying expansion work is selling.

Are payment processing fees in SaaS cost of sales?

Usually yes. Processing fees are a per-transaction cost of collecting subscription revenue and are commonly treated as a delivery cost. Internal tools, by contrast, are operating expenses because they support your team rather than your customers.

Why report subscription and services margins separately?

Because their economics differ. Implementation and training services carry heavy staff time and lower margins than subscriptions. One blended margin hides which line underperforms, so report subscription margin and services margin separately when services are material.