← Wiki Index / Public Health & Global Health / SIR Model
🏥 Public Health & Global Health

SIR Model

The SIR model is a foundational system of nonlinear ordinary differential equations that partitions a host population into Susceptible, Infectious, and Recovered compartments to quantify epidemic thresholds, peak prevalence, and herd immunity.

The SIR model (Susceptible–Infectious–Recovered) is the canonical mathematical framework of quantitative epidemiology, partitioning a closed or open host population of total size N into mutually exclusive epidemiological compartments whose sizes evolve continuously over time through coupled nonlinear ordinary differential equations (ODEs). Derived from the seminal 1927 formulation of Kermack-McKendrick theory by William Ogilvy Kermack and Anderson Gray McKendrick, and building on the earlier mosquito-malaria differential equations of the Ross-Macdonald model, the SIR system captures the fundamental feedback loop of acute transmissible disease: infection incidence grows through contact between susceptible (S) and infectious (I) hosts, while simultaneously depleting the susceptible pool until transmission falls below the rate of recovery (R).

From the three governing rate equations of the deterministic SIR system emerge the core analytical laws of infectious disease dynamics: the basic reproduction number (R0 = β / γ), the epidemic threshold theorem requiring an initial susceptible fraction S(0) / N > 1 / R0 for an outbreak to expand, the exact algebraic formula for peak infectious prevalence (Imax), the transcendental final epidemic size equation proving that epidemics burn out before exhausting all susceptibles, and the herd immunity vaccination threshold (pc = 1 − 1 / R0). Extensions of the core architecture—including SEIR (adding an Exposed latent period), SIRS (incorporating waning immunity), SIS (recurrent infections without immunity), and age- or network-structured metapopulation matrices—form the computational engine of modern pandemic forecasting and public-health intervention design.

The Classical Closed SIR System and Governing Equations

Mass-Action vs. Frequency-Dependent Transmission

In the classical closed SIR model without vital dynamics (assuming outbreak timescales are much shorter than host demographic birth and death rates, so N = S(t) + I(t) + R(t) is constant), individuals transition unidirectionally along the pathway S → I → R. Under the homogeneous frequency-dependent (standard incidence) mixing assumption, each infectious individual makes an average of c potentially infectious contacts per unit time across the population regardless of total population density, and a fraction S(t) / N of those contacts occur with susceptible hosts. If each contact between an infectious and a susceptible individual transmits the pathogen with probability p, the effective transmission rate is β = c · p (units: time-1).

The per-capita rate at which susceptible individuals acquire infection is defined as the force of infection λ(t) = β · I(t) / N. Multiplying λ(t) by the total number of susceptibles S(t) yields the instantaneous incidence rate (new infections per unit time): βS(t)I(t) / N. Simultaneously, infectious individuals clear the pathogen or are removed from the transmission chain (via sterilizing recovery, isolation, or disease-induced mortality) at a constant per-capita recovery rate γ (units: time-1), corresponding to a memoryless infectious period of mean duration τI = 1 / γ (where the probability of remaining infectious after time t follows the exponential decay survival distribution P(T > t) = e−γt).

The Three Coupled Ordinary Differential Equations

Combining the incidence and recovery fluxes yields the three coupled nonlinear ordinary differential equations of the closed deterministic SIR model:

  • Susceptible Compartment: dS / dt = −β · S(t) · I(t) / N
  • Infectious Compartment: dI / dt = β · S(t) · I(t) / N − γ · I(t)
  • Recovered (Removed) Compartment: dR / dt = γ · I(t)

Summing the three derivatives confirms conservation of total population size: dS/dt + dI/dt + dR/dt = 0, so S(t) + I(t) + R(t) = N for all t ≥ 0. Normalization by total population size N defines the dimensionless state fractions s(t) = S(t)/N, i(t) = I(t)/N, and r(t) = R(t)/N (where s + i + r = 1), simplifying the system to ds/dt = −βsi, di/dt = (βs − γ)i, and dr/dt = γi.

Analytical Derivations: Thresholds, Peak Prevalence, and Final Size

The Epidemic Threshold Theorem, R0, and Re

Factoring the infectious rate equation reveals the condition required for an epidemic wave to grow upon introduction of an index case into a population with initial susceptible fraction s0 = S(0) / N:

dI / dt = I(t) · [β · (S(t) / N) − γ] = γ · I(t) · [(R0 · S(t) / N) − 1]

