Sub topic 3
Calculating Customer Acquisition Cost
This chapter assumes you know basic percentages and what a subscription business is, and that you can read short Python functions. Everything else is defined as it appears. The previous chapter fixed what counts as a customer and an acquisition. This chapter turns that definition into a number.
The basic formula
Customer acquisition cost (CAC) is the money spent to win customers in a period, divided by the number of new customers won in that same period.
CAC = acquisition spend in the period / new customers in the periodIf you spend $50,000 on sales and marketing in a month and 100 new customers start paying, CAC is $500. Each new customer cost $500 to acquire, on average. The word "average" matters. Some customers cost far more than $500 and some cost almost nothing. Breaking CAC down by channel is covered in a later chapter.
def cac(sales_marketing_spend, new_customers):
return sales_marketing_spend / new_customers
# One month: $50,000 of sales and marketing spend, 100 new customers.
print(cac(50_000, 100)) # 500.0The function fails with a ZeroDivisionError when no customers arrive. That is the right behavior for a month with no new customers. CAC is undefined in that case, and a value of 0 would wrongly suggest customers were free. Treat that month as "no data" and look at a longer window.
Deciding what goes in the numerator
The numerator is where most CAC mistakes start. The goal is to include every cost that exists to win new customers, and exclude costs that exist for other reasons.
Costs that normally belong in acquisition spend:
- Paid advertising and sponsorships.
- Salaries, commissions and benefits for sales and marketing staff.
- Marketing and sales software, such as a CRM, an email tool and analytics.
- Agency and contractor fees for acquisition work.
- Event, travel and content production costs.
- Sales engineering time spent on pre-sale demos and trials.
Costs that usually do not belong:
- Customer success or support work for existing customers.
- Product and engineering work, unless it is built only for acquisition, such as a signup funnel.
- Marketing aimed purely at upselling existing accounts. Track it separately, or allocate it deliberately.
For shared staff, allocate by time. If a marketer spends 70% of the month on acquisition and 30% on retention campaigns, only 70% of the salary goes in the numerator. Write the allocation rule down and apply it every period. Consistency matters more than precision here, because CAC is mostly watched as a trend.
A stricter or looser choice of what to include produces the variants covered in the next chapter: blended versus paid CAC, and fully loaded versus media-only CAC. For now, pick one definition and state it next to every number you report.
Deciding what goes in the denominator
The denominator is the count of new customers under your customer definition. Check four things.
- Count customers, not leads. A signup, a free trial or a demo request is not an acquisition unless your definition says so. For a freemium product, divide by new paying customers, not new free users.
- Count each customer once. A returning customer who reactivates is not new. A customer who upgrades is not new either.
- Include organic customers. People who found you through search, word of mouth or a referral also count in a blended CAC. Leaving them out is the choice that creates a paid-only figure.
- Match the unit. If you sell to companies, count accounts, not seats or users. If CAC is per account, LTV later in this tutorial must also be per account.
Matching spend to the right period
The formula assumes the money spent in a month produced the customers who arrived that month. In practice this is rarely true, because of the sales cycle. This is the time between first contact and a signed contract. A product with a 60-day sales cycle brings in customers this month who were generated by spending two months ago.
When spend is steady, the mismatch hardly matters. When spend is growing quickly, same-period CAC looks too high, because this month's larger spend is divided by customers produced by earlier, smaller spend. When spend is cut, CAC looks too low for a while. The cut has not yet reduced customer arrivals, but it has reduced the numerator.
There are two common fixes. Use a longer window, such as a quarter, which smooths the lag. Or use a lagged calculation, dividing spend from earlier periods by the customers who arrive later. The code below compares all three on the same data.
def cac(spend, new_customers):
return spend / new_customers
months = ["Jan", "Feb", "Mar"]
spend = [40_000, 50_000, 60_000]
customers = [80, 100, 110]
# Same-period CAC for each month.
for m, s, c in zip(months, spend, customers):
print(m, round(cac(s, c), 2))
# Jan 500.0
# Feb 500.0
# Mar 545.45
# Quarterly CAC: total spend over total new customers.
print("Q1", round(cac(sum(spend), sum(customers)), 2)) # Q1 517.24
# One-month lag: spend in the previous month, customers in this month.
for i in range(1, len(months)):
print(months[i], "lagged", round(cac(spend[i - 1], customers[i]), 2))
# Feb lagged 400.0
# Mar lagged 454.55March looks worst on a same-period basis, at $545.45. The lagged view says $454.55, because February's smaller budget produced March's customers. Neither number is wrong. They answer different questions. Pick the lag that matches your sales cycle, and keep it fixed so the trend stays comparable.
Worked example with a sales-led product
A startup sells a $400 per month tool to small companies. In one quarter it has these costs:
| Item | Quarterly cost |
|---|---|
| Paid ads | $45,000 |
| Marketing salaries (all acquisition) | $60,000 |
| Sales salaries and commissions | $90,000 |
| Marketing and sales software | $9,000 |
| Customer success salaries | $30,000 |
Customer success serves existing customers, so it stays out. Acquisition spend is 45,000 + 60,000 + 90,000 + 9,000 = $204,000. The company signed 120 new paying accounts in the quarter, so CAC is 204,000 / 120 = $1,700.
If someone had left out the salaries and divided only ad spend by new accounts, they would have reported 45,000 / 120 = $375. That is more than four times lower, and it would make the business look far healthier than it is. The gap between those two numbers is the reason the choice of numerator has to be stated.
Edge cases
- Small counts. With 3 new customers in a month, one extra deal changes CAC by about a third. Use a trailing quarter, or at least a trailing three-month sum, until volumes are higher.
- One-off large costs. A single $80,000 conference booth distorts one month. Report CAC with and without it, or spread it over the period it is expected to produce customers.
- Free or heavily discounted first months. CAC still counts the customer once they pay. The discount shows up later, as lower revenue in the first months of LTV.
- Founder-led sales. If founders close the early deals and draw little salary, CAC is understated. Add an estimated market salary for their sales time, or flag the figure as not reflecting a scalable cost.
- Channels with no spend. Referrals and organic search still cost something, namely the time of the people running them. A blended CAC captures that cost. A paid-only CAC does not.
Checklist before you report a CAC
- State the period and the lag, if any.
- List what is in the numerator and what is excluded.
- State the customer definition used in the denominator.
- Show the number of customers, so readers can judge how stable the figure is.
- Compute it the same way next period.
Exercise
In March a startup spent $30,000 on ads, $70,000 on sales and marketing salaries (of which 20% of one $10,000 marketing salary went to retention campaigns for existing customers, and this $2,000 is included in the $70,000), and $5,000 on tools. It signed 50 new paying customers. 10 free-trial users also signed up but never paid. What is CAC for March?
Show answer
Remove the $2,000 retention work from the salaries, leaving $68,000. Acquisition spend is 30,000 + 68,000 + 5,000 = $103,000. Only paying customers count, so the denominator is 50, not 60. CAC is 103,000 / 50 = $2,060.
Exercise
Spend was $20,000 in April and $60,000 in May. New customers were 40 in April and 50 in May. The sales cycle is about one month. Compute May's same-period CAC and its one-month-lag CAC, and say which better reflects the cost of May's customers.
Show answer
Same-period CAC for May is 60,000 / 50 = $1,200. Lagged CAC is April's spend over May's customers: 20,000 / 50 = $400. With a one-month sales cycle, May's customers were mostly generated by April's spend, so the lagged figure is closer to their cost. The May spend will show up as customers in June, so the same-period figure overstates the cost.