Customer lifetime value is the number every growth plan leans on: it decides how much you can spend to win a customer. The formula most stores use, average order value times purchase frequency times customer lifespan, quietly assumes that every customer stays for the whole lifespan. Almost none do. In our worked example the simple formula promises ten orders per customer over five years; with a realistic 30% annual retention, the expected number is under three. Measured in profit instead of revenue, a customer who looked worth 6.8 times their acquisition cost is worth 1.3 times. This piece walks through every version of the CLV formula, with the arithmetic, and shows how to compute one you can actually spend against.
What is the customer lifetime value formula?
Customer lifetime value (CLV, or LTV) is the total value a customer brings to a business over the whole relationship. The most common formula is:
> CLV = Average order value × Purchase frequency × Customer lifespan
If customers spend 60 euros per order, order twice a year and stay for five years, the formula gives 60 × 2 × 5 = 600 euros. It is easy to compute and easy to explain, which is why it is everywhere. It has two problems that make it the wrong number to spend against: it measures revenue rather than profit, and it treats "lifespan" as if every customer lived it.
The four versions of CLV, from simplest to most useful
1. Historical CLV
> Historical CLV = Total revenue from a customer to date
The simplest and the only one that is a fact rather than a forecast. Useful for finding your best customers; useless for deciding what a new customer is worth, because new customers have no history.
2. Simple predictive CLV
> CLV = AOV × Orders per year × Years as a customer
The formula above. It predicts, but it predicts a world without churn.
3. Retention-adjusted CLV
> CLV = AOV × Orders per year × (1 + r + r² + … + rⁿ⁻¹)
Here r is your annual retention rate: the share of customers who are still buying a year later. Each year, only that share of the previous year's customers is still around to order. Over a long horizon the bracket approaches 1 ÷ (1 − r), which is why a common shorthand divides by churn.
4. Profit CLV
> Profit CLV = Retention-adjusted CLV × Contribution margin
Multiply by the share of each order you actually keep after the goods, fees, shipping, returns and advertising. This is the number to compare with what it costs to acquire a customer. We showed how to compute contribution margin per product in the profit margin formula.
How much does the simple formula overstate?
Take a store whose customers order twice a year while they are active, and look five years ahead. The simple formula assumes everyone stays: ten orders per customer. Apply realistic annual retention instead.

At 30% retention, the expected number of orders is 2.85, not 10. The simple formula overstates lifetime value by a factor of three and a half. Even at 50% retention, a very good rate for most consumer stores, it overstates by two and a half.
Most of a customer's value arrives in the first year, because that is when most of them are still around. That has a practical consequence: improving the second order matters more than extending the fifth year. Anything that turns a first-time buyer into a second-time buyer moves CLV far more than loyalty schemes aimed at customers who are already loyal.
Revenue CLV versus profit CLV
Now put money on it. Average order value 60 euros, 2.85 expected orders, and the 18.7% contribution margin from our worked example on margins. Assume it costs 25 euros of advertising to acquire a customer.

| Version | Value per customer | Ratio to acquisition cost |
|---|---|---|
| Simple formula, revenue | 600.00 | 24× |
| Retention-adjusted, revenue | 171.00 | 6.8× |
| Retention-adjusted, profit | 31.98 | 1.3× |
A team looking at the first row would happily spend 100 euros to win a customer. A team looking at the last row knows that anything above about 32 euros loses money, before fixed costs. The widely quoted target of a 3:1 ratio between lifetime value and acquisition cost only makes sense when the lifetime value is measured in profit.
This is also why the familiar argument for retention is right. As Harvard Business Review summarised it, depending on the study and the industry, acquiring a new customer costs five to 25 times more than keeping an existing one. In CLV terms, retention is the variable with the biggest effect on the bracket in the formula.
How do you measure retention for your own store?
Retention is the input most stores guess at. You do not need to guess. Group customers by the month of their first order, a cohort, and track what share of each cohort orders again in later months.