Here, R0 = β / γ is the basic reproduction number—the expected number of secondary infections generated by one infectious case over an average infectious duration 1/γ in a completely susceptible population (s0 ≈ 1)—and Re(t) = R0 · S(t) / N is the time-varying effective reproduction number.

  • Epidemic Growth Phase: During the initial invasion when S(t) ≈ N, linearized integration yields exponential growth of the infectious cohort according to I(t) = I(0) · exp((R0 − 1)γt), with intrinsic epidemic growth rate r = (R0 − 1)γ and epidemic doubling time Td = ln(2) / [(R0 − 1)γ].
  • Kermack-McKendrick Threshold Theorem: An epidemic wave can grow (dI/dt > 0) if and only if Re(0) = R0 · s0 > 1, or equivalently when the initial susceptible fraction exceeds the critical threshold s0 > 1 / R0. Conversely, if s0 < 1 / R0—either naturally or via pre-existing vaccination of a fraction pc = 1 − 1 / R0 (herd immunity threshold)—then dI/dt < 0 from t = 0 onward, and transmission decays monotonically without generating an epidemic wave.

Phase-Plane Integration and Peak Infectious Prevalence (Imax)

Although the nonlinear SIR equations do not admit a closed-form elementary expression for I(t) as an explicit function of time t, dividing the infectious differential equation by the susceptible differential equation eliminates time t and yields an exact separable phase-plane ODE:

di / ds = (βsi − γi) / (−βsi) = −1 + 1 / (R0 · s)

Integrating both sides from the initial state (s0, i0) to any subsequent state (s, i) along the phase trajectory produces the conserved invariant of the SIR system:

i(s) + s − (1 / R0) · ln(s) = i0 + s0 − (1 / R0) · ln(s0)

The epidemic wave reaches its peak infectious prevalence (imax = Imax / N) at the exact inflection point where dI/dt = 0, which occurs when the susceptible fraction has been depleted to the herd immunity threshold s* = 1 / R0. Substituting s* = 1 / R0 (and assuming a small initial seed i0 → 0, s0 ≈ 1) into the phase-plane invariant yields the exact analytical formula for the maximum fraction of the population simultaneously infected at the peak of the outbreak:

imax = 1 − (1 / R0) · [1 + ln(R0)]

For example, a pathogen with R0 = 3.0 reaches its epidemic peak when s* = 1/3 (33.3% susceptible remaining), at which point imax = 1 − (1/3)(1 + ln 3) ≈ 0.300 (30.0% of the entire population simultaneously infectious).

The Final Epidemic Size Equation and Herd Immunity Overshoot

Even after s(t) drops below 1 / R0 and the epidemic wave begins to decline (dI/dt < 0), substantial numbers of infectious individuals (imax) remain in the population and continue infecting remaining susceptibles as the wave winds down—a phenomenon termed epidemic overshoot. As t → ∞, the infectious cohort decays to zero (i(∞) = 0), and the total fraction of the population ever infected approaches the final epidemic size r∞ = R(∞) / N = 1 − s∞. Evaluating the phase-plane invariant at t → ∞ (with i0 → 0, s0 = 1, and s∞ = 1 − r∞) yields the transcendental final size relation:

1 − r∞ = exp(−R0 · r∞)

Because exp(−R0r∞) is strictly positive for all finite R0, s∞ = 1 − r∞ > 0 always holds: an epidemic never infects 100% of the susceptible population, instead extinguishing because of susceptible depletion rather than complete exhaustion of hosts. For R0 = 2.0, although the herd immunity threshold is reached at 50% infected (pc = 0.50), epidemic overshoot carries the final cumulative attack rate to r∞ ≈ 0.797 (79.7% infected).

Compartmental ArchitectureState Flow DiagramGoverning Latent / Immunity ModificationEndemic Equilibrium BehaviorClassic Pathogen Applications
SIR (Closed Outbreak)S → I → RLifelong sterilizing immunity; zero births/deathsDisease extinguishes (I(∞) = 0); final size 1 − r∞ = exp(−R0r∞)Single-season influenza, measles in isolated island populations
SIR with Vital DynamicsμN → S → I → R (minus μ per state)Host birth/death rate μ replenishes susceptiblesDamped oscillations to endemic state s* = 1/R0, i* = μ(R0 − 1)/βChildhood endemic infections (measles, rubella, mumps pre-vaccine)
SEIR (Latent Exposure)S → E → I → RExposed compartment E transitions to I at rate σ (latent period 1/σ)Same R0 and final size r∞ as SIR, but slower growth rate r and delayed peakSARS-CoV-2, Ebola, smallpox, varicella (chickenpox)
SIRS (Waning Immunity)S → I → R → SRecovered immunity wanes back to S at rate ω (immunity duration 1/ω)Persistent endemic equilibrium i* = (1 − 1/R0) · ω / (ω + γ)Seasonal coronaviruses, respiratory syncytial virus (RSV), pertussis
SIS (No Immunity)S ⇌ IDirect return from I to S at recovery rate γ without R stateLogistic-like approach to stable endemic prevalence i* = 1 − 1/R0Neisseria gonorrhoeae, Chlamydia trachomatis, rhinoviruses

