luvv to helpDiscover the Best Free Online Tools
Topic 5 of 8

Cohort Heatmaps Basics

Learn Cohort Heatmaps Basics for free with explanations, exercises, and a quick test (for Marketing Analyst).

Published: December 22, 2025 | Updated: December 22, 2025

Why this matters

Cohort heatmaps help Marketing Analysts see how groups of users behave over time after a shared starting point (like signup or first purchase). This is essential to answer questions such as:

  • Are users retained after their first week or month?
  • Do customers who joined after a campaign repurchase at higher rates?
  • Which onboarding email changes improved week 2 engagement?
  • How does a new pricing plan affect month 3 churn?

Concept explained simply

A cohort is a group of users who share a start event and date (e.g., first purchase in March). A cohort heatmap is a grid: rows are cohorts (by start period), columns are periods since that start (Week 1, Week 2… or Month 1, Month 2…), and each cell shows a metric (like retention %) colored by intensity.

Mental model

Think of a train schedule. Each train (row) departs on a different day (cohort start). The columns are stops made after 1, 2, 3 periods. The cell values tell you how many passengers are still on the train at each stop (retention), or how much revenue the train generated between stops (revenue per user).

How to build one (step-by-step)

  1. Choose your cohort key: Typical options: signup month, first purchase month, acquisition campaign start.
  2. Pick the time grain for columns: Weeks since start or months since start. Keep it consistent.
  3. Define the metric clearly:
    • Retention rate: active users in period k / total users in cohort.
    • Repeat purchase rate: customers with ≥1 order in period k / total customers in cohort.
    • Revenue per user: total revenue in period k / total users in cohort.
  4. Transform your data: For each user, tag their cohort and the period number (k) since cohort start; aggregate your metric by (cohort, k).
  5. Pivot to a matrix: Rows = cohorts, Columns = period k. Fill cells with your metric.
  6. Color-scale with care: Use a sequential scale (light to dark) for 0% to 100% metrics; add value labels or tooltips where possible.
  7. Handle empties vs zeros: Show missing data (not enough time elapsed) as blanks, not 0.
Mini task: pick your setup
  • Start event: choose one (signup / first purchase / first app open / first email capture).
  • Time grain: choose one (weeks since start / months since start).
  • Metric: choose one (retention % / repeat purchase % / revenue per user).

Write your chosen trio in one sentence. Example: “First purchase month cohorts, months since start, repeat purchase rate.”

How to read a cohort heatmap

  • Scan diagonally down-right to see how a cohort decays or grows over time.
  • Scan vertically in a column to compare different cohorts at the same age (e.g., Month 2 retention across cohorts).
  • Look for structural changes: a brighter column after a product update implies improvement at that age for newer cohorts.

Worked examples

Example 1: App weekly retention

Cohort: signup week. Columns: Week 1–4. Metric: active users in week k / cohort size.

  • Jan cohort (size 3): W1 66.7%, W2 33.3%, W3 0%, W4 0%.
  • Feb cohort (size 3): W1 66.7%, W2 33.3%, W3 33.3%, W4 0%.
  • Mar cohort (size 4): W1 75%, W2 25%, W3 0%, W4 0%.

Reading: Mar cohort has the strongest early engagement (W1), but decays by W3.

Example 2: Ecommerce repeat purchase

Cohort: first purchase month. Columns: Month 1–3 since first purchase. Metric: customers with ≥1 order in month k / cohort size.

  • Apr: M1 32%, M2 20%, M3 15%.
  • May: M1 35%, M2 24%, M3 18%.
  • Jun: M1 30%, M2 22%, M3 17%.

Reading: May cohorts repeat slightly better at Month 2–3, suggesting an improved post-purchase flow.

Example 3: Email onboarding

Cohort: first email captured week. Columns: Day 1–7. Metric: open rate per day relative to cohort size.

  • Wk 20: D1 48%, D2 30%, D3 22%, D4 20%...
  • Wk 21: D1 52%, D2 35%, D3 25%, D4 23%...

Reading: A subject line test in Wk 21 lifted early-day engagement across the first 3 days.

