← Back to blog

RFM Analysis for Ecommerce: A Practical Guide for Store Owners

November 29, 2026
RFM Analysis for Ecommerce: A Practical Guide for Store Owners

RFM analysis sorts the people who have already bought from you by three things: how recently they bought, how often, and how much they spent. It tells you who deserves a VIP offer, who is drifting away, and who is not worth another message. It also has a blind spot. It only sees buyers, and most visitors to your store never become one. This guide shows how to run RFM step by step, what to do with each segment, and how to reach the shoppers who never made it into your order data.

StorePush
Reach shoppers beyond your RFM data
StorePush sends push notifications to shoppers’ lock screens, helping re-engage visitors who leave without buying or sharing contact details.
Visit

TL;DR

  • RFM scores every customer on recency, frequency and monetary value, using nothing but order history: a customer ID, an order date and an order amount.
  • Score each dimension from 1 to 5. Five categories on three dimensions give 125 possible scores, and 555 is the best.
  • Segments such as Champions, At Risk and Can't Lose Them tell you which campaign to send to whom.
  • Refresh the scores on a schedule that matches your purchase cycle, and treat segments as a guide, not a forecast.
  • RFM cannot see visitors who left without buying. Push notifications to the lock screen can reach them without collecting an email or phone number.

Table of Contents

What RFM actually measures

RFM is a customer segmentation method that groups shoppers by purchase history. Shopify's guide defines the three letters like this:

  • Recency: how long it has been since the customer's last purchase.
  • Frequency: how many purchases they made during the analysis period.
  • Monetary value: how much they spent in total over that period. This is total spend, not average order value.

The order of importance matters. IBM's SPSS documentation describes the underlying theory: recency is the strongest predictor of who will respond to a new offer, frequency comes second, and total spend third. Recent buyers are more likely to buy again, frequent buyers are more likely to respond, and big spenders are more likely to respond than small ones.

What counts as "recent" depends on what you sell. A store selling consumables or apparel might look at weeks or a few months. A store selling furniture or mattresses has to look at a much longer window. Set the window to your real repurchase cycle, or every score that follows will be skewed.

The data you need

You need less than you think. For a chosen time frame, the rfm package documentation says to prepare a unique customer ID, each order date and its amount, either one row per transaction or one row per customer.

IBM's documentation describes the same two shapes: transaction rows or customer rows with total amount spent, number of transactions and most recent transaction date.

A clean export for a typical store looks like this:

FieldWhy you need it
Customer ID (or email as the key)Ties orders to one person
Order dateGives you recency and the order count
Order totalGives you monetary value
Order statusLets you drop refunded, cancelled and test orders

Two cleanup steps save you from bad scores. First, remove abandoned carts and unfinished orders, since they are not purchases. Second, subtract refunds from spend, so a customer who returned everything does not look like a Champion. If you sell through more than one channel, such as your online store and a pop-up shop, merge the orders into one table before scoring.

How to calculate RFM scores, step by step

The manual method works in a spreadsheet for a store with a few thousand customers. It follows the five steps in Shopify's RFM walkthrough.

  1. Set the analysis window. Twelve months is a common starting point. Use a longer window if people buy from you once or twice a year.
  2. Calculate the three raw numbers per customer. Days since last purchase, number of orders, and total spend in the window.
  3. Rank customers into five roughly equal groups for each metric. Score 5 is best. For recency, the most recent fifth of customers gets a 5. For frequency and spend, the highest fifth gets a 5.
  4. Write the three-digit code. Recency first, then frequency, then monetary. A customer scoring 4 on recency, 3 on frequency and 5 on spend is 435.
  5. Assign segment names and refresh on a schedule.

Where it goes wrong: equal-sized groups only make sense when your customers vary enough to split. If 70% of your customers bought exactly once, the frequency groups will look artificial. In that case, use fixed thresholds you define yourself (for example, 1 order = 1, 2 orders = 2, 3 to 4 = 3) rather than forcing equal fifths.

A worked example

Shopify's example sets score 5 at 0 to 30 days since the last order, 10 or more orders and $1,000 or more in spend. Four customers then score like this:

CustomerLast orderOrdersSpendScoreSegment
Ava7 days ago12$1,200555Champions
Ben35 days ago4$1,000435Loyal
Cara10 days ago1$40511New
Diego240 days ago10$1,100155Previously loyal

Diego is the interesting one. His spend and order count look like a top customer, but he has not bought in eight months. A report sorted by lifetime spend would put him near the top. RFM puts him in the group that needs a win-back message today.

What the common segments tell you

The segment names vary between tools, and the boundaries are a judgment call. The rfm package documentation says plainly that creating segments is subjective and needs business and domain knowledge. Its table gives a useful baseline:

SegmentBehaviorTypical score pattern
ChampionsBought recently, buy often, spend the mostR 5, F 5, M 5
At RiskSpent big and bought often, but long agoR 1 to 2, F 2 to 5, M 4 to 5
Can't Lose ThemMade big, frequent purchases, but long agoR 1 to 2, F 3 to 4, M 4 to 5
LostBought a long time ago, average spendR 1

