Free tool
Start from the homozygous recessive frequency, an allele frequency, or observed genotype counts, and get p, q and the expected genotype frequencies - plus a chi-square test when you enter counts. Every step is shown.
Built for General Biology II and AP BiologyOnly the aa individuals show the recessive phenotype, so their frequency is q^2.
Adds expected numbers of individuals for each genotype.
Enter a frequency or counts to see p, q and the genotype frequencies.
Hardy-Weinberg problems get fast once the setup is automatic. Encodr keeps the equations and the five conditions on a spaced-repetition schedule so they are still there on exam day.
Get started freeFor a gene with two alleles, A at frequency p and a at frequency q:
p + q = 1 and p^2 + 2pq + q^2 = 1
p^2 is the frequency of AA individuals, 2pq of Aa carriers, and q^2 of aa individuals. The first equation is about alleles, the second about genotypes. The prediction only holds if all five conditions are met: no mutation, random mating, no gene flow, a very large population, and no natural selection. No real population meets all five, so the model is used as a baseline - a population that does not match it is evolving.
16% of a population shows a recessive trait, so q^2 = 0.16. Then q = √0.16 = 0.4, p = 1 - 0.4 = 0.6, p^2 = 0.36 and 2pq = 2 × 0.6 × 0.4 = 0.48. So 36% are AA, 48% are carriers and 16% are aa. Start from q^2, never from p^2: the dominant phenotype lumps AA and Aa together, so its frequency is p^2 + 2pq, not p^2.
A sample of 100 has 40 AA, 40 Aa and 20 aa. Count alleles: p = (2 × 40 + 40) ÷ 200 = 0.6 and q = 0.4. Expected counts are 0.36 × 100 = 36, 0.48 × 100 = 48 and 0.16 × 100 = 16. Chi-square = (40 - 36)^2/36 + (40 - 48)^2/48 + (20 - 16)^2/16 = 0.444 + 1.333 + 1.000 = 2.78. With 1 degree of freedom (3 genotype classes, minus 1, minus 1 for estimating p from the same data) the critical value at p = 0.05 is 3.84. 2.78 is below it, so the data do not show a significant departure from Hardy-Weinberg equilibrium. The full walkthrough is in the Hardy-Weinberg guide, and the General Biology II course has the practice cards.
The Hardy-Weinberg equations, the five conditions, and worked problems from q^2, the dominant phenotype, and genotype counts with a chi-square test.
The 18 units of a second-semester college biology course, from evolution and Hardy-Weinberg to animal physiology and ecology, mapped to OpenStax chapters.
General Biology II mixes processes, long lists of groups, body systems and some math. Study methods for each kind of material, with examples.
Nodes, sister taxa, basal taxa, polytomies and clades, why branch length and tip order usually mean nothing, and how parsimony picks a tree.
What General Biology I and II, General Chemistry I and II, and College Physics I and II each cover, how they fit together, and free flashcards for each.
Log your practice tests - score, breakdown, conditions, date - and get a weighted prediction of your real MCAT score.
Open tool →Calculate your cumulative GPA and BCPM science GPA on the AMCAS 4.0 scale.
Open tool →Enter your exam date, hours needed, and difficulty to see how much less time targeted review actually takes.
Open tool →Enter passages completed and minutes elapsed to see your current pace and whether you are on track to finish the CARS section on time.
Open tool →See the Ebbinghaus forgetting curve for cramming vs. spaced review, and where each review session resets your retention.
Open tool →Enter a course, its credit hours, and how memorization-heavy it is to get a recommended daily and weekly study load.
Open tool →Enter your current grade, the final's weight, and your target grade to see the exact score you need on the final.
Open tool →Calculate your unweighted and weighted GPA (honors +0.5, AP/IB +1.0) side by side - not just pre-med, works for any transcript.
Open tool →Enter total questions and the passing percentage to see exactly how many you can miss and still pass.
Open tool →Enter deck size and your new-cards-per-day pace to see when first exposure finishes and your steady-state daily review load.
Open tool →Enter your grading categories and their weights to see your current overall grade, even with categories still outstanding.
Open tool →Convert instantly between letter grades, percentages, and 4.0-scale GPA points.
Open tool →Convert between metric and imperial units for length, mass, pressure/stress, torque, and volume flow rate - built for engineering coursework, not just everyday conversions.
Open tool →Enter two measurements with their uncertainties to see the propagated uncertainty in a sum, difference, product, or quotient.
Open tool →Enter a discount rate and a series of cash flows to get both the net present value and the internal rate of return.
Open tool →Enter fixed costs, price per unit, and variable cost per unit to see exactly how many units - and how much revenue - it takes to break even.
Open tool →Enter your participation, case write-up, project, and exam weights to see your current grade in a case-method business course.
Open tool →Score your own work against a weighted studio rubric - concept, execution, craft, presentation, and reflection - before a critique or portfolio review.
Open tool →Enter one source once and get correctly formatted citations in APA, MLA, and Chicago side by side, for books, websites, and journal articles.
Open tool →Enter total pages, days available, and how dense the reading is to see how many pages a night it actually takes to keep up.
Open tool →A free, no-signup Pomodoro timer with customizable work and break lengths and a running count of completed sessions.
Open tool →Enter your total credit hours this term to see the weekly study time the standard "2-3 hours per credit hour" rule recommends.
Open tool →Enter your current GPA, credits earned, target GPA, and credits this semester to see the exact GPA you need this term.
Open tool →See whether a property policy met its coinsurance requirement and exactly what it pays on a loss - built for P&C license exam prep.
Open tool →Split a medical bill between you and the plan through the deductible, coinsurance, copay, and out-of-pocket maximum, step by step.
Open tool →Calculate days supply for tablets, oral liquids, and insulin, rounded down to whole days - built for pharmacy technician exam prep.
Open tool →Mix a higher and a lower strength to make a desired strength and quantity - get the parts and the amount of each.
Open tool →Calculate IV flow rate in mL/hr, drip rate in gtt/min for any drop factor, and infusion time, with the working shown.
Open tool →Split a real estate commission between the listing and buyer brokerages, then between each broker and agent, with the math shown.
Open tool →Prorate annual property taxes at closing on a 360 or 365-day year, with the day count and the seller's share credited to the buyer.
Open tool →Practice the standard phlebotomy order of draw: tap random sets of collection tubes into the correct sequence and see where you slipped.
Open tool →Look up a blood collection tube by color, additive or test, with its typical use and order-of-draw step.
Open tool →Get the mask, network and broadcast address, host range and usable host count for any IPv4 address and prefix - built for Security+ exam prep.
Open tool →Current yield, an approximate yield to maturity and tax-equivalent yield with the formulas shown - built for Series 7 exam prep.
Open tool →Profit or loss, breakeven, maximum gain and maximum loss for a long or short call or put at expiration - built for FINRA SIE exam prep.
Open tool →Public offering price, shares bought, front-end load, your own breakpoint schedule and a back-end CDSC by year - built for FINRA SIE exam prep.
Open tool →Debit or credit balance, equity, maintenance call and the trigger price for a long or short margin position - built for FINRA SIE exam prep.
Open tool →Add eye, verbal and motor responses into a Glasgow Coma Scale total. A study aid for EMS students, not for patient care.
Open tool →Solve C1V1 = C2V2 for any one value in M or mM and L or mL, and see how much solvent to add to reach the final volume.
Open tool →First-order decay: find the amount remaining, the time elapsed or the half-life, plus the rate constant k, with the working shown.
Open tool →Find a buffer's pH from pKa (or Ka) and the base-to-acid ratio, or the ratio you need for a target pH, with a buffer-range check.
Open tool →Solve PV = nRT for pressure, volume, moles or temperature in atm, kPa, mmHg, L, mL, K or degrees C, with the steps shown.
Open tool →Enter any three of displacement, initial velocity, final velocity, acceleration and time to solve the other two, with the equation shown.
Open tool →Molar mass of any formula, including parentheses and hydrates, with each element's count, mass contribution and mass percent.
Open tool →Convert between [H3O+], [OH-], pH and pOH, or find the pH of a strong acid, strong base or weak acid with the exact quadratic shown.
Open tool →Enter launch speed, angle and height to get time of flight, range, maximum height and impact velocity, with the working shown.
Open tool →Enter two parent genotypes for one or two genes to get the Punnett square, gametes, and genotype and phenotype ratios with percentages.
Open tool →Equivalent resistance for 2 to 8 resistors in series or parallel, plus current, voltage drop and power for each one.
Open tool →Solve 1/f = 1/do + 1/di for the focal length, object or image distance, with magnification and whether the image is real or virtual.
Open tool →