The LTV Playbook: how to calculate customer lifetime value in ecommerce

Inside the top 1% of eCommerce: How leading CEOs use LTV to drive strategic growth

Alex JostAlex Jost
Founder of RetentionX · Jan 21, 2025 · 10-minute read

After years of exponential growth, our eCommerce journey hit a wall. No matter how hard we pushed, growth seemed harder to achieve with each passing month. It took me years to uncover the real drivers of sustainable growth—this story will change the way you look at your brand forever.

Seven years of sales as bars with media spend as a line that climbs faster than sales

We tried countless marketing twists, each bringing brief success, fading out as soon as the new concept wore out. It felt like an endless cycle of chasing short-lived wins. After months of trial and error, we had a breakthrough—one that changed everything. Fast forward five years, and we’ve scaled our Shopify store to over $100 million in revenue and $30 million profit.

This is the story of how we did it—and how you can, too.

Key takeaways
1
Customer lifetime value (LTV) in ecommerce is the profit a customer generates over a set time window: gross merchandise value minus discounts, returns and COGS (a CM1 basis).
2
Count only what the customer controls: discounts and returns belong in LTV.
3
LTV is time-dependent. Always name the window (e.g. 12-month LTV) and only average customers who have completed it.
4
Aim for an LTV:CAC ratio of at least 3:1 within two years. On revenue instead of CM1, the same business can look twice as healthy.
In this post
01The Magic Formula: how to calculate LTV →
02The time frame + RetentionX data →
03The impact and the LTV:CAC ratio →
04Worked example: $1,000 revenue, $450 LTV →
05LTV calculation FAQ →

My Story

Budgets were tight, quick results were demanded, yet we knew deep down that customer quality was the key to long-term success. Our numbers told the story: 72% of our revenue came from just 20% of our customers.

PERCENTILE ANALYSIS
A small fraction of customers carries most of your revenue.
Cumulative revenue contribution by top customer percentile.
PercentileTOP 10%TOP 20%TOP 30%TOP 40%TOP 50%
Revenue
Contribution
54.64%
72.08%
84.45%
89.72%
92.94%
By the time you’re past your top 50% of customers, you’ve already explained 93% of revenue. The other half is decoration on the curve.

To fuel short-term growth we launched aggressive customer acquisition campaigns, resulting in low-quality customers. Pressure from high inventory levels compounded the problem. Although we had it on our agenda, many internal stakeholders pushed back, arguing that we couldn’t afford to focus on customer quality. Instead, we needed to sell fast, clear out inventory, and build up cash reserves.

But the truth was we weren’t building sustainable growth. It felt like we were merely shifting money from one month to the next without creating real, incremental value. So I started building a simple Google spreadsheet to model what would happen if we shifted our strategy. The results were surprising: the success of our business hinged on just a handful of critical factors:

  • Repeat Purchase Rate

  • Average Order Value

  • Product Returns

All three metrics share a common trait—they are the key drivers of the north star metric Customer Lifetime Value (LTV).

LTV CALCULATOR
Plug your numbers in. See the leverage.
A free spreadsheet that shows what a 10% LTV improvement actually does to your operating model.
LTV impact calculator — Google Sheet preview showing inputs and the resulting profit lift.
Download the LTV calculator →

Sharing is caring: Just make a copy and plug in your own data.

Understanding the importance of LTV, I took immediate action:

  • Cut Unprofitable Sales: Some customers had terrible unit economics. Their incremental revenue didn’t even cover the cost of goods sold.

  • Budget Strategically: We allocated budgets to support the strategy shift, while ensuring clear visibility into how quickly the investment would pay off.

  • Focus on Profit Drivers: We redirected spending toward initiatives with a direct impact on profitability.

I’ll dive into how we put these actions into practice later.

The shift in strategy didn’t just promise long-term gains—it delivered. Within 6 months, we began to see positive results. After one year, our top-line revenue was up 30%, but more importantly, our bottom-line profit had improved by 80%. By year three, the business had transformed into a completely different company!

The Magic Formula

There’s a lot of opinions about how LTV should be calculated. Different teams often push for numbers that serve their own goals. Marketers, for instance, tend to present LTV as cumulative gross revenue to justify larger budgets and higher customer acquisition costs. CFOs prefer to view LTV as net customer profit after all operational costs. Neither view serves to scale LTV.

My recommendation
The LTV of a customer should include all revenues and costs that the customer can actively influence through their behavior.

You might wonder about factoring in shipping costs to distant countries like Japan, which are higher than those to Canada. While this is true, it’s ultimately a business decision to sell to these countries—something beyond the customer’s control. Such factors should influence your pricing strategy, rather than expecting increased loyalty from a Japanese customer to achieve the same profitability.

On the flip side, discounts and product returns are absolutely essential in your LTV calculation. This is why LTV should be calculated on a CM1 (Contribution Margin 1) basis.

