Skip to main content

How Do I Calculate Unit Economics? A Builder's Guide

Calculate unit economics by comparing LTV to CAC per customer. Step-by-step formulas, benchmarks, a comparison table, and operator mistakes to avoid.

Key takeaways
  • Unit economics = the profit or loss on one customer, order, or subscription.
  • The two core numbers are CAC (cost to acquire) and LTV (value earned over the relationship).
  • Aim for an LTV:CAC ratio around 3:1 and CAC payback under 12 months.
  • Always use gross-margin dollars in LTV, never top-line revenue.
  • Fully loaded costs — tooling, support, and infra — belong in the math or the numbers lie.

Unit economics measures the profit or loss on a single unit — one customer, one subscription, one order. You calculate it by subtracting the fully loaded cost to acquire and serve that unit from the revenue it generates over its lifetime. The two core numbers are Customer Acquisition Cost (CAC) and Lifetime Value (LTV). A healthy business earns back its CAC in under 12 months and keeps the ratio between them near 3:1.

What are unit economics, exactly?

Unit economics is the revenue and cost of one unit of your business, isolated from everything else. The unit is whatever you sell repeatedly — for most software and subscription businesses, it's one customer.

The point is to answer a single question: does one customer make money or lose money? If you spend $400 to win a customer who returns $1,200 in gross profit over their life, the unit works. If they return $300, you are buying dollars for more than a dollar, and scaling only speeds up the loss. Getting this right early is why Andreessen Horowitz's startup metrics guide treats CAC and LTV as foundational, not optional.

How do I calculate unit economics step by step?

Calculate unit economics in five steps, using gross-margin dollars, never raw revenue. Start with acquisition cost, then lifetime value, then compare the two.

You might also like

  1. Calculate CAC. Add all sales and marketing spend for a period — ads, salaries, tools, agency fees — and divide by the number of new customers won in that period.
  2. Find gross margin per customer. Take average revenue per customer and subtract the direct cost to serve them: hosting, payment fees, support, and third-party APIs.
  3. Estimate average lifespan. Invert your monthly churn rate. A 4% monthly churn implies an average lifespan of 25 months (1 ÷ 0.04).
  4. Calculate LTV. Multiply average monthly gross-margin dollars by average lifespan. So $50 monthly margin × 25 months = $1,250 LTV.
  5. Compare. Divide LTV by CAC for the ratio, and divide CAC by monthly gross margin for the payback period in months.

Run these on a real cohort, not a hopeful projection. Folklore numbers in, folklore answers out.

What's the difference between CAC, LTV, and contribution margin?

CAC is what you pay to get a customer; LTV is what that customer is worth over time; contribution margin is the profit on a single sale after variable costs. All three describe the same unit from different angles, and you need all three to see clearly.

Metric What it measures Formula Healthy target
CAC Cost to acquire one customer Sales + marketing spend ÷ new customers Recovered in < 12 months
LTV Gross profit over the relationship Monthly gross margin × avg. lifespan ≥ 3× CAC
Contribution margin Profit on one sale after variable cost Price − variable cost per unit Positive and > 50%
LTV:CAC ratio Efficiency of the whole model LTV ÷ CAC ~3:1

Contribution margin is the one people skip, and it hides the most damage. If serving a customer costs 60% of what they pay, your LTV is far smaller than revenue suggests.

How we track unit economics shipping software at Botensten

We track unit economics per feature and per customer cohort, because in software the cost to serve is not fixed — it moves every time you ship. When we build a feature that calls an LLM on every request, that API cost lands directly in gross margin, so we measure it before we price anything.

Here's a real trade-off we hit. We shipped an AI-assisted flow that felt great in the demo, then watched per-customer inference cost eat roughly a third of the plan's margin at real usage. The unit still worked, but barely, and it wouldn't survive a heavier user. So we changed the build: cache repeated calls, batch where latency allowed, and move a cheaper model onto the hot path. Contribution margin recovered without touching the price.

