Customer lifetime value: the formula and how to use it in ecommerce
Customer lifetime value (CLV) is the money a customer brings to a shop over the whole relationship, from the first order to the last. It turns a list of orders into one number per customer, and that number decides how much you can spend to win a customer and to keep one.
This guide covers the two formulas most shops use, a worked example for each, why a single shop-wide average misleads, and how to use CLV when setting acquisition and retention budgets. All figures in the examples are illustrative.
What is customer lifetime value?
Customer lifetime value is a prediction of the money a customer will bring over the entire relationship. CLV, CLTV and LTV are the same measure under different abbreviations. Ecommerce teams tend to say CLV, SaaS teams LTV.
There are two ways to read it:
- Historical CLV adds up what customers have already spent. It is a fact, but it only describes the past and it undercounts customers who are still buying.
- Predictive CLV estimates what customers will spend, from how often they buy and how long they stay. It is the version you need for budgets, and it is only as good as its assumptions.
CLV can count revenue or margin. Revenue CLV is easier to pull from a shop platform. Margin CLV subtracts product cost, shipping, payment fees and refunds, and it is the only version you can safely compare with what a customer cost to acquire.
How do you calculate customer lifetime value?
The simple formula multiplies three averages from your order history.
CLV = average order value × orders per customer per year × years as a customer
To turn it into the money a customer leaves, multiply by your contribution margin percentage:
Margin CLV = CLV × contribution margin %
- Average order value. Revenue divided by the number of orders, after removing cancelled and fully refunded orders.
- Orders per customer per year. Orders in a year divided by the customers who ordered that year.
- Years as a customer. How long a customer keeps buying on average. Most shops estimate it from how many customers are still active one, two and three years after their first order.
- Contribution margin %. What an order leaves after product cost, shipping, payment fees and refunds, as a share of revenue. Contribution margin: definition, formula and ratio shows how to calculate it.
A worked example
Take a shop selling skincare online, with these illustrative averages:
| Input | Value |
|---|---|
| Average order value | €60 |
| Orders per customer per year | 1.8 |
| Years as a customer | 2.5 |
| Contribution margin | 35% |
Revenue CLV is €60 × 1.8 × 2.5, which is €270. Margin CLV is €270 × 35%, which is €94.50.
- Revenue CLV
- Margin CLV
The gap is the point. A team that budgets acquisition against €270 can pay €150 for a customer and believe it made money. Against the €94.50 the customer actually leaves, the same customer loses €55.50.
The retention-based formula
When you know how many customers stay from one year to the next, a second formula uses that retention rate directly. It assumes a steady yearly margin per customer and a steady retention rate, and it discounts future years because money earned later is worth less today.
CLV = yearly margin per customer × retention rate ÷ (1 + discount rate − retention rate)
With an illustrative yearly margin of €40 per customer, a retention rate of 60% and a discount rate of 10%:
CLV = €40 × 0.6 ÷ (1 + 0.1 − 0.6) = €24 ÷ 0.5 = €48
Retention moves this number more than any other input. At 70% retention the same sum gives €70. At 50% it gives €33.33. A ten-point change in retention moves CLV by roughly a third or more in either direction.
- 50% retained
- 60% retained
- 70% retained
Why a single average misleads in ecommerce
When some customers buy once and never return while others buy again and again, an average across all of them describes neither group. It overstates what a new one-time buyer is worth and understates what a repeat customer is worth.
Three habits make the number more useful:
- Calculate CLV per cohort. Group customers by the month of their first order and follow what each group spends over the next 12 or 24 months. Contribution margin by cohort works through a full example and shows how a cohort with a high repeat rate can still lose money.
- Split by acquisition channel. Customers from different channels often behave differently after the first order, so one CLV per channel tells you more than one per shop.
- Split one-time from repeat buyers. RFM in plain words shows how to find the one-time buyers closest to a second order, which is where most of the CLV gain sits.
How to use CLV in ecommerce
CLV is useful when it changes a decision. These are the three it changes most often.
- How much to pay for a new customer. Compare margin CLV with customer acquisition cost (CAC) for each channel. A channel whose customers cost more to acquire than they leave over their lifetime is shrinking the business, however much revenue it shows. How to reduce ecommerce CAC covers the other side of the same sum.
- How fast the money comes back. Two channels can have the same CLV while one pays back its acquisition cost in two months and the other in eighteen. Cash matters, so track the month in which each cohort's cumulative margin passes what it cost to acquire.
- Where to spend on retention. A second order from a recent one-time buyer usually raises CLV more than another message to a loyal customer who would have bought anyway. Spend there first, and check the result against a group that got nothing.
Mistakes that distort CLV
- Using revenue instead of margin. Revenue CLV makes low-margin products and heavily discounted customers look as valuable as the rest.
- Ignoring refunds and returns. A customer who returns half of what they order has half the value the order history suggests.
- Projecting from too short a history. A customer acquired three months ago has not had time to show how long they stay. Extrapolating early cohorts inflates CLV.
- Counting repeat orders bought with discounts as free. If the second order needed a 20% code and a retargeting ad, take both off before adding it to CLV.
- Reading CLV without a control group. CLV rising after a new retention flow does not prove the flow caused it. Holdout groups explains how to measure what the flow added.
How to raise customer lifetime value
Most shops raise CLV by bringing more first-time buyers back for a second order, at a margin that still pays. That means knowing who is close to a second order, reaching them on a channel they agreed to, at the right moment, and with an offer that does not give the margin away.
This is the work of the Repeat Loop: an AI segments your customers and flags who is close to a second order, we choose the channel, the moment and the frequency, a person on your team signs off every offer, and repeat purchases and revenue per customer are measured against a holdout group.
Questions
- What is the formula for customer lifetime value?
- The simple version is average order value × orders per year × years as a customer. Multiply the result by your contribution margin percentage to get the margin a customer leaves. A second version uses retention, and is yearly margin per customer × retention rate ÷ (1 + discount rate − retention rate).
- What is the difference between CLV and LTV?
- None. CLV, CLTV and LTV are three abbreviations for the same measure. Ecommerce and marketing teams tend to say CLV, while SaaS teams usually say LTV.
- Should customer lifetime value use revenue or margin?
- Use margin when you compare CLV with acquisition cost or set budgets. Revenue CLV ignores product cost, shipping, fees and refunds, so it makes every customer look more valuable than they are and can justify spending money you will never earn back.
- How do you calculate CLV when most customers buy only once?
- Calculate it per cohort, meaning customers grouped by the month of their first order, and follow what each group spends over the following months. A single shop-wide average mixes one-time buyers with loyal customers and describes neither group.