Sub topic 4
Measuring virality with the k-factor
This chapter assumes you know how referral programs work from the earlier chapters, and that you can read a short Python function. You will define the k-factor, calculate it from your own numbers, and use it to project growth without overstating it.
What the k-factor measures
The k-factor (viral coefficient) is the number of new subscribers that each new subscriber brings in. You calculate it from two measurements:
- i: the average number of invites sent per subscriber.
- c: the share of those invites that become confirmed subscribers.
The formula is k = i × c. If the average subscriber sends 0.8 invites and 25% of invites convert, then k = 0.8 × 0.25 = 0.2. Every 100 new subscribers bring in about 20 more.
Calculate i across all subscribers, not only those who use the referral feature. Most subscribers send no invites, so a value below 1 is normal.
What different values of k mean
Each generation of referred subscribers is k times the size of the one before it. The value of k therefore decides how the total behaves.
| k | Behavior | Practical meaning |
|---|---|---|
| Below 1 | Each cohort is smaller than the last. The total approaches a ceiling. | Referrals multiply your paid and organic acquisition but do not replace it. |
| Exactly 1 | Each cohort is the same size as the last. | Growth continues at a steady rate. This is rare and hard to hold. |
| Above 1 | Each cohort is larger than the last. | Growth is exponential until the audience saturates. |
Most newsletters sit well below 1. That is still useful. When k is below 1, the total after unlimited cycles is seed / (1 - k). With k = 0.2, every subscriber you acquire through other channels is worth 1 / 0.8 = 1.25 subscribers in the long run.
Projecting growth
The function below adds each generation's referred cohort to the 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 cohorts are 1000, 200, 40, 8, 1.6 and 0.32. They sum to about 1250, which matches seed / (1 - k). Try k = 1.1 to see the total run away. A projection like that is a ceiling on what is possible, not a forecast.
Common errors
- Counting unconfirmed signups. Use
cas the share of invites that produce a confirmed, active subscriber. Unconfirmed addresses and early unsubscribes inflate k and cost you deliverability. The confirmed-referrals query from the attribution chapter gives you the right numerator. - Ignoring cycle time. The projection says how many generations you get, not how fast. If a cycle takes 30 days, five cycles take about five months. Measure the median time from signup to the referred person's signup.
- Treating k as fixed. Your most enthusiastic readers invite first. Later cohorts usually convert and share less, so k tends to fall as the list grows. Recalculate it on recent cohorts, not on your all-time average.
- Crediting referrals that would have happened anyway. Some referred people would have found you by themselves. The k-factor counts attributed signups, so it can overstate the true lift. The testing chapter covers how to measure the incremental part.
- Mixing populations. Compute k for one cohort and one period at a time. Averaging a launch month with a quiet month hides what each period shows.
Using k to make decisions
Because k = i × c, you can improve it in two separate ways. Rewards and prompts raise i. A clear landing page and a short confirmation flow raise c. Check which factor is weaker before you spend effort. If readers send plenty of invites but few convert, a bigger reward will not help.
Exercise
A newsletter has 2000 subscribers from non-referral channels. The average subscriber sends 1.5 invites, and 20% of invites become confirmed subscribers. What is k, and roughly how many subscribers will the referral loop reach if you let it run indefinitely?
Show answer
k = 1.5 × 0.2 = 0.3. Because k is below 1, the total approaches seed / (1 - k) = 2000 / 0.7, which is about 2857 subscribers.