R0 Basic Reproduction Number Calculator
Calculate the basic reproduction number (R0) for infectious diseases. Model epidemic spread with the SIR model, estimate herd immunity thresholds.
R0 Basic Reproduction Number Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: R0 = beta x c x D
Worked example โ R0: 1.50 | Herd immunity: 33.3% | Doubling time: 8.6 days | ~58% ultimately infected
Formula
R0 = beta x c x D
R0 (basic reproduction number) is the product of beta (transmission probability per contact), c (average number of contacts per unit time), and D (duration of infectiousness). When R0 > 1, an epidemic occurs. The herd immunity threshold is 1 - 1/R0. The SIR model uses differential equations: dS/dt = -beta*c*S*I/N, dI/dt = beta*c*S*I/N - gamma*I, dR/dt = gamma*I.
Worked Examples
Example 1: Seasonal Influenza Outbreak
Problem:A flu strain has transmission probability 0.02 per contact, average 15 contacts/day, and 5-day infectious period. Calculate R0 and herd immunity threshold.
Solution:R0 = beta x c x D = 0.02 x 15 x 5 = 1.50 Herd immunity threshold = 1 - 1/R0 = 1 - 1/1.50 = 0.333 = 33.3% Doubling time = D x ln(2)/ln(R0) = 5 x 0.693/0.405 = 8.6 days Final epidemic size (solving numerically): ~58.3% of population
Result:R0: 1.50 | Herd immunity: 33.3% | Doubling time: 8.6 days | ~58% ultimately infected
Example 2: Highly Contagious Disease
Problem:A disease has transmission probability 0.05, 20 contacts/day, 10-day infectious period in a population of 50,000.
Solution:R0 = 0.05 x 20 x 10 = 10.0 Herd immunity threshold = 1 - 1/10 = 90% Herd immunity count = 0.90 x 50,000 = 45,000 people Doubling time = 10 x ln(2)/ln(10) = 10 x 0.301 = 3.0 days Final epidemic size: ~99.99% (virtually entire population)
Result:R0: 10.0 | 90% herd immunity needed (45,000 people) | Doubles every 3 days
Frequently Asked Questions
What is the basic reproduction number (R0)?
The basic reproduction number, denoted R0 (pronounced 'R-naught'), is the average number of secondary infections caused by a single infected individual in a completely susceptible population. It is one of the most important metrics in epidemiology for understanding the transmission potential of an infectious disease. If R0 > 1, each infected person infects more than one other person on average, leading to epidemic growth. If R0 < 1, the infection will die out over time. R0 is calculated as the product of transmission probability per contact, contact rate, and duration of infectiousness.
What is herd immunity and how is it related to R0?
Herd immunity occurs when a sufficient proportion of a population is immune to an infectious disease (through vaccination or prior infection), making its spread unlikely and thereby protecting non-immune individuals. The herd immunity threshold is calculated as 1 - 1/R0. For measles with R0 of about 15, approximately 93% of the population needs to be immune. For seasonal flu with R0 around 1.3, only about 23% needs immunity. For COVID-19 with R0 of 2-3, the threshold is 50-67%. Achieving herd immunity through vaccination is preferable to natural infection because it avoids the morbidity and mortality associated with widespread disease.
What is the difference between R0 and effective reproduction number (Re)?
R0 represents the transmission potential in a fully susceptible population with no interventions, while the effective reproduction number (Re or Rt) accounts for existing immunity and control measures in the population. Re = R0 x S/N, where S is the number of susceptible individuals and N is the total population. As people become immune through infection or vaccination, S decreases and Re drops below R0. Public health interventions like social distancing, masking, and quarantine also reduce Re by lowering the contact rate. An epidemic is growing when Re > 1 and declining when Re < 1.
What are typical R0 values for common diseases?
R0 values vary widely among infectious diseases. Measles is among the most contagious with R0 of 12-18. Chickenpox has R0 of 10-12. Pertussis (whooping cough) has R0 of 12-17. Smallpox had R0 of 5-7. Polio has R0 of 5-7. HIV has R0 of 2-5. Ebola has R0 of 1.5-2.5. Seasonal influenza has R0 of 1.2-1.4. The original SARS-CoV-2 had R0 of 2-3, while the Omicron variant had R0 of 8-15. These values depend on the pathogen biology, host behavior, and environmental factors. Higher R0 requires higher vaccination coverage for herd immunity.
How does the SIR model work?
The SIR model divides a population into three compartments: Susceptible (S), Infected (I), and Recovered (R). Susceptible individuals become infected at a rate proportional to the contact rate between S and I individuals. Infected individuals recover at a rate gamma (1/infectious period). The model produces epidemic curves showing how many people are infected at each time point. Key predictions include the peak infection time, peak number of infected, and the total fraction ultimately infected (final epidemic size). The basic SIR model assumes homogeneous mixing, no births or deaths, and permanent immunity after recovery, though extensions can incorporate these complexities.
Why must vaccination coverage exceed the herd immunity threshold when a vaccine is imperfect?
The threshold 1 minus 1 over R0 describes the fraction of the population that must actually be immune, not the fraction vaccinated. If a vaccine confers protection in only a proportion of recipients, the required coverage becomes the threshold divided by that efficacy. A pathogen with R0 of 5 needs 80 percent immunity, so a vaccine that protects 90 percent of those who receive it requires about 89 percent coverage. When efficacy falls below the threshold itself, no achievable coverage can interrupt transmission by vaccination alone.
What is the difference between the generation time and the serial interval?
The generation time is the interval between the moment one person is infected and the moment they infect someone else, so it is defined on unobservable infection events. The serial interval is the gap between symptom onset in an infector and in the person they infect, which is what contact tracing can actually record. The two share a mean when incubation periods are independent and identically distributed, but the serial interval is more variable and can even be negative when transmission occurs before symptoms appear.
Why does the final epidemic size exceed the herd immunity threshold?
Transmission does not stop the instant the susceptible fraction crosses the threshold; it only stops growing. At that moment a large number of people are already infectious, and each of them continues to generate secondary cases as the epidemic declines. This overshoot means the final attack rate solved from the final size equation is always larger than 1 minus 1 over R0. It is a central argument for reaching the threshold by vaccination rather than by letting infection run, since overshoot infections are avoidable.
How does doubling time follow from R0 and the infectious period?
During the early phase, when almost everyone is still susceptible, cases multiply by R0 each generation, and a generation lasts roughly the mean infectious period D. The number of generations needed to double is ln 2 divided by ln R0, which gives a doubling time of D times ln 2 over ln R0. With R0 of 4 and a 5 day infectious period that is 5 times 0.693 divided by 1.386, or about 2.5 days. The approximation fails once depletion of susceptibles bends the growth curve.
Why do published R0 estimates for the same pathogen differ so much between studies?
R0 is not a fixed property of a pathogen. It combines pathogen biology with the contact structure of a particular population, so household size, urban density, age mixing patterns, seasonality and behaviour all move it. Estimation method adds further spread: values derived from early exponential growth, from final attack rates, or from the next generation matrix of a structured model need not agree. This is why R0 for a single organism is usually quoted as a range across settings rather than a single number.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎAlpaca Gestation Calculator
Calculate alpaca gestation with inputs, formulas, and instant results.
๐งฎCat Pregnancy Calculator โ Due Date & Gestation
Calculate cat pregnancy with inputs, formulas, and instant results.
๐งฎCow Gestation Calculator
Calculate cow gestation with inputs, formulas, and instant results.
๐งฎDog Pregnancy Calculator: Due Date by Breed
Calculate dog pregnancy with inputs, formulas, and instant results.
๐งฎGoat Gestation Calculator
Calculate goat gestation with inputs, formulas, and instant results.
๐งฎGuinea Pig Pregnancy Calculator โ Due Date
Calculate guinea pig pregnancy with inputs, formulas, and instant results.
๐งฎLlama Gestation Calculator
Calculate llama gestation with inputs, formulas, and instant results.
๐งฎMare Gestation Calculator
Calculate mare gestation with inputs, formulas, and instant results.