RFM Analysis and Customer Segmentation
Turn a raw list of orders into customer segments. The tool calculates each customer’s recency, frequency and spend, scores them from 1 to 5, and groups customers into actionable segments with suggested next steps.
Updated · By Bibin XavierData 3775 × 4
| Customer_IDtext · 520 levels | Order_Datetext · 711 levels | Amountnumeric | Channeltext · 3 levels |
|---|---|---|---|
| C0109 | 2023-01-02 | 46.6 | App |
| C0461 | 2023-01-02 | 135.38 | App |
| C0512 | 2023-01-02 | 101.19 | App |
| C0461 | 2023-01-03 | 67.9 | App |
| C0511 | 2023-01-06 | 65.28 | Web |
| C0109 | 2023-01-07 | 59.7 | App |
| C0195 | 2023-01-07 | 73.29 | App |
| C0457 | 2023-01-07 | 19.37 | App |
Variables and options
Results
3775 rows · example dataCustomer segments
| Segment | Customers | % of customers | Mean recency (days) | Mean orders | Mean total spend | % of revenue | Suggested action |
|---|---|---|---|---|---|---|---|
| Champions | 145 | 27.9% | 37 | 14.74 | 1047.06 | 55.8% | Reward them; ask for reviews and referrals; early access to new products. |
| Loyal customers | 93 | 17.9% | 138 | 6.49 | 487.08 | 16.6% | Upsell higher-value products; loyalty programme; personalised offers. |
| New customers | 4 | 0.8% | 93 | 2.00 | 96.04 | 0.1% | Onboarding, welcome series and a reason for a second purchase. |
| Potential loyalists | 69 | 13.3% | 165 | 2.35 | 146.18 | 3.7% | Membership or bundle offers to raise frequency; recommend related products. |
| Can’t lose them | 27 | 5.2% | 512 | 8.48 | 594.37 | 5.9% | Win back with personal outreach and strong offers; find out why they left. |
| At risk | 76 | 14.6% | 406 | 5.54 | 462.49 | 12.9% | Reactivation campaign with personalised reminders and incentives. |
| Hibernating | 53 | 10.2% | 336 | 2.08 | 127.34 | 2.5% | Low-cost reminders of popular products; test a discount. |
| Lost | 53 | 10.2% | 553 | 1.94 | 126.25 | 2.5% | Low-priority; include in broad reactivation only if cheap. |
Note. Recency = days from the last order to 2025-01-01; frequency = number of orders; monetary = total spend. Scores are quintiles of the customer ranks (5 = best; customers with tied values share a score). Segments use the recency score and the average of the frequency and monetary scores.
Customers and revenue by segment
Customers by recency and frequency score
Top 15 customers by spend
| Customer | Recency (days) | Orders | Total spend | Avg order | RFM score | Segment |
|---|---|---|---|---|---|---|
| C0060 | 50 | 34 | 3721.76 | 109.46 | 455 | Champions |
| C0294 | 36 | 29 | 3557.97 | 122.69 | 555 | Champions |
| C0449 | 25 | 30 | 3442.18 | 114.74 | 555 | Champions |
| C0049 | 20 | 40 | 3284.28 | 82.11 | 555 | Champions |
| C0286 | 32 | 25 | 3187.10 | 127.48 | 555 | Champions |
| C0411 | 261 | 17 | 3131.36 | 184.20 | 255 | At risk |
| C0022 | 10 | 70 | 3071.72 | 43.88 | 555 | Champions |
| C0498 | 14 | 68 | 2959.67 | 43.52 | 555 | Champions |
| C0134 | 5 | 36 | 2582.88 | 71.75 | 555 | Champions |
| C0452 | 25 | 16 | 2532.03 | 158.25 | 555 | Champions |
| C0461 | 204 | 30 | 2491.56 | 83.05 | 355 | Loyal customers |
| C0334 | 17 | 26 | 2318.29 | 89.16 | 555 | Champions |
| C0265 | 74 | 24 | 2308.91 | 96.20 | 455 | Champions |
| C0062 | 38 | 30 | 2259.41 | 75.31 | 455 | Champions |
| C0370 | 1 | 20 | 2137.45 | 106.87 | 555 | Champions |
Interpretation
520 customers placed 3,775 orders. Champions generate the largest share of revenue (55.8%) while making up 27.9% of customers. Customers in the “At risk” and “Can’t lose them” segments account for 18.8% of past revenue: they used to buy often or spend a lot but have not ordered recently, so they are the priority for a win-back campaign. Use the downloadable scores to target each segment with its suggested action.
How to cite this tool
Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.
APA 7
Xavier, B. (2026). RFM Analysis and Customer Segmentation [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/rfm-analysis/
BibTeX
@software{xavier_rfmanalysis_2026,
author = {Xavier, Bibin},
title = {RFM Analysis and Customer Segmentation},
publisher = {FreeStatisticalTools.com},
year = {2026},
url = {https://freestatisticaltools.com/rfm-analysis/},
note = {Web application}
}Suggested sentence for your methods section: “The analysis was carried out with the free RFM Analysis and Customer Segmentation tool on FreeStatisticalTools.com (Xavier, 2026).”
What is RFM analysis?
RFM analysis segments customers by recency (days since last order), frequency (number of orders) and monetary value (spend). The tool reads a transaction file, scores each customer from 1 to 5 on each measure, assigns them to eight segments such as Champions, Loyal customers, At risk and Lost, and suggests an action for each.
When to use RFM analysis
Use RFM analysis to segment customers from transaction data for email, CRM and retention campaigns: it needs only three columns, works for any business with repeat purchases, and its segments are easy to act on.
Assumptions
- Each row is one order (or one order line; lines on the same order count as separate orders unless you aggregate them first).
- Recency, frequency and monetary scores are relative to your own customer base, not absolute thresholds.
- RFM describes past behaviour; customer lifetime value models predict future behaviour.
How to set up your data
One row per order with a customer ID, an order date (for example 2025-03-14 or 14/03/2025) and the order amount.
What RFM analysis is
RFM analysis is one of the oldest and most effective ways to segment customers. It describes every customer with three numbers taken from their purchase history:
- Recency (R): how many days ago the customer last bought. Recent buyers are far more likely to respond to the next offer.
- Frequency (F): how many orders the customer has placed. Frequent buyers are more engaged and loyal.
- Monetary value (M): how much the customer has spent in total (or per order). High spenders are worth more.
The method comes from direct-mail marketing, where it was found that these three behaviours predicted response to catalogues better than demographics. It is still used by e-commerce, retail, subscription, hospitality and charity fundraising teams because it needs nothing but a transaction file, it is easy to explain, and its segments map directly onto actions: reward the best, win back those who are slipping away, and stop spending on those who are gone.
How the scores are calculated
- Aggregate orders by customer. For each customer the tool finds the date of the last order, counts the orders and adds up the amounts. Recency is measured in days from the last order to the analysis date, which defaults to the day after the latest order in the data.
- Score each measure from 1 to 5. Customers are ranked on each measure and divided into quintiles (or quartiles if you prefer a 1–4 scale). For recency, the most recent customers get 5; for frequency and monetary value, the highest values get 5. Customers with tied values receive the same score, which matters for frequency, where many customers have bought only once or twice.
- Combine into an RFM code. Each customer gets a three-digit code such as 555 (bought very recently, very often, and spent the most) or 115 (spent a lot but long ago and rarely).
- Assign segments. With 125 possible codes, the tool groups customers into eight segments using the recency score and the average of the frequency and monetary scores, a widely used segment grid.
The eight segments and what to do with them
- Champions (R 4–5, FM 4–5): bought recently, often and spend the most. Reward them, ask for reviews and referrals, give early access to new products. Do not waste discounts on them.
- Loyal customers (R 3–5, FM 3–5): regular, valuable buyers. Upsell, cross-sell and invite them into loyalty programmes.
- New customers (R 4–5, FM 1): first purchase was recent. Onboard them well and give a reason for a second purchase; the second order is the biggest step towards loyalty.
- Potential loyalists (R 3–5, FM 1–2): recent customers with modest frequency or spend. Encourage repeat purchases with bundles, memberships and personalised recommendations.
- Can’t lose them (R 1, FM 4–5): used to be among the best customers but have not bought for a long time. They deserve personal, high-value win-back efforts.
- At risk (R 1–2, FM 3–5): valuable customers who are drifting away. Run reactivation campaigns before they become lost.
- Hibernating (R 2, FM 1–2): low-value customers who have gone quiet. Send low-cost reminders.
- Lost (R 1, FM 1–2): bought once or twice long ago. Include them only in cheap, broad campaigns.
Worked example with the built-in data
The example file contains 3,775 orders from 520 customers over two years. Champions are 28% of customers but generate 56% of revenue, a typical Pareto pattern. Customers in the At risk and Can’t lose them segments together account for 19% of past revenue: they used to buy often or spend a lot but have not ordered for over a year on average, so they are the obvious targets for a win-back campaign. Only 1% are new customers, which tells the business that acquisition has slowed in the last months of the data. The recency × frequency heat map shows the same picture: a bright top-right corner of frequent, recent buyers and a large group of one-time buyers in the bottom-left.
Preparing the transaction file
- One row per order, with a customer ID, the order date and the order amount. If your file has one row per order line, aggregate lines into orders first, or accept that frequency will count lines.
- Dates can be in ISO format (2025-03-14), day-first or month-first formats (14/03/2025, 03/14/2025; the tool detects day-first dates when a day is above 12), or Excel serial numbers.
- Remove cancelled orders and refunds, or net them out, and exclude test accounts and staff purchases.
- Use a long enough window, usually 12 to 24 months, so that frequency means something.
Choosing the options
Analysis date: leave it blank to measure recency from the end of the data, or set it to today’s date if the extract is a few days old. Score groups: quintiles give finer segmentation; quartiles are steadier for small customer bases (a few hundred customers). Monetary value: total spend rewards customers who buy often; average order value separates big-basket shoppers from frequent small buyers, which is useful when frequency is already captured by F.
Using the results
Download the customer scores and import them into your email or CRM platform to target each segment with its suggested action. Track the segment sizes every month: a growing share of champions and loyal customers means retention is working, while a growing at-risk group is an early warning. RFM is also a good starting point for further analysis: use cohort retention analysis to see when customers drop off, and the customer lifetime value tool to predict the future value of each customer rather than describe the past.
Limitations
- RFM is descriptive: it summarises past behaviour and does not predict future purchases. The BG/NBD lifetime value model does that.
- Scores are relative to your own customer base, so a 5 in one business can mean something very different in another, and scores shift as the base changes.
- Equal weighting of R, F and M is a convention. Some businesses weight recency more heavily, since it is usually the strongest predictor of response.
- For businesses with very infrequent purchases (cars, furniture), frequency has little variation; consider recency and monetary value only.
Reporting
Report the period covered, the analysis date, how scores were formed (quintiles of ranks), and for each segment its size, share of revenue and average recency, frequency and spend. Example: “RFM segmentation of 520 customers (3,775 orders, January 2023 to December 2024) identified 145 Champions (27.9% of customers, 55.8% of revenue) and 103 At-risk or Can’t-lose customers accounting for 18.8% of past revenue.”
Key references: Hughes (1994), Strategic Database Marketing; Fader, Hardie and Lee (2005), Journal of Marketing Research, on RFM and customer base analysis; Kumar and Reinartz (2018), Customer Relationship Management.
How to use this tool
- Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
- Choose the variables. Select the customer id, order date and order amount.
- Set the options. Fill in analysis date (optional), score groups and monetary value.
- Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.
How to report RFM analysis in APA style
Report the analysis date, how scores were formed, and the size, revenue share and profile of each segment.
Frequently asked questions
What does RFM stand for?
Recency (how recently a customer bought), frequency (how often) and monetary value (how much they spent).
How are RFM scores calculated?
Customers are ranked on each measure and divided into quintiles (1–5). The most recent, most frequent and highest-spending customers get 5.
What data do I need?
One row per order with a customer ID, an order date and the order amount.
What are the RFM segments?
Champions, Loyal customers, New customers, Potential loyalists, Can’t lose them, At risk, Hibernating and Lost, based on the recency score and the average of the frequency and monetary scores.
Can I export the scores?
Yes. Download a CSV with every customer’s recency, frequency, spend, R, F and M scores and segment for your CRM or email platform.
What is the difference between RFM and CLV?
RFM describes past behaviour; customer lifetime value models such as BG/NBD predict future purchases and value.
Related tools
See also
Learn this method step by step in the free course Customer and Marketing Analytics, with exercises and a certificate.
Browse all categories
Data cleaning and preparation · Describe and explore · Compare means · Nonparametric tests · Correlation and regression · Bayesian statistics · Categorical data · Reliability and agreement · Multivariate analysis · Structural equation modeling · Econometrics and time series · Panel data and causal inference · Marketing research · Marketing analytics · Survival, clinical and meta-analysis · Study planning and calculators · PLS-SEM