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

Example figures · The Walnut Kitchen, 20 customers
Days since2
Days since1
Days since19
Days since59
Days since4
Days since108
Days since10
Days since87

Or paste from a spreadsheet

Copy the columns from Excel or Google Sheets, or from WalnutPOS’s customer export: its headings are read for you. A customer number works as well as a name.

Results: all customers

Customers scored
20
Counted to
31 Oct 2026
Came more than once
85.0%
Spending from M = 5
46.7%
Regulars
4
Regulars4
R 4–5 · F 4–5Customer 09, Customer 01, Customer 17, Customer 13Recent and frequent. These are the people to thank, to ask for a review, or to try a new dish first.
Slipping away4
F 4–5 · R 1–3Customer 20, Customer 03, Customer 04, Customer 06They came often, but not lately. A personal nudge now is worth more than a discount later.
New or occasional4
R 4–5 · F 1–3Customer 02, Customer 07, Customer 11, Customer 05Recent, but few visits: often new. The second visit is the one to win.
Lapsed8
R 1–3 · F 1–3Customer 15, Customer 19, Customer 12, Customer 08, Customer 16, Customer 18, and 2 moreNeither recent nor frequent. Cheap reminders only.
Customers by R and F20 customers · each square counts the customers with that R and F
R \ FF 1F 2F 3F 4F 5
R 501012
R 420110
R 301111
R 220110
R 111101
Every customer, highest score firstEach score 1 to 5 by fifths of your list · 5 = most recent, most visits, most spent · Names stay in your browser; Copy link puts them in the link
CustomerLast visitDays sinceVisitsSpentRFMRFMGroup
Customer 0931 Oct 2026024£638.15555555Regulars
Customer 0129 Oct 2026218£412.60555555Regulars
Customer 1730 Oct 202619£205.80544544Regulars
Customer 0230 Oct 202614£96.40522522New or occasional
Customer 1326 Oct 2026512£301.45444444Regulars
Customer 0721 Oct 2026106£131.20433433New or occasional
Customer 1124 Oct 202672£51.30412412New or occasional
Customer 0527 Oct 202641£18.50411411New or occasional
Customer 207 Oct 20262415£344.00355355Slipping away
Customer 0312 Oct 20261911£268.90344344Slipping away
Customer 1514 Oct 2026178£188.25333333Lapsed
Customer 1919 Oct 2026123£64.90322322Lapsed
Customer 042 Sep 2026599£221.30244244Slipping away
Customer 129 Sep 2026525£118.60233233Lapsed
Customer 085 Aug 2026872£44.80211211Lapsed
Customer 1628 Aug 2026641£27.40211211Lapsed
Customer 0615 Jul 202610814£355.75155155Slipping away
Customer 1811 Apr 20262037£162.35133133Lapsed
Customer 143 May 20261813£70.10122122Lapsed
Customer 1018 Jun 20261351£22.95111111Lapsed

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

Start free

Method

How each customer is scored

R = recency: days from the last visit to the date counted to (fewer is better)
F = frequency: visits
M = monetary: total spent
each of R, F and M on its own, over N customers:
L = customers strictly worse on that measure
score = 1 + ⌊5 × L ÷ N⌋ (1 to 5, 5 = the best fifth)
customers who tie share the same, lower score
RFM code = the three scores side by side, 555 down to 111

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 onRFM analysisRanking by spend
UsesWhen they last came, how often, and how muchHow much they spent
A big spender who has stopped comingLow R: shows as slipping awayStill near the top
A new customerHigh R, low F: shows as newNear the bottom
ScoresFifths of your own list, 1 to 5Totals 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.

CustomerDays sinceR (L → score)VisitsF (L → score)SpentM (L → score)RFMResult
A19 → 5149 → 5£312.409 → 5555Regulars
B38 → 597 → 4£180.007 → 4544Regulars
C67 → 433 → 2£41.503 → 2422New or occasional
D116 → 466 → 4£126.756 → 4444Regulars
E175 → 310 → 1£22.901 → 1311Lapsed
F284 → 397 → 4£205.108 → 5345Slipping away
G433 → 222 → 2£38.002 → 2222Lapsed
H602 → 255 → 3£98.605 → 3233Lapsed
I801 → 110 → 1£14.250 → 1111Lapsed
J1330 → 144 → 3£77.304 → 3133Lapsed

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