You can start with just these four plus "New" (recent, one order) and "Loyal" (steady repeat buyers). Six segments you actually act on beat eleven you never touch.

Turning segments into campaigns

A score is only useful if it changes what you send. A simple action map:

  • Champions: early access to launches, loyalty perks, referral asks. Do not discount to them; they already buy.
  • Loyal: nudges toward a higher order value, such as bundles or a free-shipping threshold.
  • New: a second-order message timed to your usual repurchase window. The second order is the hardest to win and the most valuable.
  • At Risk and Can't Lose Them: a direct win-back message, ideally personal, before they slip to Lost. For ideas on how to spot and save at-risk customers, look at the early warning signs beyond purchase dates.
  • Lost: one reactivation attempt, then stop sending so you do not drag down your email deliverability.

Winning back lapsed buyers works best as a short sequence rather than a single blast. Our guide to ecommerce winback sequences covers how many messages to send and how to space them. If you want to protect margin while you do it, see how to recover carts without discounts.

How often to refresh, and where RFM misleads

RFM goes stale fast. A customer who was a Champion in spring may be At Risk by autumn. Match your refresh to your purchase cycle: weekly or monthly for fast-moving categories, quarterly for slow ones. Each time, compare a segment's results against a holdout group that received no campaign, so you can tell what the campaign actually caused. For more on customer retention strategies, including testing and measuring segment performance, that is a good next read.

RFM refresh cadence and holdout comparison

Keep one limit in mind. Researchers at the Wharton School have pointed out that RFM variables are not fixed traits like age or location: different slices of the data give different values, and long-term forecasts built on them can be unreliable. In practice, that means using RFM to decide who to contact this month, not to predict what a customer will be worth in three years.

If you want to see how groups of customers behave over time rather than at one snapshot, pair RFM with ecommerce cohort analysis.

The part of your traffic RFM never sees

RFM starts from an order. Everyone who browsed, added to cart and left has no order, so they are not in your table. For most stores, that is the large majority of visitors. You can score your buyers perfectly and still have no way to reach the people who were closest to buying.

The usual fix is to collect an email or phone number at the door with a pop-up. That works for some shoppers, but many close the pop-up, and emails that do go out can land in spam or get buried in a Gmail tab. Without contact details, there is nothing to send to.

This is the gap StorePush is built for. It sends push notifications to shoppers' lock screens without collecting an email or phone number, using native iOS App Clips, so there is no app install and no signup. Our aim is to re-engage the 90%+ of visitors who leave without purchasing. It targets cart and browse abandonment with event-based triggers, and the dashboard shows revenue attribution, funnel tracking and CTR heatmaps, so you can see what the recovered revenue was worth.

The two methods cover different halves of your traffic:

RFM analysisStorePush
Who it reachesPast buyersVisitors who left without buying
What it needsOrder historyNo email or phone number
Best useLoyalty, win-back, second ordersCart and browse abandonment recovery

StorePush integrates with Shopify, WooCommerce, BigCommerce and custom storefronts. The Free plan costs $0 per month, and Pro is $50 per month plus a 5% commission on attributed recovered revenue. You can see the plans and start on the StorePush site, or book a demo to see it on your own store. For more on how this fits with other channels, read about privacy friendly retargeting and what recovery benchmarks look like.

Perspective

Most of the RFM advice you will read treats your order table as the whole customer base. It is not. It is the small slice of visitors who got all the way through checkout, and everything else is invisible to it.

We built StorePush around that invisible majority. RFM tells you how to treat the people who already trust you. Lock screen push through an App Clip lets you reach the shoppers who left a cart behind without asking them for an email address or phone number first. No signup, no app install.

Our view is that the strongest setup uses both. Run RFM on your buyers to decide who gets loyalty and win-back messages. Use push to bring back the browsers and cart abandoners, then watch those who convert flow into your RFM table as New customers. Each one you recover becomes a customer you can score.

Lucas

FAQ

What is a good RFM score?

With five categories per dimension, there are 125 possible scores, and 555 is the highest. That is the customer who bought most recently, buys most often and spends the most. A "good" score for your campaigns is relative: it is whichever combination marks your best segment given your own customer base.

How many segments should I use?

Start with five or six that you will actually send different messages to, such as Champions, Loyal, New, At Risk, Can't Lose Them and Lost. Add more only when you have a distinct campaign for each. Segment boundaries are a judgment call, so tune them to your own data.

Can I run RFM in a spreadsheet?

Yes. Export your orders, calculate days since last order, order count and total spend per customer, then rank each into five groups. A spreadsheet handles several thousand customers comfortably. Remove refunded and test orders first so they do not distort the scores.

Does RFM work for stores with mostly one-time buyers?

It still works, but frequency will not separate customers well, so use fixed thresholds instead of equal fifths. Recency and a second-order message matter most here. Reaching shoppers who never bought at all is a separate job, and that is where lock screen push fits.

Sources