Extended Compartmental Architectures: SEIR, SIRS, and Stochastic Models

The SEIR Model and Next-Generation Matrix

Most biological pathogens exhibit an extrinsic or intrinsic incubation/latent period during which a newly infected host harbors replicating pathogen (compartment E, Exposed) but is not yet capable of transmitting it to others. Adding an Exposed compartment that transitions to the Infectious state at rate σ (corresponding to a mean latent period τE = 1 / σ) produces the four-equation SEIR system:

  • dS/dt = −βSI / N
  • dE/dt = βSI / N − σE
  • dI/dt = σE − γI
  • dR/dt = γI

In a closed population without demographic mortality during the latent phase, the SEIR model has the same basic reproduction number (R0 = β / γ) and final epidemic size (r∞) as the corresponding SIR model, because every individual entering E eventually enters I. However, the latent delay 1/σ increases the mean serial interval / generation time (Tg = 1/σ + 1/γ) and reduces the early exponential growth phase rate r (where I(t) ∝ ert), which satisfies the coupled Euler-Lotka characteristic eigenvalue equation:

R0 = (1 + r / σ) · (1 + r / γ)

Endemic Demographic Equilibrium and Stochastic Extinction

When host demographic turnover (per-capita birth and natural mortality rate μ) or waning immunity (rate ω in the SIRS model) continuously replenishes the susceptible pool, an infection with R0 > 1 does not permanently extinguish after the first wave. Instead, trajectories spiral via damped oscillations (with characteristic inter-epidemic period T ≈ 2π / √[μγ(R0 − 1)]) into a stable endemic equilibrium where the susceptible fraction is pinned at s* = 1 / R0 and the endemic infectious fraction is maintained at i* = (μ / β)(R0 − 1).

Finally, when absolute case numbers are small (such as during initial zoonotic spillover or post-wave troughs), the deterministic ODE continuum breaks down and must be replaced by a continuous-time Markov chain (CTMC) Gillespie stochastic simulation or branching process. Even when R0 > 1, a single introduced index case faces a non-zero probability of stochastic fadeout before establishing a self-sustaining chain of transmission; under a continuous-time birth-death branching process with infection rate β and recovery rate γ, the probability of minor outbreak extinction from I(0) = i0 initial cases is exactly Pextinct = (1 / R0)i0.

Frequently Asked Questions

Why doesn't an epidemic infect 100% of the population when no one is vaccinated?

An epidemic stops growing as soon as the susceptible fraction drops to the herd immunity threshold s* = 1 / R0, and eventually burns out at a final attack rate r∞ governed by 1 − r∞ = exp(−R0r∞). Because the exponential function never reaches zero for finite R0, infectious individuals recover faster than they can locate the remaining scattered susceptibles, leaving a permanent unexposed fraction s∞ > 0.

What is the difference between the herd immunity threshold and the final epidemic size?

The herd immunity threshold (pc = 1 − 1/R0) is the immune fraction at which the epidemic wave peaks and starts declining (dI/dt = 0), or the preventive vaccination level needed to block an outbreak prior to introduction. In an uncontrolled epidemic, however, cases present at the peak continue transmitting during the downward phase (epidemic overshoot), pushing the final epidemic size (r∞) substantially higher than pc.

How does adding an Exposed (E) compartment in the SEIR model change the outbreak curve?

Adding a latent period (1/σ) in the SEIR model does not alter R0 = β/γ or the total cumulative number of people infected (r∞) in a closed population, provided no natural deaths occur during latency. However, the waiting time in compartment E stretches the generation interval, slowing the daily growth rate r, delaying the date of the epidemic peak, and lowering peak hospital prevalence (Imax).

References

  1. Kermack, W. O., & McKendrick, A. G. (1927). "A contribution to the mathematical theory of epidemics." Proceedings of the Royal Society of London. Series A, 115(772), 700–721. https://doi.org/10.1098/rspa.1927.0118
  2. Hethcote, H. W. (2000). "The mathematics of infectious diseases." SIAM Review, 42(4), 599–653. https://doi.org/10.1137/S0036144500371907
  3. Anderson, R. M., & May, R. M. (1991). Infectious Diseases of Humans: Dynamics and Control. Oxford University Press. https://doi.org/10.1093/oso/9780198545996.001.0001
  4. Keeling, M. J., & Rohani, P. (2008). Modeling Infectious Diseases in Humans and Animals. Princeton University Press. https://doi.org/10.1515/9781400841035
🧬 Support Open Science
Explore interactive science games on LowKey Games or browse scientific apparel & accessories in the CRV Science Shop.
💡 Spot an inaccuracy or have primary literature to expand this article?
Submit a citation or revision note using your shared CRV Science / LowKey Games profile ID.
Suggest Revision