Free SIR Model Calculator | Infectious Disease Simulator
Total Population
Infection Preset
Enter population data and configure disease parameters to simulate epidemic spread
Understanding the SIR Model Calculator
Curious about how a viral outbreak — from seasonal influenza to SARS‑CoV‑2 — unfolds over time and what can be done to slow its spread? The SIR Model Calculator (also called a Susceptible Infected Recovered Calculator) is a free infectious disease simulator that lets you explore exactly that. By adjusting a few key parameters, you can model any contagious disease and observe how the number of infected and recovered individuals changes day by day. Whether you're interested in the basic reproduction number or want to compare pandemic vs. epidemic scenarios, this epidemic simulation tool gives you a hands‑on way to understand the dynamics of an infection.
What This Viral Infection Simulator Does
The SIR model is a well‑known epidemiological framework that divides a population into three compartments: Susceptible, Infected, and Recovered (or removed). This infectious disease calculator uses an iterative version of the classic SIR differential equations, making it straightforward to simulate an epidemic without advanced calculus. You simply provide the initial conditions — population size, starting percentages of each group, and disease‑specific parameters — and the tool computes how the infection progresses over time.
The underlying equations are:
Here is the total population, represents the average number of contacts per unit time that lead to transmission, and is the recovery rate (the inverse of the average infectious period). The product gives the basic reproduction number, often denoted .
The Role of the Basic Reproduction Number ()
is a cornerstone of SIR model epidemiology. It tells you, on average, how many secondary infections a single infected person will cause in a fully susceptible population. When , the infection spreads and the number of cases grows; when , the outbreak eventually dies out. Different diseases have widely different values — measles ranges from 12 to 18, while seasonal influenza typically falls between 0.9 and 2.1. Because real‑world is influenced by many factors (social behavior, hygiene, population density), it is often given as a range rather than a single number.
How to Use the Infectious Disease Calculator
Using this epidemic simulation tool is straightforward:
- Enter the total population size (use 1 if you only care about percentages).
- Specify the percentage or number of Susceptible, Infected, and Immune (Recovered) individuals. You can input simple formulas — for example,
100 × 5000 / 1000000to calculate the infected percentage from absolute counts. - Choose a preset disease (e.g., influenza, measles) or select “Other infection” and manually enter two of the three parameters (, , ); the third will be computed automatically.
- Set the simulation duration (how many days you want to project).
The results are displayed as a dynamic chart and summary table, showing the peak of the infection, the final number of recovered/removed, and how the curves evolve.
Fighting an Epidemic: Vaccination and Isolation
The SIR model allows you to test common intervention strategies. Vaccination directly increases the Recovered (immune) fraction, effectively lowering the susceptible pool. If you set the immune percentage to 95% or higher, you can observe herd immunity in action — the outbreak quickly fizzles. Isolation and social distancing reduce the effective contact rate, which can be modeled by decreasing (and thereby ). Even a moderate reduction that pushes below 1 is enough to eventually stop the spread.
Limitations of the SIR Model
While the SIR model is a powerful tool for understanding the big picture, it makes several simplifying assumptions:
- It assumes lifelong immunity (not always true for diseases like influenza or COVID‑19).
- It ignores births and natural deaths (reasonable only for short‑term simulations).
- It uses a constant throughout the simulation, meaning it does not automatically account for behavioral changes such as mask‑wearing or stricter hygiene during an outbreak.
Despite these simplifications, the SIR Model Calculator remains a highly educational and practical infectious disease calculator for exploring how viruses spread and how different countermeasures can alter the course of an epidemic.
FAQ
1. How do I interpret the basic reproduction number R₀ in the SIR model?
R₀ tells you the average number of secondary infections caused by one infected person in a fully susceptible population. If R₀ > 1, the infection spreads; if R₀ < 1, it eventually dies out. You can adjust R₀ in the calculator by setting β and γ.
2. Can I use this calculator to model COVID‑19 or influenza?
Yes, the SIR model works for any contagious disease that follows similar transmission dynamics. You can choose a preset (e.g., influenza, measles) or enter custom parameters for pathogens like SARS‑CoV‑2. Keep in mind the model assumes lifelong immunity and a constant R₀, which may not fully capture real‑world behavior.
3. How do I simulate social distancing or vaccination using this tool?
To simulate vaccination, increase the initial percentage of immune (Recovered) individuals. For isolation or social distancing, lower the effective R₀ by reducing β (the transmission rate). For example, setting R₀ below 1 will cause the outbreak to decline over time.
4. What do the three compartments — S, I, R — represent?
Susceptible (S) are individuals not yet infected and not immune. Infected (I) are currently infectious and able to transmit the disease. Recovered/Removed (R) includes those who have recovered and gained immunity, plus any deaths. The model tracks how people move from S → I → R over time.
How to Use
- Enter the total population for your region, then set the number of initially infected and recovered/immune individuals.
- Choose an infection preset or select 'Custom' to manually adjust R₀ and recovery time values.
- Set the simulation duration in days and view the SIR epidemic curves along with key statistics.