Toki
How to calculate customer churn rate

How to Calculate Customer Churn Rate & Reduce Attrition

Learn how to calculate customer churn rate with step-by-step examples. Master customer, revenue, & cohort churn to reduce attrition, boost loyalty on Shopify.

You’re probably seeing this already in Shopify. Orders still come in. New customers arrive from paid social, search, or influencer campaigns. But when you look at the customer list over time, it doesn’t feel like the business is building momentum at the rate it should.

That usually means one thing. Customers are leaving faster than the topline view suggests.

Most store owners don't have a customer acquisition problem alone. They have a retention visibility problem. They know how many orders they got this month. They don't know how many customers stopped buying, stopped engaging, or stopped caring about the brand. That’s where churn becomes useful. Not as a boardroom metric, but as a practical operating number you can use to spot leaks before they turn into a pattern.

Why Customer Churn Is Silently Sinking Your Profits

A common Shopify scenario looks healthy from the outside. You launch a campaign, revenue bumps up, first-time orders increase, and the dashboard gives you enough good news to keep moving. Then the next month starts from a weaker base than expected, and you have to buy your way back into growth again.

That’s churn.

Customer churn is the rate at which existing customers stop buying from you over a defined period. For subscription brands, that often means cancellation or non-renewal. For e-commerce brands, it usually means customers who were active and then dropped out of the buying cycle you’d reasonably expect.

The danger is that churn rarely announces itself. Customers don’t send a formal resignation letter. They just stop opening emails, stop redeeming rewards, stop revisiting the site, and eventually disappear from the active customer base.

What churn tells you that sales reports don't

Sales reports tell you what happened. Churn tells you what’s eroding.

A store can post decent monthly revenue while still losing customer quality underneath the surface. That happens when paid acquisition replaces customers who left, instead of compounding on top of a retained base. In practice, that creates a treadmill. Spend rises. Efficiency gets worse. Forecasting gets harder.

Three lenses matter:

  • Customer churn tracks how many customers left.
  • Revenue churn tracks how much revenue left with them.
  • Cohort churn shows whether certain groups churn faster than others.

Those are different stories, and smart operators look at all three.

The earlier signal usually appears before the loss

For most merchants, the biggest mistake is waiting until churn becomes obvious in sales. By then, the customer has already disengaged for weeks or months.

That’s why more retention-focused teams pair historical churn tracking with leading indicators such as drop in purchase frequency, reduced reward activity, or lower engagement from past buyers. If you want a useful framework for that, predictive churn modelling is worth understanding because it shifts your thinking from counting who left to identifying who’s about to leave.

Churn is rarely one event. It’s usually a sequence of smaller disengagement signals that most brands ignore until revenue confirms the problem.

Once you start looking at churn that way, retention work gets sharper. You stop asking, “How do we get more customers?” and start asking, “Which customers are slipping, why are they slipping, and what signal did we miss?”

The Core Customer Churn Rate Formula Explained

A churn formula only works if the definition behind it matches how your store sells.

For a subscription brand, a churn event can be a cancellation. For a Shopify store selling one-time purchases, it is usually a lapse in buying behavior. For a loyalty program, there is a second layer. A customer may still buy occasionally while effectively churning from your rewards program because they stopped earning, redeeming, or engaging with membership benefits. That distinction matters if loyalty is supposed to increase repeat purchase rate.

The base formula stays simple:

Customer Churn Rate = (Number of Customers Lost During the Period ÷ Number of Customers at the Start of the Period) × 100

That’s the standard approach described in Recurly’s churn rate guide. Use customers from the opening balance only. Do not include customers acquired during the period in the denominator, or the result will look better than reality.

A five-step infographic showing how to calculate customer churn rate using a simple mathematical formula.

Start with a period that fits your buying cycle

Monthly is usually the best starting point for Shopify brands. It gives you enough data to spot movement without waiting too long to react.

But monthly is not always right. If you sell coffee, supplements, or pet consumables, a shorter inactivity window may be reasonable. If you sell furniture or higher-ticket apparel, a monthly churn view can misclassify healthy customers as lost. The reporting period should reflect normal repurchase timing, not finance calendar convenience.

Consistency is what makes the metric useful. If you change the period or definition every time results get messy, you lose the ability to compare trend lines.

Define your inputs before you calculate anything

The formula looks easy because the math is easy. The hard part is deciding who counts.

You need three clear inputs:

  1. Customers at the start of the period
    The active customer base on day one of the timeframe.

  2. Customers lost during the period
    Customers from that opening group who crossed your inactivity threshold before the period ended.

  3. The period itself
    Monthly, quarterly, or annual. Use one method consistently.

