

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.
| Type | Groups customers by | Example question | Data it needs |
|---|---|---|---|
| Demographic | Age, income, household, life stage | Which age groups buy the premium line? | Profile fields, surveys |
| Geographic | Country, region, climate, urban or rural | Which regions need a different delivery promise? | Shipping or billing address |
| Firmographic (B2B) | Industry, company size, region | Which company sizes renew at the highest rate? | CRM account fields |
| Technographic | Devices, software, platforms used | Do app users buy more often than web users? | Event or device data |
| Psychographic | Attitudes, values, interests | Which customers buy for sustainability? | Surveys, research panels |
| Needs-based | The job the customer buys for | Who buys for gifts and who buys for themselves? | Interviews, surveys, order notes |
| Value-based | Revenue, margin, lifetime value | Which customers fund the service budget? | Orders, margin, returns |
| Behavioral | Purchases, usage, channel, timing | Who 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:
| Score | Recency: days since last order | Frequency: orders in 12 months | Monetary value: spend in 12 months |
|---|---|---|---|
| 3 | 30 or fewer | 6 or more | $600 or more |
| 2 | 31 to 90 | 3 to 5 | $250 to $599 |
| 1 | More than 90 | 1 or 2 | Less 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:
- Champions: R = 3 and F = 3.
- Loyal: R of 2 or more and F of 2 or more.
- Recent: R of 2 or more and F = 1.
- At risk: R = 1 and F of 2 or more.
- 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.
| Customer | Days since last order | Orders, 12 months | Spend, 12 months | R | F | M | Code | Segment |
|---|---|---|---|---|---|---|---|---|
| C01 | 12 | 9 | $1,140 | 3 | 3 | 3 | 333 | Champions |
| C02 | 25 | 7 | $820 | 3 | 3 | 3 | 333 | Champions |
| C03 | 18 | 6 | $480 | 3 | 3 | 2 | 332 | Champions |
| C04 | 45 | 4 | $390 | 2 | 2 | 2 | 222 | Loyal |
| C05 | 70 | 5 | $650 | 2 | 2 | 3 | 223 | Loyal |
| C06 | 28 | 3 | $210 | 3 | 2 | 1 | 321 | Loyal |
| C07 | 120 | 6 | $710 | 1 | 3 | 3 | 133 | At risk |
| C08 | 150 | 4 | $360 | 1 | 2 | 2 | 122 | At risk |
| C09 | 9 | 1 | $95 | 3 | 1 | 1 | 311 | Recent |
| C10 | 60 | 2 | $140 | 2 | 1 | 1 | 211 | Recent |
| C11 | 200 | 1 | $60 | 1 | 1 | 1 | 111 | Lapsed |
| C12 | 260 | 2 | $180 | 1 | 1 | 1 | 111 | Lapsed |
Step 4: Add up customers and spend by segment
The 12 customers spent $5,235 in the window. By segment:
| Segment | Customers | Share of customers | Spend, 12 months | Share of spend |
|---|---|---|---|---|
| Champions | 3 | 25.0% | $2,440 | 46.6% |
| Loyal | 3 | 25.0% | $1,250 | 23.9% |
| Recent | 2 | 16.7% | $235 | 4.5% |
| At risk | 2 | 16.7% | $1,070 | 20.4% |
| Lapsed | 2 | 16.7% | $240 | 4.6% |
| All customers | 12 | 100.0% | $5,235 | 100.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 30 | Customers | Detail | Spend, 12 months |
|---|---|---|---|
| Moved up | 2 | C02 Loyal to Champions; C06 Recent to Loyal | $1,030 |
| Moved down | 4 | C05 Champions to Loyal; C07 Champions to At risk; C08 Loyal to At risk; C11 At risk to Lapsed | $1,780 |
| Unchanged | 5 | C01, C03, C04, C10, C12 | $2,330 |
| New customer | 1 | C09, first order in September | $95 |
| All customers | 12 | — | $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.