Shopify customer lifetime value is the gross margin a customer brings you over a fixed window, usually 12 months, measured by the month they first bought. I calculate it as margin per order after discounts, shipping, payment fees and returns, times the orders a cohort actually places in its first 12 months, then compare it with what I paid to acquire that customer.
That last step is the whole point. A lifetime value number that is not sitting next to your customer acquisition cost (CAC) is just a vanity metric. Since 2021 my team at TechnoPulse has helped 200+ DTC brands on Shopify, and the most common mistake I see is a founder quoting an LTV of a few hundred dollars that, once you take out costs and stop guessing at “lifespan,” is really closer to a third of that. Below is the exact method I use, with an illustrative example, and where to pull every input in Shopify and Klaviyo.
The simple CLV formula and why it misleads
Almost every guide ranking for this topic gives you the same thing:
CLV = average order value x purchase frequency x customer lifespan
I read the top results before writing this. Most stop at that revenue formula. A couple mention gross margin or cohorts in passing, and almost none mention CAC payback, returns, shipping or payment fees. The formula is fine for a classroom. It is dangerous for a media budget, for three reasons.
1. It counts revenue, not money you keep
If your average order is $60 and $30 of it goes to product cost, shipping, fees and returns, a customer worth “$300 in revenue” is worth $150 to you before you spend a cent on ads. Setting your CAC target against revenue CLV means you can lose money on every customer and still think you are winning.
2. “Lifespan” is a guess
Most stores under five years old do not have enough history to know how long customers stay. So founders plug in “3 years” because it sounds reasonable. Multiply anything by a made up number and you get a made up answer.
3. It blends every customer together
Customers acquired during a Black Friday sale behave differently from customers who found you through search in March. An all time average hides whether your newer customers are getting better or worse. Cohorts fix that.
The margin based cohort CLV I actually use
I use three numbers. None of them needs a data scientist.
Step 1: Contribution margin per order
Start with your average order value after discounts. Then subtract, per order:
- Cost of goods sold (product cost plus inbound freight and packaging)
- Fulfillment and shipping cost, minus any shipping you charge the customer
- Payment processing fees
- Returns and refunds, as an average allowance per order
What is left is the money each order actually contributes. I call it margin per order. If you offer free shipping, this is where you see what it really costs you; I cover how to set that line in my post on the free shipping threshold.
Step 2: 12 month cohort value
Take every customer whose first order landed in one month. Count how many orders that group placed over the following 12 months, including the first one, and divide by the number of customers. That is orders per customer in year one. Multiply by margin per order and you have 12 month cohort CLV.
Why 12 months? Because it is long enough to capture real repeat behavior for most consumables and apparel, short enough that you can measure it on cohorts from last year instead of predicting it, and it lines up with how you plan cash. If you sell something people rebuy every few weeks, also track 6 months. If you sell furniture, 24 months is fairer.
Step 3: CAC payback
Plot cumulative margin per customer month by month for the cohort. The month where that line crosses your blended CAC is your payback month. This one number tells you how much cash you need to grow and how hard you can push acquisition.

Worked example (illustrative numbers only)
The numbers below are a made up, round number example to show the math. They are not from any client.
Margin per order
- Average order value after discounts: $60
- Cost of goods sold: $18
- Fulfillment and shipping, net of shipping charged: $9
- Payment fees: $2
- Returns and refunds allowance: $1
- Margin per order: $30 (50 percent)
The January cohort
Say 1,000 customers placed their first order in January. Over the next 12 months, per 100 customers:
- Month 0: 100 first orders
- Months 1 to 3: 18 more orders
- Months 4 to 6: 12 more orders
- Months 7 to 12: 15 more orders
That is 145 orders per 100 customers, or 1.45 orders per customer in year one.
- 12 month revenue per customer: 1.45 x $60 = $87
- 12 month margin CLV: 1.45 x $30 = $43.50
Payback
Assume blended CAC for new customers is $35. Cumulative margin per customer runs $30.00 after the first order, $35.40 by month 3, $39.00 by month 6 and $43.50 by month 12. The cohort pays back its CAC in month 3, and earns $8.50 per customer of profit to cover overheads by month 12.
Now compare that with the simple formula
The same store using the textbook formula might say: $60 AOV x 1.8 orders a year x 3 year lifespan = $324. That number would let them spend $100 or more to acquire a customer “at 3 to 1.” In this example, at $100 CAC they would be $56.50 underwater per customer after a full year. Same store, same customers, very different decisions.

