Skip to content

How to Calculate Customer Lifetime Value: A Practical Guide

Raheem Dawar, Founder· · 12 min read
How to calculate customer lifetime value using customer revenue and purchase data.

A customer places a $75 order. That tells you what they spent today. It does not tell you what that customer is worth to the business.

If they come back two or three more times, the picture changes completely.

That is the reason ecommerce teams look at customer lifetime value (CLV). It connects the first purchase with what happens afterward, which makes it useful for acquisition, retention, and revenue planning.

How do you calculate customer lifetime value?

For a straightforward ecommerce calculation:

Customer Lifetime Value = Average Order Value × Purchase Frequency × Customer Lifespan

For example, if your average customer spends $75 per order, places 3 orders per year, and remains active for 2 years:

$75 × 3 × 2 = $450 CLV

That means the average customer is expected to generate approximately $450 in revenue over their relationship with the brand.

The important part is making sure the three inputs use consistent time periods. If purchase frequency is annual, customer lifespan should also be measured in years.

CLV formulas at a glance

Calculation

Formula

Revenue-based CLV

AOV × Purchase Frequency × Customer Lifespan

Margin-based CLV

AOV × Purchase Frequency × Customer Lifespan × Gross Margin

LTV

CLV ÷ CAC

The basic formula is useful for a quick ecommerce benchmark. Margin-based CLV is more useful when you want to understand the economics after product costs.

Customer lifetime value formula using average order value, purchase frequency, and customer lifespan.

What are the three numbers in the CLV formula?

1. Average order value

Average order value, or AOV, is the average amount a customer spends per transaction.

AOV = Total Revenue ÷ Number of Orders

If 1,000 orders generated $75,000 in revenue, the AOV would be:

$75,000 ÷ 1,000 = $75

AOV can change based on product mix, bundles, discounts, cross-sells, upsells, and merchandising.

2. Purchase frequency

Purchase frequency measures how often customers purchase during a defined period.

For example, if an average customer places 3 orders per year, annual purchase frequency is 3.

The time period matters. Do not combine monthly purchase frequency with a lifespan measured in years unless you convert the units first.

3. Customer lifespan

Customer lifespan is the estimated length of time a customer remains active with the business.

This is usually the hardest input because customers do not all stop buying at the same point.

A subscription brand may have relatively predictable churn. A one-time purchase brand may have a much less obvious customer lifecycle.

That is why simply choosing an arbitrary number such as “three years” can make a CLV calculation look more precise than it really is.

How do you estimate customer lifespan?

There are several ways to estimate customer lifespan. The simplest depends on whether the business has subscriptions or primarily relies on repeat purchases.

For subscription businesses

A simple estimate is:

Customer Lifespan = 1 ÷ Monthly Churn Rate

If monthly customer churn is 5%:

1 ÷ 0.05 = 20 months

So the estimated customer lifespan is 20 months.

This is a simplified model. It assumes the churn rate remains reasonably stable over time.

For non-subscription ecommerce

A simple retention-based estimate is:

Customer Lifespan = 1 ÷ (1 − Annual Retention Rate)

For example, if 50% of a customer cohort remains active one year later:

1 ÷ (1 − 0.50) = 2 years

The estimated lifespan is therefore 2 years.

This is an estimate rather than a universal rule. It assumes retention remains reasonably stable. In real ecommerce data, retention often changes as a cohort gets older, so it is better to compare the estimate with your actual cohort retention curve.

What is a simple ecommerce CLV example?

Suppose an ecommerce brand has:

  • AOV: $80
  • Purchase frequency: 2.5 orders per year
  • Customer lifespan: 2 years

The calculation is:

$80 × 2.5 × 2 = $400

The estimated customer lifetime value is $400 in revenue.

That number becomes more useful when you compare it with other metrics.

For example, if the same brand spends $100 to acquire a new customer, its basic LTV ratio would be:

$400 ÷ $100 = 4:1

That does not automatically mean the customer is profitable. Gross margin, fulfillment, returns, discounts, acquisition costs, and other variable expenses still matter.

Is CLV historical or predictive?

CLV can refer to two different things, and it is important not to mix them.

  • Historical CLV measures what customers have already spent based on their actual order history.
  • Predictive CLV estimates what customers are likely to spend in the future based on historical behavior and assumptions about future purchases, retention, and other signals.

