How an Epidemic Peaks: the SIR Model

krunyx · HyperTeX examples

November 2026

Keywords
  • 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 R0R_0 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 S+I+R=1S + I + R = 1. Infected people meet susceptible ones at a rate β\beta and recover at a rate γ\gamma [1]:

The single number that matters is the basic reproduction number

the number of people one infected person infects in a fully susceptible population. The slider sets it to R0=R_0=2.5.

Theorem 1 (Threshold). An outbreak that starts with almost everyone susceptible grows if and only if R0>1R_0> 1.

Proof

Equation (2) reads dIdt=γI(R0S−1)\frac{\mathrm{d}I}{\mathrm{d}t} = \gamma I\,(R_0S - 1). At the start S≈1S \approx 1, so II grows exactly when R0>1R_0> 1.

∎

2 The epidemic curve

The equations have no closed-form solution in time, so figure 1 plots a numerical solution for R0=2.5R_0= 2.5 and γ=0.1\gamma = 0.1 per day (the data are in data/sir.csv). Figure 2 compares three values of R0R_0: a larger R0R_0 peaks sooner and higher.

05010015000.51daysfraction of population
SS
II
RR
Figure 1: Numerical solution of (1)–(3) for R0=2.5R_0= 2.5, starting from I=0.001I = 0.001.
Figure 2: Infected fraction over time for three reproduction numbers.

3 Peak and final size without solving

Dividing (2) by (1) removes time:

  1. dIdS=−1+1R0S\frac{\mathrm{d}I}{\mathrm{d}S} = -1 + \dfrac{1}{R_0S}.

  2. Integrate from S=1S = 1, I=0I = 0:

  3. The peak is where dIdS=0\frac{\mathrm{d}I}{\mathrm{d}S} = 0, that is S=1/R0S = 1/R_0:

  4. The epidemic ends when I=0I = 0 again. The fraction left untouched, S∞S_\infty, solves

Figure 3 draws the orbit (5) for the current slider value. The dashed line marks S=1/R0S = 1/R_0, the herd-immunity threshold: once fewer than this fraction remain susceptible, each case causes less than one new case and the outbreak shrinks.

00.20.40.60.8100.20.40.6
susceptible SS
infected II
Figure 3: The path of the epidemic in the (S,I)(S, I) plane, equation (5). Time runs from right to left.

Table 1 evaluates (6) and (7) for a few reproduction numbers.

Table 1: What the reproduction number implies.
R0R_0Peak infected ImaxI_{\max}Ever infected 1−S∞1 - S_\inftyHerd-immunity threshold 1−1/R01 - 1/R_0
1.56.3%58.3%33.3%
2.523.3%89.3%60.0%
4.040.3%98.0%75.0%

4 Vaccination

Vaccinating a fraction pp before the outbreak starts it at S=1−pS = 1 - p. By theorem 1 with SS in place of 1, no outbreak grows if R0(1−p)<1R_0(1 - p) < 1, that is

For R0=R_0=2.5 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. [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. [2] H. W. Hethcote, The mathematics of infectious diseases, SIAM Review 42, 599–653 (2000), doi:10.1137/S0036144500371907. doi:10.1137/S0036144500371907}
  3. [3] R. M. Anderson and R. M. May, Infectious Diseases of Humans: Dynamics and Control, Oxford University Press (1991).