Where to pull each input in Shopify and Klaviyo
Shopify Analytics
- Average order value. Shopify defines it as gross sales minus discounts, divided by orders, and it excludes post order adjustments like returns (Shopify Help: analytics fields). So your returns allowance still needs to come out separately.
- Cost of goods sold. Enter cost per item on each product. Shopify’s gross profit metric is net sales minus cost of goods sold, and it only works once COGS is set up. In audits, missing product costs are one of the first gaps I find.
- Cohorts. Go to Analytics, Reports, and open Customer cohort analysis. It groups customers by the date of their first order and lets you choose metrics including customer retention rate, net sales, average order value and amount spent per customer, by week, month or quarter (Shopify Help: customers reports). Switch on projections and Shopify will estimate future amount spent per customer, but only with 24 months of data. Remember these are revenue figures; multiply by your margin percentage yourself.
- Returning customers. Shopify’s returning customer rate is returning customers divided by all customers who placed orders. I explain what a healthy number looks like in what is a good repeat purchase rate.
- Predicted spend tier. Shopify sorts buyers into high, medium and low tiers based on purchase frequency, order value, order count and recency. Your store must have made over 100 sales to use it (Shopify Help: predicted spend tier). It is useful for segmenting, not for setting CAC.
Shipping costs come from your Shopify Shipping label history or your 3PL invoices. Payment fees come from your payouts. Divide each by order count for the same period.
Klaviyo predictive analytics
Klaviyo shows a historic CLV, a predicted CLV and a total CLV on each profile. Historic CLV is the value of past orders, accounting for refunds and cancellations. Predicted CLV covers the next year by default, and total CLV is the two added together. Klaviyo says it retrains the model at least once a week (Klaviyo Help: predictive analytics).
To get predictions, Klaviyo lists these requirements:
- “At least 500 customers have placed an order.”
- An ecommerce integration such as Shopify, or orders sent through the API.
- “You have at least 180 days of order history and have orders within the last 30 days.”
- “You have at least some customers who have placed 3 or more orders.”
Klaviyo CLV is revenue, not margin. I use it to rank and segment customers, not to set budgets.

What to do with the number
Set a CAC ceiling
Pick the payback window your cash can carry, then read the cumulative margin at that month. In the example, a 6 month payback target means you can pay up to $39 for a new customer. That is your ceiling for blended paid acquisition, and it is far more honest than a ROAS target pulled from a forum.
Move the curve up with retention flows
Every extra repeat order in months 1 to 3 pulls payback forward. Post purchase, replenishment and winback flows are where that happens. A physician led supplement brand we work with gets 85 percent of its orders from returning customers, and that only happens when the flows are built around when people actually run out. I walk through the flows I build first in Klaviyo retention flows, and our team sets them up as a service through Klaviyo email flows setup.
Raise margin per order
Bundles, a smarter free shipping threshold and fewer blanket discounts all lift margin per order, which lifts CLV for every customer at once. Conversion matters too: a higher conversion rate lowers CAC for the same ad spend. An outdoor camping gear store we work with grew online sales 5.8x and lifted conversion 49 percent, and that kind of change reshapes the whole equation.
Consider subscriptions, carefully
For consumables, subscriptions turn guessed repeat orders into scheduled ones. Track subscriber cohorts separately, include the subscription discount in margin per order, and watch subscriber churn month by month the same way you watch repeat orders.
Common mistakes I see
- Using revenue CLV against CAC. Always compare margin with CAC.
- Blending all time customers. Look at monthly cohorts so you can see whether newer customers are better or worse.
- Ignoring returns. Shopify’s AOV excludes post order adjustments, so add a returns allowance.
- Missing COGS in Shopify. Gross profit reports are wrong until every product has a cost.
- Counting discounted first orders at full price. Welcome offers come off margin on the first order.
- Treating Klaviyo or Shopify predictions as gospel. Shopify itself says projections are not a guarantee of future sales.
- Using blended CAC only. Compare CLV by acquisition channel when you can. Some channels bring buyers who never come back.
Not sure which of these is costing your store the most? Get your free store score or book a free 15 minute audit call.
FAQ
What is a good CLV for Shopify?
There is no universal good number, because CLV depends on your price point, margin and category. The useful test is relative: your 12 month margin CLV should be higher than your CAC, and your cohort should pay back CAC within a window your cash flow can handle. A $40 CLV is great if you acquire customers for $20 and terrible if you pay $60.
How do I find customer lifetime value in Shopify?
Shopify does not show one CLV number. Open Analytics, Reports, Customer cohort analysis and choose amount spent per customer by month to see revenue per customer over time. Multiply by your margin percentage to get margin CLV. For individual customers, the Predicted spend tier report and the customer profile show order count and total spent.
What is a good LTV to CAC ratio?
The 3 to 1 figure is widely repeated, but I have not found an authoritative source behind it, so treat it as a rule of thumb. It also only makes sense with margin based LTV. I care more about payback: if a cohort earns back its CAC in margin within 3 to 6 months, you can usually scale with confidence.
How does Klaviyo calculate predicted CLV?
Klaviyo builds a model from your order data, retrains it at least once a week, and predicts what each customer will spend over the next year by default. It needs at least 500 customers who have placed orders, 180 days of order history, orders in the last 30 days and some customers with 3 or more orders. The output is revenue, so apply your margin before using it for budgets.
Get your CLV math checked
If you want a second pair of eyes on your margin per order, cohorts and CAC ceiling, I run a free 15 minute Shopify store audit. We are a Shopify Partner and Klaviyo Partner, rated 5.0 on Google from 40+ client reviews. Book your free Shopify store audit here, and if conversion is the bottleneck, see our CRO services.
Keep reading:
Want this done on your store?
Book a free audit call
