By El Ghali Bennis · Published
How to Calculate Customer Lifetime Value (Examples)
Learn how to calculate customer lifetime value with the formula, a worked example, LTV to CAC benchmarks and tactics to raise it.

To calculate customer lifetime value, multiply your average order value by how many orders a customer places per year, then by how many years they stay, then by your gross margin. The result is the profit one customer brings you over the whole relationship. A $60 order, 2.5 orders a year, 3 years, 50% margin gives $225.
That one number changes how you spend money. It tells you how much you can pay to acquire a customer, which products deserve ad budget, and whether your store is quietly leaking buyers after the first purchase. This guide walks through the formulas, a full worked example, the benchmarks, and the tactics that actually move the number.
What Is Customer Lifetime Value in Ecommerce?
Ecommerce customer lifetime value (CLV or LTV) is the total revenue or profit a shopper generates for your store from their first order to their last. It turns a single sale into a relationship you can measure, forecast and invest in.
Most store owners track revenue per order. That's a snapshot. Lifetime value is the movie. Two stores can both sell a $50 product, but if one customer buys once and the other buys six times, those stores are in completely different businesses.
Revenue CLV vs profit CLV
You'll see two versions. Revenue CLV multiplies sales only. Profit CLV multiplies by gross margin, so it reflects what you keep after product cost, shipping and payment fees. Use profit CLV for any spending decision. Revenue CLV flatters you and leads to overspending on ads.
Average order value vs customer lifetime value
Average order value (AOV) measures one cart. CLV measures every cart a person ever places. AOV is one input into CLV, not a substitute for it. If you want the AOV half of the equation stronger, see our guides on increasing average order value with related products and using cross-sells.
How to Calculate Customer Lifetime Value: The Formula Step by Step
The simplest customer lifetime value formula is: CLV = Average Order Value × Purchase Frequency × Customer Lifespan. Multiply that by gross margin for profit CLV. You need three inputs, and you can pull all of them from your order export.
Step 1: Find your average order value
Divide total revenue by the number of orders over a period, usually 12 months. If you made $180,000 from 3,000 orders, your AOV is $60.
Step 2: Calculate purchase frequency
Divide total orders by unique customers in the same period. If those 3,000 orders came from 1,200 customers, frequency is 2.5 orders per customer per year.
Step 3: Estimate customer lifespan
Lifespan is how long a customer keeps buying. The shortcut is 1 ÷ churn rate. If 33% of customers don't come back each year, lifespan is about 3 years. That's where the customer retention rate formula comes in.
Customer retention rate formula
Retention rate = ((customers at end of period − new customers acquired during the period) ÷ customers at start of period) × 100. Say you started the year with 1,000 customers, ended with 1,300, and 500 of those were new. Retained customers are 800, so retention is 80%. Churn is 20%, and lifespan is 1 ÷ 0.20 = 5 years.
Be careful with that 5-year figure. Small stores rarely have five years of data, and the shortcut gets wildly optimistic when retention is high. Cap lifespan at 3 to 5 years for planning.
Step 4: Apply your gross margin
Multiply by margin to get profit CLV. A store with a 50% gross margin keeps $0.50 of every revenue dollar before marketing and overhead.
CLV Calculation Example for a Small Online Store
Here's a CLV calculation example with real-looking numbers for a store selling specialty coffee. Every figure is an illustration, not a benchmark, so swap in your own.
| Input | Value | How you get it |
|---|---|---|
| Annual revenue | $180,000 | Order export |
| Orders | 3,000 | Order export |
| Unique customers | 1,200 | Distinct emails |
| Average order value | $60 | $180,000 ÷ 3,000 |
| Purchase frequency | 2.5 per year | 3,000 ÷ 1,200 |
| Annual churn | 33% | Customers who didn't return |
| Lifespan | 3 years | 1 ÷ 0.33 |
| Gross margin | 50% | After COGS, shipping, fees |
Revenue CLV is $60 × 2.5 × 3 = $450. Profit CLV is $450 × 50% = $225. That $225 is the ceiling on what you can sensibly spend to win one new customer.
The average order total per customer shortcut
If your data is messy, use a simpler route. Take the average order total per customer: total lifetime spend divided by the number of customers who've ever bought. If 1,200 customers have spent $540,000 combined over three years, that's $450 each. It's a historical CLV, and it needs no churn assumptions.
Historical CLV is honest but backward-looking. Predictive CLV, the formula above, tells you where a new customer is likely to land. Use both and compare them. As our own rule of thumb (not an industry standard), if they differ by more than 30%, one of your inputs is probably off.
Cohort Analysis for Ecommerce: The Most Accurate Method
Cohort analysis groups customers by the month of their first order and tracks how much each group spends over time. It's the most accurate way to measure lifetime value because it shows real behavior instead of an averaged guess.
Build a simple grid. Rows are acquisition months (January buyers, February buyers). Columns are months since first purchase (0, 1, 2, 3...). Each cell holds cumulative revenue per customer for that group.
- Export orders with customer email, order date and total.
- Tag each customer with the month of their first order.
- Sum revenue per cohort for each month after acquisition.
- Divide by cohort size to get cumulative revenue per customer.
- Multiply by gross margin to get cumulative profit.
What you're looking for is the shape. A healthy cohort curve keeps climbing after month three. A flat one means customers buy once and vanish. If your newer cohorts sit below older ones, something changed: product quality, ad targeting, or the post-purchase experience.
Repeat purchase rate
The repeat purchase rate is the share of customers who've ordered more than once. Divide repeat customers by total customers. If 360 of your 1,200 buyers ordered twice or more, your rate is 30%. It's the fastest early-warning metric for a young store, because it moves before lifetime revenue does.
The rate depends heavily on what you sell. Consumables like coffee, supplements and skincare repeat naturally. Furniture doesn't. If you sell recurring products, our walkthrough on calculating supplement subscription lifetime value shows how subscriptions change the math.
What Is a Good LTV for Ecommerce? LTV to CAC Ratio
A good LTV for ecommerce is one that's at least three times what you pay to acquire the customer. That's the widely cited LTV to CAC ratio benchmark of 3:1, popularized in SaaS circles and commonly applied to ecommerce. It's a rule of thumb, not a law. Your category and cash position decide the right target.
Customer acquisition cost (CAC) is your total marketing and sales spend divided by new customers won. If you spent $12,000 on ads and content in a month and won 200 new customers, CAC is $60. With the $225 profit CLV from our example, your ratio is 3.75:1. That's healthy.
| LTV:CAC ratio | What it usually means | What to do |
|---|---|---|
| Below 1:1 | You lose money on every customer | Pause paid spend, fix margin or retention |
| 1:1 to 3:1 | Thin or slow payback | Raise repeat rate before scaling |
| 3:1 to 5:1 | Healthy | Scale acquisition carefully |
| Above 5:1 | Possibly underinvesting | Test higher bids and new channels |
Don't ignore payback period. A 4:1 ratio that takes 18 months to pay back can still strangle a small store's cash flow. Track how many days it takes for a cohort's cumulative profit to cover its CAC. Many small stores aim for under 90 days, though that's a common operator convention rather than a published standard.
For outside benchmarks, see the Shopify guide to customer lifetime value and the Investopedia definition of customer lifetime value. Treat any category average you find as a sanity check only. Your own cohorts beat any industry figure.
How to Increase Customer Lifetime Value
To increase customer lifetime value, lift one of the three inputs: order value, purchase frequency or lifespan. Retention almost always gives the best return, because the customer is already paid for. Bain & Company's well-known research, published by Harvard Business Review, found that increasing customer retention rates by 5% can increase profits by 25% to 95%, depending on the industry.
Raise frequency with the second order
The jump from one order to two is the hardest and most valuable. Send a post-purchase email sequence timed to when the product runs out. Add a reward for the second order. A loyalty program gives people a reason to return, and a wishlist reminder brings back shoppers who saved something but didn't buy.
Raise order value
Bundles, related products and free-shipping thresholds nudge carts up. If your AOV is $60, a $75 free-shipping threshold often pulls the average toward $70 without discounting.
Extend lifespan with service and trust
Customers leave over slow answers and doubt. Real reviews and answered questions on product pages cut hesitation. We cover this in how to get more customer reviews and adding customer Q&A to product pages.
Recover the sales you already earned
Abandoned cart emails win back buyers who were ready to pay. Each recovered order is acquisition cost you've already spent, so it lifts LTV and improves your LTV to CAC ratio at the same time.
LTV Tracking for Small Online Stores
For LTV tracking for small online stores, start with a spreadsheet and one monthly habit. Export orders, update your cohort grid, and write down four numbers: AOV, repeat purchase rate, 12-month profit per customer and CAC. Do it on the same day each month.
Spreadsheets work until you pass a few hundred orders a month. After that, manual exports become the reason people stop tracking. A built-in customer value report that shows spend per customer, order counts and repeat buyers removes the chore. Many Shopify stores end up paying for a separate analytics app to get this. On Rovela, customer reporting sits in the admin dashboard with the other 100+ default features, so there's no extra app bill.
Common mistakes to avoid
- Using revenue instead of profit. A 20% margin product and a 60% margin product have very different real CLV.
- Blending all customers. Split by acquisition channel. Customers from email often outspend those from discount-driven ads.
- Trusting a 5-year lifespan. If your store is 14 months old, you don't have that data. Use 12-month CLV.
- Ignoring refunds. Subtract returns before you calculate AOV.
- Counting guests twice. Customers who check out as guests with different emails inflate your customer count and cut your frequency.
Quick answers
How often should you recalculate CLV? Monthly for cohorts, quarterly for the headline number.
Can you calculate CLV for a brand-new store? Not reliably. Track 90-day value per customer and project from there, and label it as an estimate.
Is CLV the same as ROI? No. CLV measures what a customer is worth. ROI measures what a spend returned.
Put Your Lifetime Value Number to Work
Calculating customer lifetime value takes four inputs and ten minutes: AOV, purchase frequency, lifespan and margin. Cohort analysis makes it honest, and the LTV to CAC ratio tells you what to do with it. Aim for 3:1, watch your repeat purchase rate, and focus on the second order.
The best number is useless if pulling it takes an afternoon. If you want customer reports, loyalty, abandoned cart recovery and reviews already built in rather than bolted on, Rovela builds a complete store from a conversation, and you can see the flat pricing before you commit.
