Customer Lifetime Value for Ecommerce: Calculate It and Raise It
Ecommerce customer lifetime value is the contribution a customer brings over a set window, by cohort. Use it to cap CAC, then raise it with a faster, more likely second order.
Ecommerce customer lifetime value is the profit a customer brings you over a set window, usually 12 months. Calculate it by cohort, using contribution margin rather than revenue, and subtract what you spend to keep them. Then use it to cap what you pay to acquire a customer, and raise it by winning the second order.
Most stores quote a lifetime value that's too big to be useful. It's built on revenue, not profit, and on a lifetime nobody has lived through yet. Then someone divides it by three and calls that the most they can pay for a customer. That's how a brand can grow fast and run out of cash at the same time.
This guide covers the formulas and which one to use, how to build a cohort sheet from your order export, the 12-month rule for setting a CAC cap, a worked example, the levers that raise CLV, and the mistakes that make the number lie.
Key takeaways
- Use contribution, not revenue. Revenue CLV can be several times bigger than the profit you actually keep.
- Pick a window. Decide spend on 12-month CLV. Watch 24 and 36 months, but don't fund against them.
- Measure by cohort. Group customers by first order month, so changes show up instead of blending away.
- Cap CAC with it. Max CAC is 12-month contribution CLV minus the profit you want to keep.
- Win the second order. It's the biggest lever on CLV in most stores.
What is customer lifetime value in ecommerce?
Customer lifetime value is what a customer is worth to your business over their time with you. In ecommerce, that time is a string of orders, not a contract. Some customers buy once. Some buy every month for years. CLV is the average across a group.
The word "value" hides a choice. It can mean revenue, gross profit or contribution margin. It also hides a second choice: over what window. Change either and the number moves a lot. So when someone quotes a CLV, ask two questions. Revenue or profit? Over how long?
30%
Merchants over $1M in sales who track CAC
Shopify merchant survey, Nov 2025
5%
Merchants under $100,000 in sales who track CAC
Shopify merchant survey, Nov 2025
500
Customers with orders Klaviyo needs before it predicts CLV
Klaviyo Help Center
Those first two numbers come from a survey of 500 merchants that Shopify cites in its customer lifetime value guide. The same survey found 77% of merchants track sales or total revenue. Most stores watch the top line. Far fewer know what a customer costs, so they can't tell whether their CLV covers it.
Which CLV formula should you use?
There are four common formulas. Shopify's guide lists all of them. Here's when each one is useful and where it misleads:


| Formula | Math | Good for | Where it misleads |
|---|---|---|---|
| Revenue CLV | AOV x purchase frequency x lifespan | Quick sense of scale | Ignores cost, so it's far too big for spend decisions |
| Margin CLV | Revenue CLV x gross margin | Better than revenue | Ignores shipping, fees, returns and retention cost |
| Contribution CLV | Revenue in the window x contribution margin, minus retention cost | Setting CAC caps and budgets | Needs clean cost data |
| Subscription CLV | Monthly revenue per customer x gross margin / monthly churn | Subscribe and save programs | Assumes churn stays flat |
There's also a discount-rate version for finance teams that values future profit less than profit today. For most stores under a few million a year, the contribution version over 12 months does the job.
What goes into contribution margin?
Contribution margin is what's left of each order after the costs that come with it. Take the order price and subtract product cost, shipping, payment fees, pick and pack, and the average cost of returns. Don't subtract ad spend here. That's what you compare CLV against. The contribution margin guide walks through each line.
Then subtract retention cost per customer: email and SMS platform costs, loyalty rewards and any discounts on repeat orders. If you skip this, a store with heavy repeat discounts looks better than it is.
How do you calculate CLV by cohort?
A cohort is a group of customers who placed their first order in the same month. Cohort analysis tracks each group forward in time. It's the only way to see whether CLV is rising or falling, because a blended average mixes old loyal customers with new ones.


