z-interval vs t-interval: when to use each

By Jude Wallis · Published

Use a z-interval for a proportion, where the standard error comes from p-hat alone; use a t-interval for a mean, where the population standard deviation is unknown and estimated by s, so the t distribution absorbs the extra uncertainty.

In the Fall 2026 AP Statistics course, the z-interval for a proportion is built in Unit 3 topic 3.3, and the t-interval for a mean is built in Unit 4 topic 4.2 because the population standard deviation is unknown; this comparison spans both units.

What a z-interval is

A z-interval is a confidence interval built with critical values from the standard normal distribution. In AP Statistics it is the interval for a population proportion pp, using p^±zp^(1p^)n\hat{p} \pm z^* \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}, where p^\hat{p} (p-hat) is the sample proportion and zz^* is the normal critical value. There is no separate spread parameter to estimate, because the standard error of a proportion depends only on p^\hat{p} and the sample size nn. That is why the normal distribution applies directly.

What a t-interval is

A t-interval is a confidence interval built with critical values from a t distribution. In AP Statistics it is the interval for a population mean μ\mu, using xˉ±tsn\bar{x} \pm t^* \frac{s}{\sqrt{n}}, where xˉ\bar{x} (x-bar) is the sample mean, ss is the sample standard deviation, and tt^* has n1n - 1 degrees of freedom. Because the population standard deviation σ\sigma is unknown, you estimate it with ss, and that added uncertainty makes the t distribution's tails heavier than the normal. Heavier tails give a larger critical value, so a t-interval is slightly wider than a z-interval at the same confidence level.

z-interval vs t-interval at a glance

The parameter you are estimating decides which interval you build.

Featurez-intervalt-interval
ParameterPopulation proportion ppPopulation mean μ\mu
Critical valuezz^* from the normaltt^* from the t distribution
Standard errorp^(1p^)n\sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}sn\frac{s}{\sqrt{n}}
Degrees of freedomNonen1n - 1
WhySE depends only on p^\hat{p}σ\sigma unknown, estimated by ss
AP unitUnit 3Unit 4

When to use which

Ask what kind of parameter you are estimating. If the data are categorical and summarized as a proportion, build a z-interval. If the data are quantitative and summarized as a mean, build a t-interval, because you almost never know the true σ\sigma. The tie-breaker is the same one that governs z-tests and t-tests: proportions use z, and means use t; see t-test vs z-test.

The classic mix-up and how to avoid it

The usual mistake is using a normal critical value zz^* for a mean when σ\sigma is unknown. That produces an interval that is too narrow, understating the uncertainty, especially at small sample sizes where tt^* is noticeably larger than zz^*. A second slip is forgetting the degrees of freedom and reading the wrong row of the t-table. Avoid both by naming the parameter first: a proportion means zz^*, and a mean means tt^* with n1n - 1 degrees of freedom.

A t-interval for a mean, and why z would mislead

A random sample of n=16n = 16 has xˉ=50\bar{x} = 50 and s=8s = 8. Build a 95%95\% confidence interval for the population mean, then show what using a z critical value instead would do.

  1. Standard error of the mean: SE=sn=816=84=2SE = \frac{s}{\sqrt{n}} = \frac{8}{\sqrt{16}} = \frac{8}{4} = 2.

  2. Degrees of freedom: n1=161=15n - 1 = 16 - 1 = 15. The t critical value for 95%95\% confidence with 15 degrees of freedom is t=2.131t^* = 2.131.

  3. Margin of error: t×SE=2.131×2=4.262t^* \times SE = 2.131 \times 2 = 4.262.

  4. Confidence interval: 50±4.26250 \pm 4.262, which is (45.738,54.262)(45.738, 54.262).

  5. Using z=1.96z^* = 1.96 by mistake gives a margin of only 1.96×2=3.921.96 \times 2 = 3.92 and the narrower interval (46.08,53.92)(46.08, 53.92), which understates the true uncertainty from estimating σ\sigma.

The 95% t-interval is (45.738,54.262)(45.738, 54.262); the incorrect z-interval (46.08,53.92)(46.08, 53.92) is too narrow because it ignores the extra uncertainty of estimating σ\sigma with ss.

Frequently asked questions

When would you ever use a z-interval for a mean?

Only if the population standard deviation σ\sigma is known, which almost never happens with real data. Because σ\sigma is nearly always unknown and estimated by ss, AP Statistics builds intervals for a mean with the t distribution.

Why is a t-interval wider than a z-interval?

The t distribution has heavier tails than the normal, so its critical value tt^* is larger than the matching zz^* at the same confidence level. That larger multiplier makes the margin of error and the interval wider, which honestly reflects the uncertainty of estimating σ\sigma.