RFM segmentation sorts customers by three facts from their order history: how recently they bought (Recency), how often they bought (Frequency) and how much they spent (Monetary). Doing it well takes a few decisions: which orders to count, which window to use, how to set thresholds and how often to recalculate.
This guide covers those decisions step by step, with a worked example you can repeat on your own data.
Step 1: decide which orders count
RFM is only as good as the orders behind it. Before scoring anyone, agree on the rules:
- Count completed orders. Cancelled and failed orders say nothing about loyalty. Orders that reached the buyer are the cleanest signal.
- Handle returns. If a customer returned most of an order, their spending figure should reflect that. At minimum, do not let large returned orders inflate monetary value.
- Use one currency. If you sell in several currencies, convert monetary values to your default currency, or score each market separately.
- Group by customer, not by order. Repeat orders must land on the same customer. Signed-in buyer accounts make this much more reliable than guest orders matched by name.
Step 2: choose a time window
Frequency and monetary value depend on the period you look at. A window that is too short makes regular customers look occasional. A window that is too long keeps people who left long ago in your "loyal" group.
A good rule: the window should cover several of your typical purchase cycles.
- Products bought often, such as coffee or cosmetics, suit a shorter window.
- Products bought rarely, such as furniture or electronics, need a longer one.
Recency is measured from today, whatever window you use.
Purchase cycle = average number of days between two orders of the same customer
Step 3: score each dimension
The classic scale is 1 to 5, where 5 is best. There are two common ways to set the thresholds.
Quantiles. Sort customers by each value and split them into five equal groups. The top fifth gets 5, the next fifth 4, and so on. This adapts automatically to your data, but scores shift as your customer base changes.
Fixed thresholds. Set business rules, for example "bought in the last 30 days = 5". Thresholds stay stable over time, which makes month-to-month comparison easier, but you need to choose them carefully.
For a small store, fixed thresholds are easier to explain to a team. Frequency especially suits fixed values, because many customers have exactly one order, which makes quantiles uneven.
Example scoring rules with made-up round numbers
These thresholds are an example only. Adjust them to your own purchase cycle.
| Score | Recency (days since last order) | Frequency (orders in window) | Monetary (total spend in window) |
|---|---|---|---|
| 5 | 0 to 30 | 6 or more | 500 or more |
| 4 | 31 to 60 | 4 to 5 | 300 to 499 |
| 3 | 61 to 120 | 3 | 150 to 299 |
| 2 | 121 to 240 | 2 | 50 to 149 |
| 1 | more than 240 | 1 | under 50 |
Worked example
Example customers, scored with the table above:
- Anna: last order 12 days ago, 7 orders, spent 640. Scores R5 F5 M5.
- Ben: last order 150 days ago, 5 orders, spent 410. Scores R2 F4 M4.
- Chris: last order 20 days ago, 1 order, spent 45. Scores R5 F1 M1.
- Dana: last order 300 days ago, 1 order, spent 30. Scores R1 F1 M1.
Anna is a champion. Ben was valuable but has gone quiet: at risk. Chris is new and needs a second order. Dana is hibernating.
Step 4: turn scores into segments
You can combine the three scores into a code such as "545", but a list of codes is hard to act on. Map them into a few named segments with clear rules:
- Champions: R 4 to 5, F 4 to 5.
- Loyal: R 3 to 5, F 3 to 5, not champions.
- New: R 4 to 5, F 1.
- At risk: R 1 to 2, F 3 to 5 or M 4 to 5.
- Hibernating: R 1 to 2, F 1 to 2, M 1 to 2.
- Others: everyone in between, watched but not targeted.
Recency and frequency usually matter most. Monetary value helps break ties and spot high spenders with few orders.
Step 5: give each segment one action
Pick one clear move per segment:
| Segment | Action |
|---|---|
| Champions | recognition, early news, attention to their reviews |
| Loyal | a reward tied to lifetime spend |
| New | a smooth first delivery and a reason to place a second order |
| At risk | a personal win-back offer after a set number of quiet days |
| Hibernating | one low-cost reminder |
Step 6: recalculate on a schedule
Customers move between segments. Recalculate monthly, or more often if you sell fast-moving goods. The most useful thing to watch is movement:
Segment movement = customers who moved from segment A to segment B in a period ÷ customers in segment A at the start of the period
If new customers keep moving into loyal, onboarding works. If loyal customers slide into at risk, check your service, range or prices.
Common mistakes
- Ignoring the purchase cycle. The same thresholds do not fit coffee and sofas.
- Too many segments. If you cannot name an action for a segment, merge it with another.
- Treating RFM as permanent. A score is a snapshot. Recalculate.
RFM segmentation in RedCart
RedCart keeps orders and customers in one shop database, and every order appears on the customer's card with its status history. That makes it straightforward to count only orders that reached the buyer and to tie repeat purchases to the same person through buyer accounts.
The RFM loyalty engine scores customers from that order history and groups them into segments, so you do not have to rebuild the spreadsheet every month. From there you can act:
- Personal discounts for signed-in buyers: a lifetime-spend rule for loyal customers, a "no purchase in N days" rule for customers at risk, plus birthday and idle-cart rules. Rules start switched off and never stack: only the highest-priority match applies.
- Tags and internal notes on customer cards to mark champions or wholesale buyers for your team.
- Promo codes with start and end times for campaigns you send through your own channels.
Because RFM uses purchase history and personal discounts can use birthdays, make sure your privacy page explains this use.
Summary
Good RFM segmentation comes down to a few careful choices: count the right orders, pick a window that fits your purchase cycle, use clear thresholds, keep segments few, and give each one action. Recalculate regularly and watch how customers move between segments.