The lesson we now bake into every build: infrastructure and third-party API costs are unit economics, not overhead. A solo operator running on Bun, SQLite, and a single VPS has a structural margin advantage precisely because those costs stay small and legible. Rent less of your stack, own more of it, and the unit math stays in your favor.

Which benchmarks tell you the numbers are healthy?

The two benchmarks that matter most are an LTV:CAC ratio around 3:1 and CAC payback in under 12 months. These come from years of SaaS operating data, not a magic constant.

An LTV:CAC near 3:1 is the widely used rule of thumb popularized in David Skok's SaaS Metrics 2.0 framework: below 1:1 you lose money per customer, and far above 3:1 usually means you're underinvesting in growth. For payback, Bessemer Venture Partners' cloud benchmarks point to sub-12-month recovery for efficient companies, with the best often under 6. Use these as guardrails, then judge against your own cash position — a bootstrapped operator can't wait as long as a funded one.

Common mistakes that make unit economics lie

Most broken unit-economics models fail for the same handful of reasons. Watch for these before you trust any number.

  • Using revenue instead of gross margin in LTV. This inflates LTV by ignoring the cost to serve. Always use margin dollars.
  • Leaving costs out of CAC. Salaries, tools, and creative production are acquisition costs. Ad spend alone undercounts CAC badly.
  • Assuming lifespan is forever. Pick a real churn number and cap LTV at a defensible horizon, like 24 or 36 months.
  • Blending cohorts. A great early cohort can mask a terrible recent one. Measure by acquisition month.
  • Ignoring payback period. A 5:1 LTV:CAC that takes 30 months to recover can still bankrupt a cash-tight business.

Books like Simple Numbers and Financial Intelligence for Entrepreneurs make the same point in different words: the number you don't measure is the one that sinks you.

Related reading

Frequently asked questions

How do I calculate unit economics?
Divide a customer's Lifetime Value (monthly gross margin × average lifespan) by their Customer Acquisition Cost (sales and marketing spend ÷ new customers). A ratio near 3:1 with CAC repaid inside 12 months indicates healthy unit economics.
What is a good LTV to CAC ratio?
Around 3:1 is the common benchmark. Below 1:1 you lose money on every customer; far above 3:1 often means you're underspending on growth and leaving demand on the table.
Should I use revenue or gross margin to calculate LTV?
Always use gross-margin dollars, not revenue. Revenue ignores the cost to serve a customer — hosting, support, payment fees — which can overstate LTV by a wide margin.
What is CAC payback period?
It's how many months of gross margin it takes to recover the cost of acquiring a customer. Calculate it as CAC ÷ monthly gross margin per customer. Under 12 months is generally healthy.
What costs belong in Customer Acquisition Cost?
All sales and marketing spend: ad budget, salaries, commissions, software tools, agency fees, and content production. Counting ad spend alone understates CAC and makes the unit look better than it is.
How do unit economics differ for software businesses?
In software, cost to serve changes with each feature you ship — especially API and inference costs. Track gross margin per feature and per cohort, since a single expensive call can quietly erode contribution margin.
What is contribution margin?
Contribution margin is the profit on one sale after subtracting variable costs. If price is $100 and variable cost is $40, contribution margin is $60, or 60%. It should be positive before you scale.

Sources

  1. Andreessen Horowitz's startup metrics guide a16z.com
  2. David Skok's SaaS Metrics 2.0 framework forentrepreneurs.com
  3. Bessemer Venture Partners' cloud benchmarks bvp.com

Keep reading

For builders who ship

Stop renting. Own your software.

You have the idea. We turn it into software your business actually runs on — built for the top 1–2% who move fast and build in public. No renting SaaS forever. Own it.

Built real. Owned forever. Yours to keep.

Follow the launch. Orbit build updates and early-access invitations—in your inbox.

0 Comments

Log in to comment

Not a member yet? Join the community

0:00 / 0:00