Cet article est actuellement disponible en anglais uniquement. Traduction à venir.
Fait partie de notre série Data Analytics & BI
Lire le guide completCustomer RFM Analysis: Segmentation, Lifetime Value & Targeting
Not all customers are created equal. The top 20 percent of your customers likely generate 60 to 80 percent of your revenue. The bottom 20 percent cost more to serve than they pay. Yet most mid-market companies treat all customers the same --- same email campaigns, same support priority, same retention efforts.
RFM analysis is the simplest, most practical framework for segmenting customers based on behavior. It uses three data points you already have --- when a customer last bought (Recency), how often they buy (Frequency), and how much they spend (Monetary) --- to create actionable segments that drive targeted marketing, personalized service, and optimized retention.
Key Takeaways
- RFM scoring uses three behavioral metrics (recency, frequency, monetary) to segment customers into 8 to 12 actionable groups
- Each RFM segment requires a different strategy --- Champions need loyalty programs, At-Risk customers need re-engagement, Lost customers may not be worth pursuing
- Customer Lifetime Value (CLV) calculation transforms segmentation from a snapshot into a forward-looking planning tool
- RFM segments feed directly into predictive models for churn prediction and marketing attribution
RFM Scoring Methodology
RFM analysis scores each customer on three dimensions, then combines the scores to create segments.
Recency: When Did They Last Buy?
Recency measures the number of days since a customer's most recent purchase. Customers who bought recently are more likely to buy again than those who bought months ago.
Scoring approach: Divide all customers into five equal groups (quintiles) by their last purchase date. The most recent quintile gets a score of 5, the least recent gets 1.
| Recency Score | Days Since Last Purchase | Interpretation | |--------------|------------------------|---------------| | 5 | 0-30 days | Very recent buyer | | 4 | 31-60 days | Recent buyer | | 3 | 61-120 days | Moderate recency | | 2 | 121-240 days | Drifting away | | 1 | 241+ days | Dormant or lost |
The exact cutoffs depend on your business cycle. A grocery delivery service might use weeks instead of months. A B2B equipment supplier might use quarters.
Frequency: How Often Do They Buy?
Frequency counts the total number of transactions within a defined period (usually 12 to 24 months).
| Frequency Score | Purchase Count | Interpretation | |----------------|---------------|---------------| | 5 | 12+ purchases | Power buyer | | 4 | 8-11 purchases | Regular buyer | | 3 | 5-7 purchases | Moderate buyer | | 2 | 2-4 purchases | Occasional buyer | | 1 | 1 purchase | One-time buyer |
Monetary: How Much Do They Spend?
Monetary measures total revenue from the customer over the same period. Some implementations use average order value instead of total spend --- choose based on what matters more for your business.
| Monetary Score | Total Spend | Interpretation | |---------------|------------|---------------| | 5 | $5,000+ | High spender | | 4 | $2,000-4,999 | Above-average spender | | 3 | $750-1,999 | Average spender | | 2 | $200-749 | Below-average spender | | 1 | Under $200 | Low spender |
Combining Scores
Each customer gets a three-digit RFM score (e.g., 5-4-5 means high recency, high frequency, high monetary). With five levels per dimension, there are 125 possible combinations. These are grouped into 8 to 12 meaningful segments.
Segment Definitions and Strategies
The RFM Segment Matrix
| Segment | RFM Score Range | Size (Typical) | Description | Strategy | |---------|----------------|----------------|-------------|----------| | Champions | 5-5-5, 5-5-4, 5-4-5 | 8-12% | Best customers. Buy often, spend a lot, bought recently | Reward, upsell, ask for referrals | | Loyal | 4-4-4, 4-5-4, 5-4-4 | 10-15% | Consistent buyers with strong engagement | Loyalty programs, early access, cross-sell | | Potential Loyalists | 5-3-3, 4-3-3, 5-2-3 | 12-18% | Recent buyers with moderate frequency. Could become loyal | Onboarding sequences, membership offers | | Recent Customers | 5-1-1, 5-1-2, 4-1-1 | 8-12% | Just made first purchase. Unknown trajectory | Welcome series, product education, low-friction second purchase | | Promising | 3-3-3, 3-4-3, 3-3-4 | 10-15% | Mid-range across all dimensions. Steady but not growing | Engagement campaigns, volume discounts | | Need Attention | 3-2-2, 2-3-3, 3-2-3 | 10-15% | Were decent customers but engagement is fading | Personalized re-engagement, feedback survey | | About to Sleep | 2-2-2, 2-2-3, 2-3-2 | 8-12% | Low recent activity. Heading toward churn | Win-back offers, "we miss you" campaigns | | At Risk | 1-4-4, 1-3-4, 2-4-4 | 5-10% | Were great customers but have not bought in a long time | Urgent re-engagement, personal outreach, exclusive offers | | Cannot Lose | 1-5-5, 1-5-4, 1-4-5 | 3-5% | Historically best customers who have disappeared | Highest-priority win-back, executive outreach, significant offers | | Hibernating | 1-2-2, 1-1-2, 2-1-2 | 8-12% | Low on all dimensions, but slightly above lost | Re-acquisition campaigns if CAC justifies it | | Lost | 1-1-1, 1-1-2, 1-2-1 | 10-15% | No recent activity, low historical value | Do not invest; remove from active campaigns |
Segment-Specific Playbooks
Champions (5-5-5): These customers are your advocates. Enroll them in a VIP loyalty program. Offer early access to new products. Ask for reviews, testimonials, and referrals. Do not discount --- they buy at full price. Monitor them closely in churn prediction models because losing a Champion has outsized revenue impact.
At Risk (1-4-4 / 1-3-4): These were strong customers who have gone quiet. The window for re-engagement is closing. Reach out personally (not automated email). Offer a significant incentive to return. Ask what changed. If they had a bad experience, fix it. The cost of winning them back is much lower than acquiring a replacement.
Recent Customers (5-1-1): First impressions matter. Send a welcome sequence that educates them about your product range. Recommend the second purchase based on what they bought first. Make the return policy clear. The goal is to move them from 5-1-1 to 5-2-2 within 60 days.
Lost (1-1-1): Stop spending marketing dollars on these customers. Remove them from regular campaigns to improve your email deliverability and focus resources on segments with positive ROI. Run one final win-back attempt every 12 months, then archive.
Customer Lifetime Value Calculation
RFM tells you where customers are today. Customer Lifetime Value (CLV) tells you what they are worth over the entire relationship. Combining RFM with CLV transforms segmentation from a snapshot into a forward-looking planning tool.
Simple CLV Formula
CLV = Average Order Value x Purchase Frequency x Customer Lifespan
Example:
- Average order value: $150
- Purchase frequency: 4 times per year
- Average customer lifespan: 3 years
- CLV = $150 x 4 x 3 = $1,800
Adjusted CLV with Retention Rate
A more accurate formula accounts for the probability that a customer stays:
CLV = (AOV x Frequency x Gross Margin) / Churn Rate
Example:
- AOV: $150
- Frequency: 4 per year (annual revenue per customer: $600)
- Gross margin: 40%
- Annual churn rate: 25%
- CLV = ($600 x 0.40) / 0.25 = $960
CLV by RFM Segment
| Segment | Avg CLV | % of Revenue | % of Customers | CLV / CAC Ratio | |---------|---------|-------------|---------------|----------------| | Champions | $4,200 | 35% | 10% | 12:1 | | Loyal | $2,800 | 25% | 12% | 8:1 | | Potential Loyalists | $1,200 | 15% | 15% | 4:1 | | Promising | $600 | 10% | 13% | 2:1 | | At Risk | $1,800 | 8% | 7% | N/A (retention) | | Recent | $400 | 4% | 10% | 1.5:1 | | Need Attention | $350 | 2% | 12% | 1:1 | | Lost/Hibernating | $100 | 1% | 21% | 0.3:1 |
This table makes budget allocation decisions obvious: invest heavily in retaining Champions and Loyal customers, convert Potential Loyalists into Loyal through engagement, and stop spending on Lost customers. Feed these CLV calculations into marketing attribution models to optimize spend across channels.
Implementing RFM Analysis
Data Extraction
RFM analysis requires three fields per customer: customer ID, transaction date, and transaction amount. Extract this from your data warehouse or directly from Odoo and Shopify.
For Odoo, the relevant tables are sale_order and sale_order_line, joined with res_partner for customer details.
For Shopify, the Orders API provides customer.id, created_at, and total_price.
Scoring Automation
Automate RFM scoring on a weekly or monthly schedule:
- Extract all transactions within the analysis window (typically 12 to 24 months).
- Calculate recency, frequency, and monetary values for each customer.
- Assign quintile scores (1 to 5) for each dimension.
- Map the combined score to a segment name.
- Store the segment in the customer dimension table in the data warehouse.
- Push segment data back to the CRM for use by sales and marketing teams.
Visualization
Display RFM segments in your self-service BI dashboards:
- Segment distribution pie chart: How many customers are in each segment? Is the distribution healthy?
- Segment migration heatmap: How are customers moving between segments month over month? Are Champions being retained? Are Recent Customers becoming Loyal?
- Revenue by segment bar chart: Which segments contribute most to revenue?
- CLV scatter plot: Plot customers by frequency (x-axis) and monetary (y-axis) with color indicating recency.
Advanced RFM Applications
Predictive RFM
Traditional RFM is descriptive --- it tells you what customers have done. Predictive RFM uses the BG/NBD (Beta Geometric / Negative Binomial Distribution) model to predict how many purchases a customer will make in the future and the Gamma-Gamma model to predict their monetary value.
The Python lifetimes library implements both models and produces:
- Expected number of future purchases per customer
- Predicted CLV for a given time horizon
- Probability of being alive (still an active customer)
RFM-Based Personalization
Feed RFM segments into your marketing automation platform (GoHighLevel, Mailchimp, Klaviyo) to personalize:
- Email content: Champions see upsell recommendations. At-Risk customers see win-back offers. Recent Customers see product education.
- Ad targeting: Upload Champion and Loyal customer lists to Facebook/Google for lookalike audience creation. Exclude Lost customers from paid campaigns.
- Support priority: Route Champion and At-Risk tickets to senior agents. This is not about treating customers differently for the sake of it --- it is about allocating limited resources where they produce the highest return.
Frequently Asked Questions
How often should we update RFM scores?
Monthly is the standard cadence for most businesses. Weekly updates are appropriate for high-velocity eCommerce (daily purchases) or subscription businesses where churn detection speed matters. Avoid daily updates unless your business model genuinely requires it --- too-frequent updates create noise and make segment migration tracking harder.
What if our business has very few repeat customers?
If most customers buy only once (common in one-time-purchase industries like furniture or real estate), the Frequency dimension has little variance. In this case, consider a modified RFM that replaces Frequency with Engagement (email opens, website visits, app usage) or Focus (number of product categories explored). The principle of behavioral scoring still applies even when purchase frequency is low.
Should we use RFM quintiles or custom thresholds?
Quintiles (equal-sized groups) are the standard starting point. However, custom thresholds often work better when your customer base is skewed. If 40 percent of customers have made exactly one purchase, quintiles create uneven splits. Define thresholds based on business meaning: "recent" means within your typical repurchase cycle, "high frequency" means above the median for your industry.
How does RFM relate to churn prediction models?
RFM scores are excellent features for churn prediction models. Recency is typically the single strongest predictor of churn. The RFM segment (especially movements between segments over time) adds predictive power beyond the individual scores. Think of RFM as the foundation and ML churn models as the next level of sophistication.
What Is Next
RFM analysis is the foundation of customer analytics. It feeds into predictive churn models, informs marketing attribution, enhances cohort analysis, and guides the KPI selection in your BI strategy.
ECOSIRE implements RFM analysis and customer segmentation integrated with your Odoo CRM and Shopify store. Our OpenClaw AI platform automates scoring, builds predictive CLV models, and syncs segments back to your marketing tools. Our Odoo consultancy team configures the CRM views and automation rules to operationalize your segments.
Contact us to start segmenting your customers by value and behavior.
Published by ECOSIRE --- helping businesses scale with AI-powered solutions across Odoo ERP, Shopify eCommerce, and OpenClaw AI.
Rédigé par
ECOSIRE Research and Development Team
Création de produits numériques de niveau entreprise chez ECOSIRE. Partage d'analyses sur les intégrations Odoo, l'automatisation e-commerce et les solutions d'entreprise propulsées par l'IA.
Articles connexes
Account Hierarchy Management: Parent-Child Organizations in CRM
Master B2B account hierarchy management with parent-child organization structures, consolidated billing, territory assignment, and CRM best practices in Odoo.
Building B2B Buyer Portals with Odoo: Self-Service Ordering & Reorders
Step-by-step guide to building B2B buyer portals in Odoo with self-service ordering, reorders, invoice access, and RFQ submission for wholesale operations.
The B2B eCommerce Playbook: Portals, Pricing Engines & Approval Workflows
Complete B2B eCommerce guide covering buyer portals, pricing engines, approval workflows, contract management, and ERP integration for wholesale operations.
Plus de Data Analytics & BI
From Data to Decisions: Building a BI Strategy for Mid-Market Companies
A complete guide to building a business intelligence strategy for mid-market companies covering maturity models, tool selection, data governance, and ROI.
Cohort Analysis & Retention Metrics: Beyond Vanity Numbers
Master cohort analysis and retention metrics to understand customer behavior over time including retention curves, churn calculation, and trend identification.
Customer Lifetime Value Optimization: Beyond the First Purchase
Master CLV calculation with historical and predictive formulas, segment-based optimization, and proven strategies to maximize customer lifetime value.
Data Warehouse Design: Star Schema for ERP & eCommerce Analytics
Learn dimensional modeling with star schema for ERP and eCommerce analytics covering fact tables, dimension tables, ETL patterns, and query optimization.
Demand Forecasting Strategies: ABC Analysis, Min-Max & Safety Stock
Master demand forecasting with ABC-XYZ analysis, min-max rules, and safety stock formulas. Reduce stockouts by 40% and inventory costs by 20%.
Embedded Analytics: Adding Dashboards Inside Your Business Applications
Guide to embedding analytics dashboards inside business applications covering iframes, SDKs, APIs, multi-tenancy, row-level security, and performance.