SIR Model Calculator (Infectious Disease)
HealthEstimate herd immunity threshold, peak infection fraction, and final attack rate from the basic reproduction number (R0) using the classic SIR epidemic model.
Reviewed by the thecalcu.com team ยท Last updated July 6, 2026
Herd Immunity Threshold
What is a SIR Model?
The SIR Model Calculator applies the classic Susceptible-Infected-Recovered epidemiological model to estimate three key epidemic characteristics, herd immunity threshold, peak infected fraction, and final attack rate, from a single input: the basic reproduction number, R0.
For a related, gathering-specific estimate, see the Event Risk Calculator.
Why Use a SIR Model Calculator?
The SIR model is foundational to epidemiology, and its key results can be derived directly from R0 using closed-form and numerically solvable equations. This calculator makes those classic results accessible without needing to run a full differential equation simulation.
Who Should Use This Calculator?
- Students of epidemiology or applied mathematics learning the classic SIR model's key results.
- Public health communicators illustrating how R0 drives outbreak dynamics.
- Researchers and writers wanting a quick reference calculation for a given R0 value.
- Anyone curious about the mathematical relationship between R0 and epidemic scale.
What Insights Does the SIR Model Calculator Give You?
The Herd Immunity Threshold shows what fraction of the population would need immunity for transmission to stop growing. The Estimated Peak Infected Fraction shows the highest proportion of the population infected at any single point in an unmitigated epidemic. The Estimated Final Attack Rate shows the total proportion of the population eventually infected over the full course of an unmitigated epidemic.
How to use this SIR Model calculator
- Enter the basic reproduction number (R0) for the scenario you're exploring.
- Read the Herd Immunity Threshold, Peak Infected Fraction, and Final Attack Rate instantly.
- Try different R0 values to see how sensitively these outputs respond to changes in transmissibility.
Show formula & methodology โShow less โ
Formula & Methodology
Herd Immunity Threshold = 1 โ 1/R0 Peak Infected Fraction = 1 โ 1/R0 โ ln(R0)/R0 Final Attack Rate (z) is solved from the final-size relation z = 1 โ e^(โR0ยทz) using iterative approximation. Worked example, an R0 of 3: Herd Immunity Threshold = 1 โ 1/3 = 66.7% Peak Infected Fraction = 1 โ 1/3 โ ln(3)/3 โ 30.6% Final Attack Rate solved from z = 1 โ e^(โ3z) โ 94%
Frequently Asked Questions