LTV CUSTOMER JOURNEY
From gross merchandise value down to LTV.
One customer, three orders: gross merchandise value minus discount and cost of goods gives the LTV of each order, a returned order adds nothing

Here’s how to calculate LTV, step by step:

  • Gross Merchandise Value (after sales taxes) This is the total of a customer’s order values over time, excluding taxes. It increases with the customer’s average order value (AOV) and the total number of purchases made.

  • Discounts Deduct any discounts the customer received, including welcome coupon codes, reactivation discounts, or any other markdowns. This is the amount the customer actually paid after discounts.

  • Product Returns Especially for fashion brands, product returns are a critical factor. A customer with 10 orders and a 90% return rate will cost you far more than a customer who places just one order with no returns. Returns create additional overhead—from shipping costs to handling and restocking, not to mention the impact on marketing spend.

  • Cost of Goods Sold (COGS) The true value of a customer is only evident after accounting for COGS, which includes production costs or the item’s purchase price. COGS are crucial for expressing gross margins, especially when discounts are applied to orders. As discounts reduce revenue while COGS remain unchanged, the gross margin decreases, significantly impacting LTV.

The resulting value is the profit per customer over their lifetime: the LTV.

CUSTOMER LTV
The same customer is worth different things at different times.
LTV builds up over time. A 30-day snapshot lies. At 5 years you finally see the truth.
CustomerGross RevLTV30D90D1Y2Y5Y
Kaya Smith$765.00$512.00$117$117$286$473$512
Alyssa Meyer$1,895.00$957.40$69$290$654$957$957
Alexandra Barnes$994.00$542.50$542$542$542——
James Scott$125.00$0$0————
Two customers with the same gross revenue can have wildly different LTVs. Two customers with the same LTV can land on completely different curves. The number is the answer to a question about when.

The Time Frame

Another important factor when discussing LTV is time! Brands are often asked, "What is your LTV? This simple sounding question should never be answered with a single number. LTV is time-dependent! Because there's an inherent time component to the calculation and its tendency to evolve over time, context is key. A correct answer to this question would be something like, "After the first year, the average LTV of our customers is $250.

Why? Customers acquired a year ago had much more time to build up high LTVs than new customers from this month. To create fair conditions, you need to base the calculation on a period that all the customers included have completed.

LTV @ 1 YEAR
One year tells two different stories.
Two customers compared on LTV in their first 12 months versus total LTV

By simply averaging all of your customers' individual LTVs, you would be giving the LTVs of new customers the same weight as those of loyal customers, which would likely lower your overall number - especially during scaling periods when you're acquiring a high volume of new customers.

Time frames used by consumer brands to measure LTV are typically 1, 3, 12, 24, and 60 months.

CUSTOMER LTV BY TIMEFRAME
The same customer is worth different things at different times.
LTV of two customers from 30 days to 5 years: the curves separate over time

How fast does LTV really build? Here is what three Shopify brands on RetentionX show, from first order to year two:

RetentionX data · 3 Shopify brands
Month one is most of year one.
How LTV builds after the first order.
BrandDay 30 share of 1Y LTV1Y LTV ÷ day 302nd order in 12 moBack by day 90*
Apparel60%1.66×28%51%
Beauty75%1.34×19%42%
Food81%1.24×18%52%
*Share of customers who reorder within 2 years. LTV: all customers per window; repeat: 2024 cohorts (~49k). Half of all comebacks happen by day 90: the first 90 days decide the year.

Okay, so now we know what to look for. But why are we doing this, and what is the expected result?

The Impact

It’s simple: increasing your LTV by just 10% can result in 50% more net profit. This additional profit can be reinvested directly into faster growth, creating a compounding effect. Successful brands leverage this dynamic to scale even faster—they earn more per customer and use that extra cash to fuel further expansion.

REINVESTING PROFIT FOR GROWTH
Profit you reinvest compounds. Profit you take home doesn’t.
Revenue with profit and marketing budget with reinvested profit, both compounding over four years

At the same time, improving LTV reduces operational costs across the board. Serving fewer but higher-quality customers means less strain on customer service teams and fewer product returns. It allows your service team to focus on higher-value activities—like upselling or building stronger relationships with premium customers—instead of dealing with issues like fraud and chargebacks.

Success hinges on achieving the right balance between acquiring new customers and maximizing their lifetime value. A crucial metric that helps assess this balance is the LTV:CAC ratio—a key indicator of the efficiency and sustainability of a brand's growth strategy.

LTV : CAC RATIO
Every customer starts as a loss. The question is when they stop being one.
Customer acquisition cost as an initial loss, the breakeven point, and the profit that follows through retention