Here's the sheet I'd build from an order export:
CLV COHORT SHEET (one row per first-order month)
Inputs per order: customer_id, order_date, order_total, discounts,
refunds, product_cost, shipping_cost, fees
Step 1: For each customer, find first_order_month.
Step 2: For each order, months_since_first = order month - first_order_month.
Step 3: Contribution per order = net revenue - product cost - shipping - fees.
Step 4: Sum contribution by cohort and months_since_first (0 to 12).
Step 5: Divide by cohort size = contribution per customer.
Step 6: Subtract retention cost per customer for the window.
Columns:
Cohort | Customers | M0 | M1 | M2 | M3 | M6 | M12 | 12-mo contribution CLV
Month 0 is the first order, plus anything else bought that month. Each column after it adds what that cohort spent later. Read across a row to see one group's value build. Read down a column to see whether newer cohorts are doing better or worse at the same age.
What if you don't have 12 months of data yet?
Use what you have and say so. Show 3-month and 6-month CLV, and compare cohorts at the same age. A January cohort at month 6 versus a March cohort at month 6 tells you a lot. Just don't stretch a 6-month number into a "lifetime" by guessing.
Can your email platform calculate CLV for you?
Some can. Klaviyo's predictive analytics page says it shows historic CLV, predicted CLV and total CLV on each profile. Before it predicts, your account needs at least 500 customers who have ordered and at least 180 days of order history, with orders in the last 30 days. Some customers also need 3 or more orders. The default prediction window is one year.
That's useful for segmenting, like finding your likely high-value customers for a VIP flow. It's revenue-based, though, so it doesn't replace your contribution cohort sheet for spend decisions.
How do you use CLV to set a CAC cap?
Customer acquisition cost is what you spend to get one new customer. CLV tells you the most you can pay. Here's the rule I use:
Max CAC = 12-month contribution CLV - target profit per customer
If 12-month contribution CLV is $34 and you want $8 of profit per customer in year one, you can pay up to about $26 to get a customer. Spend above that and the customer costs more than they return in a year.
The popular rule of thumb is a 3 to 1 LTV to CAC ratio. It's fine as a sanity check. But if the LTV in that ratio is revenue over three years, 3 to 1 can still lose money in year one. Check the ratio on contribution, over 12 months. The B2C customer acquisition cost guide covers how to calculate CAC itself.
How fast should a customer pay back?
CAC payback period is how long it takes a customer's contribution to cover what you paid to get them. A store that pays back on the first order can grow as fast as it can find buyers. A store that needs four orders to pay back needs cash to fund the gap. The CAC payback calculator runs the months for you.
Worked example: one cohort, three versions of CLV
Here's a made-up store to show how far apart the versions land. Every number is an assumption.


In January, 1,000 people place a first order. The first order averages $60 at a 40% contribution margin, so each first order brings $24. Over the next 12 months, 280 of them place a second order. 120 place a third and 50 place a fourth. Counting a few fifth and later orders, that's 480 repeat orders, or 0.48 per customer. Repeat orders average $55 at a 45% margin, because they carry no first-order discount. Retention costs $2 per customer for the year.
| Version | Math | Per customer |
|---|---|---|
| 3-year revenue CLV | 1.9 orders per customer, mostly at $55 | $109.50 |
| 12-month revenue CLV | $60 + (0.48 x $55) | $86.40 |
| 12-month contribution CLV | $24 + (0.48 x $24.75) - $2 | $33.88 |
The dashboard number is $109.50. The number you can spend against is $33.88. That's less than a third of it.
What happens if you set CAC from the wrong one?
Use the 3 to 1 rule on the 3-year revenue figure and you'd allow a CAC of $36.50. That's more than the $33.88 each customer brings in contribution over the first year. Every customer loses money in year one, and you only break even if the three-year guess comes true.
Use the cap rule on 12-month contribution instead, with $8 of target profit, and the cap is about $26. Slower growth on paper, but each customer pays for themselves within the year.
How do you raise customer lifetime value?
CLV has five parts you can move: how many customers come back, how fast, how much they spend, the margin on what they buy and what it costs to keep them. They don't move equally. Here's how I rank them for most stores:
| Lever | What moves it | Why it ranks here |
|---|---|---|
| Second order rate | Post-purchase flow, a reason to return, replenishment timing | Biggest drop-off, and repeat buyers keep buying |
| Time to second order | Timely reminders, sample or refill offers | Faster value means faster payback |
| Repeat order value | Bundles, cross-sells, thresholds | Small lift on every later order |
| Repeat margin | Fewer blanket discounts, better product mix | Profit, not just revenue |
| Retention cost | Fewer, better messages, smarter rewards | Stops CLV leaking into tools and coupons |
Why does the second order matter so much?
In the example, 72% of first-time buyers never come back. That's the biggest loss in the whole chain. And 43% of second-order buyers go on to a third order, far above the 28% who made it to a second. Fix the second order and every later step gets a bigger starting pool.


