Epidemic modeling

SIR Model Explorer

Adjust SIR parameters to simulate how an infectious disease propagates through a population. This simplified model assumes homogeneous mixing, constant parameters, and no births, deaths, or reinfections. Use it to understand basic concepts like R₀, peak infections, and epidemic duration.

Average contacts per day × probability of transmission per contact.

Typically 1 ÷ infectious period (e.g., 1/10 days = 0.1).

Key metrics

  • R₀ (β ÷ γ): 3.00
  • Peak infected: 156,057
  • Peak day: 54

Population status (day 180)

  • Susceptible: 26,662
  • Infected: 5
  • Recovered: 473,333
Growing outbreak (R₀ > 1)

Each infected person infects >1 other person. Intensify interventions (masking, distancing, vaccination) to reduce transmission.

Modify β (contact rate) to model interventions like distancing or masking.

Simulation Table

DaySusceptibleInfectedRecovered
0499,950500
1499,935605
2499,9177211
3499,8958618
4499,86910427
5499,83812437
6499,80114950
7499,75617965
8499,70321582
9499,638258104
10499,561309130
11499,468371161
12499,357445198
13499,224534242
14499,064641296
15498,872768360
16498,642922437
17498,3661,105529
18498,0361,325639
19497,6401,589772
20497,1651,904931
21496,5972,2821,121
22495,9182,7331,349
23495,1043,2731,623
24494,1323,9181,950
25492,9704,6882,342
26491,5845,6062,810
27489,9306,6993,371
28487,9617,9984,041
29485,6199,5404,841
30482,84011,3665,795
31479,54713,5226,931
32475,65716,0608,283
33471,07319,0379,889
34465,69222,51411,793
35459,40126,55414,045
36452,08231,21816,700
37443,61436,56419,822
38433,88242,64023,478
39422,78249,47627,742
40410,23157,07932,690
41396,18265,42138,398
42380,63174,43044,940
43363,63383,98552,383
44345,30993,91060,781
45325,852103,97670,172
46305,524113,90780,570
47284,643123,39791,960
48263,569132,131104,300
49242,673139,814117,513
50222,316146,190131,495
51202,816151,071146,114
52184,432154,347161,221
53167,352155,993176,655
54151,689156,057192,255
55137,485154,654207,860
56124,728151,947223,326
57113,357148,123238,520
58103,282143,385253,333
5994,397137,932267,671
6086,584131,951281,464

Showing first 61 days. Adjust “Simulation days” to view shorter or longer periods.

How to Use This Calculator

1

Estimate β (transmission) and γ (recovery)

β reflects contact frequency and infectiousness; γ is typically 1 ÷ duration of infectiousness.

2

Set initial conditions

Define how many individuals are currently infected or immune. The rest are assumed susceptible.

3

Interpret results as conceptual guidance

The SIR model is simplified. Real-world outbreaks depend on demographics, behavior, vaccines, and variant characteristics.

Formula

SIR differential equations:

  • dS/dt = −βSI ÷ N
  • dI/dt = βSI ÷ N − γI
  • dR/dt = γI

R₀ = β ÷ γ. Epidemic grows when R₀ > 1. Solutions here use a simple daily-step Euler approximation.

Full Description

Mathematical models such as SIR help visualize how infectious diseases spread and respond to interventions. β can decrease with masking, distancing, ventilation, or vaccination, while γ increases when treatment shortens infectious periods. Realistic models incorporate additional compartments (SEIR), age structure, mobility, and stochastic effects, but the SIR baseline remains a valuable conceptual tool.

Use this calculator for educational exploration. For policy or clinical decisions, rely on expert epidemiologic analyses, updated surveillance data, and validated models tailored to the pathogen of interest.

Frequently Asked Questions

What does β represent?

β is the transmission rate: contacts per day × probability of transmission per contact. Lower β by reducing contacts or improving protection.

How is γ determined?

γ is the recovery/removal rate. If infectious period averages 7 days, γ ≈ 1/7 ≈ 0.14.

Can I model waning immunity?

Waning immunity requires an SIRS or SEIRS model. This calculator assumes recovered individuals stay immune.

Why do results differ from real outbreaks?

Real epidemics involve heterogeneity, behavior change, vaccinations, seasonality, and stochastic effects that the basic SIR model omits.