AP Biology

AP Bio chi-square calculator

Enter your observed counts and expected counts (or ratio). You get χ², the degrees of freedom, the critical value at p = 0.05 or 0.01 and the conclusion, with each step shown as you would write it.

Expected values are
p-value for the critical value

χ² with 1 degree of freedom

χ² = 1.33

1.33 is less than the critical value of 3.84 at p = 0.05, so fail to reject the null hypothesis: the data fit the expected values.

Each term of the sum
Categoryoe(o − e)²/e
Tall2903000.33
Short1101001
Sum4004001.33

Degrees of freedom: 2 outcomes − 1 = 1. Expected counts use the observed total of 400, split by the ratio.

Take the free AP Biology test

Formulaχ² = Σ (o − e)² / e
Degrees of freedomnumber of possible outcomes − 1
Critical valueFrom the reference sheet's table, at p = 0.05 or 0.01
DecisionReject the null hypothesis if χ² is greater than the critical value

How to set up the test

  • State the null hypothesis: there is no difference between the observed and expected counts (for a cross, the offspring fit the predicted ratio).
  • Expected counts come from the hypothesis: multiply the total by each expected fraction.
  • Use counts, never percentages, for o and e.
  • Degrees of freedom are the number of categories minus 1.

Reading the result

If χ² is greater than the critical value, the difference is unlikely to be due to chance alone, so you reject the null hypothesis. If it is smaller, you fail to reject it: the data fit the prediction.

Try 2 questions

Question 1
Students cross two pea plants that are heterozygous for height and count 290 tall and 110 short offspring. They test the hypothesis of a 3:1 ratio with a chi-square test. The critical value at p = 0.05 with 1 degree of freedom is 3.84. Which conclusion is correct?
Question 2
A dihybrid cross between two plants that are heterozygous for two genes gives offspring in which the two parental phenotypes are far more common than a 9:3:3:1 ratio predicts, and the two new phenotype combinations are rare. Which claim is best supported?

Next step

College Board's AP Biology exam page

Questions people ask

What is the critical value for chi-square in AP Biology?

It depends on the degrees of freedom and the p-value the question sets. At p = 0.05 the reference sheet gives 3.84 for 1 degree of freedom, 5.99 for 2 and 7.81 for 3; at p = 0.01 it gives 6.63, 9.21 and 11.34.

How do you find degrees of freedom in a chi-square test?

The number of categories minus 1. A 9:3:3:1 dihybrid cross has 4 categories, so 3 degrees of freedom.

Is the chi-square formula on the AP Biology reference sheet?

Yes. The reference sheet gives the formula and a table of critical values.