How an Epidemic Peaks: the SIR Model
November 2026
- epidemiology
- SIR model
- basic reproduction number
- herd immunity
Abstract
The SIR model splits a population into the susceptible, the infected and the recovered. From three short equations it predicts whether an outbreak grows, how high it peaks and how many people it reaches in the end. Move the slider for the basic reproduction number to redraw the curves. A one-page briefing turns the results into policy language.
1 The model
Measure each group as a fraction of the population, so that . Infected people meet susceptible ones at a rate and recover at a rate [1]:
| (1) | |||
| (2) | |||
| (3) |
The single number that matters is the basic reproduction number
| (4) |
the number of people one infected person infects in a fully susceptible population. The slider sets it to .
Theorem 1 (Threshold). An outbreak that starts with almost everyone susceptible grows if and only if .
2 The epidemic curve
The equations have no closed-form solution in time, so figure 1 plots a numerical solution for and per day (the data are in data/sir.csv). Figure 2 compares three values of : a larger peaks sooner and higher.

3 Peak and final size without solving
Dividing (2) by (1) removes time:
.
Integrate from , :
(5) The peak is where , that is :
(6) The epidemic ends when again. The fraction left untouched, , solves
(7)
Figure 3 draws the orbit (5) for the current slider value. The dashed line marks , the herd-immunity threshold: once fewer than this fraction remain susceptible, each case causes less than one new case and the outbreak shrinks.
Table 1 evaluates (6) and (7) for a few reproduction numbers.
| Peak infected | Ever infected | Herd-immunity threshold | |
| 1.5 | 6.3% | 58.3% | 33.3% |
| 2.5 | 23.3% | 89.3% | 60.0% |
| 4.0 | 40.3% | 98.0% | 75.0% |
4 Vaccination
Vaccinating a fraction before the outbreak starts it at . By theorem 1 with in place of 1, no outbreak grows if , that is
| (8) |
For this is the dashed line in figure 3. The briefing discusses what this means in practice [3]; [2] surveys the many extensions of the model.
The same mathematics of rates and thresholds appears in the oscillator example (damping decides whether motion dies out) and in the heat example (each mode decays at its own rate).
References
- [1] W. O. Kermack and A. G. McKendrick, A contribution to the mathematical theory of epidemics, Proc. R. Soc. Lond. A 115, 700–721 (1927), doi:10.1098/rspa.1927.0118. doi:10.1098/rspa.1927.0118}
- [2] H. W. Hethcote, The mathematics of infectious diseases, SIAM Review 42, 599–653 (2000), doi:10.1137/S0036144500371907. doi:10.1137/S0036144500371907}
- [3] R. M. Anderson and R. M. May, Infectious Diseases of Humans: Dynamics and Control, Oxford University Press (1991).