← All posts
Classifying Costs — Part 2

Classifying Costs, Part 2: A Laundry List of Examples for SaaS Costs

Where specific costs land for cloud-native, ML/data-intensive B2B SaaS businesses. Use this as a reference when building your financial model.

Cost Waterfall Summary

For a business that acquires data, runs ML models in the cloud, and delivers derived insights via UI/API:

COGS (15-35% of revenue)
├── Customer-facing compute (variable)
├── Customer-specific storage (variable)
├── Customer-specific data (variable)
├── Data subscriptions for delivery (fixed)
├── Payment processing (transactional)
└── Customer support/success (semi-variable)

Variable Costs (10-25% of revenue)
├── Sales commissions
├── Implementation/onboarding
├── Client-specific ML training
└── Variable marketing

OPEX (40-70% of revenue)
├── R&D: Engineering, product, ML research
├── S&M: Base salaries, marketing programs
└── G&A: Executive, finance, HR, legal

Cloud Compute

Use CaseClassificationRationale
Production inference (serving client requests)COGS - Variable - DirectDirectly serves customers, scales with usage
Production API hostingCOGS - Variable - DirectRequired to deliver service
Reserved production instancesCOGS - Fixed - IndirectBase capacity for delivery
Client-specific model trainingVariable Cost - Variable - DirectOne-time acquisition cost
General ML training/researchOPEX (R&D) - Fixed - IndirectProduct development
Dev/test/staging environmentsOPEX (R&D) - Fixed - IndirectEngineering infrastructure

Cloud Storage

Use CaseClassificationRationale
Client data & outputsCOGS - Variable - DirectScales with clients, directly attributable
Client model artifactsCOGS - Variable - DirectRequired to serve specific client
Training data archives (all customers)COGS - Fixed - IndirectRequired for delivery, shared
Dev/test dataOPEX (R&D) - Fixed - IndirectEngineering resources
Logs & analyticsOPEX (R&D/G&A) - Fixed - IndirectGeneral operations

Data Acquisition

Use CaseClassificationRationale
Multi-year data subscription (all customers)COGS - Fixed - IndirectRequired to deliver product, shared across customers
Per-client commercial data purchaseCOGS - Variable - DirectPurchased specifically for client
Free/open data (Sentinel, Landsat)COGS - Variable - Direct (processing cost)Processing cost scales with clients
Data for product R&D onlyOPEX (R&D) - Fixed - IndirectProduct improvement, not delivery

Key distinction: A multi-year satellite data subscription is COGS (required for delivery) but fixed (doesn't scale with customers). This creates favorable operating leverage — the cost is spread across more customers as you grow.


ML Model Work

Use CaseClassificationRationale
Client-specific model trainingVariable Cost - Variable - DirectOnboarding cost, one-time per client
Client-specific model retrainingCOGS - Variable - DirectOngoing delivery cost
General model R&DOPEX (R&D) - Fixed - IndirectProduct development
Model serving/inferenceCOGS - Variable - DirectDirect delivery cost
Pipeline maintenanceOPEX (R&D) - Fixed - IndirectPlatform upkeep

People Costs

RoleClassificationP&L Line
Customer Success ManagerCOGS - Semi-variable - DirectCost of Revenue
Support EngineerCOGS - Semi-variable - DirectCost of Revenue
Implementation EngineerVariable Cost - Variable - DirectS&M / Acquisition
Sales AE (base salary)OPEX (S&M) - Fixed - IndirectS&M
Sales AE (commission)Variable Cost - Variable - DirectS&M / Acquisition
ML Engineer (product)OPEX (R&D) - Fixed - IndirectR&D
ML Engineer (client work)COGS or Variable - DirectDepends on ongoing vs one-time
Product ManagerOPEX (R&D) - Fixed - IndirectR&D
Software EngineerOPEX (R&D) - Fixed - IndirectR&D
ExecutiveOPEX (G&A) - Fixed - IndirectG&A
Finance/HR/LegalOPEX (G&A) - Fixed - IndirectG&A

Third-Party Services

ServiceClassificationRationale
Payment processing (Stripe)COGS - Transactional - Direct2.9% + $0.30 per transaction
Auth provider (production)COGS - Semi-variable - IndirectRequired for delivery
Analytics (customer-facing)COGS - Variable - DirectPart of delivered product
CRM (Salesforce)OPEX (S&M) - Fixed - IndirectSales infrastructure
Dev tools (GitHub, CI/CD)OPEX (R&D) - Fixed - IndirectEngineering tools
General analytics (internal)OPEX (G&A) - Fixed - IndirectBusiness intelligence

Typical Ranges by Category

COGS Components

CategoryTypical % of RevenueNotes
Customer-facing compute5-12%Higher for ML-heavy products
Customer storage2-5%Scales with data volume
Customer-specific data0-15%Depends on data strategy
Fixed data subscriptions5-20%Higher early, improves with scale
Payment processing2-3%Industry standard
Customer support/success2-5%Scales with customer count
Total COGS15-35%
Gross Margin65-85%Lower end for data-heavy

Variable Costs Components

CategoryTypical % of RevenueNotes
Sales commissions5-10%8-12% of ACV typical
Implementation5-15%One-time, front-loaded
Variable marketing2-5%Performance/paid channels
Total Variable10-25%

OPEX Components

CategoryTypical % of RevenueNotes
R&D15-25%Engineering, product, ML
S&M (fixed)15-30%Base salaries, programs
G&A8-15%Executive, finance, HR, legal
Total OPEX40-70%Higher for growth-stage

Operating Leverage from Fixed COGS

When COGS includes significant fixed costs (like data subscriptions), margins improve with scale:

Scenario10 Customers50 Customers100 Customers
Revenue$500K$2.5M$5M
Variable COGS (10%)$50K$250K$500K
Fixed COGS (data: $100K)$100K$100K$100K
Total COGS$150K$350K$600K
Gross Margin70%86%88%

This is why correctly classifying data subscriptions as fixed COGS (not variable) matters — it reveals the true operating leverage in the business.


Quick Reference

CostBehaviorFunctionTraceability
Multi-year satellite dataFixedCOGSIndirect
Per-client imageryVariableCOGSDirect
Production GPU inferenceVariableCOGSDirect
ML training (client model)VariableVariable CostDirect
ML training (general R&D)FixedOPEX (R&D)Indirect
Client data storageVariableCOGSDirect
General data archivesFixedCOGSIndirect
Payment processingTransactionalCOGSDirect
Sales commissionVariableVariable CostDirect
Implementation laborVariableVariable CostDirect
Engineering salariesFixedOPEX (R&D)Indirect
CSM salarySemi-variableCOGSSemi-direct
Pipeline maintenanceFixedOPEX (R&D)Indirect
Reserved production infraFixedCOGSIndirect