The repeat purchase rate guide covers how to measure it. The post-purchase flow is where most of the work happens: delivery updates, how-to content, a review ask and a well-timed reason to come back. For the full program, see the e-commerce retention strategy.
What is a better second order rate worth?
Say the store lifts its second order rate from 28% to 33%. Assume later orders follow the same pattern. Repeat orders per customer rise from 0.48 to about 0.57. At $24.75 contribution per repeat order, 12-month contribution CLV rises from $33.88 to about $36.00. That's $2.12 more per customer.
On 9,000 new customers a year, that's $19,080 more contribution, from five more people in a hundred coming back once. It also raises your CAC cap, which lets you grow faster on the same margin.
What about order value and subscriptions?
Raising repeat average order value helps, as long as it's not bought with discounts. Product bundles work well here because they raise order value without cutting the price of the hero item.
Subscriptions raise CLV when the product is used up on a schedule. They also make CLV easier to predict, because you can track churn rate month by month. The subscription e-commerce guide covers when they fit. The Shopify subscription analytics guide covers churn and cohort CLV for subscribers.
How do you estimate CLV for a brand-new store?
A new store has no cohorts yet, so it has to borrow a number and then replace it fast. Here's how I'd do it:
- Assume first-order value only. Set your CAC cap from first-order contribution alone. If you can make money on order one, you're safe.
- Pick a repeat rate you'd bet on. Use what you know about the product. Coffee gets reordered. A couch rarely does. Write the guess down.
- Check it at 90 days. Your first cohort's 90-day repeat rate is the first real data point. Compare it to the guess.
- Raise the cap only on proof. If cohorts beat the guess for three months in a row, let CAC rise toward the higher number.
This is slower than spending against a big projected lifetime. It's also how you avoid scaling into losses before the data exists.
Where does CLV fit in your channel plan?
CLV is the ceiling. Channel numbers tell you how close you are to it. If a channel's cost per new customer sits under your CAC cap, it can scale. If it sits above, it either gets fixed or gets cut.
Two cautions. First, platform ROAS counts revenue, not new customers, so it can't tell you CAC on its own. The MER vs ROAS guide explains how to read blended numbers. Second, different channels bring different customers. A cohort from paid social might have a lower second order rate than one from search. If you can tag first orders by source, run the cohort sheet by channel too.
Which flows protect CLV after the first order?
Three flows do most of the work. The welcome email series sets expectations before the first order. The post-purchase flow earns the second. A winback flow catches people who drift. The e-commerce email and SMS flows guide shows the full set, and lifecycle marketing shows how they fit together. A loyalty program can help later, once repeat buying already happens.
What mistakes make CLV lie?
- Revenue dressed up as value. If the number has no costs in it, it isn't value.
- No window. "Lifetime" with no end date is a guess.
- Blended averages. Old loyal customers hide a weak new cohort.
- Ignoring refunds and returns. A store with high returns overstates CLV unless refunds come out.
- Skipping retention cost. Rewards, discounts and tools come out of CLV too.
- Using predicted CLV to set CAC. Predictions are for segments, not for budgets.
- Never updating it. CLV changes as your offer, prices and channels change. Rebuild the sheet every month.
How does CLV connect to unit economics?
CLV is one half of your unit economics. CAC is the other. Together they tell you whether each new customer makes or loses money, and when. If you only track one, you're flying with half the dashboard. Put both on the same page, by cohort and by channel, and review them monthly.
What should you do this week?
If you'd like a team to build the sheet and run the flows that move it, store management covers email, SMS, ads and the store against your margin. Start with the honest number. Everything you decide after it gets easier.
FAQ
What is a good customer lifetime value for an ecommerce store?
There's no universal good number, because it depends on your margin and what you pay to get a customer. The useful test is the ratio: your 12-month contribution per customer should be well above your cost to acquire one. If it isn't, you're buying customers at a loss and hoping later orders fix it.
How do you calculate customer lifetime value in Shopify?
Export orders with customer IDs, group customers by the month of their first order and add up what each group spent over the next 12 months. Multiply by your contribution margin and subtract retention costs. Shopify reports and apps can show averages, but a cohort sheet built from an order export gives you the number you can actually act on.
What's the difference between CLV and LTV?
They're the same idea with different labels. Both mean the value a customer brings over their relationship with you. What matters more than the label is the version: revenue or contribution, and over what window. Always say which one you mean, because a revenue figure over a lifetime can be three times a contribution figure over a year.
How long should the lifetime window be?
Use 12 months for decisions about how much to pay for a customer. It's long enough to capture most repeat orders for many stores and short enough to fund. Track 24 and 36 months too, but don't spend money today against value you might see in three years unless your cohorts have proved it.
Does Klaviyo calculate customer lifetime value?
Yes. Klaviyo shows historic CLV, predicted CLV and total CLV on profiles once your account has enough data. Its help center says you need at least 500 customers who have ordered, at least 180 days of order history with orders in the last 30 days, and some customers with 3 or more orders. The default prediction window is one year.
What raises ecommerce customer lifetime value the fastest?
Getting more first-time buyers to place a second order, and sooner. The second order is the biggest drop-off in most stores, and every customer who makes it tends to keep buying. A strong post-purchase flow, a reason to come back and replenishment reminders usually move it more than loyalty points or bigger discounts.