Advertisement

Lotka-Volterra calculator

The Lotka-Volterra equations describe a predator and its prey: the prey breed when scarce, the predators follow the prey, and both cycle through booms and crashes. Enter the starting populations and the four interaction rates to see the cycles and their period.

Calculator

Growth of the prey without predators.

The chance a predator meets and eats prey, scaled by prey numbers.

Death rate of predators without prey.

How efficiently eaten prey become new predators.

Prey at equilibrium
25.00
Predators at equilibrium
20.00
Approximate cycle period (years)
8.89
Highest prey population
66.96
Lowest prey population
5.7990
Highest predator population
41.56
What this means
Starting at 50 prey and 10 predators, the model settles into a closed cycle with about 8.9 years between prey peaks. The cycle is not damped: the Lotka-Volterra model conserves a quantity and returns to the same amplitudes indefinitely. The starting point sets the amplitude, which is why the initial populations change the height of the cycle as well as its phase.
Predator and prey populations over time Line chart. The data table follows. 0 0 5 16.74 10 33.47 15 50.21 20 66.94 Time (years) Population
  • Prey
  • Predators
Predator and prey populations over time data
SeriesTime (years)Population
Prey050
Prey0.152.49451268047676
Prey0.254.95378802012643
Prey0.357.33600095936442
Prey0.459.591847562977286
Prey0.561.6646122195178
Prey0.663.49085309991763
Prey0.700000000000000165.00194046842083
Prey0.866.12667759776743
Prey0.966.7951698093811
Prey166.94395583585448
Prey1.166.52216099834784
Prey1.265.49808863884054
Prey1.363.86530187157202
Prey1.400000000000000161.64698720710931
Prey1.558.89739046242922
Prey1.655.699489478784976
Prey1.752.158805325548606
Prey1.848.39416489759835
Prey1.900000000000000144.52699635581162
Prey240.67106625178241
Prey2.136.924333466480846
Prey2.233.36392224898151
Prey2.300000000000000330.04439068073469
Prey2.426.998783773245844
Prey2.524.241580820759967
Prey2.621.772586148058945
Prey2.719.580975083012806
Prey2.800000000000000317.648966339236505
Prey2.915.954847353712063
Prey314.475276134967046
Prey3.113.186907729926546
Prey3.212.067455330843718
Prey3.300000000000000311.096314032888131
Prey3.410.254867567616312
Prey3.59.526578777708327
Prey3.68.896941938626432
Prey3.78.35335398928873
Prey3.80000000000000037.884944293898732
Prey3.97.482389123736375
Prey47.137727242016889
Prey4.16.8441861249671465
Prey4.26.59602375476561
Prey4.36.388387958334465
Prey4.46.217193447776705
Prey4.56.0790156730417015
Prey4.60000000000000055.971000058031692
Prey4.75.890784971486228
Prey4.85.836436757257075
Prey4.95.806395231586339
Prey55.799428194129569
Prey5.10000000000000055.814593661358791
Prey5.25.851208695695777
Prey5.35.90882386002635
Prey5.45.987202469403226
Prey5.56.08630393740801
Prey5.60000000000000056.206270623448623
Prey5.76.347417679946495
Prey5.86.510225476177559
Prey5.96.6953342399198394
Prey66.903540610456024
Prey6.10000000000000057.135795838177237
Prey6.27.39320539813289
Prey6.37.677029808245057
Prey6.47.988686458189342
Prey6.58.329752262531338
Prey6.60000000000000058.70196695174682
Prey6.79.107236807145563
Prey6.89.547638630107922
Prey6.910.025423711805189
Prey710.543021535796859
Prey7.100000000000000511.103042901350479
Prey7.211.708282098432827
Prey7.312.361717694101984
Prey7.413.066511402073488
Prey7.513.826004399629364
Prey7.600000000000000514.643710325325472
Prey7.715.523304033068746
Prey7.816.468604988386293
Prey7.917.483553965764926
Prey818.572181435904156
Prey8.119.738565712299756
Prey8.220.98677855140378
Prey8.322.32081546390252
Prey8.423.7445074922473
Prey8.525.261410640627417
Prey8.626.874668513282682
Prey8.70000000000000128.586843040788686
Prey8.830.399707483518462
Prey8.932.31399525434579
Prey934.329097595208395
Prey9.136.44270292840045
Prey9.20000000000000138.65037102038892
Prey9.340.94503629640275
Prey9.443.31643723663927
Prey9.545.7504734769248
Prey9.648.22849996916612
Prey9.70000000000000150.72657950964555
Prey9.853.21473246609969
Prey9.955.65624693489891
Prey1058.007144638456936
Prey10.160.21593707693199
Prey10.20000000000000162.223849520931054
Prey10.363.965729577401284
Prey10.465.37187798145808
Prey10.566.37102010043178
Prey10.666.89454975040945
Prey10.70000000000000166.88199626586312
Prey10.866.28738186278527
Prey10.965.08577749036749
Prey1163.27901602733912
Prey11.160.89932063561918
Prey11.20000000000000158.009706150882444
Prey11.354.70049988516793
Prey11.451.08214305754784
Prey11.547.275339013413955
Prey11.643.40028013703493
Prey11.70000000000000139.566851232525295
Prey11.835.86732335449639
Prey11.932.37230180459823
Prey1229.129880044229775
Prey12.126.167343389222747
Prey12.20000000000000123.49448452056643
Prey12.321.1076098943658
Prey12.418.99351957510635
Prey12.517.133009627346663
Prey12.615.503688153188092
Prey12.70000000000000114.0820720753161
Prey12.812.845036461546135
Prey12.911.770735298987708
Prey1310.839121430435812
Prey13.110.03218103738474
Prey13.2000000000000019.333976893297638
Prey13.38.730572080469168
Prey13.48.209885751995083
Prey13.57.761516250401361
Prey13.67.376554574638432
Prey13.7000000000000017.047402314707826
Prey13.86.767602047979419
Prey13.96.531684127568948
Prey146.335031208975889
Prey14.16.173760300871984
Prey14.2000000000000016.044621251292287
Prey14.35.944910150165694
Prey14.45.872395976226037
Prey14.55.825258828577924
Prey14.65.8020381869807895
Prey14.7000000000000015.801589793396601
Prey14.85.823049911656023
Prey14.95.865805885231338
Prey155.92947206570151
Prey15.16.01387032198995
Prey15.2000000000000016.119014461193886
Prey15.36.245097995834896
Prey15.46.392484780572784
Prey15.56.561702115182407
Prey15.66.753435971352389
Prey15.7000000000000016.968528050025162
Prey15.87.207974414801476
Prey15.97.4729254764153685
Prey167.764687124252639
Prey16.18.084722813902488
Prey16.28.434656425120554
Prey16.38.816275702419127
Prey16.49.231536080614102
Prey16.59.682564679616343
Prey16.610.17166422585167
Prey16.710.701316620926612
Prey16.811.274185830199492
Prey16.911.893119703078067
Prey1712.56115026105057
Prey17.113.281491896112648
Prey17.214.0575368083135
Prey17.314.892846872979595
Prey17.40000000000000215.791140961540064
Prey17.516.756276539893207
Prey17.617.792224129414176
Prey17.718.90303293197159
Prey17.820.092785585335555
Prey17.90000000000000221.3655396228512
Prey1822.72525275577027
Prey18.124.175688574765452
Prey18.225.72029867948135
Prey18.327.362076599147137
Prey18.40000000000000229.103378182682704
Prey18.530.945702451527172
Prey18.632.88942628980001
Prey18.734.933485905318626
Prey18.837.07499790662609
Prey18.90000000000000239.308813372456335
Prey1941.62699983475112
Prey19.144.018249216434704
Prey19.246.467215233033656
Prey19.348.9537925950973
Prey19.40000000000000251.45236377723804
Prey19.553.931058517781274
Prey19.656.35109780281428
Prey19.758.66632838506862
Prey19.860.823094715387555
Prey19.90000000000000262.76063815273125
Prey2064.41224897111661
Predators010
Predators0.110.5389970031495
Predators0.211.162275246750381
Predators0.311.87988129652648
Predators0.412.702511594656823
Predators0.513.641161590154008
Predators0.614.706564447187054
Predators0.700000000000000115.908366723019173
Predators0.817.254002140194235
Predators0.918.74725959525965
Predators120.386604739455258
Predators1.122.163406999036052
Predators1.224.060334532292302
Predators1.326.050278894350424
Predators1.400000000000000128.09621218630825
Predators1.530.15231147084158
Predators1.632.166481159858286
Predators1.734.08409052933563
Predators1.835.8524108555459
Predators1.900000000000000137.42501030649982
Predators238.765343968472145
Predators2.139.848977290035386
Predators2.240.66422478691453
Predators2.300000000000000341.21134157599258
Predators2.441.500658815972216
Predators2.541.550154107030856
Predators2.641.38291023845466
Predators2.741.024795411644405
Predators2.800000000000000340.50255479087046
Predators2.939.84237892763135
Predators339.06892809547267
Predators3.138.20474380913064
Predators3.237.26996135459031
Predators3.300000000000000336.282239153752215
Predators3.435.25683282145877
Predators3.534.206757264786624
Predators3.633.14299526473636
Predators3.732.07472383666142
Predators3.800000000000000331.0095397338756
Predators3.929.953672871585727
Predators428.912181634223973
Predators4.127.88912748810421
Predators4.226.887728512983017
Predators4.325.91049276813837
Predators4.424.959333110003268
Predators4.524.035665389814728
Predators4.600000000000000523.140492028868824
Predators4.722.274472896060633
Predators4.821.4379852633904
Predators4.920.631174432014692
Predators519.853996429897318
Predators5.100000000000000519.106253997050054
Predators5.218.38762690365822
Predators5.317.697697493598916
Predators5.417.035972211880907
Predators5.516.401899758753448
Predators5.600000000000000515.794886414242999
Predators5.715.214308992931842
Predators5.814.659525818059013
Predators5.914.129886044741449
Predators613.624737612670765
Predators6.100000000000000513.143434067611874
Predators6.212.685340457179892
Predators6.312.24983847865421
Predators6.411.836331034129687
Predators6.511.444246330387621
Predators6.600000000000000511.073041646918176
Predators6.710.722206885091396
Predators6.810.39126800421845
Predators6.910.079790445934357
Predators79.787382646827085
Predators7.10000000000000059.513699740484114
Predators7.29.258447554158822
Predators7.39.021387012190756
Predators7.48.802339068342844
Predators7.58.601190302621603
Predators7.60000000000000058.417899335277372
Predators7.78.252504231965094
Predators7.88.10513109996201
Predators7.97.976004106394715
Predators87.865457186110364
Predators8.17.773947749514346
Predators8.27.702072749523108
Predators8.37.650587521411195
Predators8.47.620427868615255
Predators8.57.6127359289926515
Predators8.67.628890414955471
Predators8.7000000000000017.670541869282471
Predators8.87.739653603088556
Predators8.97.8385489625661835
Predators97.9699654746217785
Predators9.18.137116200204765
Predators9.2000000000000018.343758207238565
Predators9.38.594267361466791
Predators9.48.893717482863869
Predators9.59.247960140057602
Predators9.69.663698717972101
Predators9.70000000000000110.148546617132293
Predators9.810.711054246378552
Predators9.911.360682657407777
Predators1012.107693294153352
Predators10.112.96291398272886
Predators10.20000000000000113.937332517662862
Predators10.315.041464045690375
Predators10.416.28444191290131
Predators10.517.672800729131048
Predators10.619.208963043178827
Predators10.70000000000000120.88951303870556
Predators10.822.703440340052396
Predators10.924.630648261242513
Predators1126.641108566292445
Predators11.128.695058925046233
Predators11.20000000000000130.744532604328857
Predators11.332.73626836258438
Predators11.434.61571762621122
Predators11.536.331551184085455
Predators11.637.83989367704028
Predators11.70000000000000139.10756070129015
Predators11.840.113827361430694
Predators11.940.85061820416181
Predators1241.3213440099986
Predators12.141.538821816402184
Predators12.20000000000000141.52277044461797
Predators12.341.29730565867317
Predators12.440.8887265055525
Predators12.540.32374334416691
Predators12.639.628183757783866
Predators12.70000000000000138.82613777605067
Predators12.837.93946596529982
Predators12.936.98758325456494
Predators1335.98743713264515
Predators13.134.95361243851898
Predators13.20000000000000133.89851063574135
Predators13.332.83256602122346
Predators13.431.76447338178713
Predators13.530.701410875529636
Predators13.629.649248630045168
Predators13.70000000000000128.612738182341374
Predators13.827.595680931635695
Predators13.926.601075674359276
Predators1425.631246392092827
Predators14.124.68795203260062
Predators14.20000000000000123.772480252276125
Predators14.322.88572710756462
Predators14.422.028264582334376
Predators14.521.200397675775903
Predators14.620.402212587777534
Predators14.70000000000000119.63361734791457
Predators14.818.894376052720457
Predators14.918.184137710197874
Predators1517.502460543199003
Predators15.116.84883247472429
Predators15.20000000000000116.222688407455067
Predators15.315.62342481540828
Predators15.415.050412085684414
Predators15.514.503004981050806
Predators15.613.980551537838657
Predators15.70000000000000113.482400666773541
Predators15.813.007908685535869
Predators15.912.556444979880379
Predators1612.12739696403761
Predators16.111.720174490048853
Predators16.211.334213838975273
Predators16.310.968981414034173
Predators16.410.623977246234986
Predators16.510.298738416708058
Predators16.69.992842496434434
Predators16.79.705911103380108
Predators16.89.43761367908707
Predators16.99.187671591632103
Predators178.95586267967271
Predators17.18.742026363277034
Predators17.28.546069461681672
Predators17.38.367972876412644
Predators17.4000000000000028.207799320783508
Predators17.58.065702304141963
Predators17.67.941936611880579
Predators17.77.83687056062377
Predators17.87.751000352477041
Predators17.9000000000000027.684966902800788
Predators187.639575572120423
Predators18.17.615819293029085
Predators18.27.614905644247115
Predators18.37.638288480877544
Predators18.4000000000000027.6877047730294565
Predators18.57.765217319279491
Predators18.67.873263963220325
Predators18.78.014713814400183
Predators18.88.192930705264382
Predators18.9000000000000028.411843624571217
Predators198.676023043541417
Predators19.18.99076074035619
Predators19.29.362148729451398
Predators19.39.79714996333774
Predators19.40000000000000210.303649312561518
Predators19.510.890467675984297
Predators19.611.567314783338643
Predators19.712.34464749996067
Predators19.813.233391048903748
Predators19.90000000000000214.244472453460595
Predators2015.388112243659977

