Skip to content
Omnikalc

SIR epidemic model calculator: how many people are infected?

Enter R0, the infectious period and the population to get the final size of an epidemic in the SIR model, the peak share infected and the early doubling time.

Updated on
Your inputs

Value out of range

days

Value out of range

Value out of range

Results

Share of the population ever infected

89.3%

People ever infected
892,645
Peak share infected at the same time
23.3%
People infected at the peak
233,484
Early doubling time of the cases
3.2 days

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.

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.

Frequently asked questions

What is the SIR model?

The SIR model is a classic model of epidemics, proposed by Kermack and McKendrick in 1927. It tracks three groups: susceptible people who can catch the disease, infected people who can pass it on and recovered people who are immune. Simple equations describe how people move from one group to the next.

What is the final size of an epidemic?

It is the share of the population that has been infected when the epidemic ends. With R0 = 2.5, about 89% are infected if nothing is done, since the epidemic keeps going until there are too few susceptible people left. It is the solution of z = 1 − exp(−R0 z), which does not depend on the infectious period.

Why does the peak depend on R0 only?

The share infected at the peak depends on R0, and the timing of the peak depends on the infectious period and the number of initial cases. A higher R0 gives a taller and earlier peak. A lower R0 gives a flatter curve with a smaller peak, which is what control measures try to do.

What does the model leave out?

It leaves out an incubation period, births and deaths, age groups, different contact levels, changes in behavior, vaccination and waning immunity. More detailed models add these. The SIR numbers are a baseline to understand the shape of an epidemic and not a prediction for a real outbreak.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.