Past a tipping point, Wolbachia spreads through mosquitoes on its own
An interactive simulation of releasing Wolbachia-infected mosquitoes. Below about 26 in 100 the infection dies out; above it, it takes over by itself.
November 12, 2026 · Project · What is not yet established
Most mosquito control tries to kill mosquitoes. A newer approach changes what they carry. Release mosquitoes infected with the bacterium Wolbachia, and under the right conditions the infection spreads through the wild population by itself and stays, which matters because infected mosquitoes pass on dengue less well. I read Maya Rosen’s Mosquitoes are a choice and wanted to see that tipping point happen.
Red dots carry Wolbachia; slate dots are wild. Pick a scenario to restart it, or click the map to release a batch of mosquitoes there. The full simulation adds charts of the infected share, the tipping-point curve and every setting.
What the simulation shows
- Why it spreads. The infection passes from mother to young. An infected male can’t pass it on, but a wild female who mates with one lays eggs that don’t hatch. Only wild females pay.
- Why there is a tipping point. Infected females lay 25% fewer eggs here. That cost is fixed; the mating advantage grows with the infected share. Below about 26 in 100 the infection dies out; above it, it takes over after releases stop.
- The simulation leans towards the infection. About 2,600 mosquitoes on a street, told nothing about the tipping point, tip 2 to 4 points below the formula. The cause is crowding inside breeding containers: infected larvae share with smaller broods and survive 5 to 13% better. That might be a paper; I am testing it in Turn the Wolbachia simulation into a preprint.
- Waves can stall. One release stalled where the street ahead held 1.8 times the breeding room, as Barton and Turelli (2011) predict for waves like this.
- Releasing only males works like the sterile insect technique and lasts only while releases continue.
Nothing here is compared with field releases; the timings belong to this toy street. The method, every check and the sources are below.
Agent context: sources, method and working notes
The mating rule
Wolbachia passes from mother to young through the egg. An infected male can’t pass it on. What he does instead is sabotage: when he mates with a wild female, her eggs don’t hatch.
| Wild male | Infected male | |
|---|---|---|
| Wild female | Wild young | Eggs don’t hatch |
| Infected female | Infected young | Infected young |
Only one of the four crosses fails, and the loss falls entirely on wild females. Infected females have infected young whichever male they meet.
The tipping point
The infection has a price. In this simulation, infected females lay 25% fewer eggs. That cost stays the same however common the infection is, but the advantage does not. The more infected males there are, the more wild females waste their eggs on them.
So there is a tipping point. With a 25% egg cost it is about 26 in 100, which comes from a short formula based on the table above. (The rough rule is cost divided by the share of eggs lost in the failing cross. Here that gives 25 in 100, and the extra point is there because 1% of eggs miss the bacterium.)
- Below the tipping point, the cost wins. The infected share falls each generation until the infection is gone.
- Above the tipping point, the mating advantage wins. The share climbs on its own after releases stop, until nearly every mosquito carries it.
Here is what the scenarios in the simulation do:
| Scenario | What happens |
|---|---|
| Both sexes, 20% of the population a week for 8 weeks | 95% to 99% of females infected by day 240, and it holds after releases end. Female numbers dip by 11% to 19% along the way |
| Both sexes, 5% a week for 6 weeks | The infection fades out: 3% or less by day 300 |
| The same 20% release, with a 60% egg cost | The tipping point rises to about 61 in 100, and the infection is gone by day 300 in every run |
| Males only, 100% a week for 30 weeks | Females fall by 94% to 99%, nothing is inherited, and numbers are back to normal by day 420 |
| Both sexes, in one neighbourhood | A slow wave spreads outward. By day 900, 14 of 20 runs had passed 90%. Five were still climbing, and one stalled at about 44% for 600 days with the infection stuck on one side of the map. That run gets there by day 2,500 |
Each row is 20 runs with different random seeds. The scenario buttons on the page always use the same seed, and Restart picks a new one, so a run in your browser will differ in its details.
The males-only row is a different strategy. It works like the sterile insect technique: no infected mothers means no inheritance, so the effect lasts only as long as the releases. Rosen reports that in a randomized trial in Singapore, releases of infected males cut mosquito populations by 85% and dengue infections by roughly 70%. The simulation does not model disease, so it says nothing about that second number.
Why one wave stalled. Each run draws its own street map, and the breeding sites on it differ in how many larvae they can hold. On the stalled run’s map, the half of the street ahead of the wave holds 1.8 times as many larvae per metre as the stretch behind it. That makes it the most lopsided of the 20 maps. The wave got to the middle of the street and stopped where the richer sites begin. A denser wild population ahead keeps sending more wild mosquitoes into the front than the infected side can absorb. This matches theory: Barton and Turelli (2011) showed that waves like this can be halted where population density rises.
Three tests point at the map rather than bad luck:
- Same map, different luck. On the stalled run’s map, only 5 of 20 runs with fresh random streams passed 90% by day 900. On an evenly spread map, 16 of 20 did.
- Same sites, even capacity. Keeping every site where it was but giving each the same capacity raised that map to 11 of 20, and the median run went from 71% to 95%.
- Across the 20 published runs, the more breeding room ahead of the wave, the lower the infection at day 900. The correlation is −0.71, and the two slowest runs are on the two most lopsided maps.
Wild arrivals from the map edges are not the cause: switching them off left that map at 2 of 20. The stall is not permanent either: the original run reaches 98% by day 2,500. stall-check.mjs reruns all of this in about 25 seconds.
Does the simulation match the formula?
The simulation tracks about 2,600 individual mosquitoes on a street map. Nothing in it is told where the tipping point is. It only follows the mating rule, so the formula gives something to test it against.
Claude started runs with no releases, at set shares around the calculated tipping point, using egg costs of 10%, 25% and 40%. Each cost and share got 20 runs. Each run continued until the infection passed 90% (took over), fell below 0.5% (died out), or 1,500 days passed. The simulation also lets three wild mosquitoes a day wander in from outside the map, so every check was run twice: with those arrivals and without them.
| Starting share | Took over, with wild arrivals | Took over, without |
|---|---|---|
| 10 points below | 0 of 60 | 0 of 60 |
| 5 points below | 6 of 60 | 11 of 60 |
| 4 points below | 5 of 60 | 17 of 60 |
| 2 points below | 25 of 60 | 40 of 60 |
| At the tipping point | 30 of 60 | 55 of 60 |
| 2 points above | 47 of 60 | 57 of 60 |
| 5 points above | 58 of 60 | 60 of 60 |
| 10 points above | 60 of 60 | 60 of 60 |
At a true tipping point, a run is equally likely to go either way. Without wild arrivals, half the runs take over at 3 to 4 points below the formula for egg costs of 10% and 25%, and about 2 points below for 40%. The arrivals keep diluting the infected share, which pushes the tipping point back up by 1 to 3.5 points. So the simulation agrees with the formula to within a few points, but it leans towards the infection.
An earlier version got this wrong. It judged every run on day 260 and counted it as taking over if more than half the females were infected by then. That is too early near a low tipping point. At a 10% cost the tipping point is 11 in 100, and a run starting there takes most of a year to climb to 50%. So only 1 of 20 runs had “taken over” by day 260, but all 20 took over by day 1,000. That was the whole of the unexplained 3-point gap at a 10% cost in the earlier version.
Why the simulation leans towards the infection. Larvae in this simulation compete for room inside their own container. Claude tested a version where they compete across the whole map instead, with everything else the same. The tipping point jumped to about 3 to 4 points above the formula: half the runs took over at +2.7 points for egg costs of 10% and 25%, and +4.1 for 40%. So local crowding is worth about 6 points to the infection. Why that happens is explained below.
Why the shared-crowding version sits above the formula. The formula assumes every female is equally likely to meet any male. In the simulation, young emerge near where their mother laid eggs, adults wander only about 22 metres a day, and females mate within 40 metres. So infected mosquitoes end up in patches. Inside an infected patch, infected males mostly meet infected females, where they do no harm. Wild females in wild patches escape them. That weakens the infection’s only advantage, so it needs a higher starting share.
Claude measured this in the shared-crowding version, starting at the formula’s tipping point with a 25% egg cost. In the first month, wild females mated infected males about as often as random mating would give (1% less). The patches then build up: 5% less over days 30 to 90, 10% less over days 90 to 180, and 19% less over days 180 to 300.
Then Claude removed the patches. In a version with shared crowding and adults wandering 150 metres a day instead of 22, half the runs took over within half a point of the formula: −0.2 points at a 10% egg cost, −0.3 at 25% and +0.5 at 40%.
So the full simulation combines two opposing local effects. Patchy mating raises the tipping point by about 3 points. Crowding inside each container lowers it by about 6. The net is the 2 to 4 points below the formula in the table above.
Why container crowding helps the infection. Infected mothers lay 25% fewer eggs. A larva shares its container with its own siblings. It also shares it with the young of nearby mothers, because mothers lay in the nearest container and infected mosquitoes live in patches. So infected larvae grow up in less crowded containers. Near the tipping point, infected larvae survived 5% to 13% better than wild ones, more for larger egg costs. That pays back part of the egg cost.
Claude tested this by changing where eggs go. The table shows where half the runs take over, in points from the formula, with no wild arrivals.
| Where eggs go | 10% egg cost | 25% | 40% |
|---|---|---|---|
| Nearest container (as published) | −3.3 | −3.7 | −1.7 |
| Each mother’s whole clutch into a random container | −0.7 | −0.7 | −0.9 |
| Every egg into its own random container | +0.3 | 0.0 | +0.4 |
Sending each clutch to a random container separates infected young from their infected neighbours’ young. It also scatters where adults emerge, so the mating patches disappear too. Most of the lean goes away, and less than a point remains. That remainder is siblings: scattering every egg on its own puts the result back on the formula.
One other idea is ruled out as the main cause. Eggs that fail because a wild female mated an infected male never hatch, which frees room in their container. Counting them as taking up room anyway moved the result by about 1 point at most.
The first row uses a slightly coarser set of starting shares than the table above, so it can differ from it by a few tenths of a point. crowding-check.mjs reruns these tests in about a minute.
This shows the simulation roughly agrees with the formula, and where it doesn’t, which part of the model is responsible. It does not show that either one matches real mosquitoes.
Reproducing these numbers. run-checks.mjs runs every check above, including the day-260 tables from the earlier version. It loads the simulation code from the same page you can play with, uses fixed seeds, and gives identical output each time. It needs only Node 18 or later: node run-checks.mjs. All 2,272 runs take about 75 seconds on a 12-core laptop. The results are in results.json. The first 6 seeds reproduce the post’s first version exactly: 0 of 36 below, 2 of 18 at the tipping point, 15 of 18 at 5 points above and 18 of 18 at 10 points above.
What this leaves out
- No seasons, insecticides or disease. Real populations rise and fall through the year, and that changes how easily an infection takes hold.
- The cost is tuned to one paper’s figure. Rosen’s article gives no tipping point. The egg cost is set so the result lands near the roughly 25% that Turelli and Barton (2022) report for the wMel strain in tropical northeastern Australia. Elsewhere in the paper they give a range of 25 to 30 in 100. In real mosquitoes the cost can show up in more than egg numbers.
- The other numbers are illustrative. Lifespan, how far mosquitoes wander, egg counts and map size are reasonable guesses, not measurements.
- Nothing is compared with field releases. The timings above, such as days to saturation or how fast the wave moves, are properties of this toy street, not forecasts.
Where this goes next
The container-crowding result might be worth a paper, but only if it survives harder tests. Part of it is already known. Reuter, Lehmann and Guillaume (2008) found that when each small group regulates its own numbers, an infection like this invades more easily. What has not turned up yet is the brood-size mechanism, measured against the tipping point. The next tests:
- rerun every tipping point with ten times as many runs, because 20 runs a point leaves about a point of noise (done on November 15: the shift held and came out somewhat larger, at −4.2, −4.7 and between −1.9 and −2.9 points; chart and caveats);
- compare a cost paid in eggs with a cost paid in adult lifespan, which the explanation says should not get the same discount;
- turn the explanation into a formula that predicts the shift.
The work is open source: the plan, a lab notebook with every result including the ones that fail, and the code are in wolbachia-threshold on GitHub, with one issue per step. Progress is summarised on the ideas page, and findings that survive come back to this post.
Sources
- Maya Rosen, Mosquitoes are a choice, Works in Progress. The mating rule, the two strategies and the Singapore results.
- Nicholas H. Barton and Michael Turelli (2011), Spatial waves of advance with bistable dynamics: cytoplasmic and genetic analogues of Allee effects, The American Naturalist 178(3): E48–E75. Why a wave of this kind can stop where population density rises.
- Michael Turelli and Nicholas H. Barton (2022), Why did the Wolbachia transinfection cross the road? Drift, deterministic dynamics, and disease control, Evolution Letters. The tipping point of roughly 25% for wMel.
Changes
- November 17, 2026: The research repository is now open source, and this post links to it.
- November 16, 2026: Shortened to the simulation and what it shows; the full method, checks and sources moved under Agent context.
- November 15, 2026: Linked the first follow-up test. With 200 runs a point the container-crowding shift held, at 2 to 5 points below the formula. The tables in this post still show the earlier 20-run figures.
- November 14, 2026: Added where this goes next. The container-crowding finding is being tested towards a preprint, with progress reported on the ideas page.
- November 14, 2026: Explained why crowding inside containers favours the infection. Infected larvae share containers with smaller broods, their own siblings and their infected neighbours' young, so more of them survive. Added a script that tests this.
- November 14, 2026: Fixed a rounding bug that could put a mosquito exactly on the map's right or bottom edge, where it counted towards the wrong breeding site. Rerunning every check moved four results by one run each, and the post now gives the new numbers.
- November 14, 2026: Explained why the shared-crowding test sat above the formula. Infected mosquitoes form patches, so wild females meet infected males less often than random mating would give. With adults well mixed, the simulation matches the formula to within half a point.
- November 14, 2026: Fixed the formula check. Runs used to be judged on day 260, which was too early, and that alone made the 10% "gap". Judged on where each run ends up, the simulated tipping point is 2 to 4 points below the formula. A test points to crowding inside breeding containers.
- November 14, 2026: Explained why one neighbourhood wave stalled. Its map has much more breeding room ahead of the wave than behind it. Added a second script that tests this.
- November 14, 2026: Scenario results now come from 20 runs each instead of 2, which showed the one-neighbourhood wave can stall. The tipping-point check was rerun with more runs and with wild arrivals switched off. Added a script that reproduces every number.
- November 14, 2026: The simulation now runs inside the post, not only behind a link.
- November 12, 2026: First public version.