For example, if a customer has already spent $240, their historical value to date is $240.

A predictive model might estimate that they will generate another $180 based on their purchase history and the behavior of similar customers.

Predictive CLV is useful when you want to make forward-looking acquisition and retention decisions, but it remains an estimate rather than guaranteed revenue.

Should CLV be based on revenue or profit?

It depends on what decision you are trying to make.

A revenue-based CLV tells you how much sales an average customer generates over their relationship with the brand.

A margin-based CLV accounts for gross margin:

Margin-Based CLV = AOV × Purchase Frequency × Customer Lifespan × Gross Margin

Suppose:

  • AOV = $80
  • Purchase frequency = 2.5
  • Lifespan = 2 years
  • Gross margin = 60%

Revenue-based CLV:

$80 × 2.5 × 2 = $400

Margin-based CLV:

$400 × 0.60 = $240

The $240 is gross profit before acquisition costs and other operating expenses.

For reporting and simple comparisons, revenue-based CLV is often easier to understand. For acquisition and profitability decisions, margin-based CLV gives you a more useful economic picture.

How do you calculate CLV for a Shopify store?

For a Shopify store, start with actual customer and order data rather than using an industry-average lifespan.

Look at:

  • Average order value
  • Orders per customer
  • Repeat purchase rate
  • Customer retention
  • Time between purchases
  • Revenue by customer cohort
  • Revenue by acquisition channel
  • Product or category purchased
  • Gross margin

Cohort analysis can show how customers acquired during the same period behave over time. This helps you understand repeat purchasing and revenue beyond the first order.

One store-wide CLV can hide major differences between customer groups.

For example, customers acquired through paid social may have a lower first-order value but strong repeat purchasing. Customers acquired through another channel may spend more initially but rarely return.

The blended CLV could make both groups look similar when their economics are actually very different.

Why is cohort analysis useful for CLV?

Cohort analysis shows what happens to customers after their first purchase.

Instead of asking only:

“What is our average CLV?”

you can ask:

“How much revenue does the January customer cohort generate after 30, 90, 180, or 365 days?”

This makes changes in retention much easier to see.

You can compare cohorts by:

  • Acquisition month
  • Acquisition channel
  • First product purchased
  • Product category
  • Customer type
  • Subscription status
  • Geography

Cohort analysis is especially useful when overall CLV appears stable but customer behavior underneath it is changing.

What is time to second purchase, and why does it matter?

The first purchase is not the end of the customer journey. For many ecommerce businesses, the period between the first and second order is one of the most important parts of the lifecycle.

Track:

Time to Second Purchase = Date of Second Order − Date of First Order

If customers typically reorder within 45 days but your post-purchase communication does not reach them until day 70, you may be missing the natural buying window.

This metric helps you determine when to send replenishment reminders, educational content, product recommendations, and other retention messages.

It can also help explain why CLV is changing. A customer who buys twice within three months behaves very differently from one who takes 14 months to place a second order.

What is the relationship between CLV and CAC?

Customer lifetime value becomes much more useful when compared with customer acquisition cost.

LTV = Customer Lifetime Value ÷ Customer Acquisition Cost

For example:

  • CLV = $400
  • CAC = $100

$400 ÷ $100 = 4:1

The ratio means the customer generates $4 in lifetime revenue for every $1 spent acquiring them, based on the CLV definition being used.

A 3:1 ratio is sometimes used as a directional benchmark, but it should not be treated as a universal rule. The right target depends on gross margin, operating costs, payback period, retention, business model, and growth strategy.

It is also important to compare CLV and CAC using the same customer group and consistent definitions.

A blended CLV ratio can look healthy while one acquisition channel is actually producing customers with poor long-term value.

Why does customer lifetime value decrease?

CLV can decrease when customer behavior deteriorates.

For example, suppose a brand starts with:

$70 AOV × 2.5 purchases × 2 years = $350 CLV

Later, customers average only 2 purchases per year and remain active for 1.875 years:

$70 × 2 × 1.875 = $262.50

CLV has fallen by 25%.

The reasons can be very different.

