RFM analysis segments customers by how recently they purchased, how often they purchase, and how much they spent. The method is simple, but the decisions matter: observation window, refund treatment, customer identity, scoring thresholds, subscription behavior, and campaign purpose. Scores should be based on the business's own distribution and validated against future behavior rather than borrowed as universal benchmarks.

VISUAL LESSON

What you will learn

  1. 01Prepare a customer-level RFM dataset.
  2. 02Create transparent scores from the business's own distribution.
  3. 03Map segments to responsible campaigns and outcome tests.
Customer groups occupy a three-dimensional recency, frequency, and monetary grid and connect to distinct campaign paths
RFM separates behavior dimensions so a recent first-time buyer is not treated like a long-term high-frequency customer.

ILLUSTRATIVE RFM SEGMENTS

Different score patterns require different treatment

Recent repeat high valueRecognition and retention
18%
Recent first-timeSecond-purchase education
32%
Historically valuable, inactiveCareful win-back
14%
Low-frequency remainderObserve or broad nurture
36%
Hypothetical customer distribution—not a benchmark. Segment names and cutoffs must be validated for the business model.

RFM WORKBOOK MAP

Build one customer-level table

Orders01Clean the transaction history

Resolve customer identity, dates, currency, refunds, cancellations, test orders, gifts, subscriptions, and the observation window.

Scores02Calculate R, F, and M

Find days since last purchase, qualifying order count, and net monetary value, then assign transparent quantile or business-rule scores.

Segments03Name behavior and test action

Combine scores into understandable groups, define an eligible campaign, and track repeat purchase, margin, opt-out, and holdout response.

Conceptual spreadsheet map. Shopify and other tools may provide built-in groups; document the platform's current definitions before comparing them with custom scores.

THE RFM CUBE

Recency × frequency × monetary value → action

PrepareCustomer-level order history
ScoreDistribution-based R, F, and M
ActVIP, nurture, repeat, or win-back

THE LEAD ATLAS METHOD

When RFM reveals the customer segments a business wants more of, Lead Atlas Data can research business contacts in matching categories, locations, and markets for a focused acquisition campaign.See how custom list research works ↗
01

Define the customer and window

Choose the customer key and observation end date. Decide whether household, account, email, billing entity, or another identity represents one customer, then resolve duplicates consistently.

Set the purchase window and rules for refunds, canceled orders, free orders, subscriptions, currencies, and one-time anomalies. Document them before scoring.

02

Calculate the three measures

Recency is time since the last qualifying purchase; lower days means more recent behavior. Frequency is the number of qualifying purchases or purchase occasions. Monetary value is the agreed net or gross spending measure.

Calculate all three at the customer level. Keep gross revenue and margin-aware value separate if both matter, and avoid double-counting line items as separate orders.

03

Create transparent scores

Rank customers into equal-sized groups or use business thresholds grounded in the purchase cycle. Reverse recency so a recent customer receives the higher score, then document the cutoff for every score.

Ties and sparse purchase histories can make quantiles uneven. Preserve the raw values beside the scores and review the distribution before naming segments.

04

Map behavior to campaigns

Recent first-time buyers may need onboarding or complementary education; recent frequent high-value buyers may value recognition and early access; historically valuable inactive customers may merit a relevant win-back.

Do not assume every high score needs a discount. Match the action to customer context, consent, margin, inventory, and brand promise.

05

Validate and refresh

Compare segments on future repeat purchase, margin, retention, response, and opt-out. Use a holdout when practical to separate campaign effect from the segment's natural behavior.

Deliverable: data rules, customer-level RFM table, cutoff sheet, segment definitions, eligible actions, exclusions, measurement plan, refresh schedule, and one validated learning.

THE TAKEAWAY

Clean the order data, define the window, score each RFM dimension transparently, name segments by behavior, and test one relevant action with a control or holdout where practical.

OFFICIAL REFERENCES

Check the platform’s current instructions.

Platform labels, eligibility, and workflows can change. These official help pages were used to validate this lesson.