Coderhouse goes global

🌍

Read more

What Is Customer Acquisition Cost (CAC)? How Analysts Calculate CAC and Payback

AI Engineering

Build and ship real applications with LLMs, agents and automation.

8 weeks · Live online · View course →

Data Analytics

Go from zero to job-ready analyst with SQL, Python and BI tools.

10 weeks · Live online · View course →

Dan Patiño

AI Strategy & Innovation at Coderhouse

Data

What Is Customer Acquisition Cost (CAC)? How Analysts Calculate CAC and Payback

What Is Customer Acquisition Cost (CAC)? How Analysts Calculate CAC and Payback

Customer acquisition cost (CAC) is the average amount a company spends on sales and marketing to win one new customer. It is one of the first metrics investors, founders and finance teams ask about, because it answers a basic question: how expensive is our growth?

On its own, CAC says little. Its real value appears when analysts compare it with how much revenue a customer brings in and how long it takes to earn back what was spent to acquire them. This guide explains how to calculate CAC, how to compute the CAC payback period, and the mistakes that make the numbers misleading.

What is customer acquisition cost?

CAC measures the total cost of acquiring customers over a period divided by the number of new customers acquired in that same period. As the Corporate Finance Institute explains, it captures the resources a business must invest to bring in a new customer, and it is a core input for judging whether a business model is sustainable.

How to calculate CAC

The basic formula is:

CAC = Total sales and marketing costs ÷ Number of new customers acquired

Example: in one quarter, a company spends $60,000 on ads, $20,000 on marketing tools and content, and $70,000 on sales salaries and commissions. That is $150,000 in total. If it acquired 300 new customers in the quarter, its CAC is $150,000 ÷ 300 = $500.

What costs to include

  • Paid media (search, social, display, sponsorships)

  • Sales and marketing salaries, commissions and bonuses

  • Marketing and sales software (CRM, automation, enrichment tools)

  • Content production, events and agency fees

Blended vs. paid CAC

Blended CAC divides all acquisition costs by all new customers, including those who arrived organically or through referrals. Paid CAC only counts customers acquired through paid channels and the spend on those channels. Blended CAC can look healthy while paid channels are actually unprofitable, so analysts usually track both. To assign customers to the right channel, you need solid marketing attribution.

CAC payback period

The CAC payback period tells you how many months it takes for a customer’s gross profit to cover what you spent to acquire them:

CAC payback (months) = CAC ÷ (Monthly revenue per customer × Gross margin)

Continuing the example: if each customer pays $100 per month and gross margin is 80%, each customer generates $80 of gross profit per month. Payback is $500 ÷ $80 = 6.25 months.

Shorter payback means the company recovers cash faster and can reinvest in growth sooner. In his widely cited SaaS metrics guide, David Skok recommends recovering CAC in under 12 months and notes that many of the best SaaS businesses recover it in 5–7 months.

CAC and LTV: the unit economics pair

CAC is usually read next to customer lifetime value (LTV or CLV), which estimates the total gross profit a customer generates over their relationship with the company. If you have not calculated it yet, see our guide on how analysts calculate customer lifetime value.

The LTV:CAC ratio compares the two. Skok’s guide states that the best SaaS businesses have an LTV to CAC ratio higher than 3, sometimes as high as 7 or 8. A ratio near 1 means you spend roughly as much to win a customer as you earn from them; a very high ratio can mean you are underinvesting in growth.

How analysts calculate CAC in practice

  1. Define the period and the customer. Decide what counts as a “new customer” (first payment, signed contract, activated account) and use the same definition everywhere.

  2. Pull costs from finance. Combine ad platform spend with payroll and tooling costs allocated to sales and marketing.

  3. Pull new customers from the CRM or billing system. Count customers acquired in the same window, joined with their acquisition channel.

  4. Segment. Calculate CAC by channel, campaign, region, plan or customer size. Averages hide the channels that lose money.

  5. Account for lag. In longer sales cycles, spend this month may produce customers next quarter. Some teams use a lagged window or cohort-based CAC.

  6. Visualize trends. Track CAC, payback and LTV:CAC over time in a dashboard rather than as one-off numbers.

In SQL, this often means joining a monthly spend table with a customers table on month and channel, then dividing spend by distinct new customer IDs per group.

Common CAC mistakes

  • Counting only ad spend. Leaving out salaries and tools makes CAC look far lower than it really is.

  • Mixing periods. Dividing a quarter’s spend by a month’s customers produces nonsense.

  • Using revenue instead of gross margin for payback. Revenue-based payback looks faster than the real cash recovery.

  • Reporting only blended CAC. Organic customers can hide unprofitable paid channels.

  • Ignoring churn. A low CAC is not good news if those customers leave after two months.

FAQ

What is a good CAC?

There is no universal number. CAC is only good or bad relative to what a customer is worth, which is why analysts look at LTV:CAC and payback period rather than CAC alone.

Is CAC the same as cost per acquisition (CPA)?

Not exactly. CPA usually refers to the cost of a specific conversion in a campaign (a signup, a lead or a purchase). CAC covers the full cost of acquiring a paying customer across sales and marketing.

How often should CAC be calculated?

Most teams track it monthly and review it quarterly, with segmented views by channel to guide budget decisions.

Keep learning with Coderhouse

CAC, payback and LTV:CAC are everyday metrics for analysts who support marketing, sales and finance. If you want to calculate them confidently with SQL and dashboards, the Data Analytics Course is the natural next step. Explore all three programs:

Dan Patiño

I'm Dan Patiño, head of AI Strategy & Innovation at Coderhouse. My day-to-day work involves merging the tactical management of e-commerce (CRO, Email Marketing and SEO) with the development of disruptive solutions. I specialize in building internal AI-powered apps to automate tasks and boost innovation within the team. I firmly believe that technology is strategy's best ally. To dive deeper into my professional journey, I'll be waiting for you on my LinkedIn profile.