Customer lifetime value in ecommerce is the margin a customer earns you across every order they place, not the revenue. You raise it by moving three numbers: what each order is worth, how many orders a customer places, and how much of each order you keep. Measuring it is the easy part. The real work is choosing which of the three to move first.
We run our own Shopify stores, so we read lifetime value the way an operator does: as a spending limit. It tells you what you can afford to pay for a new customer and still make money. For the wider set of numbers it sits inside, see our guide to the ecommerce KPIs that decide whether a store can grow.
What is customer lifetime value in ecommerce?
Customer lifetime value (CLV, often written LTV) is the total profit you expect from one customer over a period you choose. To run your own numbers, use our customer lifetime value calculator. It has three parts:
- Average order value: what a typical order is worth.
- Purchase frequency: how many orders a customer places in the window.
- Margin: the share of each order you keep after product cost, shipping, payment fees and discounts.
Most dashboards and apps show a revenue version. It's useful for spotting trends, but it overstates what you can spend to win a customer. A customer worth $200 in revenue at a 30% margin is worth $60 to you. Pay $70 to acquire them and you've lost money, even though the dashboard looks healthy.
How to calculate customer lifetime value
Use a window you can actually observe. For most Shopify brands, 12 months is the honest choice, and 24 months works if you have the history. A "lifetime" figure built on years you haven't seen yet is a forecast, not a measurement.
The simple formula:
CLV = average order value × orders per customer in the window × contribution margin %
Example, hypothetical round numbers: a store with a $50 average order value, 1.5 orders per customer over 12 months and a 40% contribution margin.
| Input | Value |
|---|---|
| Average order value | $50 |
| Orders per customer (12 months) | 1.5 |
| Revenue per customer | $75 |
| Contribution margin | 40% |
| 12-month CLV on margin | $30 |
That $30 is the ceiling on what this store can pay to acquire a customer and break even within a year. Everything else in this post is about raising it.
Calculate it by cohort, not as one average
A single store-wide number hides what you most need to see: whether newer customers are worth more or less than older ones. Group customers by the month of their first order. Then track each group's cumulative margin over time.
If recent cohorts are flatter than older ones, something changed. Usually it's the product mix, the acquisition channel or the discount used to win them. Shopify's customer cohort report covers the repeat-order side, and your margin data usually lives elsewhere. Most stores finish the job in a spreadsheet, and that's fine. A rough cohort view beats a precise average.
Split it by first product and by channel
Two cuts tell you more than any other. The first is first product purchased, because customers who start on some products come back far more often than customers who start on others. The second is acquisition channel, because a customer won with a deep discount often behaves differently from one who paid full price.
Those two cuts turn lifetime value from a report into a decision. They tell you which products to put in front of new visitors and which channels deserve more budget.
Which lever raises lifetime value fastest?
There are three levers, and they don't move at the same speed. This is the order we work in, and the reasoning behind it.
1. First-order value moves first
Order value is the only lever you can change before you know whether a customer will ever come back. A higher first order raises lifetime value for every customer, including the ones who never return. It also shows up in weeks, not quarters.
Mountain Ice, a pain-relief brand with a loyal, repeat-heavy customer base, is a useful example. Its average order value went from under $20 to $39 after a layered offer system was built around the order. The product didn't change. What changed was what the store offered at the moment of purchase.
2. Margin moves second
Margin is the lever founders forget, because it isn't a marketing number. Yet every point of margin multiplies across every future order. Two things usually erode it: blanket discounts, and free shipping thresholds set below what an order costs to ship.
Fixing either one lifts lifetime value on customers you already have, without a single extra order. Price belongs here too. On Mountain Ice, prices went up 20% and conversion eased from close to 7% to a steady 6%, a trade that still earned more per visitor. A price increase is close to pure margin, because the cost of each unit doesn't change.
3. Repeat frequency moves last
Repeat orders produce the biggest lifetime value numbers, but they're the slowest lever and the hardest to attribute. Customers return when the product earns it, on a timeline set by how fast they use it up. A consumable with a natural refill cycle has a much higher ceiling than a durable product bought once a year.
So we treat frequency as the last lever, not the first. Our explainer on how to read and move your repeat purchase rate covers that side in detail.
What actually brings customers back?
A discount code after the first order is the default answer, and often the wrong one. It teaches customers to wait for a code. The margin you give away comes straight out of the lifetime value you're trying to raise.
What brings customers back more reliably:
- The product keeping its first promise. No email flow rescues a product that disappoints at unboxing. When product photos don't match what ships, buyers feel misled, and that customer is gone.
- Reminders timed to the usage cycle. A reminder that lands when the customer is running low is a service. One that lands a week after delivery is noise.
- A reason to return that isn't a discount. Refills, new variants, complementary products, or the next step in a routine.
- Teaching that results take time. For products that work over weeks or months, such as supplements, saying so early sets the expectation that one order isn't the full experience. That education is also why bundles sell well in those categories.
Retention is a discipline of its own. Our list of ecommerce customer retention strategies that start before the second order goes through it in full.
Mistakes that make lifetime value look better than it is
Lifetime value is easy to flatter. These are the errors we check for first when a founder quotes us their number.
Using revenue instead of margin. The most common one. At a 40% margin, a revenue-based figure overstates what a customer is worth by two and a half times.
Assuming a lifetime you haven't observed. A five-year figure for a brand that has sold for eighteen months is a guess dressed up as a metric.
Averaging very different customers. Wholesale buyers, subscribers and one-off gift buyers in one average produce a number that describes nobody.
Counting sale-only customers at full value. If someone only buys during promotions, their margin per order is lower. Their lifetime value should say so.
Ignoring returns. A customer who orders three times and returns two of them isn't a three-order customer.
How should lifetime value change what you spend on ads?
Lifetime value matters because it sets your acquisition budget. The usual habit is to compare it with customer acquisition cost as a ratio. The more useful question is payback: how many months until a new customer's margin covers what you paid to win them?
A store with plenty of cash can wait a year for payback. A store funding growth from its own revenue usually can't. A customer who only pays back in year two can still run you out of cash in year one, so know your payback window before you scale spend.
That's the real reason first-order value comes first. Margin earned on the first order pays back today. Margin you hope to earn on the fourth order is a bet.
The order to work in
Measure lifetime value on margin, over a window you can observe, split by cohort. Then raise it in order: first-order value, then margin, then repeat frequency.
No hype, and no promise of a specific lift. Results depend on your product, price, traffic and margins. If you want to see how we rebuild what a store offers at the moment of purchase, the Invisible Second Sale™ page walks through the approach.
