Mission Growth

RFM Analysis: Recency, Frequency, Monetary Scoring and Excel Formula

RFM analysis scores customers on recency, frequency and monetary value. See the scoring rules, Excel formula and the email each segment gets.

Published 14 min read
RFM analysis as a glass cube lattice of cells with few customer tokens, one emerald cell holding two tokens as a single group
On this page

The usual RFM analysis recipe ends one way: score each customer from 1 to 5, add the three numbers, call the highest totals your VIPs. That last step is where the method breaks. A total throws away the one thing the scores were built to keep, which is the shape of each customer's behavior.

This guide shows how to score a customer file without that shortcut, and what to send each group once you have it.

In this guide:

  • What the three scores measure and the data you need before scoring
  • A scoring procedure with the Excel formula and a pandas block
  • An RFM analysis example: 12 customers scored step by step
  • Why you read the three-digit cell instead of the sum
  • How many segments your list can actually fill
  • Which email each group gets, and an adaptation for SaaS

RFM analysis: what the three scores measure

RFM analysis scores each customer on recency, frequency and monetary value: recency is days since last order, frequency is orders in a window, and monetary is spend in that window. A list can then be split by behavior instead of by who signed up.

The three fields live in any order table, which means a recency frequency monetary analysis needs no new data collection.

MetricUnitA high score meansKlaviyo default cutoff
RecencyDays since last orderThe customer bought recently180 and 365 days
FrequencyOrders in a stated windowThe customer buys repeatedly33rd and 66th percentiles of your data
MonetarySpend in the same windowThe customer spends more33rd and 66th percentiles of your data

Two details change the numbers. Frequency and monetary value both depend on the window, so write the window next to every cutoff you publish internally. Klaviyo also counts only orders with a positive value; a free order (a fully discounted one, say) is left out of its RFM analysis, so free orders cannot inflate spend.

Check the data before you score. Klaviyo's RFM report needs 500 customers with an order and 180 days of history. Those are the vendor's minimums for its report, not a law of statistics, but they make a sensible go/no-go test: with fewer buyers or a shorter history, the percentiles you compute are too unstable to trust.

An RFM score is a targeting layer, and it is not a forecast. Fader, Hardie and Lee showed in 2005 that the same three fields are enough input for a Pareto/NBD model to produce customer lifetime value projections.

Their model also finds non-linear associations among recency, frequency and monetary value that observed counts miss. So use the score to decide who gets which send today. If you need a number for what a customer will be worth, or whether one will lapse, fit a model on the same fields; our churn prediction model guide covers that route.

The LTV:CAC calculator puts a lifetime value estimate next to what it cost to acquire the customer.

How to calculate RFM scores: rules, Excel formula and Python

To calculate RFM scores, set recency cutoffs in days, set frequency cutoffs as order counts after looking at your own distribution, set monetary cutoffs as percentiles, then score each customer 1 to 3 on each dimension. The procedure:

  1. Export one row per customer with days since last order, order count and total spend over the same window.
  2. Exclude orders with no value, as Klaviyo does.
  3. Score each dimension separately: 3 is the strongest behavior, 1 the weakest.
  4. Join the three scores into one three-digit cell, recency first.
  5. Map cells to named groups (covered below) and attach one send to each.

The rule type differs by dimension, and mixing them up is where scoring goes wrong.

DimensionRuleWhy
RecencyFixed days, such as Klaviyo's 180 and 365Recency is a calendar fact; set the cutoffs from your own reorder gap and use the default as a starting point
FrequencyFixed order counts, set after checking your own percentileMany customers share the same count, so order counts tie
MonetaryPercentiles of spendSpend is continuous, so percentile cutoffs split it cleanly

The tie problem is a property of percentiles that you can check in two minutes. If the 33rd percentile of your order counts equals 1, then every one-order customer sits at or above that cutoff, and a percentile rule scores them in the middle band alongside repeat buyers.

