Costs and margins
What it costs to build and run the product compared with what it earns.
Gross margin is what is left after the direct costs of serving customers. Software usually has high margins, but AI features, heavy infrastructure or manual support can shrink them fast. Engineers influence many of these costs directly.
Why it matters for a product engineer
Gross margin is what is left of each euro of revenue after the direct cost of serving customers: hosting, third-party APIs, AI inference, payment fees, support. Software usually keeps a lot, but an AI feature, a heavy pipeline or manual onboarding can take most of it. Engineers decide many of these costs with every design choice.
How to do it
- List the direct costs of serving one customer: infrastructure, APIs and models, payment fees, support time.
- Divide each one by an active customer or a unit of use, so you know the cost of one more customer.
- Calculate the gross margin: revenue minus those costs, divided by revenue.
- Separate the other costs, such as salaries, marketing and tools, so you can see where the money goes.
- Find the biggest cost that grows with use, and estimate it before you ship a new feature.
- Check the numbers every month. A new model, a price change or a heavy customer can move them fast.
Common mistakes
- Ignoring the cost of a feature until the invoice arrives.
- Pricing per seat when the cost grows per request.
- Counting free users as if they cost nothing.
- Optimising costs too early, before you know what customers pay for.
- Looking only at the average, when a few heavy customers cost most.
Example
Zernio runs at a gross margin of about 87%, “without having optimised anything”, Miquel Palet said. Papermark is profitable with two founders and freelancers. It told Starter Story where its money goes: about 80% to freelancers and the founders’ salaries, 15% to growth experiments, and the rest to tools. (Zernio, Papermark)
Where Papermark's money goes
- Freelancers and the founders' salaries80%
- Growth experiments15%
- ToolsThe rest5%
People are most of the cost. Infrastructure does not appear as its own line.
ReportedPapermark's founders on Starter Story; tools is the remainder, about 5%
Sources: SaaS Metrics 2.0 (David Skok) ↗
In practice
Real productsResources
1- articleGo deeper
SaaS Metrics 2.0: a guide to measuring and improving what matters ↗
David Skok · 2013 · 35 minThe standard long-form reference for MRR, churn, LTV and CAC, with the formulas and the reasoning behind them.