Common mistakes and self-check

  • Wrong denominator: Dividing by active users in prior period instead of the full cohort. Self-check: does Month 0 equal 100%? Later months should be ≤100% for rates.
  • Calendar vs relative time: Using calendar months across columns. Self-check: columns must be “months since start.”
  • Mixing cohort keys: Some rows by signup, others by first purchase. Self-check: confirm one consistent start event.
  • Color scale misleads: Diverging red–green for unipolar data. Self-check: use a single-hue scale and show a legend.
  • Zeros vs missing: Empty future periods shown as 0. Self-check: blanks or dashes for not-yet-available data.
  • Small cohort noise: Reading too much into tiny cohorts. Self-check: annotate cohort sizes; consider smoothing or minimum size filters.

Exercises you can do now

Do the exercises below and use the checklist to verify your work.

  • Exercise 1 (ID: ex1): Compute weekly retention for three cohorts from a small user log.
  • Exercise 2 (ID: ex2): Write correct formulas for repeat purchase rate and revenue per user.
Checklist before you move on
  • You chose a clear cohort key and a consistent time grain.
  • Your denominators use total cohort size for rates.
  • Period labels are “since start” (Week k / Month k), not calendar dates.
  • Missing periods are blank; values have a legend or labels.
  • You can explain a diagonal trend in your own words.

Practical projects

  • Build a monthly retention heatmap for website signups from the last 12 months. Include cohort sizes in the row labels.
  • Create a repeat purchase heatmap for first purchase cohorts using Month 1–6. Add a separate row note for major campaigns launched.
  • Make an engagement heatmap for trial users: Week 1–8 active sessions per user. Cap outliers and annotate thresholds.

Who this is for

  • Marketing Analysts who need to track retention, repeat purchase, or activation quality.
  • Growth and Lifecycle marketers who own onboarding and CRM performance.
  • Product-leaning analysts visualizing behavior after feature launches.

Prerequisites

  • Basic data manipulation skills (grouping, counting, aggregating).
  • Comfort with percentages and ratios.
  • Familiarity with pivoting data into wide format.

Learning path

  1. Understand cohorts and time alignment (this lesson).
  2. Calculate retention and repeat purchase metrics.
  3. Create a clean matrix and apply readable color scales.
  4. Interpret diagonals and columns to generate insights.
  5. Communicate findings with short, actionable notes.

Next steps

  • Complete the exercises below and take the Quick Test.
  • Apply the method to one real dataset at work and share a 3-bullet insight summary.
  • Iterate with a second metric (e.g., revenue per user) to deepen the story.

Mini challenge

Pick a dataset you know. Define your cohort key, time grain, and one metric. Draft a 4-row by 4-column cohort table and write two observations: one about a diagonal trend, one about a specific column comparing cohorts.

Note: The Quick Test is available to everyone; only logged-in users will have their progress saved.

Practice Exercises

2 exercises to complete

Instructions

You have 10 users with signup month and weekly activity (1 = active, 0 = not active) for Weeks 0–3. Cohorts are by signup month. Compute retention for Week 1–3 as: active in week k / cohort size.

Data
  • U1: Jan; W0 1, W1 1, W2 0, W3 0
  • U2: Jan; W0 1, W1 0, W2 0, W3 0
  • U3: Jan; W0 1, W1 1, W2 1, W3 0
  • U4: Feb; W0 1, W1 1, W2 0, W3 0
  • U5: Feb; W0 1, W1 0, W2 0, W3 0
  • U6: Feb; W0 1, W1 1, W2 1, W3 1
  • U7: Mar; W0 1, W1 1, W2 0, W3 0
  • U8: Mar; W0 1, W1 0, W2 0, W3 0
  • U9: Mar; W0 1, W1 1, W2 1, W3 0
  • U10: Mar; W0 1, W1 1, W2 0, W3 0

Output rows for Jan, Feb, Mar with Week 1–3 retention percentages.

Expected Output
Jan: W1 66.7%, W2 33.3%, W3 0% | Feb: W1 66.7%, W2 33.3%, W3 33.3% | Mar: W1 75%, W2 25%, W3 0%

Cohort Heatmaps Basics — Quick Test

Test your knowledge with 6 questions. Pass with 70% or higher.

6 questions70% to pass

Have questions about Cohort Heatmaps Basics?

AI Assistant

Ask questions about this tool