Free tool · no sign-up
RFM analysis calculator: who your regulars are, and who is slipping away
Enter each customer’s last visit, how many times they came and what they spent. RFM analysis, as Arthur Hughes set it out in 1994, scores every customer 1 to 5 on each of the three. This page scores each one against your whole list, so you can see your regulars, the ones slipping away and the ones just starting.
- No email
- Paste straight from a spreadsheet
- Nothing leaves your browser
Your customers
Or paste from a spreadsheet
Results: all customers
| R \ F | F 1 | F 2 | F 3 | F 4 | F 5 |
|---|---|---|---|---|---|
| R 5 | 0 | 1 | 0 | 1 | 2 |
| R 4 | 2 | 0 | 1 | 1 | 0 |
| R 3 | 0 | 1 | 1 | 1 | 1 |
| R 2 | 2 | 0 | 1 | 1 | 0 |
| R 1 | 1 | 1 | 1 | 0 | 1 |
In WalnutPOS
Customer Analytics in WalnutPOS has the columns to paste inIts Excel export lists every customer with their total orders, lifetime value and last order date: copy those columns here and the headings are read for you. WalnutPOS itself lists your top customers by lifetime value and bands them VIP, Regular and Low Value by spend; it doesn’t score RFM. The £0 plan holds 50 customers.£0 plan: 1 location · holds 10 recipes · reports show the last 24 hours · other limits apply. This calculator has no limits and needs no sign-up. See pricing
Method
How each customer is scored
Method: Hughes, A. M. (1994), Strategic Database Marketing, Probus: each customer is scored 1 to 5 on recency, frequency and monetary value by fifths (quintiles), giving codes from 555 down to 111. Why such scores are worth having: Bult, J. R. and Wansbeek, T. (1995), “Optimal selection for direct mail”, Marketing Science 14(4), 378–394, doi:10.1287/mksc.14.4.378, on choosing who to contact from measures like these by expected profit rather than by an arbitrary cut-off.
Hughes ranked visits within each recency group, and spend within each of those smaller groups. This calculator ranks each of the three against your whole list instead, because ranking inside groups needs a list of a few hundred customers or more: on the 20-customer example, each of those smaller groups would hold just one person, so everyone would score 1 for spend. M is the total spent, not the average order. Customers who tie are never split, so a fifth can hold more or fewer than a fifth of the list. Recency counts whole days. At least 5 customers are needed for a score. The four groups use R and F only and are this calculator’s, not Hughes’s.
By Tahseen Dar, founder · Last updated
What to do
What to do about each group
- RegularsKeep them close without paying them to come: remember their usual, tell them first about a new dish, ask them for a review. A discount here mostly gives money away.
- Slipping awayGet in touch while they still know you: a message from you, a reason to come back such as a new menu or an evening to book. If several used to come often, ask what changed.
- New or occasionalWin the second visit: give them a reason to come again soon, while the first is still fresh. M says which of them spent the most the first time.
- LapsedSpend little here: one cheap reminder, then leave them be. If most of your list came once and never again, look at the first visit before the marketing.
About the method
What this method is
RFM grew up in mail-order catalogues, where it was cheaper to mail the customers most likely to buy. Arthur Hughes’s Strategic Database Marketing (1994) set out the version most people use: rank your customers on each of three measures and give each a score from 1 to 5 by fifths.
Recency is how long since they last came, frequency how many times they have come, monetary how much they have spent. A customer scored 555 is in your best fifth on all three; 111 is in your lowest fifth on all three.
The scores are relative: a 5 means better than most of your own customers, not a fixed number of visits. The same customer can score differently in a busier month or a longer list.
There is more than one way to rank. Hughes ranked visits only against the customers who came as recently, and spend only against those who also came as often. That needs a few hundred customers or more, so this calculator ranks each of the three against your whole list, and you can check any score by counting down your own list.
Reading the results
How to read it
Read R and F first. High on both are your regulars; high F but low R are customers who used to come often and have stopped; high R but low F are recent and new, or occasional.
M tells you what each group is worth. In the worked example, the two customers scored M = 5 brought in 46.3% of all the spending.
Ties share a score. If many customers came once, they all score F = 1, and the next score up may be 3 or 4: that is the method being honest about a list where most people came once.
Count to a date that suits the list: the end of the month you exported, say. Counting to a later date makes everyone’s recency longer, but doesn’t change who is ahead of whom.
Compared
How it differs from ranking by spend
| Compared on | RFM analysis | Ranking by spend |
|---|---|---|
| Uses | When they last came, how often, and how much | How much they spent |
| A big spender who has stopped coming | Low R: shows as slipping away | Still near the top |
| A new customer | High R, low F: shows as new | Near the bottom |
| Scores | Fifths of your own list, 1 to 5 | Totals in pounds |
In the worked example below, customer F has spent £205.10, the second most of the ten, but last came 28 days ago. Ranked by spend, F is a top customer; RFM scores F 345 and puts them with the customers slipping away, which is when a nudge still works.
Worked example
Ten customers, scored by hand
Ten customers of our own (not a published table), counted to 31 October 2026. With N = 10, each score is 1 + ⌊5 × L ÷ 10⌋, which is 1 + ⌊L ÷ 2⌋, where L is how many of the other customers are strictly worse on that measure. Every figure below comes from the calculator’s own rules.
| Customer | Days since | R (L → score) | Visits | F (L → score) | Spent | M (L → score) | RFM | Result |
|---|---|---|---|---|---|---|---|---|
| A | 1 | 9 → 5 | 14 | 9 → 5 | £312.40 | 9 → 5 | 555 | Regulars |
| B | 3 | 8 → 5 | 9 | 7 → 4 | £180.00 | 7 → 4 | 544 | Regulars |
| C | 6 | 7 → 4 | 3 | 3 → 2 | £41.50 | 3 → 2 | 422 | New or occasional |
| D | 11 | 6 → 4 | 6 | 6 → 4 | £126.75 | 6 → 4 | 444 | Regulars |
| E | 17 | 5 → 3 | 1 | 0 → 1 | £22.90 | 1 → 1 | 311 | Lapsed |
| F | 28 | 4 → 3 | 9 | 7 → 4 | £205.10 | 8 → 5 | 345 | Slipping away |
| G | 43 | 3 → 2 | 2 | 2 → 2 | £38.00 | 2 → 2 | 222 | Lapsed |
| H | 60 | 2 → 2 | 5 | 5 → 3 | £98.60 | 5 → 3 | 233 | Lapsed |
| I | 80 | 1 → 1 | 1 | 0 → 1 | £14.25 | 0 → 1 | 111 | Lapsed |
| J | 133 | 0 → 1 | 4 | 4 → 3 | £77.30 | 4 → 3 | 133 | Lapsed |
A came the day before: nine customers came longer ago, so L = 9 and R = 1 + ⌊9 ÷ 2⌋ = 5. J came 133 days before: nobody came longer ago, so L = 0 and R = 1.
B and F both came 9 times. Seven customers came fewer times, so both have L = 7 and F = 4: the tie isn’t split. Only A, with 14 visits, scores F = 5. A and F, the two biggest spenders, score M = 5: between them they spent 46.3% of the £1,116.80 in all.
Three customers are regulars (A, B and D: R and F both 4 or 5). F is slipping away (F = 4, but R = 3), C is new or occasional, and the other five are lapsed.
Questions
RFM analysis, answered
Where do I get each customer’s last visit, visits and spend?
From whatever knows your customers: your till’s customer list, a loyalty scheme, a booking system or your online ordering. If you only have one line per order (customer, date, amount), paste that: the calculator adds up each customer’s visits and spend and finds their latest date.
What date should I count to?
The day your list runs to, usually the day you exported it. Leave it blank and the calculator counts to the latest visit in the list.
Why aren’t the fifths the same size?
Because customers who tie are never split. If half your list came exactly once, all of them score F = 1, and the scores above start higher up. Splitting ties at random would make the scores look tidier and mean less.
Should M be the total spent or the average order?
This calculator uses the total, as most RFM work does: it is what the customer has been worth. The average order says something else (how big a spender they are per visit) and can be worked out from the two columns you have.
Is it all right to type customers’ names?
Names stay in your browser: nothing is sent to us. But "Copy link" puts everything you typed in the link, names included, so share the link only with people who may see them, or use customer numbers instead of names.
Is anything I type saved?
No. Everything is worked out in your browser and nothing is sent to us. Download the CSV to keep the results, or use "Copy link": your figures go in the link itself, and we don't store them.
Get these numbers from your real orders
WalnutPOS records every order and every kitchen ticket as you trade, and the customers you add to them. Start on the £0 plan, or WhatsApp us and we'll help.
£0 plan: 1 location · reports show the last 24 hours · other limits apply. See every limit
