One-Sample Z-Test

Test whether the mean of a sample differs from a known population mean when the population standard deviation is known.

Please verify you are human to use the calculator.

About the One-Sample Z-Test

The one-sample z-test is the simplest hypothesis test for a population mean. It compares a sample mean against a hypothesised value using the known population standard deviation and the standard normal distribution. The test statistic z = (x̄ − μ₀) / (σ / √n) follows a standard normal distribution under H₀.

The critical distinction from the t-test is that the z-test requires σ to be known rather than estimated from the data. In practice, σ is almost never known, which is why the t-test dominates real-world applications. The z-test appears mainly in introductory statistics courses, standardised testing (where population parameters are known from historical data), and industrial quality control where process variability has been established.

For large samples (n > 30), the difference between z-test and t-test results is negligible because the t-distribution converges to the standard normal. Nonetheless, there is no practical advantage to using the z-test even in large samples—the t-test is always at least as appropriate and often more so.

A test result carries weight only when the hypothesis, the sample size and the decision rule were fixed before the data arrived. Every pilot we scope is built the same way, with success criteria and kill gates agreed in advance. That work is described under AI pilot design.

Related calculations

  • One-sample t-test: Use a one-sample t-test when the population standard deviation is estimated from the sample.
  • Normal: Inspect the standard normal reference distribution for the z statistic.
  • One-proportion z-test: Use the proportion calculator when observations are binary rather than continuous measurements.
  • Confidence interval: Estimate a mean with an interval when precision is the question.

Related Tools

Stay in the loop

Get notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.

One-Sample Z-Test FAQ

Common questions about the one-sample z-test