Customers may:

  • Spend less per order
  • Buy less frequently
  • Take longer to make another purchase
  • Stop buying after the first order
  • Churn from subscriptions
  • Receive poor post-purchase communication
  • Struggle to find relevant products for their next purchase
  • Have a product experience that gives them little reason to return

The useful question is not simply “Why is CLV down?”

It is: where in the customer journey is value being lost?

How can you increase customer lifetime value?

There are three practical ways to increase CLV.

Increase AOV

Increase the value of each transaction through relevant:

  • Product bundles
  • Cross-sells
  • Upsells
  • Quantity breaks
  • Product recommendations
  • Higher-value product options

The goal is not to add more products to every order. It is to make the next purchase more useful and relevant.

A brand with a $60 AOV that can consistently move customers toward $75 without damaging conversion has increased the value generated from each transaction.

For stores that need to improve this part of the equation, the work may involve merchandising, offer structure, product-page recommendations, bundles, and checkout experience. AOV optimization

Increase purchase frequency

If customers buy once every 12 months, increasing the number of purchases they make can have a major effect on CLV.

Common opportunities include:

  • Replenishment reminders
  • Post-purchase education
  • Product recommendations
  • Email and SMS campaigns
  • Subscriptions
  • Loyalty programs
  • Better product discovery
  • Cross-category purchasing

The key is to understand the natural buying cycle first. Sending customers repeated promotions before they are ready to buy can create unnecessary discount dependence rather than genuine retention.

Increase customer lifespan

Keeping a customer active for longer can increase the value generated across the relationship.

That can involve:

  • Improving the product experience
  • Making reordering easier
  • Giving customers better subscription flexibility
  • Understanding churn reasons
  • Improving customer support
  • Building useful post-purchase communication
  • Creating stronger reasons to return

The best lever depends on where the business is currently losing customer value.

For example, if customers already have a healthy AOV but rarely place a second order, another upsell on the first purchase may be less valuable than fixing the post-purchase experience.

At Andrea Maack, 100xretention rebuilt the brand's Klaviyo program around abandoned cart and checkout, browse abandonment, win-back, thank-you, and welcome flows, while also improving the Shopify store experience and product discovery. The result was 85% higher total revenue, with 31.76% of revenue coming from email marketing.

Andrea Maack case study with 85% higher total revenue.

How does retention marketing affect CLV?

Retention marketing affects what happens after the first order.

A customer who receives relevant communication at the right point in their buying cycle has more opportunities to return, discover another product, replenish an existing one, or remain subscribed.

The work can include:

  • Post-purchase flows
  • Replenishment campaigns
  • Win-back campaigns
  • Customer segmentation
  • Email and SMS
  • Subscription retention
  • Loyalty programs
  • Personalized product recommendations

For example, a replenishment flow can use a customer's previous purchase to estimate when they are likely to need the product again. A win-back campaign can focus on customers who have gone beyond their normal purchase interval rather than sending the same promotion to the entire customer base. A properly timed Klaviyo win-back flow can help bring those customers back without relying on broad discounts.

Good retention marketing is not simply about sending more messages. It is about improving the probability that an existing customer makes another valuable purchase.

You can see this more clearly when customer segments are built around actual buying behavior. Klaviyo segmentation

For brands that need a broader retention strategy, retention marketing can connect customer behavior, lifecycle messaging, subscriptions, and repeat-purchase opportunities. Klaviyo email and SMS marketing can then be used to execute those lifecycle campaigns.

What should you do if your CLV is lower than expected?

Do not immediately try to increase every metric.

First, identify where the value is being lost.

If AOV is low:
Look at product merchandising, bundles, cross-sells, upsells, and offer structure.

If customers are not returning:
Investigate the post-purchase experience, product satisfaction, retention messaging, and reasons for churn.

If customers return but take too long:
Look at time to second purchase and the natural replenishment or repurchase cycle.

If CLV varies by acquisition channel:
Compare cohorts by channel instead of relying on a blended CLV.

If first-order conversion is weak:
The problem may occur before retention even becomes relevant. Improve the customer journey and conversion experience first with conversion research and UX auditing.

This is where CLV becomes more than a reporting metric. It can help you decide where to focus the next improvement.

What should you measure alongside CLV?