Shopify builds this table for you. Its customers reports include a Customer cohort analysis report that groups customers by the date of their first order, a Predicted spend tier report that estimates each customer's value, and an RFM analysis that sorts customers by recency, frequency and spend. Three things to read in your own table:
- The month-two number. It is usually the steepest drop. Small changes here move CLV most.
- Whether later cohorts retain better than earlier ones. If they do, something you changed is working.
- The floor. Most tables flatten after a few months. The level they flatten at is your loyal core, and the closest thing to the r in the formula.
To turn a monthly table into an annual retention rate, take the share of a cohort that ordered at least once in the twelve months after their first year, divided by the cohort's size. Rough is fine. A retention rate measured from your own customers is worth more than a precise one borrowed from a benchmark. Write down how you measured it, so next quarter's number is comparable.
The better formula for stores where customers just drift away
In a subscription business, a customer leaves on a known date: they cancel. In a store they simply stop coming back, and you never find out when. Marketing researchers call this a non-contractual setting, and it is why CLV is harder for retailers than for software companies.
The standard academic answer is a family of models developed by Peter Fader and Bruce Hardie. Their BG/NBD model, published in Marketing Science in 2005, estimates from each customer's purchase history two things the simple formula cannot: how often they buy while active, and the probability that they are still active at all. A customer who used to buy monthly and has not bought for six months is probably gone; one who buys twice a year and last bought four months ago probably is not. The same authors showed in RFM and CLV how recency, frequency and monetary value map onto lifetime value.
You do not need to implement this yourself. Open-source libraries such as lifetimes and PyMC-Marketing fit these models from a simple export of customer IDs, order dates and order values. For a store with a few thousand customers, an afternoon with either gives you a CLV estimate per customer that accounts for drift. The authors' own list of papers and notes includes spreadsheet versions for anyone who prefers to stay out of code.
CLV by acquisition channel: the comparison that changes budgets
An average CLV hides the most useful comparison a store can make: how much the customers from each channel are worth. Customers who arrive from a search for your brand name, from a friend's recommendation or from your own email list often retain far better than customers won by a discount code on a deal site. Two channels with the same cost per new customer can produce very different lifetime values.
Computing it is a small extension of the routine below. Tag each customer with the channel of their first order, using the referrer or the discount code your platform records, and build one cohort table per channel. Then compute profit CLV per channel and compare it with that channel's cost per new customer.
Three patterns come up again and again:
- Discount-led channels attract discount-led customers. A customer whose first order needed 30% off often waits for the next 30% off. Their profit CLV can be a fraction of a full-price customer's, even when their revenue CLV looks similar.
- Search and referrals tend to retain. People who looked for you, or were sent to you, usually know what they want, and come back for it.
- The first product predicts the second order. Customers whose first purchase is a consumable reorder; those whose first purchase is a one-off gift often do not. Segmenting CLV by first product is as revealing as segmenting by channel.
The decision this informs is simple and valuable: move acquisition budget towards the channels whose customers are worth the most in profit, not the ones that are cheapest per first order.
Five ways to lift CLV in the first 90 days
Because most of a cohort is lost before the second order, the first three months decide most of lifetime value. These five habits move the month-two number, which moves everything after it.
- Deliver exactly what you promised. A delivery time that slips, or a return policy that turns out stricter than the product page said, is the most reliable way to lose a second order. Make sure every page states the same facts; we described how stores end up contradicting themselves in AI shopping agents read your store in copies.
- Follow up when the product is due to run out. For consumables, the right moment to remind a customer is the week before they finish what they bought, not a fixed number of days after purchase.
- Do not run out of the thing they came back for. A returning customer who finds their product out of stock often buys elsewhere and does not return. Planning stock against demand, as in Black Friday inventory planning, protects repeat purchases as much as first ones.
- Stock what returning customers ask for. Requests from existing customers are a direct signal of what would bring them back. We explained how to count them in What your shoppers ask for that you don't sell.
- Make the second order easier than the first. Saved details, a clear reorder button, and an answer to their question the first time they ask. Small frictions matter more to a customer deciding whether to come back than to one who has already decided to buy.
None of these is a loyalty programme. They are the basics that keep a first-time buyer from becoming a one-time buyer.
A practical CLV routine for a small store
- Export your orders with customer ID, date and value for the last two years.
- Compute average order value and orders per active year from that export.
- Read your retention from a cohort table, or fit a BG/NBD model if you have the time.
- Compute retention-adjusted CLV with the bracket formula, over three to five years.
- Multiply by contribution margin to get profit CLV. Use the margin of the products new customers actually buy, which is often lower than your average.
- Set your acquisition ceiling at a fraction of profit CLV (a third is a common, cautious choice), and check each channel's cost per new customer against it.
- Recompute every quarter. Retention, order value and margin all move.
Where we could be wrong
Our worked numbers are illustrative: your order frequency, retention and margin can differ widely, and some categories (consumables, pet food, coffee) retain far better than the 30% in our example. The bracket formula assumes retention is the same every year, while real stores often lose most customers early and keep a loyal core much longer, which the BG/NBD family handles better. We also left out discounting future revenue to its present value, which matters for long horizons. And CLV is an average: a single figure can hide a small group of very valuable customers and a large group who buy once. Segmenting by first product or by channel usually tells you more than the average.
The short version
- The common CLV formula (AOV × frequency × lifespan) assumes customers never leave. With 30% annual retention, ten promised orders become 2.85.
- Measure CLV in profit, not revenue: a customer worth 6.8× their acquisition cost in revenue can be worth 1.3× in contribution.
- Read retention from your own cohort table; Shopify's customers reports build one.
- For stores, where customers drift away without cancelling, the BG/NBD model estimates who is still active. Free libraries fit it from a simple order export.
Frequently asked questions
What is the formula for customer lifetime value?
The simple formula is average order value × purchase frequency × customer lifespan. A more realistic version replaces lifespan with a retention factor, AOV × orders per year × (1 + r + r² + …), where r is annual retention, and multiplies the result by contribution margin to get profit CLV.
What is a good CLV to CAC ratio?
A ratio of about 3:1 is a common target, but only when lifetime value is measured in profit. Measured in revenue, almost every store looks healthy; measured in contribution margin, many find their ratio is much closer to 1.
How do I calculate customer lifetime value in Shopify?
Shopify's customers reports include a Customer cohort analysis, a Predicted spend tier report and an RFM analysis. Use the cohort report to estimate retention, your orders export for average order value and frequency, and your product costs for contribution margin.
What is the difference between CLV and LTV?
None in practice. Both stand for customer lifetime value. Some teams use LTV for a revenue figure and CLV for a profit figure, so it is worth asking which one a number in a deck actually is.
How long should "lifetime" be in a CLV calculation?
Long enough to capture most of the value, short enough to be believable. For most online stores, three years is a sensible horizon: with typical retention, the orders expected after year three add little, and the further out a forecast goes, the less it is worth. If you use the retention-adjusted formula, the horizon matters much less than the retention rate itself, because later years shrink quickly.
How can I increase customer lifetime value?
Focus on the second order: it is where most customers are lost. Make the first experience easy to repeat, follow up when a product is likely to run out, and make sure what you promised before the sale (delivery time, returns) matches what happens after it. Raising contribution margin raises profit CLV directly.
Sources
- [1] Lumnya, “Profit margin formula for ecommerce”, 13 Dec 2026 (accessed 2026-11-06).
- [2] Amy Gallo, “The Value of Keeping the Right Customers”, Harvard Business Review, 29 Oct 2014 (accessed 2026-11-06)
- [3] Shopify Help Center, “Customers reports” (Customer cohort analysis, Predicted spend tier, RFM customer analysis) (accessed 2026-11-06)
- [4] Fader, Hardie and Lee, “"Counting Your Customers" the Easy Way: An Alternative to the Pareto/NBD Model”, Marketing Science 24(2), 2005 (accessed 2026-11-06)
- [5] Fader, Hardie and Lee, “RFM and CLV: Using Iso-Value Curves for Customer Base Analysis”, 2005 (accessed 2026-11-06)
- [6] CamDavidsonPilon, “lifetimes” (Python library for BG/NBD and related models) (accessed 2026-11-06)
- [7] PyMC Labs, “PyMC-Marketing: CLV quickstart” (accessed 2026-11-06)
- [8] Lumnya, “AI shopping agents read your store in copies: make them agree”, 21 Oct 2026 (accessed 2026-11-06)
- [9] Lumnya, “Black Friday inventory planning: your days of stock are an October number”, 4 Nov 2026 (accessed 2026-11-06)
- [10] Lumnya, “What your shoppers ask for that you don't sell”, 25 Oct 2026 (accessed 2026-11-06)
- [11] Bruce Hardie, “Papers and notes” (accessed 2026-11-06)
Lumnya is a team of ecommerce AI agents for Shopify stores, now in private beta. Join the waitlist.
Comments
…Every comment is read and approved by a human before it appears — the same confirm-gated rule the product runs on.
Loading comments…
Filed under Operators' Playbook
All posts