Klaviyo makes the same point about its scores: ties share a score, so its three groups need not come out even. Look at your own order-count distribution before you trust a percentile rule, and when the low percentile sits at 1, write the count cutoffs by hand.

For an RFM analysis Excel sheet, the Excel PERCENTILE.INC function handles spend. With customer spend in C2:C13, this formula returns the monetary score for the customer in row 2:

Code
=IF(C2>=PERCENTILE.INC($C$2:$C$13,0.66),3,IF(C2>=PERCENTILE.INC($C$2:$C$13,0.33),2,1))

Fill it down the column. The 0.66 and 0.33 arguments give the 66th and 33rd percentile, the same thresholds Klaviyo uses by default. Recency and frequency need only a nested IF on fixed values.

The pandas version below uses a pandas percentile call for spend and fixed values for the other two. The frequency cutoffs (1 order scores 1, 2 to 3 orders score 2, 4 or more score 3) are demonstration values; set yours from your own distribution. It runs on the example file in the next section.

python
import numpy as np, pandas as pd
df = pd.DataFrame(
    [("A",12,9,1180),("B",25,6,720),("C",40,4,510),("D",70,3,260),
     ("E",95,2,150),("F",150,1,90),("G",210,1,60),("H",300,1,45),
     ("I",420,1,30),("J",8,1,75),("K",500,5,640),("L",60,1,200)],
    columns=["cust", "recency_days", "orders", "spend"])
df["R"] = np.where(df.recency_days <= 180, 3, np.where(df.recency_days <= 365, 2, 1))
df["F"] = np.where(df.orders >= 4, 3, np.where(df.orders >= 2, 2, 1))
lo, hi = np.percentile(df.spend, [33, 66])
df["M"] = np.where(df.spend >= hi, 3, np.where(df.spend >= lo, 2, 1))
df["cell"] = df.R.astype(str) + df.F.astype(str) + df.M.astype(str)

RFM analysis example: scoring 12 customers step by step

Scoring 12 invented customers with the rules above gives each a three-digit cell, such as 333 for customer A and 133 for customer K. The table is an example file we built for this guide to show the mechanics. The customers are not real, the rows are too few to reveal anything about any business, and nothing here is a benchmark or a finding.

The monetary cutoffs computed from the 12 spend values are $84.45 (33rd percentile) and $325 (66th percentile), using the linear-interpolation percentile that Excel's PERCENTILE.INC returns. Recency uses 180 and 365 days; frequency uses the demonstration cutoffs above.

CustomerDays since last orderOrdersSpendRFMCell
A129$1,180333333
B256$720333333
C404$510333333
D703$260322322
E952$150322322
F1501$90312312
G2101$60211211
H3001$45211211
I4201$30111111
J81$75311311
K5005$640133133
L601$200312312

Download CSV (CC BY 4.0)

Read two rows to see how the digits map to behavior. Customer K ordered five times and spent $640 but last ordered 500 days ago, so the cell is 133. Customer J ordered once, for $75, 8 days ago, so the cell is 311.

Swap in your own export and the same code gives you the cell for every customer. If you want a template, the table above downloads as a CSV.

RFM segmentation: read the cell, not the sum

RFM segmentation works on the three-digit cell, because summing the scores puts customers who need opposite emails in one bucket: in Klaviyo's 27-cell table, the 7 cells that total 6 land in 4 different groups.

The shortcut is easy to find. HubSpot's guide tells you to sum the three values into one combined score, and Mailchimp's adds each customer's scores to pick a target audience.

Klaviyo keeps the three digits as one profile, such as 333 or 123, and Optimove and Wikipedia describe the same grid of cells. So the error is the shortcut in two popular guides, and it is easy to avoid.

Here are the seven cells whose digits total 6, with the Klaviyo group each falls in:

CellRecencyFrequencyMonetaryKlaviyo group
123LapsedLowHighNeeds attention
132LapsedMidMidNeeds attention
213MidLowHighNeeds attention
231MidHighLowAt risk
222MidMidMidRecent
312RecentLowMidRecent
321RecentMidLowLoyal

