Back to all articlesHow to run customer segmentation with RFM and track who moves between segments
Noah CookNoah Cook
Marketing

How to run customer segmentation with RFM and track who moves between segments

Customer segmentation divides a customer base into groups that share a trait or a behavior, so a team can treat each group differently and follow it over time. Groups can describe who customers are, through demographic, geographic, or firmographic traits, or what they do, through behavioral and value-based measures. For a business with repeat purchases, the standard behavioral method is RFM: score each customer on recency, frequency, and monetary value, then group customers by their scores.

The steps below follow an online coffee roaster through one quarterly review. Most of its repeat customers reorder every three to six weeks, and its retention lead wants to know which of them are slipping. The roaster and its 12 customers are invented for this post, and none of the figures comes from a customer.

Which ways of grouping customers are there?

Qualtrics describes customer segmentation as the process of dividing customers into groups based on common characteristics, so that marketing and sales teams can reach each group more effectively. Salesforce lists seven common ways to segment customers: demographic, geographic, technographic, needs-based, value-based, psychographic, and behavioral, used alone or together. Qualtrics sorts them into two families, segments based on who customers are and segments based on what they do, and adds firmographics for B2B buyers.

TypeGroups customers byExample questionData it needs
DemographicAge, income, household, life stageWhich age groups buy the premium line?Profile fields, surveys
GeographicCountry, region, climate, urban or ruralWhich regions need a different delivery promise?Shipping or billing address
Firmographic (B2B)Industry, company size, regionWhich company sizes renew at the highest rate?CRM account fields
TechnographicDevices, software, platforms usedDo app users buy more often than web users?Event or device data
PsychographicAttitudes, values, interestsWhich customers buy for sustainability?Surveys, research panels
Needs-basedThe job the customer buys forWho buys for gifts and who buys for themselves?Interviews, surveys, order notes
Value-basedRevenue, margin, lifetime valueWhich customers fund the service budget?Orders, margin, returns
BehavioralPurchases, usage, channel, timingWho used to buy monthly and has stopped?Transactions, product events

A recurring business review works best with the behavioral and value-based rows. Both come from transaction data the team already keeps, and both change between quarters in ways a team can act on. Demographic and psychographic segments help with positioning and creative work, but a customer's age bracket or values seldom change between one review and the next.

Keep a segment only when a written rule puts each customer in exactly one group and the group is large enough to act on and measure. It also needs an owner with a different action for it: a different offer, service level, contact cadence, or budget. If every group gets the same email, the segmentation has changed nothing.

Step 1: Decide who a customer is and which orders count

Settle identity before any scoring. Guest checkouts, duplicate emails, and a second account opened by the same buyer all need a rule that merges them into one customer. Without one, a single person can appear as a lapsed guest and a loyal account holder in the same report.

Then write down which orders count. Refunds, returns, free replacements, and subscription renewals each need a yes or a no, and the answer should stay the same from one quarter to the next. Commerce tools make their own calls here, so check them: Klaviyo's RFM report counts only orders with a positive value.

Step 2: Fix the window and the score thresholds

RFM scores each customer on three measures over a fixed window. Recency is the number of days since the customer's last purchase, and fewer days earn a higher score. Frequency is the number of purchases in the window and monetary value is total spend in the window; for both, more earns a higher score. Each measure becomes a score, often 1 to 3 or 1 to 5, and the three scores form a code such as 332. A named segment is a group of codes.

Thresholds are either fixed values or percentiles of the customer base. Klaviyo's RFM report uses both in one model: recency uses fixed thresholds of 180 and 365 days by default, while frequency and monetary value use the 33rd and 66th percentiles of the account's customers. The same article maps the codes into six named groups, from Champions to Inactive.

For a review that compares quarters, fixed thresholds are safer. Percentile thresholds rescale whenever the customer base changes, so a customer can change segment without changing behavior. Fix the thresholds for the year and revisit them once. Set the recency breaks to the purchase cycle as well: for a brand that sells a monthly consumable, 90 days without an order is a warning, while a furniture brand expects gaps far longer than that.

The roaster takes a snapshot on September 30, 2026, over the 12 months ending that day, with these fixed thresholds:

ScoreRecency: days since last orderFrequency: orders in 12 monthsMonetary value: spend in 12 months
330 or fewer6 or more$600 or more
231 to 903 to 5$250 to $599
1More than 901 or 2Less than $250

Step 3: Score each customer and assign one segment

The roaster's segment rules use recency and frequency only. Monetary value ranks customers inside a segment. The rules run in this order, and a customer who fits two of them takes the first:

  1. Champions: R = 3 and F = 3.
  2. Loyal: R of 2 or more and F of 2 or more.
  3. Recent: R of 2 or more and F = 1.
  4. At risk: R = 1 and F of 2 or more.
  5. Lapsed: R = 1 and F = 1.

Write that order down with the rules. Overlapping rules give different counts depending on which one runs first, and nobody can reproduce a count without knowing the order.

