Skip to content
D DocNectar

Free Infectious Disease and Epidemic (SIR Model) Calculator

Simulate a basic SIR (Susceptible-Infected-Recovered) epidemic model over time as an educational illustration.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

Simulates the basic compartmental SIR (Susceptible-Infected-Recovered) epidemic model using the standard discrete-time difference equations taught in mathematical epidemiology textbooks: S(t+1) = S(t) - beta S(t) I(t)/N, I(t+1) = I(t) + beta S(t) I(t)/N - gamma I(t), R(t+1) = R(t) + gamma I(t). This is a simplified, purely mathematical educational model with well-known simplifying assumptions (homogeneous mixing, constant beta/gamma, no births/deaths/reinfection) — it is an educational illustration of epidemic dynamics, not a real outbreak forecast or public-health prediction.

How it works

Enter the total population, initial infected count, transmission rate (beta), recovery rate (gamma), and number of days to simulate. The tool iterates the SIR difference equations day by day and reports the peak infected count, the day it occurs, and the final S/I/R breakdown.

  1. Enter total population (N).
  2. Enter initial infected count.
  3. Enter transmission rate (beta).
  4. Enter recovery rate (gamma).
  5. Enter simulate for (days).
  6. Click Calculate to see your results.

Examples

Population 10,000, 10 initial infected, beta 0.3, gamma 0.1, 100 days

The model projects an epidemic curve where the infected count rises to a peak before declining as the susceptible pool shrinks and recoveries accumulate — S+I+R remains constant at 10,000 throughout.

Who should use it

  • Mathematical epidemiology education.
  • Understanding how R0, transmission rate, and recovery rate shape an epidemic curve.

Industry applications

  • Public health education
  • Applied mathematics coursework

Advantages

  • Uses the standard, well-established discrete-time SIR equations.
  • Conserves total population exactly across all time steps.

Limitations

  • Assumes homogeneous mixing and constant rates — real epidemics have neither.
  • Does not model births, deaths, reinfection, or interventions changing over time.

Common mistakes to avoid

  • Treating the projected numbers as a real-world forecast rather than an educational illustration of model dynamics under fixed assumptions.

Best practices

  • Try varying beta and gamma to see how the peak size and timing change — this is the main educational value of the model.

Tips

  • The basic reproduction number R0 = beta/gamma is the key summary statistic: values above 1 predict growth, values below 1 predict decline, in this simplified model.

Frequently asked questions

Yes, with no signup and no limit on how many calculations you run.
No — this is a simplified textbook mathematical model with strong simplifying assumptions. It illustrates how epidemics can behave in theory, not a prediction for any real disease or population.
Beta is the transmission rate (how quickly the infection spreads through contact between susceptible and infected people), and gamma is the recovery rate (the fraction of infected people who recover each time step). The ratio beta/gamma gives the model's basic reproduction number, R0.

Get new calculators and guides in your inbox

No spam — just new tools like Infectious Disease and Epidemic Calculator and practical guides.

Favorites