Download CSV (CC BY 4.0)

We got the table by adding the three digits of each of the 27 cells in Klaviyo's mapping, keeping those that total 6 and looking up each group.

A summed score treats a 123 customer, a big spender who has gone quiet, the same as a 321 customer, a recent mid-frequency buyer on small baskets. The first needs a re-engagement message; the second does not. Seven cells that look identical in a spreadsheet column need three to four different emails, which is the case for the seven cells staying separate.

The full mapping Klaviyo publishes, from 27 cells to 6 groups:

GroupCells
Champions333, 332, 323
Loyal321, 322, 331, 232, 233
Recent312, 313, 311, 222, 223
Needs attention213, 221, 123, 132, 133
At risk231, 212, 122, 131, 211
Inactive111, 112, 113, 121

Download CSV (CC BY 4.0)

Group names are not standard either. In HubSpot's list of key segments, the At-Risk label means a high spender whose recency and frequency are falling, though the same page describes at-risk customers elsewhere by declining recency alone. Klaviyo's At risk group is the opposite on spend: recency score 1 or 2 and monetary score 1 or 2.

In Klaviyo, the lapsed big spenders in cells 123 and 133 sit in Needs attention, not At risk. Two vendors, one label, opposite customers. So name segments by their cells in every definition you write: "At risk (recency 1 or 2, monetary 1 or 2)" cannot be misread, and "At risk" alone can.

Two limits are worth stating. RFM is a backward-looking score: it describes what a customer did, so it moves after each order and tells you nothing about intent. And order counts tie, so a percentile rule can score one-time buyers and repeat buyers alike; check that before trusting any cell that depends on frequency.

For how a score like this differs from retention curves by signup date, see cohort analysis: a cohort follows an acquisition group over time, while an RFM cell is a snapshot of one customer today.

How many RFM segments your customer list supports

Customers per cell equal your customer count divided by bins cubed, so at Klaviyo's 500-customer report minimum, five bins per dimension leave an average of 4 customers per cell, four bins 7.8 and three bins 18.5. The formula is customers divided by cells, where cells is bins times bins times bins.

Bins per dimensionCellsAverage customers per cell at 500 customers
32718.5
4647.8
51254

Download CSV (CC BY 4.0)

We computed these from the 500-customer minimum, the five-point scale Mailchimp uses (5 x 5 x 5 = 125 cells) and Optimove's 64 and 27 cells for four and three tiers. Optimove also advises against using more than four tiers.

Bar chart for RFM analysis of a 500-buyer list: average customers per cell is 18.5 with 3 bins, 7.8 with 4 bins and 4 with 5 bins.
In an RFM analysis, a list of 500 buyers averages 18.5 customers per cell with 3 bins per dimension and 4 with 5 bins.

Treat 500 as a floor, not a typical list. It is Klaviyo's minimum for its report. Put your own customer count into the formula, and whatever number comes out, ask one question: is the average cell a group you can actually send to?

Klaviyo collapses 27 cells into 6 named groups, and you should collapse yours the same way before you build segments in your email tool. If your list is small, three bins per dimension is the safer default; the five-point scale needs a much bigger file.

Which email each RFM segment gets

Each RFM group should get one email decision; Klaviyo's own list-cleaning advice for Inactive is to remove unengaged contacts before they harm deliverability, and Needs attention holds lapsed big spenders such as cells 123 and 133, while At risk is limited to low and medium spend.

The table keys each group to Klaviyo's names and cells. The Inactive row rests on Klaviyo's guidance; every other action is our suggestion, written as a decision to make and not as a measured result.