The LTV:CAC ratio compares the value a customer generates during their lifetime to the cost of acquiring them. Let’s break it down:

  • Customer Lifetime Value (LTV): The profit a customer generates over their lifetime. This factors in purchase frequency, average order value, customer retention rate, and associated costs.

  • Customer Acquisition Cost (CAC): The total cost of acquiring a new customer, including marketing, advertising, and other related expenses.

This ratio provides a clear insight into your business’s acquisition efficiency and retention strategy. Here’s how to interpret different outcomes:

  • Ratio < 1.0: If the ratio is less than 1.0, the cost of acquiring customers exceeds their lifetime value. This signals a need to reevaluate acquisition channels, optimize marketing, or improve retention efforts.

  • Ratio = 1.0: A ratio of 1.0 means LTV equals CAC. While this might seem balanced, it’s insufficient for long-term growth. Aim for a ratio higher than 1.0 to ensure profitability and scalability.

  • Ratio > 1.0: A ratio greater than 1.0 indicates that LTV exceeds CAC. This is a strong sign of efficient acquisition and retention, contributing to sustainable growth and profitability.

The ideal LTV:CAC ratio varies by industry and business model, but most successful brands aim for at least 3:1 within two years. This means the lifetime value of a customer should be three times the cost of acquiring them. Achieving this ratio provides plenty of room for reinvestment, innovation, and scalable growth.

LTV:CAC BENCHMARKS
What “healthy” looks like by category.
Two-year LTV, blended CAC, and the ratio every operator should be benchmarking themselves against.
IndustryLTV 2 YearsCACLTV : CAC
Beauty & Cosmetics$80 – $150+$30 – $603:1 to 4:1
Apparel & Fashion$80 – $250+$30 – $503:1 to 4:1
Food & Beverage$70 – $120+$15 – $402:1 to 3:1
Supplements$90 – $200+$30 – $603:1 to 4:1
Jewelry$200 – $500+$30 – $60>5:1
Pets$100 – $200+$20 – $403:1 to 5:1
Anything below 3:1 is fragile. Anything above 5:1 means you’re probably under-spending on acquisition.

LTV and CAC can vary significantly based on factors such as AOV, retention rate, and the competitive landscape within your industry. However, one constant remains—repeat customers are every brand’s secret weapon:

  • 20% higher AOV than first-time buyers.

  • 10% lower return rate, reducing operational costs.

  • Twice as likely to repurchase, driving incremental growth.

Enough theory! Let's get hands-on and start optimizing your metrics for success.

How to calculate customer lifetime value for ecommerce: worked example

Here is the Magic Formula applied to one customer over 12 months, so you can check your own numbers line by line.

LTV calculation · worked example
$1,000 in revenue. $450 in LTV.
One customer, first 12 months, CM1 basis. Illustrative numbers.
LineAmountRunning LTV
Gross merchandise value (after sales tax)$1,000$1,000
− Discounts (coupon codes)−$100$900
− Product returns (refunded value)−$150$750
− COGS on kept items (40%)−$300$450
12-month LTV (CM1)$450
At a $150 CAC, revenue says 6.7:1. CM1 LTV says 3.0:1, and that is the number you can spend against.

Every line below gross revenue is something the customer influenced.

Takeaway
Calculate LTV on CM1, name the window, and compare it with CAC on that same window. For the Shopify setup, see how to calculate LTV in Shopify. Why CM1: revenue is an opinion, contribution margin is fact.

LTV calculation FAQ

How do you calculate customer lifetime value for an ecommerce store?
Add up what a customer spent over a fixed window, excluding sales tax. Then subtract discounts, refunded returns and the cost of goods sold on what they kept. The result is LTV on a CM1 basis: the profit the customer created through their own behavior.
What is a good LTV to CAC ratio?
Most successful brands aim for at least 3:1 within two years. Below 3:1, growth is fragile. Above 5:1, you are probably under-spending on acquisition. Compare both on the same window and on profit: a revenue LTV can make a 3:1 business look like 6:1.
Which time frame should I use for LTV?
12-month LTV is the most practical for setting acquisition budgets; consumer brands also track 1, 3, 24 and 60 months. Only include customers who have completed the window: customer cohorts make this easy. Otherwise last month's new customers drag the average down.
Should shipping costs be included in LTV?
Only the costs a customer can influence through their behavior belong in LTV. Shipping to a distant country is your decision to sell there, not the customer's, so handle it in pricing instead. Discounts and product returns are different: the customer drives them, so they always come off before you call it LTV.
How much does a higher LTV improve profit?
More than it looks. Raising LTV by 10% can lift net profit by up to 50%, because the extra margin lands on customers you already paid to acquire. Reinvest that profit into acquisition and the effect compounds: you earn more per customer and can afford to win more of them.
Part 1 ends here · Part 2 →
Ways to Increase LTV.
You know the math. Now the moves — tactics, levers, and structural changes that actually shift the curve.
Read Part 2 →