Skip to content
BundleCodebase & Dev-Founder5 files · CC0-1.0

SaaS Unit Economics Pack (Sheet + TypeScript)

Gross margin, LTV:CAC, CAC payback, the churn ceiling, break-even and runway, with AI inference and VM hours priced in as real cost of goods. The Google Sheets / Excel version and the zero-dependency TypeScript version run the same formulas, with tests that pin them to the same example.

Download .zipDownload .md
Install into this repo
$ curl -fsSL "https://tryfounder2.com/api/packs/unit-economics?format=sh" | sh
Download the zip
$ curl -fsSL "https://tryfounder2.com/api/packs/unit-economics" -o unit-economics.zip && unzip unit-economics.zip

What is inside

  • AI inference (tokens × $/M) and sandbox/VM hours as first-class COGS lines
  • Churn ceiling: the customer count and MRR your current acquisition converges on
  • Real formulas in a CSV that Google Sheets and Excel evaluate on import
  • src/econ.ts — the same model in zero-dependency TypeScript, with vitest cases

5 files included

Inspect every file.

Read, copy, or download individual files without extracting the archive.

Download all (5)
src/
unit-economics/README.md

Start here: What the model answers and how to open it in Sheets, Excel or code.

# SaaS Unit Economics Pack

The numbers that decide whether your SaaS works — **including the AI inference and sandbox costs** most templates leave out.
Two versions of the same model:

- `unit-economics.csv` — import into Google Sheets (File → Import → Upload) or open in Excel / Numbers. Column B rows 3–18
  are inputs; everything below is live formulas.
- `src/econ.ts` — the same math as a zero-dependency TypeScript module, with tests that pin it to the sheet's example.

## What it answers

| Question | Row |
| --- | --- |
| What does one customer actually cost me per month? | Total COGS per customer |
| Is my gross margin SaaS-shaped, or am I reselling tokens? | Gross margin |
| How long until a customer pays back what I spent to get them? | CAC payback |
| Where does growth stop if nothing changes? | Customer ceiling / MRR ceiling |
| How many customers until I stop losing money? | Customers to break even |
| How long can I keep going? | Runway |

## The churn ceiling, in one line

If you add **N** customers a month and lose **c** of your base each month, your base converges on **N ÷ c**.
30 new a month at 5% churn caps you at 600 customers, whatever you ship. Below the ceiling, acquisition is the lever;
near it, only churn is.

## Formulas

See `METHODOLOGY.md`. Short version: lifetime = 1 ÷ churn capped at 60 months; LTV = gross profit × lifetime;
payback = CAC ÷ monthly gross profit. Health bands (LTV:CAC < 1 critical, < 3 warn; payback > 18 months warn) are
rules of thumb, not laws.

## About @founderos/econ

`src/econ.ts` is extracted from `@founderos/econ`, the package Founder2 uses for every number it shows you.
The package itself lives in our monorepo; this file is the standalone version, so there is nothing to install.
Copy it into your codebase and own it.

Share this pack

Post this on X

Post on X
Built a SaaS unit economics pack that actually counts AI token & sandbox costs as COGS. Google Sheet + zero-dependency TypeScript, same formulas, tests included. Shows your churn ceiling: the MRR you'll plateau at if nothing changes. Free, no email gate.

FAQ

Common questions

Do the formulas really work after importing a CSV?

Yes. Google Sheets (File → Import) and Excel both evaluate cells that start with = when they open a CSV. If your locale uses commas as decimal separators, import with comma as the field separator and the numbers as US format.

Why count payment fees and AI tokens as COGS?

They scale with every customer you add. Leaving them in opex makes gross margin look like classic SaaS when an AI-heavy product can be far below it, and gross margin is what LTV and payback are built on.

Can I npm install @founderos/econ?

Not today; it lives inside the Founder2 monorepo. src/econ.ts is the standalone extract of the same formulas, so copy it in and own it.

Where do the health thresholds come from?

They are common rules of thumb: LTV:CAC under 1 loses money on every customer, under 3 is thin, and SMB payback over 18 months strains cash. Adjust them in the sheet and in econ.ts for your market.

Want these numbers from your real Stripe data?

Founder2 syncs Stripe read-only and keeps this model current, with drift alerts when reality leaves the plan.

Try Founder2 free in beta