Hardy-Weinberg for a virus spread
Simulate a virus spread live in your browser. This runs the real Hardy-Weinberg solver — adjust the inputs, watch it respond instantly, and export the result. No install, no account.
Controls
Presets
Without selection, allele frequencies stay put and genotypes settle at p², 2pq, q² — Hardy-Weinberg equilibrium. Give the genotypes different fitness and selection shifts the allele frequency each generation. Heterozygote advantage (high Aa fitness) can hold both alleles in a stable balance.
Data Inspector
Governing equation
Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.
About this simulation
The full Hardy-Weinberg tool models a virus spread with the same numerics engineers and scientists use — running entirely client-side. Change any parameter and the result updates in real time, so you can build intuition, check a design, or teach the concept without spreadsheets or installs.
More you can do with Hardy-Weinberg
Other ways to simulate a virus spread
Frequently asked questions
- How do I simulate a virus spread?
- Open this page and use the live Hardy-Weinberg tool below — set your inputs and the simulation runs instantly in your browser using real numerics. No install, no account needed.
- Is it free?
- Yes. The simulation runs free in your browser. A one-time unlock or a Pro plan adds advanced parameters, saved presets, data import, and clean exports.
- Can I use my own numbers?
- Absolutely — every input is adjustable, and with data import you can drive a virus spread from your own measurements.