Scientific Converters Precise unit conversions for science & engineering.

    Loading…

    Hardy-Weinberg Calculator

    A sample of 360 AA, 480 Aa and 160 aa gives an allele frequency of 0.6 for A; the counts match Hardy–Weinberg exactly.

    Given:
    Allele frequency p (A) =

    0.6

    Allele frequency q (a)
    0.4
    Expected AA : Aa : aa
    360 : 480 : 160
    Chi-square (1 degree of freedom)
    0
    At 5 % significance (χ² < 3.841)
    consistent with Hardy–Weinberg equilibrium
    Step-by-step solution
    1. p = (2 × AA + Aa) ÷ 2N = (720 + 480) ÷ 2000 = 0.6
    2. Expected: p²N = 360, 2pqN = 480, q²N = 160
    3. χ² = Σ(O − E)²/E = 0

    Hardy-Weinberg Formula

    p² + 2pq + q² = 1, p + q = 1

    p = (2·AA + Aa)/(2N); χ² = Σ(O − E)²/E with 1 degree of freedom

    Worked Example

    A sample of 360 AA, 480 Aa and 160 aa individuals:

    1. p = (2 × AA + Aa) ÷ 2N = (720 + 480) ÷ 2000 = 0.6
    2. Expected: p²N = 360, 2pqN = 480, q²N = 160
    3. χ² = Σ(O − E)²/E = 0

    Expected AA : Aa : aa: 360 : 480 : 160 · Chi-square (1 degree of freedom): 0 · At 5 % significance (χ² < 3.841): consistent with Hardy–Weinberg equilibrium

    GATE tip

    The χ² test for Hardy–Weinberg has 1 degree of freedom (3 classes − 1 − 1 estimated parameter), so the 5 % critical value is 3.841.

    More Molecular Biology Tools Calculators

    All GATE Biotechnology calculators →

    Frequently asked questions

    What are the Hardy–Weinberg assumptions?

    Large random-mating population with no selection, mutation, migration or genetic drift. Departures from equilibrium point to one of these.

    How do I find carriers of a recessive disease?

    If 1 in 2500 is affected, q² = 0.0004, q = 0.02 and carriers 2pq ≈ 0.039, about 1 in 25.

    Sources

    Last reviewed: . Factors are stored exactly and computed with 50-digit decimal arithmetic. See how we verify conversion factors.

    Cite this page

    APA

    Scientific Converters. (2026, October 15). Hardy-Weinberg Calculator. Retrieved October 25, 2026, from https://scientificconverters.com/calculators/hardy-weinberg-calculator/

    IEEE

    Scientific Converters, "Hardy-Weinberg Calculator," scientificconverters.com. Accessed: Oct. 25, 2026. [Online]. Available: https://scientificconverters.com/calculators/hardy-weinberg-calculator/

    Send feedback

    Found a wrong value, a missing unit or an idea? Tell us. We read every message.

    What is it about?

    We store your message, the page you were on and your email if given. See the privacy policy.