CustomerDays since last orderOrders, 12 monthsSpend, 12 monthsRFMCodeSegment
C01129$1,140333333Champions
C02257$820333333Champions
C03186$480332332Champions
C04454$390222222Loyal
C05705$650223223Loyal
C06283$210321321Loyal
C071206$710133133At risk
C081504$360122122At risk
C0991$95311311Recent
C10602$140211211Recent
C112001$60111111Lapsed
C122602$180111111Lapsed

Step 4: Add up customers and spend by segment

The 12 customers spent $5,235 in the window. By segment:

SegmentCustomersShare of customersSpend, 12 monthsShare of spend
Champions325.0%$2,44046.6%
Loyal325.0%$1,25023.9%
Recent216.7%$2354.5%
At risk216.7%$1,07020.4%
Lapsed216.7%$2404.6%
All customers12100.0%$5,235100.0%

Start with the At risk row. Its two customers hold $1,070, or 20.4% of trailing spend, and placed five orders each on average before they went quiet. Recent and Lapsed together hold four customers and $475, or 9.1% of spend. Spread a retention budget evenly across the six Recent, Lapsed, and At risk customers, and two thirds of the effort goes to the four who hold $475.

Step 5: Compare each customer's label with last quarter's

A count by segment says how many customers sit in each group today. The quarterly review also needs to know who moved. The roaster applied the same rules and thresholds at June 30, 2026, and compared each customer's two labels:

Movement since June 30CustomersDetailSpend, 12 months
Moved up2C02 Loyal to Champions; C06 Recent to Loyal$1,030
Moved down4C05 Champions to Loyal; C07 Champions to At risk; C08 Loyal to At risk; C11 At risk to Lapsed$1,780
Unchanged5C01, C03, C04, C10, C12$2,330
New customer1C09, first order in September$95
All customers12—$5,235

Champions went from four customers to three, and a count-only report would call that a loss of one. The movement table shows two departures, C05 and C07, who hold $1,360, or 26.0% of trailing spend, offset by one arrival. Both At risk customers were Champions or Loyal a quarter earlier. So the At risk group is made of recently strong customers, which argues for a personal win-back contact this month over a broad discount to the whole list.

Step 6: Give each segment an owner, an action, and a test

For the At risk customers, the owner might be the retention lead, the action a personal contact within two weeks, and the measure the share who order again within 60 days. Hold back a random share of the group from the contact and compare the two groups afterward. A before-and-after improvement on its own cannot show that the contact caused it. The churn analysis worked example goes further into retention definitions, cohorts, and mix effects.

Step 7: Repeat the review next quarter with the same rules

One review fits in a spreadsheet. Twelve customers take a single sheet, and a few thousand still work with lookup formulas. The strain comes in later quarters, when someone has to rerun the same thresholds and rule order on the full customer base and line up two labels for every customer. If the segments exist to trigger email or SMS, Klaviyo's RFM report scores customers into groups a marketing team can use in segments and campaigns, and the tool that sends the message is a sensible home for them. An analyst with a Python or SQL notebook gets full control of the method and spends part of every quarter maintaining and rerunning it.

Orion, the analytics platform, suits a business that keeps orders in the warehouse and subscription status in another system, and asks each quarter who moved. It starts from what a retention lead already knows: how guest checkouts merge, that free replacements do not count, why the recency breaks sit where they do, and that a customer who drops out of Champions gets a phone call while one who drops out of Recent gets an email. Orion records those rules in Context pages and applies them each time it scores customers.

Some facts are in no table. Orion can see that a strong customer stopped ordering, but only the support team knows that the customer paused a subscription through a ticket. Orion puts that question to the team in a Questions from Orion card and keeps the answer for later reviews. If the team has only ever looked at counts, the same cards can propose the movement table as a Suggested analysis.

Once a retention lead has checked Orion's movement table against her own and the two agree, she can ask Orion to repeat it each quarter. Orion builds a Workflow from that analysis and dry-runs it, and the Workflow is saved on a custom quarterly schedule only after she approves it. From then on, each quarter, it rescores every customer with the fixed thresholds, lists who left Champions and the spend they hold, and exports the movement table to Google Sheets, where the team assigns the calls.

Where RFM scores mislead

Twelve customers is a teaching size. A segment needs many more customers before its rate holds steady from one quarter to the next, and a group of three should never be read as a rate. RFM also describes only the past: a code of 133 says C07 bought often and spent well over 12 months and then stopped, and it says nothing about why. A paused subscription, a delivery problem, and a switch to a grocery shelf each call for a different response. Test any rule against later outcomes before calling it a churn signal.

Two habits mislead a quarterly review. One is changing thresholds between reviews, which creates movement that no customer caused. The other is reporting segment counts alone, where net figures hide the flows that need action. Drop any segment that no team treats differently.

The roaster's decision

Take the counts and the movement table into the review with the thresholds and the rule order written beside them, and mark which statements are arithmetic and which explanations nobody has tested yet. For the roaster, the decision is to call the two At risk customers this month and to find out why two former Champions slowed down. Champions did shrink by one customer. The more useful fact is that C05 and C07 left, holding $1,360 between them.

Keep reading

View all