# 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.

- URL: https://missiongrowth.io/blog/rfm-analysis
- Published: 2026-11-23
- Author: Furkan Aktaş, Co-Founder, Mission Growth
- Publisher: Mission Growth. Company facts: https://missiongrowth.io/llms.txt

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.

| Metric | Unit | A high score means | Klaviyo default cutoff |
|---|---|---|---|
| Recency | Days since last order | The customer bought recently | 180 and 365 days |
| Frequency | Orders in a stated window | The customer buys repeatedly | 33rd and 66th percentiles of your data |
| Monetary | Spend in the same window | The customer spends more | 33rd 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](https://missiongrowth.io/blog/churn-prediction) guide covers that route.

The [LTV:CAC calculator](https://missiongrowth.io/tools/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.

| Dimension | Rule | Why |
|---|---|---|
| Recency | Fixed days, such as Klaviyo's 180 and 365 | Recency is a calendar fact; set the cutoffs from your own reorder gap and use the default as a starting point |
| Frequency | Fixed order counts, set after checking your own percentile | Many customers share the same count, so order counts tie |
| Monetary | Percentiles of spend | Spend 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:

```
=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.

::dataset{key="rfm-example-12-customers" name="RFM example file: 12 invented customers scored 1 to 3"}

| Customer | Days since last order | Orders | Spend | R | F | M | Cell |
|---|---|---|---|---|---|---|---|
| A | 12 | 9 | $1,180 | 3 | 3 | 3 | 333 |
| B | 25 | 6 | $720 | 3 | 3 | 3 | 333 |
| C | 40 | 4 | $510 | 3 | 3 | 3 | 333 |
| D | 70 | 3 | $260 | 3 | 2 | 2 | 322 |
| E | 95 | 2 | $150 | 3 | 2 | 2 | 322 |
| F | 150 | 1 | $90 | 3 | 1 | 2 | 312 |
| G | 210 | 1 | $60 | 2 | 1 | 1 | 211 |
| H | 300 | 1 | $45 | 2 | 1 | 1 | 211 |
| I | 420 | 1 | $30 | 1 | 1 | 1 | 111 |
| J | 8 | 1 | $75 | 3 | 1 | 1 | 311 |
| K | 500 | 5 | $640 | 1 | 3 | 3 | 133 |
| L | 60 | 1 | $200 | 3 | 1 | 2 | 312 |

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:

::dataset{key="rfm-cells-summing-to-six" name="RFM cells whose digits total 6 and their Klaviyo groups"}

| Cell | Recency | Frequency | Monetary | Klaviyo group |
|---|---|---|---|---|
| 123 | Lapsed | Low | High | Needs attention |
| 132 | Lapsed | Mid | Mid | Needs attention |
| 213 | Mid | Low | High | Needs attention |
| 231 | Mid | High | Low | At risk |
| 222 | Mid | Mid | Mid | Recent |
| 312 | Recent | Low | Mid | Recent |
| 321 | Recent | Mid | Low | Loyal |

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:

::dataset{key="klaviyo-rfm-groups" name="Klaviyo RFM groups and the score cells each contains"}

| Group | Cells |
|---|---|
| Champions | 333, 332, 323 |
| Loyal | 321, 322, 331, 232, 233 |
| Recent | 312, 313, 311, 222, 223 |
| Needs attention | 213, 221, 123, 132, 133 |
| At risk | 231, 212, 122, 131, 211 |
| Inactive | 111, 112, 113, 121 |

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](https://missiongrowth.io/blog/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.

::dataset{key="rfm-bins-customers-per-cell" name="Average customers per RFM cell by bins per dimension, at 500 customers"}

| Bins per dimension | Cells | Average customers per cell at 500 customers |
|---|---|---|
| 3 | 27 | 18.5 |
| 4 | 64 | 7.8 |
| 5 | 125 | 4 |

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.

::figure{src="/blog/figures/rfm-analysis-1.svg" alt="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." caption="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." width="720" height="223"}

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.

| Group | Cells | One decision |
|---|---|---|
| Champions | 333, 332, 323 | Keep them informed first: launches and early access, with no discount needed to get a repeat order |
| Loyal | 321, 322, 331, 232, 233 | Reward the habit and invite a higher-value purchase |
| Recent | 312, 313, 311, 222, 223 | Run the next-order nudge, which is the one that turns a first purchase into a second |
| Needs attention | 213, 221, 123, 132, 133 | A personal win-back, starting with cells 123 and 133, where spend is high and recency has faded |
| At risk | 231, 212, 122, 131, 211 | A lighter reminder or a limited offer; their spend does not justify a heavy one |
| Inactive | 111, 112, 113, 121 | Try 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](https://missiongrowth.io/blog/lifecycle-email-marketing) covers it, and [churn reduction](https://missiongrowth.io/blog/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 field | SaaS field |
|---|---|
| Days since last order | Days since last session or key action |
| Orders in a window | Active days in a window |
| Spend in a window | Plan 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.

## FAQ

### 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.