Advertisement

How this calculator works

The Lotka-Volterra model was developed independently by Alfred Lotka in 1925 and Vito Volterra in 1926. It assumes prey grow exponentially when predators are absent, predators starve exponentially when prey are absent, and each encounter between them kills one prey and produces new predators at a fixed rate. Those assumptions give two equations that cycle forever: prey rise, predators rise, prey fall, predators fall, and the cycle repeats. The equilibrium is where both populations stop changing: prey at gamma divided by delta, predators at alpha divided by beta. Linearising around that point gives a period of about two pi divided by the square root of alpha times gamma, which is good near small cycles and less exact for large ones. The calculator integrates the equations with a fourth-order Runge-Kutta method, so the chart shows the actual trajectory rather than a sine wave.

Formula

dPrey/dt = alpha x prey - beta x prey x predators. dPredators/dt = delta x prey x predators - gamma x predators. Equilibrium: prey = gamma / delta, predators = alpha / beta. Approximate period = 2 pi / sqrt(alpha x gamma).

Worked example

With alpha = 1, beta = 0.05, gamma = 0.5 and delta = 0.02, the equilibrium is 0.5 / 0.02 = 25 prey and 1 / 0.05 = 20 predators. The period estimate is 2 pi / sqrt(1 x 0.5) = 8.89 years. Starting from 50 prey and 10 predators, the prey peak is well above 50 and the predator peak follows it a few years later.

Advertisement

Frequently asked questions

Does the model predict real populations?

It captures the mechanism behind many cycles, including the classic lynx and hare records, but real populations are affected by seasonality, territory, other predators and disease. Use it to understand the interaction, not to forecast a field population.

Why do the cycles not die out?

The classic equations conserve a quantity, so a disturbance moves the system to a larger or smaller closed loop rather than dampening back to equilibrium. Adding density dependence in the prey or a predator that saturates would make the cycles damp.

What happens if I start exactly at equilibrium?

Nothing: both populations stay constant and the chart is two flat lines. That is a perfect balance that does not occur in nature, and any small disturbance starts a cycle.

What do the four rates mean?

Alpha is the prey birth rate, beta the chance of a predator encounter, gamma the predator death rate and delta the conversion of eaten prey into predators. Only the ratios matter for the equilibrium and period, which is why different sets of numbers can produce the same cycle.

Sources

Advertisement