Entrepreneurship & Business ModelsUnit economics and pricing · Lesson 7 of 18
Unit economics: CAC, LTV, contribution margin and AI costs
Video lecture
Unit economics: CAC, LTV, contribution margin and AI costs
The narrated lecture is in production
Every chapter is scripted and ready. Browse the chapters and read the full transcript now — the video will appear here when it’s published.
Chapters
Transcript of the narration, chapter by chapter.
0:00 Unit economics
Here's a story that's become common. An AI startup launches, customers love it, usage explodes, and the founders celebrate. Then the model bill arrives, and it's bigger than revenue. They'd built a business that lost more money the more customers loved it. In this lecture, you'll learn the core unit economics every founder needs: contribution margin, customer acquisition cost, lifetime value and payback. And you'll learn how to treat AI model usage properly, as a cost of goods sold, so you can see your real margin per customer before it surprises you.
0:40 Why it matters
Why does this matter? Because growth multiplies whatever your unit economics already are. If each customer makes you money, growth makes you more. If each customer loses money, growth makes your losses bigger, faster. Unit economics are simply the revenue and costs attached to one unit: one customer, one order or one subscription. Here's the key idea. You can't fix negative unit economics with scale unless you know exactly which number scale will change, and why.
1:13 The lemonade stand
Let's build the concepts with an analogy. Imagine a lemonade stand. Each cup sells for one pound. The lemons, sugar and cup cost forty pence. That leaves sixty pence of contribution, which pays for the stand, the sign and eventually your profit. Now suppose you spend two pounds on a flyer campaign for every new regular customer. That's your customer acquisition cost, or CAC. If a regular buys two cups a week for ten weeks, they bring in twelve pounds of contribution. That's their lifetime value, or LTV, measured on contribution rather than revenue. LTV to CAC is twelve to two, or six. And payback, the time to earn back the two pounds, is under two weeks.
2:04 Definitions
Now the formal definitions. Contribution margin is price minus variable costs per unit. CAC is total sales and marketing spend divided by new customers won, including salaries and tools, not just ads. Monthly churn is the share of customers who leave each month. Average lifetime is roughly one divided by churn. So four percent churn means about twenty-five months. LTV is monthly contribution times lifetime. LTV to CAC tells you the return on acquisition spend, and CAC payback tells you how many months until a customer has paid back what it cost to win them. Rules of thumb, like three to one and about a year's payback, are prompts for questions, not laws.
2:53 Worked example 1: SaaS (illustrative)
A simple worked example, illustrative. A software tool for small retailers costs thirty dollars a month. Hosting, payment fees and support cost six dollars per customer, so contribution is twenty-four dollars, or eighty percent. Monthly churn is four percent, so average lifetime is about twenty-five months. LTV is twenty-four times twenty-five, which is six hundred dollars. CAC is two hundred dollars. So LTV to CAC is three, and payback is two hundred divided by twenty-four, a bit over eight months. That looks healthy. But notice how sensitive it is. If churn rises to eight percent, lifetime halves, LTV halves, and the ratio falls to one and a half.
3:40 AI usage is COGS
Now, AI products. When your product calls a language model, every customer action has a direct cost. Providers charge by tokens, which are small chunks of text, roughly three-quarters of an English word on average, and often more tokens per word in languages like Arabic or Urdu. Input tokens, what you send, and output tokens, what comes back, usually have different prices. That cost belongs in cost of goods sold, and so in contribution margin, exactly like the lemons in our lemonade. Treating it as a fixed IT overhead hides the most important risk: margins that shrink as customers use you more.
4:24 Cost per task
Here's the cost-per-task formula. Take input tokens times the input price, plus output tokens times the output price, with prices usually quoted per million tokens. Add an allowance for retries and regenerations. Add retrieval, search, tool or hosting costs per task. And if a person reviews the output, add their minutes times their loaded cost. Then multiply by tasks per month to get COGS per customer. One practical tip. Always write down the date you checked the provider's price page. Model prices change often, sometimes downwards, sometimes with new model versions that behave differently.
5:05 Worked example 2: AI support replies (illustrative)
Now the realistic scenario. All numbers are illustrative, not current prices. A startup sells an AI tool that drafts replies to customer emails for small online shops at forty-nine pounds a month. An average task sends three thousand input tokens and gets four hundred back. At illustrative prices of two pounds forty per million input tokens and twelve pounds per million output tokens, that's about one point two pence per task. Add retries and retrieval, and it's about one point eight pence. A typical shop sends twelve hundred tasks a month: about twenty-one pounds sixty of model cost. With six pounds of other variable costs, contribution is about twenty-one pounds forty, roughly forty-four percent. But a heavy shop sending five thousand tasks costs about ninety pounds. It loses forty-seven pounds a month.
6:02 Watch me: the sheet in action
Watch me do it. I open the unit economics sheet from the lesson. I create three columns: light, typical and heavy customers. I enter price, tasks per month, tokens per task and the provider's prices, with the date checked. The sheet calculates cost per task, COGS, contribution, lifetime, LTV and payback for each segment. Now I test levers. First, I route simple replies to a smaller model, after checking quality on fifty real examples. Cost per task drops. Next, I trim the context, sending only the relevant policy sections rather than the whole handbook. Then I add a usage allowance with overage to the pricing. Heavy customers turn positive. I haven't guessed. I've modelled each lever.
6:52 Levers
Let's gather the levers. For any business: raise price where value supports it, cut variable costs, improve retention, expand revenue from existing customers, and find cheaper acquisition channels such as referrals and content. For AI businesses, add these. Right-size the model for each task. Trim context. Use features many providers offer, like prompt caching and discounted batch processing, after checking the current docs. Cap output length. Add a usage dimension to pricing. And watch human review time. If every output needs five minutes of expert checking, that review, not the tokens, is probably your biggest variable cost.
7:34 Common mistakes
Now the common mistakes. Calculating LTV on revenue instead of contribution. Using hopeful churn numbers without data. Leaving salaries and tools out of CAC. Hiding expensive paid channels inside a blended CAC with free organic sign-ups. For AI products, treating model costs as fixed overhead, using only the average customer, and forgetting that languages, long documents and retries can multiply token counts. And finally, assuming that model prices will keep falling, so the problem will fix itself. Maybe they will. But plan with today's prices, and treat any fall as upside.
8:14 Recap and try this now
Let's recap. Unit economics tell you whether each customer makes money: contribution, CAC, churn, LTV, LTV to CAC and payback. For AI products, model usage is cost of goods sold. Calculate cost per task from tokens, retries, tools and human review, and model it per usage segment, not just on average. Then pull the levers: model choice, context, caching, pricing and review time. Your try this now: build the unit economics sheet for your idea with three usage segments, write down the date you checked your provider's prices, and run two scenarios: churn twenty percent lower, and CAC twenty percent higher.
Does each customer make money?
Unit economics measure the revenue and costs associated with a single unit: one customer, one order or one subscription. If each unit loses money, growth makes losses bigger. Understanding unit economics early helps you decide whether a model can become profitable and how much you can afford to spend acquiring customers.
Key metrics
| Metric | Formula | Meaning |
|---|---|---|
| Contribution margin (per unit) | Price − variable costs per unit | What each sale contributes to fixed costs and profit |
| Contribution margin % | Contribution ÷ price | Share of revenue left after variable costs |
| Customer acquisition cost (CAC) | Total sales & marketing spend ÷ new customers acquired | Cost to win one customer |
| Churn rate (monthly) | Customers lost in month ÷ customers at start of month | How fast customers leave |
| Average customer lifetime | ≈ 1 ÷ monthly churn (in months) | Approximate months a customer stays |
| Customer lifetime value (LTV) | Contribution per month × average lifetime | Contribution a customer generates over their life |
| LTV:CAC ratio | LTV ÷ CAC | Return on acquisition spend |
| CAC payback period | CAC ÷ monthly contribution per customer | Months to recover acquisition cost |
Note: LTV can be defined in several ways (some use revenue rather than contribution, and some discount future cash flows). Using contribution is more conservative and more useful for decisions.
Worked example 1: a subscription app
Illustrative. A SaaS tool for small retailers.
Price: $30 per month
Variable costs (hosting, payment fees, support per customer): $6 per month
Contribution: $24 per month (80%)
Monthly churn: 4% → average lifetime ≈ 1 / 0.04 = 25 months
LTV ≈ $24 × 25 = $600
CAC (marketing + sales cost per new customer): $200
LTV:CAC = 600 / 200 = 3.0
CAC payback = 200 / 24 ≈ 8.3 monthsMany investors and operators use an LTV:CAC of around 3 and a payback of around a year or less as rough rules of thumb for subscription businesses, but these vary by sector, stage and funding environment. Treat them as prompts for questions, not laws.
Worked example 2: an e-commerce brand
Illustrative. An online skincare brand in Karachi (amounts in PKR).
Average order value (AOV): 4,000
Cost of goods: 1,600
Shipping, packaging and payment/COD costs: 600
Contribution per order: 1,800 (45%)
CAC via social ads: 2,200 per first-time buyer
First-order contribution − CAC = 1,800 − 2,200 = −400 (loss on first order)
Repeat purchases: on average 1.5 further orders in the first year (illustrative)
First-year contribution per customer ≈ 1,800 × 2.5 = 4,500
First-year contribution − CAC = 4,500 − 2,200 = +2,300The brand loses money on the first order but profits over the year, if repeat behaviour holds. The key levers are clear: increase repeat purchases, raise AOV (bundles), reduce CAC (referrals, organic content) or reduce fulfilment costs (for example, encouraging prepaid orders to reduce cash-on-delivery return rates).
Cohort thinking
Averages hide important patterns. Track cohorts: customers acquired in the same month. Compare their retention and spending over time. If newer cohorts churn faster than older ones, your product or targeting may be deteriorating even if total revenue is growing.
Levers to improve unit economics
- Price: raise prices where value supports it (often the most powerful lever).
- Variable costs: negotiate supplier costs, reduce returns, optimise delivery.
- Retention: improve onboarding and product value to reduce churn.
- Expansion: upsell and cross-sell to existing customers.
- CAC: focus on efficient channels, referrals, partnerships and content.
Unit economics for AI products: model usage is cost of goods sold
For a product that calls large language models, every customer action has a direct, variable cost: the model provider charges by tokens (small chunks of text, roughly three-quarters of an English word on average, and often more tokens per word in languages such as Arabic or Urdu), by image, by audio minute or by request. That cost belongs in cost of goods sold (COGS) and therefore in contribution margin, exactly like ingredients in a restaurant. Treating it as a fixed "IT" overhead hides the most important risk in the business: margins that shrink as customers use you more.
A practical formula for cost per task:
cost per task =
(input tokens x input price per million / 1,000,000)
+ (output tokens x output price per million / 1,000,000)
x (1 + retry / re-generation rate)
+ retrieval, search, tool or hosting cost per task
+ human review minutes x loaded cost per minute (if a person checks the output)Then:
monthly COGS per customer = tasks per month x cost per task + other variable costs
gross margin % = (revenue - COGS) / revenue
contribution per customer = revenue - COGS - payment fees - variable supportWorked example 3: an AI support-reply product
Illustrative numbers only; model prices change often, so use your provider's current price page. A startup sells an AI tool that drafts replies to customer emails for small online shops at £49 per month.
Average task: 3,000 input tokens (email thread + policies), 400 output tokens
Illustrative prices: £2.40 per million input tokens, £12 per million output tokens
Model cost per task = 3,000 x 2.40/1e6 + 400 x 12/1e6 = £0.0072 + £0.0048 = £0.012
Retries/regenerations = 25% -> £0.015 per task
Retrieval/hosting = £0.003 per task -> £0.018 per task
Human spot-check = none by default (customer approves each reply)
Typical shop: 1,200 tasks/month -> model COGS ≈ £21.60
Other variable costs (support, payment fees, email infra) ≈ £6
Contribution ≈ £49 - £21.60 - £6 = £21.40 (≈ 44%)
Heavy shop: 5,000 tasks/month -> model COGS ≈ £90 -> contribution ≈ -£47Lessons: the average looks acceptable, but the heavy segment loses money on every month it stays. Unit economics must be calculated per usage segment, not just on the blended average.
Levers specific to AI costs
- Right-size the model: route simple tasks (classification, short replies) to smaller, cheaper models; reserve larger models for complex tasks. Measure quality on your own test set before switching.
- Trim context: send only the relevant parts of long documents (retrieval), and summarise old conversation history.
- Reuse: many providers offer prompt caching (reduced charges for repeated prompt prefixes) and discounted batch processing for work that does not need an instant answer. Check your provider's current documentation and pricing.
- Cap output length and avoid unnecessary regeneration.
- Price with a usage dimension: allowances, credits, tiers or overage (see the revenue models lesson).
- Watch the human cost: if every output needs five minutes of expert review, that review, not the tokens, is probably your biggest variable cost.
Hands-on: unit economics sheet template
INPUTS Segment A Segment B Segment C
Price per month ______ ______ ______
Tasks per customer per month ______ ______ ______
Input tokens per task ______ ______ ______
Output tokens per task ______ ______ ______
Input price per 1M tokens ______ (from provider's price page, date checked: ____)
Output price per 1M tokens ______
Retry rate ______
Other cost per task (retrieval, tools) ______
Human review minutes per task x cost ______
Other variable cost per customer ______
Monthly churn ______
CAC ______
OUTPUTS
Cost per task / COGS per customer / Contribution per month / Contribution %
Average lifetime (1/churn) / LTV (contribution x lifetime) / LTV:CAC / CAC payback (months)Common mistakes
- Calculating LTV on revenue instead of contribution.
- Using overly optimistic churn assumptions without data.
- Excluding sales salaries or tools from CAC.
- Relying on blended CAC that hides expensive paid channels behind free organic sign-ups.
- Growing fast with negative unit economics and assuming scale will fix it.
Quick self-check
Calculate contribution per unit, CAC and payback for your business or idea using honest assumptions. Which single lever would improve the numbers most, and how would you test it?
Key takeaways
- Contribution margin = price − variable costs; it funds fixed costs and profit.
- CAC = sales and marketing spend ÷ new customers; LTV ≈ monthly contribution × (1 ÷ monthly churn).
- LTV:CAC and CAC payback show whether acquisition spend is recovered; treat benchmarks as rough guides.
- Track cohorts and improve economics through price, costs, retention, expansion and CAC.
- For AI products, model usage (tokens, retries, tools, human review) is cost of goods sold: calculate cost per task and contribution per usage segment.
Check your understanding
Quick questions to lock in the lesson. They don’t count towards your certificate.
Put it into practice
Build the unit economics sheet for your idea with three usage segments (for AI products, include tokens per task, prices with the date checked, retries and human review), then run two scenarios: 20% lower churn and 20% higher CAC.
Enrol for free to save your progress
Reading is always free. Enrol to keep your place, take the final assessment and earn a verifiable certificate.