SIR Compartmental Epidemic Model

Research
Introduced by
Kermack & McKendrick
Year
1927
Type
Deterministic compartmental ODE model
Family
Epidemic modelling

What does it do?

The SIR model is a foundational mathematical framework for describing how an infectious disease spreads through a population.

Introduced by W. O. Kermack and A. G. McKendrick in 1927, it divides a population of size N, treated as constant over the epidemic, into three compartments: Susceptible (S), Infectious (I) and Recovered (R). A system of ordinary differential equations governs the flow of individuals between compartments, using two parameters: the transmission rate β and the recovery rate γ.

The intuition behind the method

Imagine a rumour spreading through a school. Most students start out unaware (susceptible). Once one student hears it and tells others, the rumour spreads rapidly. Eventually, everyone has either heard it and moved on (recovered) or never heard it because everyone around them already had. The SIR model treats disease transmission the same way: people move from 'could catch it' to 'currently spreading it' to 'no longer contagious', and the balance of those flows determines whether an epidemic explodes or fizzles out.

History

Kermack and McKendrick published their analysis in 1927 in the Proceedings of the Royal Society A. The paper considers a community of initially equally susceptible individuals in which one or more infected persons spread infection by contact, the population remains effectively constant over the epidemic, and a single infection confers complete immunity. Its central question was whether an epidemic can end while many susceptible individuals remain, and the authors refer to the earlier work of Ross and Hudson (1915–17), which attacks the same problem and which the present paper carries to a further stage.

When to use it

Choose the SIR model for an infection that leaves lasting immunity after one episode, spreads in a population that can be treated as closed and roughly constant over the epidemic period, and is tracked with case or incidence data. It suits questions about whether an outbreak will grow, the threshold for outbreak, and the broad effect of reducing transmission or increasing immunity. Do not use it when immunity wanes or reinfection occurs, when a latent period is long enough to shape the epidemic curve (use SEIR), when age, spatial or network structure drives transmission, or when the population is small enough that chance events matter (a stochastic model is then needed). If births, deaths or migration are significant over the study period, vital-dynamics extensions are required.

Limitations and considerations

  • Assumes homogeneous mixing, so every individual is equally likely to contact any other and age structure, spatial spread and social networks are absent.
  • Assumes that a single infection confers complete, permanent immunity; this fails for diseases with waning or partial immunity.
  • Being deterministic, it cannot represent chance fade-out of an outbreak in small or isolated populations.
  • Has no latent stage, so newly infected people become infectious immediately; this tends to overstate early epidemic speed relative to models that include a latent period.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Few parameters: the basic form needs only β and γ, together with N and the initial conditions, so it can be set up without individual-level contact data.
  • The threshold R₀ = β/γ follows directly from the equations and gives an explicit condition for whether an outbreak can grow, which is why it is central to vaccination targets.
  • The final epidemic size z, the fraction of the population ultimately infected, satisfies z = 1 − exp(−R₀z). This implicit equation has no closed-form solution and is solved numerically; it has a non-zero root only when R₀ > 1. It applies under homogeneous mixing, in a closed population with a fully susceptible start, so that S(0) is approximately N.
  • The parameters have direct meanings: γ is the reciprocal of the mean infectious period (γ = 1/D), so the infectious period D = 1/γ can be read directly in units of time.

Applications

  • Estimating the basic reproduction number of a new pathogen from early outbreak counts, subject to the identifiability caveats above.
  • Calculating the herd immunity threshold 1 − 1/R₀ as a rough target for vaccination coverage in a homogeneous population.
  • Using the infectious compartment as a rough proxy for active case numbers when projecting demand, while recognising that the model ignores reporting and treatment delays.
  • Comparing scenarios in which the transmission rate β is reduced over time to represent interventions.
  • Teaching the basic logic of epidemic thresholds in public health and mathematical biology courses.

How it works

How it works

1

At every time point the population N is divided into three non-overlapping groups. S(t) are individuals not yet infected and still susceptible, I(t) are individuals currently infected and able to transmit, and R(t) are individuals removed from the infectious state by recovery or death, who are assumed to be permanently immune after a single infection. Because the population is treated as constant over the epidemic, S + I + R = N holds throughout.

Formula
N = S(t) + I(t) + R(t)
2

Susceptible individuals move into the infectious state at a rate proportional to both the number of susceptibles and the fraction of the population that is infectious. The parameter β combines how often contacts occur with the probability that a contact between a susceptible and an infectious person transmits infection. The term βSI/N assumes mass-action mixing, meaning every individual is equally likely to contact any other.

Formula
\frac{dS}{dt} = -\beta S(t) I(t) / N
3

The infectious compartment gains individuals from S and loses them through removal. The recovery rate γ is the inverse of the mean duration of infectiousness (γ = 1/D). Infectious numbers grow while new infections exceed removals, that is while βS/N > γ, and decline once the susceptible fraction falls below the level where βS/N equals γ.

Formula
\frac{dI}{dt} = \beta S(t) I(t) / N - \gamma I(t)
4

R₀ = β/γ is the expected number of secondary cases produced by one infectious individual introduced into a fully susceptible population. In this model an outbreak can take off only when R₀·S(0)/N > 1, where S(0)/N is the initial susceptible fraction; this reduces to R₀ > 1 when the population is almost entirely susceptible at the start. When R₀·S(0)/N ≤ 1, infections decline from the start. Under the same assumptions, the fraction of the population that must be immune to stop sustained spread is 1 − 1/R₀, the herd immunity threshold.

Formula
R_0 = \beta / \gamma

Common pitfalls

  • Estimating β and γ separately from incidence counts alone is often not possible, because different parameter combinations can produce similar curves; an independent estimate of the infectious period is usually needed.
  • Treating R₀ as a fixed biological constant: in practice it depends on behaviour, season and interventions.
  • Ignoring population heterogeneity can substantially under- or over-estimate the herd immunity threshold.
  • Confusing the recovered compartment with 'immune' when the disease allows reinfection or when the data track confirmed cases rather than true recoveries.

Frequently asked questions

What is the difference between β and R₀?

β is the per-capita transmission rate (contacts per unit time × probability of transmission per contact), while R₀ = β/γ normalises β by the recovery rate to give the average number of secondary infections per primary case in a fully susceptible population. R₀ is dimensionless and comparable across settings; β is not.

Can the SIR model predict the exact size of an epidemic?

Not exactly. The deterministic SIR model gives the final epidemic size, the fraction of the population ultimately infected, as the solution of an implicit equation determined by R₀ and the initial susceptible fraction. That result holds only under the model's assumptions; heterogeneity, behavioural change and interventions can produce large differences from observed outbreaks.

When should I use SEIR instead of SIR?

Use SEIR when infected individuals spend a substantial period in a latent stage before they become infectious, relative to the time scale of the outbreak. The exposed compartment delays the epidemic curve and generally lowers peak incidence compared with SIR. When the latent period is short relative to the infectious period, SIR is often a reasonable approximation.

Related methods

Sources

  1. Kermack, W. O., & McKendrick, A. G. (1927). A contribution to the mathematical theory of epidemics. Proceedings of the Royal Society A, 115(772), 700–721.

    Open DOI reference