---
title: "How to Calculate Customer Lifetime Value (LTV) from Stripe"
description: "Calculate customer lifetime value (LTV) from Stripe subscriptions, invoices, and customers. ARPU over churn, gross margin, cohorts, and LTV:CAC."
canonical: https://datalighthouse.dev/guides/calculate-ltv-from-stripe
last-updated: 2026-11-22
---

# How to Calculate Customer Lifetime Value (LTV) from Stripe
Calculate customer lifetime value (LTV) from Stripe subscriptions, invoices, and customers. ARPU over churn, gross margin, cohorts, and LTV:CAC.
### 1. Write the LTV formulas before you call Stripe

Stripe does not return customer lifetime value, ARPU, or churn. Recurring ARPU is starting MRR divided by starting customers in one currency. Revenue LTV is that ARPU divided by the customer churn fraction for the same period. The result is undefined when churn is zero. Gross-margin LTV multiplies by a margin you supply, from 0 to 1. Cohort LTV sums net paid invoices for customers acquired in one window and divides by that customer count.

### 2. Build ARPU and customer churn from subscriptions

List subscriptions with status active, trialing, past_due, paused, unpaid, and canceled. The default list omits canceled subscriptions. Normalize each item to one month with the same rules as the MRR guide. Customer churn is the starting customers who have no qualifying subscription at period end, divided by the starting count. Keep each currency in its own book. The churn guide owns the status rules. This page uses that starting book as the LTV inputs.

### 3. Stop when churn is zero, and do not mix periods

ARPU divided by a churn fraction has no upper bound as the fraction approaches zero, and the division is undefined at zero. A tiny rate is still the formula, not a promise that the customer pays forever. A monthly ARPU with an annual churn fraction stretches the lifetime by about twelve. A yearly invoice used as monthly ARPU does the same. A discount rate you supply makes the zero-churn case finite. Stripe does not provide that rate.

### 4. Apply gross margin and CAC that you bring yourself

Gross-margin LTV is revenue LTV times a margin from 0 to 1. Passing 80 instead of 0.80 is rejected, because 80 is outside that range. LTV:CAC divides an LTV by acquisition cost. Payback periods divide that cost by ARPU, or by ARPU times the margin. Stripe charges are revenue. They are not ad spend, so this function has no CAC field.

### 5. Sum paid invoices for one acquisition cohort

A cohort member is a customer whose subscription start_date falls in the window. List customers created in that window to see who never subscribed. Those customers stay out of the default denominator. Net cash is amount_paid minus post_payment_credit_notes_amount. Pre-payment credit notes are already out of amount_paid. Status open, draft, void, and uncollectible are skipped. Straight-line recognition spreads a yearly invoice across the line period. Cash mode counts the whole net amount on paid_at.

### 6. Paginate subscriptions, invoices, and customers

Call subscriptions.list once per status with limit 100 and autoPagingToArray. Then events.list for subscription events. The Events API goes back up to 30 days. Call invoices.list with status paid and created[gte] at the cohort start, limit 100, and follow auto-pagination. When lines.has_more is true, call invoices.listLineItems. Call customers.list with created[gte] and created[lt] on the cohort window. Pass STRIPE_SECRET_KEY only on the server.

## FAQ
### How do you calculate customer lifetime value (LTV) from Stripe?

Stripe does not return an LTV field. List subscriptions, including canceled ones, and normalize each qualifying item to one month. Recurring ARPU is starting MRR divided by starting customers in that currency. Revenue LTV is that ARPU divided by the customer churn fraction for the same window. Churn of zero makes the quotient undefined. A second number, cohort LTV, sums amount_paid on paid invoices minus post_payment_credit_notes_amount for customers acquired in one month, then divides by that customer count.

### How do you calculate ARPU from Stripe?

