Strategy

How to calculate customer lifetime value: three ways, and which one to use when.

Lifetime value tells you how much you can spend to win a new customer. For stores without subscriptions it's harder to pin down, because nobody cancels. Here are three ways to calculate it, with an example and the honest limits.

Customer lifetime value, or CLV, is what a customer brings in over their whole time buying from you. It answers a very practical question: how much can you spend to win a new customer? For subscription brands the math is fairly clear, because a subscription is either running or cancelled. In a regular online store nobody cancels. Customers just stop at some point. That makes lifetime value harder to pin down, but not impossible. Here are three ways to calculate it, from a quick average to cohort CLV, with a worked example.

If you sell subscriptions, read our guide to subscription LTV instead. It works with churn rate, and our LTV calculator runs the numbers for you.

The numbers you need

  • Average order value: revenue divided by number of orders, before tax and after discounts.
  • Orders per customer per year: number of orders divided by number of customers in the same year.
  • Customer lifespan: how long a customer keeps buying from you on average. This is the hardest one, more on it below.
  • Gross margin: what's left of an order after product cost, shipping, packaging, returns and payment fees.

You'll find the first two in Shopify. Your accounting knows the margin. For lifespan, you'll have to make a call.

Way 1: the historic average

Historic CLV = revenue for a period / number of customers in that period

This is the fastest version. Take the last 24 months, say, divide revenue by the number of customers who ordered in that time, and you have average revenue per customer.

The catch: a customer who placed their first order three weeks ago counts the same as one who's been buying for two years. If your store is growing fast, all those new customers pull the average down. It's still fine for a first impression.

Made up example: a store did $1,200,000 in revenue over the last 24 months, spread across 8,000 customers. Historic CLV is 1,200,000 / 8,000 = $150 in revenue per customer. At a 40% margin that's $60 in gross profit, but only for those 24 months.

Way 2: the classic formula

CLV = average order value × orders per customer per year × lifespan in years × margin

There are two ways to estimate lifespan. If you have an annual attrition rate, meaning the share of customers who don't buy again the following year, then lifespan = 1 / annual attrition rate. How to calculate the matching retention rate is in our guide on how to calculate retention rate.

The second way is more honest: you pick a fixed horizon, two or three years for example, and only calculate lifetime value for that window. It slightly undervalues your best customers. In return, you're not planning around orders that may never come.

A worked example

These are made up round numbers to show the math. They are not a benchmark for any category.

A store has an average order value of $50. Customers order twice a year on average. The store plans with a three year lifespan and a 40% gross margin.

  • Revenue per customer per year: $50 × 2 = $100
  • Revenue CLV: $100 × 3 = $300
  • Gross profit CLV: $300 × 0.40 = $120

So in this example, an average customer brings in $120 of gross profit over their whole time with the store. Winning them should never cost more than that, and really it should cost a good deal less.

Way 3: cohort CLV

The most accurate version needs no assumption about lifespan. Take everyone who first ordered in a given month and add up the gross profit that group brought in, month by month. Divide by the number of first time buyers, and you have the actual lifetime value of that cohort so far.

Made up numbers, just to show the math:

First order monthCustomersGross profit per customer after 3 monthsafter 6 monthsafter 12 months
January 20251,000$24$32$45
April 20251,300$23$30$41
July 2025900$27$38not yet

The first number in each row includes the first order, and everything after it comes from repeat orders. In this example the July cohort is already ahead after six months. If a new post-purchase flow went live around then, that's a good sign. The April cohort trails a bit, maybe because many of them came in through a discount promo.

Shopify's reports show cohorts. For gross profit you'll usually have to apply your margin yourself. And the more months of history you have, the more the table tells you.

CLV and acquisition cost

On its own, lifetime value is just a number. It gets interesting next to what it costs you to win a new customer, often called CAC.

CLV to CAC = gross profit CLV / acquisition cost per new customer

In the example above a customer brings in $120 of gross profit. If acquiring them costs $45, the ratio is 120 / 45, roughly 2.7. A customer brings in almost three times what they cost. We deliberately don't give a universal target ratio, since it depends heavily on your margin, your cash flow and how fast you want to grow.

When you get your money back

Payback matters just as much: how many months until a customer has earned back their acquisition cost? In the example every order brings in $20 of gross profit ($50 × 0.40), and customers order roughly every six months. After the first order you have $20, after the second $40, and only with the third, around month twelve, do you pass the $45. That's how long your bank account has to front the money. A great CLV won't help you much if you run out of ad budget before it pays off.

