How does an epidemic rise, peak and fade?
The SIR model: the peak, how many catch it in all and the herd immunity threshold, from R₀ and the infectious period.
What you enter stays on your device while you use this tool. Opening a shared link sends the settings in its address to HowToolbox to prepare the page.
Infected at the peak
23,352
On day 45, 23.4% of the 100,000 people are infected at once; 89.3% catch it before it fades out.
Key values as a table
| Days | Susceptible | Infected | Recovered | |
|---|---|---|---|---|
| Start | 0 | 100% | 0.01% | 0% |
| Peak | 45 | 40.9% | 23.3% | 35.8% |
| End | 104 | 10.8% | 0.116% | 89.1% |
- Peak
- day 45
- Infected in all
- 89,266 (89.3%)
- Herd immunity threshold
- 60%
- R at the start
- 2.5
- Rates
- β = 0.357/day, γ = 0.143/day
The SIR model: the peak, how many catch it in all and the herd immunity threshold, from R₀ and the infectious period.
How to use
- Set R₀, the number of people one case infects in a population where nobody is immune, and how many days a case stays infectious.
- Set the population, how many are infected at the start and how many are already immune.
- Read the peak, how many catch it in all and the herd immunity threshold. Drag the peak of the red curve up or down to change R₀.
How it works
The SIR model splits a population into the Susceptible, who can still catch the disease, the Infected and the Recovered, who are immune. Each day an infected person meets enough people to pass it on at the rate β, and recovers at the rate γ = 1/D, where D is the infectious period: dS/dt = −β·S·I/N, dI/dt = β·S·I/N − γ·I and dR/dt = γ·I. The basic reproduction number is R₀ = β/γ.
Infections grow while R₀ times the susceptible share is above 1, so they peak exactly when the susceptible share falls to 1/R₀, the dashed line. This is the herd immunity threshold: once 1 − 1/R₀ of people are immune, an outbreak cannot grow. With R₀ = 2.5 that is 60%. The outbreak does not stop there, though: in a town of 100,000 with 10 first cases, about 23% are ill at once at the peak and about 89% catch it in all, from the final-size equation s∞ = s₀·e^(−R₀(1 − s∞)).
This is a teaching model, never a forecast. It assumes everyone mixes evenly, immunity lasts, and nothing changes as the outbreak grows: no distancing, seasons, age groups, births or deaths. Real epidemics bend away from it for all those reasons. Sources: Kermack and McKendrick (1927); the SIR model module of the Mathematical Association of America (Smith and Moore).
Worked example
How big is the outbreak with R₀ = 2.5, 7 infectious days and 10 cases in a population of 100,000?
- Herd immunity threshold: 1 − 1/R₀ = 1 − 1/2.5 = 60%.
- The peak comes when the susceptible share falls to 1/R₀; then 23.4% of the population is infected at once, on day 45.
- The final-size equation s∞ = s₀·e^(−R₀(1 − s∞)) leaves 10.7% never infected.
A peak of 23.4% on day 45; 89.3% catch it in all.
Frequently asked questions
What R₀ do real diseases have?
Published estimates vary with place and time: seasonal flu is often put near 1.3, the original COVID-19 strain around 2 to 3 and measles 12 to 18. R₀ is not a fixed property of a germ: it depends on how people live and meet.
Why doesn't the epidemic stop at the herd immunity threshold?
At the threshold infections stop growing, but many people are still infected and keep passing it on as the outbreak declines. That overshoot is why far more than 1 − 1/R₀ end up infected.
What does vaccinating before the outbreak do?
Immune people start in R. If the immune share is above 1 − 1/R₀, R at the start falls below 1 and the outbreak fades at once. Try it.
Why does a longer infectious period make it slower but not smaller?
With R₀ fixed, a longer infectious period stretches the same curve over more days. The peak height and the final size depend only on R₀ and who is immune.
Is the herd immunity threshold the same as the share who get infected?
No. The threshold, 1 − 1/R₀, is the immune share at which an outbreak stops growing. The outbreak still carries on a while, so the share who catch it in all is higher.