For e-commerce teams, the core work sits inside “customers lost.” If you do not have a written inactivity rule, two people on your team can calculate churn differently from the same dataset.

What counts as a lost customer

Churn reporting often struggles at this stage.

In practice, a lost customer is someone who has gone past the expected repurchase window for your category and no longer meets your definition of active. That definition should come from purchase cadence, not guesswork.

A few practical examples:

  • Consumables: Use a tighter inactivity window because reorder behavior is more frequent.
  • Apparel: Use a broader window because purchase timing is less predictable.
  • Subscription or replenishment programs: Use cancellation, failed renewal, or lapse in billing status.
  • Loyalty programs: Track customer churn and program churn separately. A member who stops redeeming points, ignores reward emails, or lets benefits sit unused may still appear “retained” in store revenue while already disengaging from loyalty.

That last group is the blind spot for a lot of merchants. If you run a rewards program through Shopify and Toki, it is worth measuring when a customer becomes inactive in the loyalty layer, not just when they stop ordering. Loyalty churn often shows up earlier than full customer churn, which gives retention teams more time to intervene.

If you want a stronger segmentation framework for that analysis, cohort analysis for retention and loyalty behavior helps you separate normal buying gaps from actual churn risk.

Practical rule: If your team cannot explain exactly when a customer becomes churned, the metric is not reliable enough to guide budget, lifecycle flows, or retention offers.

A worked example

Say a Shopify store starts January with 100 active customers. By the end of the month, 10 of those same customers meet the store’s churn definition.

The calculation is:

  • Starting customers: 100
  • Lost customers: 10
  • Formula: (10 ÷ 100) × 100
  • Result: 10%

That gives you a 10% monthly churn rate.

Simple math. The trade-off is in the setup. If those 10 customers bought products with a 90-day purchase cycle, the store may be overstating churn. If those 10 were loyalty members who stopped engaging with rewards before they stopped buying, the store may be catching the problem too late.

How to calculate customer churn rate step by step

Use a process your team can repeat without reinterpretation:

  • Pick one reporting period: Monthly is the cleanest first version for many stores.
  • Pull the starting customer list: Use the customer file as it existed on day one.
  • Apply your active vs. churned definition: Base it on repurchase timing, subscription status, or loyalty activity.
  • Identify which starting customers became churned: Keep the analysis limited to that original group.
  • Run the formula: Lost customers divided by starting customers, multiplied by 100.
  • Document the method: Save the exact rules so next month’s number is comparable.

I usually recommend documenting this in plain English first, then translating it into a report or dashboard logic. That reduces the usual argument later about why this month’s churn suddenly changed.

A quick reference table

InputWhat to useWhat to avoid
Starting customersActive customers at the beginning of the periodA rolling total that includes later acquisitions
Lost customersCustomers from the starting base who crossed your inactivity thresholdNet customer change
Time periodOne consistent interval tied to buying behaviorSwitching between month, quarter, and year without a clear reason
Loyalty churn statusMembers who stopped earning, redeeming, or engaging with rewardsAssuming every recent buyer is still an engaged loyalty customer

What this formula does well

The standard customer churn formula answers a narrow but useful question: What share of the customer base we started with did we lose?

That gives you a clean retention baseline. You can compare acquisition channels, lifecycle campaigns, discount-driven buyers, loyalty members, and other segments against the same definition.

It does not explain why those customers left. It also does not tell you whether your problem sits in product retention, subscription retention, or loyalty program engagement. For many Shopify brands, that last distinction is the one that changes what you do next.

Beyond the Basics Calculating Revenue and Cohort Churn

Basic customer churn tells you how many customers left. That’s useful, but it can hide the more painful version of the story. Not every customer is worth the same amount, and not every customer group behaves the same way over time.

That’s why serious retention work goes beyond one sitewide percentage.

A diagram with three interlocking gears labeled Customer Churn, Revenue Churn, and Advanced Churn Metrics.

Customer churn and revenue churn tell different stories

A store can lose a small number of customers and still take a meaningful financial hit. That happens when the customers leaving are the highest spenders, the longest subscribers, or the members on premium plans.

Customer churn is about headcount. Revenue churn is about economic impact.

For a subscription box brand, that distinction matters immediately. If several lower-value subscribers leave, customer churn may look worse than the actual revenue loss. If one premium subscriber segment leaves, customer churn may look modest while revenue churn reveals the true damage.

A growth team that only tracks customer churn can miss that.

