This calculator is for general information and education. It is not medical advice and does not replace the advice of your doctor or a registered dietitian.
The SIR model is the starting point of epidemic modeling, and two of its main results have closed forms. The SIR model calculator takes R0, the infectious period and the population to give the final size of the epidemic, the people ever infected, the peak share infected at the same time, the people infected at the peak and the early doubling time.
How the calculation works
- The SIR model splits a population into susceptible, infected and recovered people. The infection rate is R0 ÷ the infectious period and the recovery rate is 1 ÷ the infectious period.
- Final size: the share z of the population that is ever infected solves z = 1 − e^(−R0 × z). The calculator finds it with Newton’s method. For R0 below 1, no large outbreak occurs.
- Peak share infected at once = 1 − (1 + ln R0) ÷ R0, for a population that starts fully susceptible.
- Early doubling time = ln 2 × infectious period ÷ (R0 − 1), while almost everyone is still susceptible. The model assumes a closed population, no births, no deaths and even mixing.
Example
For R0 = 2.5, an infectious period of 7 days and 1,000,000 people, the final size solves z = 1 − e^(−2.5 z), which gives z ≈ 0.893, so 892,645 people are infected over the epidemic. At the peak 1 − (1 + ln 2.5) ÷ 2.5 = 23.3% are infected at once, about 233,484 people. Early cases double every ln 2 × 7 ÷ 1.5 ≈ 3.2 days.
Why it matters
The model explains why an epidemic grows, peaks and fades without everyone being infected at once, and why reducing R0 flattens the curve. It is used in courses, in the news and in public health to give a sense of the scale of an outbreak.
Good to know
The results are for a closed population of fully susceptible people who mix evenly and who are immune after recovery. Real outbreaks are shaped by behavior, interventions, seasonality and uneven contact. The final size of 89% does not mean that 89% will be sick at one time. This tool is educational and is not a forecast. Follow your public health service for guidance on a real outbreak.
Related tools
The logistic growth calculator models growth that levels off, the exponential growth calculator models the early phase and the cell doubling time calculator measures doubling.