CLV should not be viewed in isolation.

Useful supporting metrics include:

  • Average order value
  • Purchase frequency
  • Customer retention rate
  • Repeat purchase rate
  • Time to second purchase
  • Churn rate
  • CAC
  • LTV
  • Gross margin
  • Revenue by customer cohort
  • Revenue by acquisition channel

The combination gives you more information than any one metric.

For example, a declining CLV combined with stable AOV but lower purchase frequency points toward a different problem than declining CLV combined with falling AOV and stable purchase frequency.

The goal is to understand the behavior behind the number.

What are common CLV calculation mistakes?

Using an arbitrary customer lifespan

Choosing a lifespan without looking at actual customer or cohort behavior can distort the entire calculation.

Mixing time periods

Annual purchase frequency should be paired with lifespan measured in years. Monthly frequency should be converted before multiplying it by a multi-year lifespan.

Treating revenue as profit

A $500 CLV does not mean the business earns $500 in profit. Product costs and other expenses still matter.

Using one CLV for every customer

Customers acquired through different channels, products, offers, or cohorts can have very different long-term value.

Treating predictive CLV as guaranteed revenue

Predictive CLV estimates future behavior. It is not a promise of future revenue.

Overcomplicating the calculation

A simple, consistent CLV model that you actually monitor can be more useful than a sophisticated model built on assumptions nobody trusts.

How 100xretention approaches customer lifetime value

At 100xretention, we look at customer value across the full customer journey.

Conversion affects how many visitors become customers. AOV affects what they spend when they buy. Retention affects what happens after that first purchase.

The goal is to identify which part of the customer journey is limiting revenue, then improve that constraint rather than optimizing isolated metrics without context.

Conclusion

Customer lifetime value gives ecommerce teams a way to look beyond the first order.

The basic formula is:

CLV = AOV × Purchase Frequency × Customer Lifespan

But the formula is only useful when the inputs are based on real customer behavior.

Use consistent time periods. Estimate lifespan from retention or churn rather than choosing an arbitrary number. Compare customer cohorts, acquisition channels, and customer segments. Then use CLV alongside CAC, margin, repeat purchase rate, and time to second purchase to understand whether your growth is actually creating valuable customers.

If you want to find where your store is losing revenue across conversion, AOV, and retention, request a Free Revenue Audit and we can identify the biggest opportunities.

Frequently asked questions

What is the simplest formula for customer lifetime value?

For ecommerce, the simplest revenue-based formula is AOV × purchase frequency × customer lifespan. It estimates how much revenue an average customer is expected to generate over the relationship. Use a margin-based version when you need to evaluate customer economics after product costs.

How do you estimate customer lifespan?

For subscriptions, a simple estimate is 1 ÷ monthly churn rate. For non-subscription ecommerce, 1 ÷ (1 − annual retention rate) can provide a rough estimate when retention is stable. Compare the result with actual cohort behavior because retention usually changes as customers age.

What is the difference between historical and predictive CLV?

Historical CLV measures revenue a customer or cohort has already generated. Predictive CLV estimates future value using past behavior and assumptions about future purchases and retention. Historical CLV is useful for reporting, while predictive CLV is more useful for forward-looking acquisition and retention decisions.

Is CLV the same as LTV?

Yes. CLV, CLTV, and LTV are commonly used to describe customer lifetime value. The terminology varies, but the underlying idea is the same: estimating the value a customer generates during their relationship with a business.

Should customer lifetime value include profit?

Revenue-based CLV measures expected sales, not profit. For a more useful profitability view, multiply CLV by gross margin or use contribution margin if you also need to account for other variable costs associated with serving the customer.

What is the LTV ratio?

LTV compares customer lifetime value with customer acquisition cost. Divide CLV by CAC. For example, a $400 CLV and $100 CAC produce a 4:1 ratio. Common benchmarks are directional rather than universal because margins, retention, payback periods, and business models vary.

View all posts →

Shopify CRO

Best Shopify Subscription Apps

Compare the best Shopify subscription apps by pricing, fees, features, migration, and brand sizes to find the right fit.

Free revenue audit · On video · 3 business days

Find out where your store is losing revenue.

We show you the biggest conversion leaks and what to test first.