Use revenue churn when customer value varies

Revenue churn is the better lens when average order value, subscription tier, or membership plan differs materially across the base.

It helps answer questions like:

  • Are premium members leaving faster than standard customers?
  • Did that pricing change push out higher-value subscribers?
  • Did churn concentrate in the customer segment that contributes the most recurring revenue?

Those are strategic questions. Customer count alone can't answer them.

Cohort churn shows when the problem starts

Cohort analysis is one of the fastest ways to make churn actionable because it groups customers by a shared starting point, such as month of first purchase, campaign source, or first product purchased.

That matters in e-commerce because not all customers are acquired under the same conditions. Customers acquired during a discount-heavy period often behave differently from customers acquired through referral, organic search, or a paid membership offer.

If you haven’t built this muscle yet, this primer on what cohort analysis is gives a practical foundation for turning churn into something you can diagnose, not just report.

A sitewide churn number tells you there is a problem. Cohort churn tells you where it began.

A simple comparison view

Churn lensBest useWhat it reveals
Customer churnTracking lost customers from a starting baseRetention trend at the customer-count level
Revenue churnTracking lost recurring or repeat-purchase valueFinancial impact of attrition
Cohort churnComparing groups over timeWhich acquisition sources or periods produce weaker retention

What works and what doesn't

Some merchants overcomplicate advanced churn metrics before they’ve cleaned up basic customer definitions. That usually creates noise.

What works better:

  • Use customer churn as the base layer: It keeps the team grounded.
  • Add revenue churn when customer value differs: Especially useful for subscriptions, memberships, and high-LTV segments.
  • Use cohorts to isolate patterns: Acquisition month, channel, first product, and promotional period are often the first useful cuts.

What tends not to work:

  • One blended retention dashboard: It becomes hard to tell whether a problem is count, value, or segment quality.
  • Averages without segmentation: They smooth over the very groups you need to investigate.
  • Reactive analysis only after a bad month: By then, the pattern has often been forming for a while.

A practical way to read the three together

When I audit retention reporting for e-commerce brands, I want to know three things fast:

  • Did we lose customers?
  • Did we lose meaningful revenue?
  • Did the losses cluster in a specific cohort?

That combination usually gets you close to root cause. If customer churn is rising but revenue churn is stable, you may be losing lower-value customers. If revenue churn is rising faster than customer churn, you may have a premium retention issue. If churn is concentrated in one cohort, acquisition quality or onboarding may be the problem.

Each metric is partial on its own. Together, they’re operational.

Tracking Churn with Your Shopify and Toki Data

Most merchants don’t struggle with the formula. They struggle with the data assembly.

You already have most of what you need inside Shopify. The challenge is deciding which records count, how you classify inactivity, and how to separate core customer churn from loyalty disengagement. That last part matters more than most brands realize.

A person using a computer to analyze churn data between Shopify and Toki software applications.

What to pull from Shopify

At minimum, churn tracking in Shopify needs a clean view of:

  • Customer records: So you know who was active at the start of the period.
  • Order history: To determine who repurchased and who fell outside the expected window.
  • Tags or segment labels: Useful for distinguishing subscribers, VIPs, wholesale buyers, or campaign-acquired groups.
  • First and last order dates: Essential for inactivity logic and lifecycle timing.

Discipline matters. If your team changes the active-customer definition every quarter, the output won’t be trustworthy.

For brands trying to bring together Shopify behavior, loyalty activity, and customer attributes in one reporting framework, these customer data integration best practices are useful because they force consistency before analysis.

The blind spot in standard churn tracking

Traditional churn formulas treat every lost customer the same. That’s fine for high-level reporting, but it leaves a major gap for loyalty-driven e-commerce brands.

A customer can still buy occasionally while abandoning the loyalty layer completely. They stop redeeming points. They don’t progress through tiers. They ignore rewards. They don’t engage with referrals, badges, or membership benefits. In a standard churn report, that customer may still look retained. In reality, the relationship is weakening.

That’s the blind spot called loyalty program churn.

How to measure loyalty program churn

The specific framework is:

Loyalty Program Churn Rate = (Members Lost from Active Tier ÷ Active Members at Period Start) × 100

That framework is grounded in the gap identified in Zendesk’s churn discussion, where standard formulas don’t distinguish core business loss from loyalty-layer disengagement.

For a Shopify merchant, this is useful because loyalty churn often appears before full customer churn. Someone who stops interacting with the reward system is telling you something. They may not see enough value in the perks, the earning path may be unclear, or the program may not feel relevant to how they shop.

What to watch beyond purchase activity

