Customer lifetime value formula for online stores, with a worked example
Customer lifetime value (CLV or LTV) is the profit one customer brings your store over the time they keep buying. The simple formula is: average order value × orders per year × years as a customer × gross margin. Use profit, not revenue, and you know what a customer is worth.
Then you can answer the question that matters for ads: how much can I pay to win a new customer? If your ad platforms miss some of your repeat orders, they will show you a lower number than the real one. You can see what your store sends with the free Tracking Check, which takes about two minutes.
The simple CLV formula
Two steps:
- Revenue per customer = average order value × orders per year × years as a customer.
- Lifetime value = revenue per customer × gross margin.
That is the whole formula. It is not the only way to calculate CLV. Bigger companies use models that predict future behaviour. For a store with a few thousand customers, the simple version is clear, easy to check and good enough to make ad decisions.
You can do the sum in the free Customer Lifetime Value Calculator. It also shows the most you can pay per customer. If you want the other store numbers beside it, such as break-even point and conversion rate, the hub is ad calculators.
Why use profit, not revenue
Revenue is what the customer pays you. Profit is what is left after the product costs. If you compare revenue with your ad cost, every customer looks worth more than they are, and you may spend money you don't have.
Gross margin is the share of each sale left after the cost of the goods. If you sell a $100 item that costs you $45, your gross margin is 55%. Use gross margin for the simple formula. It leaves out costs like shipping, payment fees and staff, so treat the result as a ceiling and not as take-home profit. If you want a safer number, take your payment fees and shipping off the margin first.
A worked example (made-up numbers)
This is an example with round numbers, not a benchmark. Your numbers will differ.
A store sells coffee gear:
- Average order value: $80
- Orders per customer per year: 2.5
- Years a customer stays: 3
- Gross margin: 50%
Revenue per customer: $80 × 2.5 × 3 = $600.
Lifetime value: $600 × 50% = $300 of gross profit per customer.
Now the store spends $75 in ads to win each new customer. Lifetime value to acquisition cost is $300 ÷ $75 = 4 to 1. Each customer is expected to bring back four times what they cost to find. If the same store paid $150, the ratio would be 2 to 1 and growth would get tight.
How to find each number in Shopify
You can find all four numbers inside Shopify with no extra apps (Shopify Help Center, reports and statistics):
- Average order value. Go to Analytics, then Reports, and open the average order value report (or divide sales by orders for the same period).
- Orders per customer per year. Take a full year of orders and divide by the customers who ordered in that year. The customer reports in Shopify show returning customers, which helps you check the number.
- Years as a customer. This is the hardest one. If your store is young, you don't have years of data yet. Use the time since your oldest customers first ordered and be honest that it's a guess. Start with 1 to 2 years, then raise it when your own data supports it.
- Gross margin. Product price minus product cost, divided by price. Shopify can show cost per item if you fill in the cost field on each product (Shopify Help Center, product cost).
Don't let one big customer or one big sale push up your average. If a few wholesale orders are skewing it, work the numbers on normal orders.
LTV:CAC, and what you can afford to pay
CAC is the cost to acquire a customer: ad spend divided by the number of new customers it brought. LTV:CAC compares what a customer is worth with what they cost to win.
A common rule of thumb is 3 to 1: lifetime profit about three times the acquisition cost. It is a rule of thumb, not a law. A store with high margins and quick repeat orders may be fine at 2 to 1. A store that waits a long time for the second order may need more.
A quick way to use it is to work backwards. If lifetime profit is $300 and you want 3 to 1, the most you can pay per customer is $300 ÷ 3 = $100. The calculator shows this number as the most you can pay at 3 to 1.
Two warnings:
- Cash comes first. Lifetime value arrives over years, but ads are paid today. A 4 to 1 ratio over three years can still squeeze your cash this month.
- Use the number as a range. If your inputs are guesses, test the formula with a worse case, for example one fewer order per year.
How missing purchase tracking hides repeat buyers
Ad platforms learn from the purchases they see. When an order never reaches Meta or Google Ads, the platform doesn't know the customer bought. That includes repeat buyers, who often come back through a different device or an email link.
It makes two problems:
- Your CAC looks too high. The ad platform sees fewer purchases than you really got, so the cost per customer looks worse than it is.
- Your best customers go unseen. The ad platform can't learn what your repeat buyers have in common, so it can't find more of them.
You can check how big the gap is by comparing your Shopify orders with what the platforms report. Our guide to checking Shopify orders against Meta and Google Ads shows the steps. If you want to turn the gap into money, the Lost Sales Calculator estimates how many sales your ads miss each month. KiteTrack is built to send those purchases from your own server so the platforms see them: server-side tracking for Shopify.
Google Ads also has a way to tell new customers from returning ones. If you want the ads to chase new buyers and not old ones, read how to check your Shopify orders against Meta and Google Ads.
FAQ
What is the customer lifetime value formula?
For a simple version: average order value × orders per year × years as a customer × gross margin. The result is the gross profit one customer brings over their time with your store.
Is CLV the same as LTV?
Yes. Customer lifetime value (CLV) and lifetime value (LTV) are two names for the same number.
Should I use revenue or profit?
Profit. If you compare revenue with your ad cost, every customer looks worth more than they are. Gross margin is the easiest profit measure to start with.
What is a good LTV:CAC ratio?
Many stores aim for 3 to 1, but that is a rule of thumb. The right ratio depends on your margin, how fast customers reorder and how much cash you can tie up while you wait.
How do I calculate customer lifetime value with little data?
Use a short time period, like 1 to 2 years, and a margin you trust. Redo the sum every few months as more customers reorder. A rough number you update beats a perfect number you never calculate.
Where to go next
Put your own numbers into the free Customer Lifetime Value Calculator, and see the other store sums in ad calculators. To see whether your ad platforms receive all your orders, run the free Tracking Check. Or book a call and we will go through it together.
Get tracking tips by email
Short, practical fixes for Meta, Google Ads and GA4, from Abir.
You’re in. First tip lands soon.