The RFM segmentation is a customer analysis technique that groups people according to three purchase behaviour variables: recency (how much time has passed since their last purchase), frequency (how many purchases they have made in a given period) and monetary value (how much they have spent). Its goal is to identify which types of customers deserve different messages, offers or attention, using data that almost any business with a transaction history already has.

How it works

The method starts from a table with one row per customer and three columns calculated from their orders. Recency is measured in days since the last purchase; frequency, as the number of orders within a fixed time window; and monetary value, as the total amount spent in that same window. Each variable is then converted into a score, usually from 1 to 5, by splitting customers into quintiles. For recency, the more recent the purchase, the higher the score; for frequency and monetary value, the more a customer buys and spends, the higher the score. Combining the three figures produces a code, such as 555 or 215, which can be grouped into segments with understandable names, for example « loyal customers » or « at-risk customers ». The logic is transparent: anyone on the team can understand why a person falls into one group or another.

Practical example

Imagine that an online store has 10,000 customers with purchases in the last twelve months. Customer A made her last purchase 12 days ago, has placed 6 orders and has spent 540 euros: she scores 5 in recency, 5 in frequency and 5 in monetary value, so she belongs to the highest-priority segment. Customer B last bought 210 days ago, with a single order of 45 euros; his scores are low in all three dimensions, so his message should be a moderate reactivation, without aggressive discounts. Customer C bought 95 days ago, has placed 4 orders and has spent 320 euros: he scores 2 in recency but 4 in frequency and monetary value. This profile is usually treated as a valuable customer at risk of leaving, and deserves personalised communication, for example with news about the categories he buys most, instead of a generic campaign. These examples are hypothetical; the real thresholds depend on each catalogue and on the purchase cycle.

How to apply it step by step

  1. Define the analysis window, for example the last 12 or 24 months, according to the typical purchase frequency of the business.
  2. Extract from your transaction base, for each customer, the date of the last purchase, the number of orders and the total amount within that window.
  3. Calculate the three metrics and review outliers, such as test orders, returns or company purchases, that could distort the results.
  4. Assign scores from 1 to 5 to each dimension using quintiles, reversing the logic for recency so that the most recent purchases score higher.
  5. Group the combinations into a small number of named segments with explicit rules, avoiding dozens of groups that nobody will know how to manage.
  6. Quantify each segment: how many customers it contains, what share of revenue it generates and how it evolves month by month.
  7. Associate each segment with a concrete action, whether a message, an offer or a web experience, and define an indicator to check whether it works.
  8. Repeat the calculation regularly, because customers change segments and an outdated segmentation loses value.

Common mistakes

  • Using time windows that are too long or too short, which mixes customers with very different behaviour or hides relevant signals.
  • Giving the same weight to the three variables without checking whether, in that specific business, monetary value overwhelms frequency.
  • Treating the segmentation as a fixed snapshot and never updating it, so campaigns target customers who no longer fit their group.
  • Creating too many segments, so each one has very few customers and designing specific actions is not viable.
  • Confusing correlation with causation: a segment buying more does not mean that a particular action caused it.

Best practices

  • Document the rules of each segment so that marketing, product and customer service speak the same language.
  • Combine RFM analysis with other signals, such as browsing behaviour, preferred categories or subscription status, always respecting user consent.
  • Design control groups when launching new actions, so you can compare with customers from the same segment who do not receive them.
  • Adjust the tone and type of message to the customer status: thanking a loyal customer is not the same as winning back an inactive one.
  • Review periodically whether the thresholds still make sense after changes in prices, catalogue or seasonality.

Frequently asked questions

Do I need a specialised tool to do RFM segmentation?

Not necessarily. With a spreadsheet or a query on the order database you can calculate the three metrics and assign quintiles. Analytics and marketing automation platforms make automatic updates easier, but the logic of the method is simple and can be applied with basic tools.

Is RFM segmentation useful for subscription or SaaS businesses?

Yes, although it is worth adapting it. Instead of purchases, you can use usage events, renewals or payments. Recency can be measured as time since the last relevant session, frequency as the number of key actions and monetary value as recurring revenue generated. What matters is that the definition of each variable reflects the behaviour that really indicates value.

How do I know whether the segmentation is working?

You need to compare how each segment evolves after applying specific actions against a control group that does not receive them. Indicators such as repurchase rate, orders per customer, revenue per segment or churn rate help assess the impact. If segments do not change their behaviour after the actions, review both the rules and the value propositions associated with them.