If you want churn analysis that helps retention, track both purchase behavior and loyalty behavior. The most practical signs include:

  • Point inactivity: The customer earns nothing and redeems nothing across the period.
  • Tier drop-off: They stop qualifying, stop engaging, or disappear from active membership participation.
  • Referral silence: Previously engaged advocates stop referring.
  • Reward friction: Customers accumulate value but never use it, which often signals weak offer design.

A platform like Toki can help here because it combines loyalty mechanics such as memberships, rewards, referrals, and segmentation with analytics that make it easier to isolate disengagement inside the loyalty layer, not just at the order level.

A simple split that helps decision-making

SignalWhat it may meanLikely action
Customer stopped buying and stopped engaging with loyaltyBroader retention or product issueWin-back, survey, service review
Customer still buys but stopped using loyalty benefitsLoyalty value proposition issueImprove rewards, clarify benefits, simplify redemption
Customer engages with loyalty but buys less oftenPurchase timing or merchandising issueReplenishment reminders, personalized offers

If you only track order-level churn, you’ll miss customers who are detaching from the brand before they fully leave.

That’s why loyalty program churn is worth measuring separately. It gives you a leading indicator and a cleaner diagnosis. Without it, every retention problem looks like a product problem, when in some cases the issue is the loyalty design itself.

Common Pitfalls and Edge Cases in Churn Calculation

A Shopify store can look healthy on the surface while churn is being measured badly underneath. Orders are coming in, new customers are replacing lost ones, and the retention report still gives the wrong signal. I see this most often when merchants use one definition for product churn, another for loyalty engagement, and then compare both as if they mean the same thing.

Bad churn math creates expensive decisions. It pushes teams toward the wrong win-back campaigns, hides loyalty program weakness, and makes retention look better or worse than it really is.

Trap one using the wrong time window

Your churn window has to match how customers buy.

A 30-day window may make sense for consumables, but it can be misleading for seasonal apparel, higher-ticket products, or stores with long reorder cycles. The same issue applies to loyalty churn. If members usually redeem points every few months, a short window can label healthy customers as disengaged when they are following a normal pattern.

Set the window around expected behavior, then keep it stable. If your team changes the period every time the number looks uncomfortable, the metric stops being useful.

Trap two mixing acquisition into churn

This is a classic reporting error. Teams look at net customer change instead of isolating how many customers from the opening base left.

That hides attrition fast. Paid acquisition can keep total customer counts flat while your existing base is slipping. The same distortion shows up in loyalty programs. A rush of new sign-ups can make membership participation look fine even while older members stop earning, redeeming, or renewing.

Keep these lines separate:

  • customers lost from the starting base
  • new customers acquired during the period
  • loyalty members added during the period
  • loyalty members who became inactive during the period

If you want a practical framework for acting on those numbers, this guide on reducing churn rate in e-commerce is a useful next read.

Trap three changing the definition of active customer

This one causes quiet reporting drift.

In one meeting, an active customer means someone who placed an order in the last 90 days. In another, it means anyone who opened an email, logged into their account, or still has loyalty membership status. Finance, lifecycle, and CRM teams often use different rules without realizing how much that breaks the trend line.

Write the definition down. Use the same definition in Shopify exports, dashboard views, and loyalty reporting from tools like Toki. Do the same for loyalty engagement. Decide whether an active loyalty customer means earned points, redeemed rewards, referred a friend, renewed a membership, or some combination. Then stick with it.

Trap four ignoring growth distortion

The standard formula works well in stable periods. It gets less reliable when your customer count swings sharply because of seasonality, heavy acquisition, or a major promotion.

In those cases, the average-customer method can give a fairer read. As noted earlier from Wall Street Prep’s churn explanation, the formula is:

Average-customer churn = Lost Customers ÷ [(Initial Customers + Final Customers) ÷ 2] × 100

Use that method when the base changed enough that a beginning-of-period denominator makes the result look artificially low or high.

SituationBetter methodWhy
Stable customer baseBeginning-of-period formulaKeeps reporting simple and comparable
Rapid customer acquisitionAverage-customer methodAdjusts for a base that changed materially during the period
Strong seasonalityAverage-customer methodHandles large swings in active customers more fairly

Trap five comparing product churn and loyalty churn as if they are interchangeable

This is the blind spot many e-commerce teams miss.

A customer can still be buying while gradually disengaging from your rewards program. They stop redeeming, stop using benefits, ignore referral prompts, or let a membership lapse. If you roll all of that into one headline churn number, you lose the diagnosis.