GroupCellsOne decision
Champions333, 332, 323Keep them informed first: launches and early access, with no discount needed to get a repeat order
Loyal321, 322, 331, 232, 233Reward the habit and invite a higher-value purchase
Recent312, 313, 311, 222, 223Run the next-order nudge, which is the one that turns a first purchase into a second
Needs attention213, 221, 123, 132, 133A personal win-back, starting with cells 123 and 133, where spend is high and recency has faded
At risk231, 212, 122, 131, 211A lighter reminder or a limited offer; their spend does not justify a heavy one
Inactive111, 112, 113, 121Try a win-back; if they stay silent, list-cleaning

Klaviyo's list-cleaning advice for Inactive applies to customers who do not interact with your winback or promotional emails: consider removing them before they harm your deliverability. Treat it as the step after a win-back attempt, not the first move.

The split between Needs attention and At risk is the one to get right. Both groups are fading, but Needs attention includes the high-spend cells 123 and 133 while At risk stops at monetary 2, so they should not share a template. Write the cells into the segment definition, as in the previous section.

Designing the win-back sequence itself (timing, steps, exit rules) is a separate job. Our guide to lifecycle email marketing covers it, and churn reduction covers the retention tactics that sit around it. This post only decides which group enters which sequence.

RFM model for SaaS and subscription products

An RFM model for SaaS replaces orders with product activity: recency is days since the last session, frequency is active days in a window, and monetary value is plan price or seats. The three-digit cell logic stays the same. This section is our judgment, not a measured result.

Ecommerce fieldSaaS field
Days since last orderDays since last session or key action
Orders in a windowActive days in a window
Spend in a windowPlan price, seats or usage volume

The monetary column is where SaaS files break. If your accounts sit on a few plan tiers, many accounts share one plan price, and a percentile rule ties the same way order counts tie: whole tiers of accounts land on the same score. Two fixes work. Score seats or usage volume, which vary more, or drop the monetary dimension and run a two-axis grid of recency against frequency.

The cell logic is the same, with fewer cells and fewer groups to name.

RFM analysis, then, comes down to a short list. Keep the three digits as a cell instead of adding them, choose cutoffs after you look at each dimension's own distribution, size the bins so the average cell is a group you can send to, and give each group one email decision.

Your next step is concrete: export your order table with days since last order, order count and spend, check what the 33rd percentile of your order counts is, and run the formula or the pandas block above on it.

Frequently asked questions

What does RFM stand for?

RFM is shorthand for three customer fields: how recently someone bought, how often they bought in a window, and how much they spent. The first section of this guide defines each field and the unit it is measured in.

How do you interpret RFM scores?

Read the three digits as a cell in recency, frequency, monetary order, and then look up its group. On the 1 to 3 scale, 333 is the best cell, and 111 is the least recent, least frequent and lowest spend. Do not add the digits; two cells with the same total can need opposite emails.

How often should you re-score customers?

We recommend weekly for lists you send to, because a customer's group changes after each order and a stale score sends the wrong message. A monthly re-score is enough for reporting only.

Can you run RFM when many customers bought once?

Yes, but check the percentile of your order counts first. If the 33rd percentile is 1, a percentile rule scores one-order customers at or above that cutoff, so set the count cutoffs yourself, for example 1, 2 to 3 and 4 or more, and review them against your own distribution.

Does RFM work without a spend field?

Yes. Drop the monetary dimension and score recency against frequency on a two-axis grid. This is common for SaaS accounts that all sit on one plan price, where a spend score would tie. Use seats or usage volume as the third axis when you have them.

Cite this page

Aktaş, F. (2026, November 23). RFM Analysis: Recency, Frequency, Monetary Scoring and Excel Formula. Mission Growth. https://missiongrowth.io/blog/rfm-analysis

Up nextLifecycle Email Marketing: A Guide With Benchmarks
12 min read
Next step

Put these playbooks to work

Start with a free audit. See where the lift is before you commit.

How it works

  1. 01

    30-minute audit call

    We map your funnel against your goal and pull live data from your channels.

  2. 02

    Lift estimate

    You get a written estimate of where the lift is, with a 30-day plan to capture it.

  3. 03

    You decide

    Run it with us, run it in-house, or shelve it. No commitment from the audit.