Skip to article
Cash & costs

How to model SaaS COGS and gross margin as you grow

Model SaaS COGS by identifying the costs included in delivering your service and choosing a driver for each one, such as subscriptions, labor hours, collections, or a fixed monthly amount. Subtract COGS from revenue to calculate gross profit, then divide by revenue for gross margin. Keep the classification policy explicit and avoid charging the same cost twice.

In this guide

Define what your gross margin includes

Before choosing a target margin, decide which costs the calculation contains. Hosting, delivery labor, onboarding, and payment processing may be relevant to your service model, but an accounting classification depends on the work performed and the policy being applied. Document that policy rather than assuming every software company uses the same categories.

The arithmetic is straightforward: gross profit = revenue − COGS; gross margin = gross profit ÷ revenue × 100. Stripe's explanation of gross and net profit describes this distinction. Gross profit does not subtract all operating expenses, so it is not the same as net profit or cash generation.

For planning, keep the definition consistent across scenarios. A margin improvement caused by moving a cost to another section is a classification change, not an operational saving.

Choose a driver for each delivery cost

Ask what causes the bill to change. If a cost arises only when a customer is onboarded, connect it to new subscriptions. If it covers ongoing service, consider active subscriptions, usage estimates translated into a cost assumption, or labor hours. Fixed costs should remain fixed until an explicit assumption changes.

Illustrative driver choices to evaluate for your business
CostPossible driverWhat to check
Onboarding workNew subscriptions × hours × loaded hourly rateWhether the acquisition month also carries ongoing costs
Ongoing deliveryActive subscriptions or labor hoursWhether different products require different effort
Renewal administrationRenewing subscriptionsThe product's renewal cadence
Payment processingCustomer cash collectionsFees already included elsewhere
Fixed service infrastructureMonthly amount within its datesLaunch timing and later capacity changes

Add delivery cost lines in Startup Model Builder. Choose New, Ongoing, or Renewal, then select the basis that matches the cost you are trying to forecast.

Reconcile a worked gross-margin example

Assume an illustrative month earns $10,000 of revenue. Under this example's chosen cost policy, COGS includes $1,000 of hosting, $1,500 of delivery labor, and $300 of payment processing. Total COGS is $2,800; gross profit is $7,200; gross margin is 72%.

Now add $800 of onboarding cost while holding that month's revenue fixed. COGS rises to $3,600, gross profit becomes $6,400, and margin falls to 64%. The point is to trace the result to a cost, not to label either percentage good or bad.

Review the months after onboarding as well. A cost incurred at acquisition has a different pattern from one incurred every active month. If acquisition speeds up, the mix of new and mature subscriptions changes. The model should make that timing visible rather than smoothing everything into an unexplained margin percentage.

Check payroll and processing for duplicate charges

Suppose a support employee is already included in your team salary schedule. If you also price all of that person's hours as an additional delivery-labor cash expense, total spending can be overstated. Identify whether the labor line represents another resource or duplicates the same payroll.

The builder's team salaries currently flow to G&A. HR department labels do not move those costs into COGS. If your accounting presentation needs a different allocation, reconcile it explicitly; adding a second expense does not accomplish a reclassification. See the hiring-plan guide for this convention.

The model also has a global processing-fee assumption based on collections. Check that a custom processing cost line does not repeat that charge. Annual prepayments can concentrate collection-based fees in a different period from earned revenue.

Test what changes as customers grow

Increase acquisition in a separate scenario and inspect each cost line. Variable costs should move according to their drivers; fixed costs should move only when you schedule a change. If a new volume requires more service capacity, represent that decision rather than assuming the existing setup can expand indefinitely.

Look at the cost detail alongside the subscription revenue forecast. A change in renewals affects both revenue and lifecycle costs. When comparing scenarios, explain which assumptions are responsible for the margin difference.

Finally, review operating expenses and cash. A business can have positive gross profit while still using cash after salaries, development, marketing, and other spending. The runway calculation answers a different question from gross margin.

Related questions

What is gross margin when revenue is zero?

The percentage is undefined because the formula divides by revenue. Report the cost and gross-profit amounts instead. Startup Model Builder leaves gross margin unset when revenue is zero rather than inventing a percentage.

Should I use an industry gross-margin benchmark?

Only after checking that business model, stage, and cost definitions are comparable. This guide does not prescribe a benchmark. Start by understanding your own delivery economics and whether the planned service can be funded.

Put the costs next to the customers.

Connect onboarding, ongoing delivery, and renewals to explicit cost drivers. Then inspect gross profit and cash under a different growth scenario.

Model your delivery costs