Track both layers separately. Product churn answers whether the customer is still purchasing. Loyalty churn answers whether the retention system around that customer is still working.

That distinction matters in execution. If product churn is flat but loyalty churn rises, the fix is usually not a blanket discount. It is often better reward design, clearer benefit communication, or better follow-up. An email automation guide can help if part of the problem is weak post-purchase or loyalty lifecycle messaging.

Trap six changing methodology midstream

This happens more than teams like to admit. A new analyst changes the denominator. A dashboard gets rebuilt. A loyalty platform starts classifying inactive members differently. Suddenly the quarter-over-quarter comparison looks dramatic, but the movement came from the method, not customer behavior.

When the formula or definition changes, mark the date, document the reason, and reset your comparison baseline. Otherwise, your team ends up debating arithmetic instead of fixing retention.

Next Steps Using Churn Data to Boost Retention

Calculating churn is useful. Acting on it is what pays you back.

A churn dashboard by itself doesn’t save a single customer. What reduces attrition is turning churn signals into targeted interventions. The strongest retention teams do that fast. They don’t admire the number. They route it into campaigns, offers, and experience changes.

A hand placing a puzzle piece labeled Churn Insights into a rising green business growth arrow chart.

Segment first then intervene

The first mistake after calculating churn is treating all churned or at-risk customers as one audience. That usually produces generic win-back messages and weak results.

Segment the response based on what the churn data says:

  • Recent disengagers: Customers whose buying behavior softened but hasn’t fully dropped off.
  • Loyalty drop-offs: Customers who still purchase occasionally but stopped engaging with rewards or membership benefits.
  • High-value defectors: Customers whose loss hurts disproportionately because of order value, subscription tier, or repeat behavior.
  • Promo-dependent buyers: Customers acquired under heavy discounts who may need a different retention path.

Each group needs different treatment. A member who ignored tier benefits shouldn't get the same message as a former repeat purchaser who stopped buying after a support issue.

Build retention around behavior, not guesses

Good retention work is behavior-led.

If someone stopped redeeming rewards, simplify redemption and put value in front of them. If someone used to buy on a clear cadence and now slipped, trigger a replenishment or reminder flow. If a premium member disengaged, lead with exclusive benefits or service touchpoints rather than a broad discount.

Lifecycle automation becomes useful. A solid email automation guide can help you structure re-engagement flows around actual customer signals instead of batch-and-blast timing.

The best win-back campaigns don't ask every customer to come back for the same reason. They match the message to the pattern that caused the drop-off.

Test loyalty mechanics like a retention operator

Many loyalty programs underperform because brands launch them once and stop iterating.

Use churn data to test the mechanics:

  1. Reward design
    If customers earn but rarely redeem, the reward may not feel reachable or relevant.

  2. Tier structure
    If customers stall before advancing, the progression path may be too vague or too demanding.

  3. Membership benefits
    If paid or premium members disengage, the ongoing value may not be visible enough between purchases.

  4. Referral triggers
    If advocates go quiet, the request timing or incentive framing may be off.

Retention and merchandising should work together. A loyalty program isn't just a marketing feature. It’s part of the purchase experience.

Create a closed-loop retention workflow

A practical operating model looks like this:

StepActionOutput
DetectReview churn by customer, revenue, cohort, and loyalty behaviorClear risk segments
DiagnoseIdentify where disengagement startedLikely cause by segment
RespondLaunch targeted lifecycle, offer, or loyalty changesMeasurable intervention
ReviewCompare post-campaign behavior using the same methodBetter retention decisions

Random retention tactics create random results. A closed loop forces discipline.

If you want a practical playbook for the response side, this guide on reducing churn rate is a useful follow-on because it focuses on actions after the metric is calculated.

What usually moves the needle

For Shopify brands, the retention levers that tend to matter most are straightforward:

  • Better post-purchase follow-up: Customers need a reason to return before they drift.
  • Clearer reward value: If benefits feel abstract, engagement falls off.
  • Smarter segmentation: Not every at-risk customer should get a discount.
  • Membership and referral design: These create stronger ties when the value is obvious and easy to use.
  • Operational consistency: Fast support, reliable shipping, and fewer friction points still matter. Loyalty can’t paper over a broken experience.

The key is to stop treating churn as a finance metric only. It’s a growth operating metric. It should inform campaign planning, loyalty design, customer experience, and retention forecasting.


If you want to track not just who left, but who’s disengaging from rewards, referrals, and memberships before they leave, Toki gives Shopify brands a way to measure loyalty behavior alongside retention so churn analysis turns into action.