Sub topic 4
Measuring virality with the k-factor
This chapter assumes you know how a newsletter referral program works (the previous chapters cover the basics), can read short Python and SQL snippets, and know what a confirmed subscriber and an unsubscribe are. It turns a referral program into one number you can track, project forward, and use to decide what to fix.
What the k-factor measures
The k-factor, or viral coefficient, is the average number of new subscribers that each new subscriber brings in through referrals during one referral cycle. If 1,000 people join and they collectively bring in 200 more, k is 0.2.
You can split k into two parts that you can measure and improve separately:
k = invites per subscriber × conversion rate of an inviteWith the numbers used in this chapter, each subscriber sends 0.8 invites on average, and 25% of invites become confirmed subscribers. So k = 0.8 × 0.25 = 0.2.
Both parts are averages across all new subscribers, including the many who never share anything. A program where 5% of readers share 16 invites each has the same 0.8 invites per subscriber as one where everyone shares 0.8.
| Lever | What it changes | Typical tactic |
|---|---|---|
| Invites per subscriber | How many people are asked | Prompt on the welcome page, a share link in every issue, milestone rewards |
| Invite conversion | How many asked people confirm | A clear landing page, a short signup form, a message from someone the invitee trusts |
| Cycle time | How fast each generation arrives | Ask early, while enthusiasm is highest |
The two regimes: k below 1 and k at or above 1
Each generation of referred subscribers is k times the size of the one before. That is a geometric series, and its behavior depends on k:
- k below 1. Each generation is smaller than the last. The total converges to a ceiling of
seed / (1 - k). Referrals amplify your other channels but do not sustain growth alone. - k equal to 1. Each generation is the same size as the last. Growth is linear and never stops, as long as the loop runs.
- k above 1. Each generation is larger than the last. Growth is exponential until the audience, the incentive budget, or the quality of invitees runs out.
Nearly all newsletters live below 1. A k of 0.2 to 0.5 is a healthy referral program. The practical meaning is a multiplier. A k of 0.2 means every 1,000 subscribers from paid ads, social posts, and search eventually become 1,250. A k of 0.5 turns them into 2,000.
Projecting growth
The function below simulates the loop. It follows each generation separately and adds it to a running total.
def project_subscribers(seed, k, cycles):
"""Total subscribers after a number of referral cycles.
seed: subscribers acquired through non-referral channels
k: new subscribers each new subscriber brings in per cycle
cycles: number of referral generations to simulate
"""
total = seed
cohort = seed
for _ in range(cycles):
cohort *= k
total += cohort
return total
invites_per_subscriber = 0.8
invite_conversion = 0.25
k = invites_per_subscriber * invite_conversion # 0.2
print(round(project_subscribers(1000, k, 5))) # 1250The five generations add 200, 40, 8, 1.6, and 0.32 subscribers to the original 1,000, giving about 1,250. Most of the effect arrives in the first cycle or two.
When k is below 1, you do not need to simulate. After n cycles the total is seed × (1 - k^(n+1)) / (1 - k), and the ceiling is seed / (1 - k). The fraction of the ceiling reached after n cycles is 1 - k^(n+1).
import math
def ceiling(seed, k):
"""Total subscribers the loop converges to. Only defined for k < 1."""
if k >= 1:
raise ValueError("no finite ceiling when k >= 1")
return seed / (1 - k)
def cycles_to_fraction(k, fraction=0.95):
"""Smallest number of cycles that reaches the given share of the ceiling."""
if not 0 < k < 1:
raise ValueError("k must be between 0 and 1")
n = math.ceil(math.log(1 - fraction) / math.log(k)) - 1
return max(n, 0)
for k in (0.2, 0.5, 0.9):
print(k, ceiling(1000, k), cycles_to_fraction(k))
# 0.2 1250.0 1
# 0.5 2000.0 4
# 0.9 10000.0 28The table shows why small changes to k matter more as k grows. Going from 0.5 to 0.9 multiplies the ceiling by five, but it also stretches the time to reach 95% of it from 4 cycles to 28.
Measuring k from your own data
Estimate k from a cohort: take the subscribers who confirmed during a period, then count the confirmed subscribers they referred within a fixed window. Dividing the second number by the first gives k for that window. This query does it in PostgreSQL, using the referrals and subscribers tables from the attribution chapter:
SELECT COUNT(DISTINCT c.id) AS cohort_size,
COUNT(s.id) AS confirmed_referrals,
COUNT(s.id) * 1.0 / COUNT(DISTINCT c.id) AS k
FROM subscribers AS c
LEFT JOIN referrals AS r
ON r.referrer_id = c.id
LEFT JOIN subscribers AS s
ON s.id = r.referred_id
AND s.confirmed_at IS NOT NULL
AND s.unsubscribed_at IS NULL
AND s.confirmed_at < c.confirmed_at + INTERVAL '30 days'
WHERE c.confirmed_at >= '2026-01-01'
AND c.confirmed_at < '2026-02-01';The LEFT JOIN keeps referrers who brought nobody, which is essential. An inner join would count only subscribers who referred someone and report a much higher k than you have. The filter on s sits in the join condition, not in WHERE, so the cohort size does not shrink when a referral fails the confirmation test.
Common errors
Counting raw signups instead of confirmed ones. Unconfirmed addresses include typos, bots, and people who changed their mind. Count only subscribers who confirmed and who are still subscribed after a settling period.
Dividing by the wrong denominator. k is per new subscriber in the cohort, not per active referrer, and not per total list size. A veteran list of 50,000 with few new joiners does not have a k you can compute from total referrals divided by 50,000.
Mixing cohorts and windows. A cohort observed for 7 days will show a lower k than the same cohort observed for 60 days. Always state the window, and compare cohorts only over equal windows.
Treating a rising k as proof the program works. A drop in the size of your seed cohort can raise k without adding anyone. Look at absolute referral counts alongside k.
Ignoring the seed. The seed is everything not from referrals. If paid acquisition stops, the whole total shrinks by the multiplier. Referrals amplify other channels and do not replace them.
Including incentive-driven junk. A reward for any signup invites self-referrals and throwaway addresses, which inflates k but adds no readers. The abuse chapter covers this, and the quality chapter shows how to discount such signups.
Using k to make decisions
Because k is the product of invites and conversion, you can estimate the payoff of an experiment before running it:
- Measure the current invites per subscriber and conversion.
- Estimate the change your tactic could produce. A share prompt on the welcome page might lift invites from 0.8 to 1.0.
- Recompute k and the ceiling. At 25% conversion, k moves from 0.2 to 0.25, and the ceiling for a 1,000-subscriber seed moves from 1,250 to about 1,333.
- Compare that gain with the cost of the change, including any reward you pay per referral.
This also shows where to stop. Moving k from 0.2 to 0.25 adds about 83 subscribers per 1,000 seed. If each referral costs a reward worth more than a new subscriber is worth, a higher k loses money. Treat the cost per referred subscriber as a second metric next to k.
Finally, report k by acquisition source and by referral channel, not only as a single average. Subscribers who arrive through a recommendation network may share far less or far more than those who arrive through a referral link, and an average hides that. The quality chapter builds on this idea.
Exercises
Exercise
A newsletter has 2,000 subscribers from non-referral channels. Each new subscriber sends 1.2 invites on average, and 15% of invites become confirmed subscribers. What is k, and what total does the referral loop converge to?
Show answer
k = 1.2 × 0.15 = 0.18. The ceiling is 2,000 / (1 - 0.18) = 2,000 / 0.82, which is about 2,439 subscribers. Referrals add roughly 439 subscribers on top of the seed.
Exercise
Your k query returns k = 0.6, but a colleague notes that the query uses an inner join between the cohort and the referrals table. What is likely wrong, and how do you fix it?
Show answer
The inner join drops cohort members who made no referrals, so the denominator counts only subscribers who referred someone. That overstates k. Use a LEFT JOIN from the cohort to referrals (and to the referred subscribers), put the confirmation and unsubscribe filters in the join condition, and divide by the count of distinct cohort members.
Exercise
A growth plan says "our k is 0.9, so we will double every few weeks." Give two reasons this is wrong.
Show answer
First, k below 1 does not produce exponential growth. The total converges to seed / (1 - k), which is 10 times the seed at k = 0.9, and it takes about 28 cycles to get within 95% of that. Second, the plan counts cycles, not time. If a cycle is 30 days, 28 cycles takes over two years, so doubling every few weeks is not supported. The k value may also include unconfirmed or low-quality signups.