What Is COGS?

March 9, 2026

Definition
Cost of goods sold (COGS) is the direct costs to deliver a SaaS service, like hosting, third-party APIs, customer support, and payment processing. You’ll see COGS in SaaS financial reporting and unit metrics like gross margin and customer acquisition payback. Lower COGS raises gross margin, while higher COGS can make pricing and growth less sustainable.

How COGS Is Structured and Calculated in SaaS

In SaaS, a COGS figure comes from recurring delivery expenses that scale with customers, usage volume, and service-level requirements.

These costs are grouped into infrastructure, third-party services, and customer operations, then allocated to the same reporting period as related revenue. Calculation typically totals vendor invoices, platform usage charges, and support payroll directly tied to service delivery, excluding overhead.

As customer mix and consumption patterns shift, the composition and timing of COGS move with them.

Examples Of SaaS COGS That Shape Margins

Margin pressure in SaaS often comes from a handful of delivery costs that scale with usage, reliability expectations, and customer complexity. Seeing where the biggest COGS sit helps explain why two products with similar revenue can have very different gross margins.

Example 1: A usage-heavy product can see hosting and data-transfer costs rise faster than revenue when customers run large workloads, turning strong adoption into thinner margins unless pricing matches consumption.

Example 2: A high-touch customer base can drive higher support and onboarding labor, and paid third-party monitoring or incident tools, lifting per-customer delivery costs even when churn is low.

When Should SaaS Teams Include Costs In COGS?

COGS is often where SaaS finance moves from concept to day-to-day decisions about what it costs to deliver the product. In practice, teams use COGS to separate customer-delivery costs from broader operating spend when reviewing gross margin and unit economics.

Costs typically land in COGS when they are directly tied to providing the service in the same period as related revenue, such as cloud hosting, usage-based third-party APIs, support labor, and payment processing. Items like marketing, product development, and general admin are commonly kept outside COGS because they don’t scale with delivering each customer’s service.

FAQs About COGS

Is COGS the same as total expenses?

No. COGS covers delivery costs; operating expenses fund building and selling. Mixing them distorts gross margin and misguides pricing, staffing, and product decisions.

Do customer success and onboarding count as COGS?

Only when activities are required to deliver the service and scale with active customers. One-time implementation is often non-COGS unless bundled into delivery.

How should shared cloud costs be handled?

Use a consistent allocation method tied to usage drivers like compute-hours or storage. Avoid arbitrary splits; small policy shifts can materially change margins.

Can COGS change without any vendor price changes?

Yes. Feature launches, customer mix, usage intensity, and support load can shift unit costs, moving gross margin even when contracts stay constant.

Book a Free SEO Strategy Demo