One CLV per channel

A single average for the whole store often hides the most important information. Split lifetime value by the channel someone first bought through, and compare it with that channel's acquisition cost.

Made up numbers, just to show the math:

First channelGross profit CLV after 12 monthsAcquisition costCLV to CAC
Paid social$38$32about 1.2
Google Shopping$46$28about 1.6
Referral$61$15about 4.1
30% off promo$29$201.45

In this example paid social might look good on the first order, but after a year it has barely earned back its cost. Referral customers are worth far more. Differences like that often change where the budget goes. Channel data comes from Shopify or your analytics tool, costs from your ad accounts.

CLV in Klaviyo

Klaviyo calculates three values for each profile. Historic CLV is the value of past orders, accounting for refunds and cancellations. Predicted CLV is what the customer is expected to spend in the prediction period, one year by default. Total CLV adds the two together.

For predictions Klaviyo needs enough data, including at least 500 customers with orders, 180 days of order history with orders in the last 30 days, and some customers with three or more orders. The details are in our guide to RFM analysis in Klaviyo.

Keep in mind that Klaviyo's CLV is revenue, not gross profit. For ad decisions, do the math yourself. For segments, though, it's very useful. You could group customers with a high predicted value and give them early access to new products, for example. Our guide to Klaviyo segmentation shows how to build segments like that.

How often to recalculate

Once a quarter is enough for most stores. Lifetime value moves slowly, since it depends on repeat orders that take months. Recalculate every week and you'll mostly see noise. Stick with the same formula and the same window, or you end up comparing your methods instead of your customers. One exception: after a big change, like new prices or a new first order offer, take a close look at the first cohort that came in after it.

Common mistakes

  • Confusing revenue with profit. A $300 CLV sounds like plenty of room for ad spend. At a 40% margin, only $120 of it is left.
  • Forgetting returns. In apparel especially, lots of orders come back. Use revenue after returns, or your lifetime value will be too high.
  • Assuming too long a lifespan. Plan with ten years and you can justify almost any ad spend. Stick to a window your data can back up.
  • One number for everyone. Customers from different channels or with different first products can be worth very different amounts. At minimum, split CLV by channel and first product.

Raising lifetime value

You can turn every dial in the formula, usually without spending more on ads. The second order often matters most, because that's where many customers drop off. A good post-purchase flow and a reorder reminder raise orders per year. Matching add-ons raise order value. And a winback flow stretches lifespan, because it brings back people who would otherwise have just disappeared. How to go after that second order is covered in our guide to the repeat purchase rate.

How we handle it at Email Scales

We're a Klaviyo agency for email, SMS and WhatsApp, working with DTC brands doing $150K+ a month. We look at lifetime value because it shows where email can move the most: the second order, order value, or bringing people back. Our guarantee: $50K to $400K more per month in email revenue within 60 days, or you don't pay. More on our customer retention page.

Want to know how to raise your customer lifetime value?Book a free 30 minute Klaviyo audit. We go through your account together and show you where we'd start.

Questions we get a lot

How do you calculate customer lifetime value?

The simplest formula: average order value times orders per customer per year times average customer lifespan in years. For gross profit CLV, multiply the result by your margin. It gets more accurate with cohorts, where you add up what a group of first time buyers actually brought in over 12 or 24 months.

What's the difference between CLV and LTV?

Usually nothing. Customer lifetime value (CLV) and lifetime value (LTV) mean the same thing in practice: what a customer is worth over their whole time buying from you. Subscription brands tend to say LTV, classic ecommerce more often says CLV.

Should customer lifetime value use revenue or gross profit?

Gross profit, whenever you compare it with acquisition cost. Revenue ignores product cost, shipping, returns and payment fees. Revenue is fine for a sense of scale, as long as everyone knows which number they're looking at.

Does Klaviyo show customer lifetime value?

Yes. Klaviyo shows a historic CLV based on past orders, a predicted CLV for the prediction period, one year by default, and a total CLV that adds both. Predictions need enough data, including at least 500 customers with orders and 180 days of order history, according to Klaviyo.

How do you calculate lifetime value for a subscription?

For subscriptions you work with churn rate: order value times orders per month times margin, divided by monthly churn. That works because every subscriber is either active or cancelled. The full calculation with an example is in our guide to subscription LTV.

See it in real results

All case studies

Want to see where your extra revenue is?

Book a free 30 minute audit. We go through your Klaviyo together and show you what we would change first.

Get a free audit