Advertisement

SIR epidemic model calculator

Simulate a closed susceptible-infectious-recovered population with explicit transmission and recovery assumptions and a time-series results table.

Calculator

Transmission coefficient (per day)
0.40000
Recovery coefficient (per day)
0.20000
Initial effective reproduction number
1.9800
Final susceptible people
202.8004
Final infectious people
4.4583
Final recovered / removed people
792.7413
SIR trajectory
DaySusceptibleInfectiousRecovered / removedNew infections since previous rowNew removals since previous row
0.0000990.000010.00000.00000.00000.0000
1.0000985.636212.15502.20884.36382.2088
2.0000980.362914.74604.89105.27332.6822
3.0000974.010817.84798.14136.35213.2502
4.0000966.388121.542212.06977.62273.9284
5.0000957.282325.914416.80339.10594.7336
6.0000946.463331.050322.486410.81905.6831
7.0000933.691037.029329.279712.77236.7933
8.0000918.725743.915637.358714.96538.0790
9.0000901.343951.747146.909017.38189.5504
10.0000881.358160.521458.120519.985811.2114
11.0000858.641370.181971.176822.716813.0564
12.0000833.152580.603486.244125.488815.0673
13.0000804.960991.5835103.455628.191617.2115
14.0000774.2639102.8400122.896130.697019.4405
15.0000741.3936114.0197144.586632.870221.6905
16.0000706.8093124.7187168.472034.584323.8854
17.0000671.0726134.5136194.413835.736725.9418
18.0000634.8094143.0005222.190136.263327.7763
19.0000598.6624149.8340251.503636.147029.3135
20.0000563.2437154.7600281.996335.418730.4927
21.0000529.0927157.6367313.270734.151031.2744
22.0000496.6472158.4403344.912532.445531.6418
23.0000466.2289157.2570376.514130.418331.6016
24.0000438.0425154.2630407.694528.186331.1803
25.0000412.1864149.6990438.114625.856130.4201
26.0000388.6694143.8427467.487923.517029.3733
27.0000367.4309136.9843495.584921.238628.0970
28.0000348.3604129.4059522.233619.070426.6488
29.0000331.3157121.3677547.316617.044825.0830
30.0000316.1365113.0981570.765415.179123.4487
31.0000302.6564104.7902592.553413.480221.7881
32.0000290.710096.6006612.689411.946420.1360
33.0000280.138988.6514631.209710.571118.5203
34.0000270.794681.0333648.17219.344216.9623
35.0000262.540773.8099663.64948.253915.4773
36.0000255.252967.0220677.72517.287814.0757
37.0000248.819460.6918690.48886.433512.7637
38.0000243.140454.8267702.03295.679011.5441
39.0000238.127149.4227712.45025.013310.4173
40.0000233.700744.4674721.83194.42649.3817
41.0000229.791739.9424730.26593.90908.4340
42.0000226.338835.8252737.83603.45297.5702
43.0000223.287932.0906744.62153.05096.7854
44.0000220.591628.7124750.69612.69646.0746
45.0000218.207925.6637756.12842.38375.4323
46.0000216.100022.9182760.98182.10784.8534
47.0000214.235720.4502765.31421.86444.3324
48.0000212.586218.2351769.17871.64943.8645
49.0000211.126616.2499772.62351.45963.4449
50.0000209.834714.4728775.69251.29193.0690
51.0000208.691012.8838778.42521.14372.7327
52.0000207.678311.4644780.85731.01272.4321
53.0000206.781510.1974783.02110.89682.1638
54.0000205.98729.0674784.94540.79431.9243
55.0000205.28368.0602786.65620.70361.7108
56.0000204.66037.1629788.17680.62341.5206
57.0000204.10796.3641789.52800.55231.3512
58.0000203.61855.6532790.72830.48941.2003
59.0000203.18485.0207791.79450.43371.0662
60.0000202.80044.4583792.74130.38440.9468

Advertisement

How this calculator works

The deterministic SIR equations track a closed, randomly mixing population with constant rates and lasting removal from susceptibility. You enter R0 and the mean infectious period rather than selecting an infection with a fixed preset. The model uses fourth-order Runge-Kutta integration with smaller internal steps than the reporting interval. Expected counts may be fractional. Births, deaths, reinfection, latency and interventions are absent. The result is an estimate for information only and is not medical advice.

Formula

dS/dt = -beta S I/N; dI/dt = beta S I/N - gamma I; dR/dt = gamma I. gamma = 1 / mean infectious period; beta = R0 gamma. S + I + R = N.

Worked example

With 1000 people, 90% susceptible, 10% infectious, R0 = 0 and a five-day infectious period, no new infections occur. After five days I = 100/e = 36.7879 and R = 63.2121, while S stays 900.

Advertisement

Frequently asked questions

Is this a current COVID-19 forecast?

No. It is a teaching model with user-supplied assumptions. Calibration, uncertainty and changing population behaviour are not included.

Why are new removals different from new infections?

Infections transfer people from S to I; removals transfer them from I to R after an infectious period. They are different flows.

Why use a table instead of a chart?

The calculator engine supports tables. Each row reports the state and interval flows; up to 500 rows are allowed.

Sources

Advertisement