Skip to content
Tutorials Center
My learning

Topics

Lesson 4 of 38 ยท Getting Started

Marketing Math: CAC, LTV, ROAS, CTR and Conversion Rate Explained

Learn the core marketing formulas: CTR, CPC, CPM, conversion rate, CAC, LTV, ROAS, ROI and payback period, with runnable calculators and worked examples.

Marketing is full of acronyms, but almost all of them are one division away from each other. If you can divide, you can read a marketing report. This lesson collects the formulas you will meet in the rest of the course and gives you small calculators to experiment with. All numbers here are made up for teaching; use your own data when you practice.

Reach and engagement

  • Impressions: how many times an ad or post was shown.
  • Reach: how many different people saw it. Impressions divided by reach is the average frequency.
  • CTR (click-through rate): clicks / impressions. A low CTR often means the message does not match the audience.
  • Engagement rate: interactions (likes, comments, shares, clicks) / reach or impressions. State which one you use, because the two give different numbers.

Cost metrics

  • CPM: cost per 1,000 impressions = cost / impressions x 1000.
  • CPC: cost per click = cost / clicks.
  • CPL: cost per lead = cost / leads.
  • CPA: cost per acquisition (or action) = cost / conversions.

Conversion rate

Conversion rate (CVR) = conversions / visitors (or clicks). If 1,000 people click and 25 buy, CVR is 2.5%. Doubling CVR has the same effect on cost per customer as halving CPC, and CVR improvements are often cheaper. See conversion optimization for the funnel view.

The money chain

Impressions Shown to people.
Clicks CTR = clicks / views.
Conversions CVR = buyers / clicks.
Revenue ROAS = revenue / spend.

Each step is one division.

1 / 2

Customer acquisition cost (CAC)

CAC = total sales and marketing cost in a period / new customers won in that period.

Decide what goes into "total cost": ad spend, tools, salaries and agency fees. A blended CAC includes everything and every channel. A paid CAC uses only ad spend over customers credited to ads. Both are useful; say which one you quote.

Lifetime value (LTV)

LTV estimates the gross profit a customer brings over the whole relationship. A simple model for subscriptions:

LTV = average revenue per month x gross margin x expected lifetime in months

and expected lifetime is about 1 / monthly churn rate. If monthly churn is 5%, the average customer stays about 20 months. For shops, use average order value x gross margin x orders per year x years retained.

LTV to CAC ratio and payback

A common rule of thumb is to aim for an LTV : CAC ratio of about 3 or more, but the right number depends on cash, growth stage and margins. Payback period = CAC / (monthly revenue x gross margin): how many months until a customer has repaid their acquisition cost. Short payback means cash returns fast and you can grow quicker.

JS CAC, LTV and payback calculator

Press Run (or Ctrl + Enter) to see the console output here.

No output.

With these inputs CAC is 150, LTV is 640, the ratio is about 4.3 and payback is about 4.7 months. Change churn to 0.10 and watch LTV fall by half: retention matters as much as acquisition.

ROAS and ROI

ROAS (return on ad spend) = revenue from ads / ad spend. A ROAS of 4 means 4 units of revenue for each unit spent. It ignores product cost, so a high ROAS can still lose money on thin margins.

ROI (return on investment) = (profit - cost) / cost. It includes margins. The break-even ROAS is 1 / gross margin: with a 40% margin, you need ROAS 2.5 just to cover product and ad costs.

JS ROAS, ROI and break-even

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Same ROAS, very different results: with a 60% margin the campaign earns money; with 20% it loses money.

A full funnel from ad to revenue

Chain the steps to forecast results. If you plan 50,000 impressions at a CPM of 8, a 1.2% CTR, a 3% CVR and an average order of 60:

JS Forecast a campaign

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Forecasts are only as good as their inputs. Use past results where you have them and treat the first campaign as a test, not a promise.

Pitfalls

  • Vanity metrics. Followers and impressions are easy to grow and do not pay bills. Tie each metric to a decision.
  • Averages hide extremes. One enormous order can lift average order value. Look at medians and distributions as well.
  • Mixing periods. Leads from this month may convert next month. Match costs to the right cohort.
  • Ignoring margin and refunds. Revenue is not profit.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. A post is shown 20,000 times and gets 400 clicks. What is the CTR?

    400 / 20,000 = 0.02, which is 2%.
  2. 2. You spend 3,000 and win 30 new customers. What is the CAC?

    3,000 divided by 30 customers is 100 per customer.
  3. 3. With a 50% gross margin, what is the break-even ROAS?

    Break-even ROAS is 1 divided by the margin: 1 / 0.5 = 2.
  4. 4. Monthly churn is 4%. What is the approximate expected customer lifetime?

    Lifetime is about 1 / churn = 1 / 0.04 = 25 months.

Summary

  • Most marketing metrics are simple ratios: CTR, CVR, CPC, CPM, CPA.
  • CAC is cost per new customer; LTV is the profit a customer brings over their lifetime.
  • Aim for a healthy LTV : CAC ratio (often 3 or more) and short payback.
  • ROAS ignores margin; break-even ROAS is 1 divided by gross margin.
  • Chain impressions, clicks and conversions to forecast, and avoid vanity metrics.

Next: Marketing Funnels and Customer Journeys