Stripe does not return ARPU. Recurring ARPU on this page is normalized starting MRR divided by the customers who had qualifying MRR at the start of the window, in one currency. Cash ARPU is different: sum amount_paid on paid invoices in the window, subtract post-payment credit notes, and divide by the customer definition you publish. A yearly price is divided by 12 before it enters MRR. The invoice still shows the full prepayment in amount_paid.

### Why does a low churn rate make LTV look infinite?

Revenue LTV divides ARPU by the churn fraction. As that fraction gets smaller, the quotient grows without a cap. At zero the division is undefined. This code returns null in that case. It does not return an infinite number. The model also assumes the same churn rate continues forever. A discount rate you choose, in the same period as the churn rate, keeps a zero-churn book finite: ARPU times (1 + discount rate) divided by the discount rate. Stripe does not supply the discount rate.

### How do annual plans, discounts, refunds, and extra currencies change Stripe LTV?

A $120 yearly price is $10 of MRR, so it enters recurring ARPU as $10. The paid invoice is still $120 on paid_at. Using that $120 as a monthly ARPU inflates LTV. Forever coupons reduce normalized MRR. A coupon with duration once does not. amount_paid is already after discounts, so do not subtract the discount again. Subtract post_payment_credit_notes_amount for a credit-note refund. A refund with no credit note is not on that field. USD and JPY stay in separate books. A zero-decimal currency is not divided by 100.

### What is LTV:CAC, and how do you get the payback period?

LTV:CAC divides a lifetime-value figure by acquisition cost. Payback is that cost divided by contribution per period. Contribution can be ARPU, or ARPU times a gross margin you supply. Stripe does not store ad spend or sales cost, so the ratio needs a number from outside Stripe. A worked example on this page uses a hypothetical CAC and labels it as an example. The page does not publish a target ratio.

### How is cohort LTV different from ARPU divided by churn?

ARPU divided by churn is a forecast from one period's logo churn. It assumes that rate continues. Cohort LTV is cash already collected from customers acquired in one window, divided by how many of them you count, measured up to an as-of date. Early months are censored: later invoices have not been paid yet. A 30-day cohort will not match the forecast. Dropping customers who paid nothing raises the average. Say which denominator you used.

### Does the Data Lighthouse template calculate LTV?

No. The overview does not compute LTV, ARPU, or churn. It shows revenue for 7, 14, or 30 days from succeeded charges, without subtracting refunds, plus MRR from active subscriptions and ARR as that MRR times 12. The SaaS metrics calculator at https://datalighthouse.dev/tools/saas-metrics-calculator can divide an ARPU you type by a logo churn you type. The Stripe MRR CSV calculator at https://datalighthouse.dev/tools/stripe-mrr-csv-calculator normalizes one subscriptions export in the browser and does not upload it. Neither one lists invoices. The template is $59 once. The buyer page is https://datalighthouse.dev/saas-metrics-dashboard-template. Pricing is https://datalighthouse.dev/pricing. The live demo at https://datalighthouse.dev/demo uses sample data and does not call Stripe.


## Sources
- [Stripe API: list subscriptions](https://docs.stripe.com/api/subscriptions/list)
- [Stripe API: Subscription object](https://docs.stripe.com/api/subscriptions/object)
- [Stripe API: list invoices](https://docs.stripe.com/api/invoices/list)
- [Stripe API: Invoice object](https://docs.stripe.com/api/invoices/object)
- [Stripe API: invoice line items](https://docs.stripe.com/api/invoice-line-item)
- [Stripe API: list customers](https://docs.stripe.com/api/customers/list)
- [Stripe API: Customer object](https://docs.stripe.com/api/customers/object)
- [Stripe API: list events](https://docs.stripe.com/api/events/list)
- [Stripe API: pagination](https://docs.stripe.com/api/pagination)
- [Stripe API: Credit Note object](https://docs.stripe.com/api/credit_notes/object)
- [Stripe: zero-decimal currencies](https://docs.stripe.com/currencies#zero-decimal)
- [Wikipedia: customer lifetime value](https://en.wikipedia.org/wiki/Customer_lifetime_value)
