Perform one-sample, two-sample, and proportion z-tests with p-value computation. Test statistical hypotheses about means and proportions.
Last updated: March 2026
A z-test is a parametric statistical test used to determine whether a sample statistic differs significantly from a population parameter when the population standard deviation is known or the sample size is large. It converts data into a z-statistic and computes a p-value using the standard normal distribution.
Z-tests are used for: testing whether a sample mean equals a hypothesized population mean (one-sample), comparing means between two independent groups (two-sample), or testing whether a sample proportion equals a hypothesized proportion. This calculator supports all three scenarios with proper p-value computation.
The z-test assumes normally distributed data and known population standard deviations (or large samples where the t-distribution approximates normal). If these assumptions aren't met, consider using a t-test instead.
Tests if a sample mean differs from a known population mean.
Compares means between two independent samples.
Tests if a sample proportion differs from a hypothesized proportion.
Question: A company claims products average 500g. We test 36 units with mean 505g and σ=15g. Does this differ from 500g?
Question: In 100 trials, 55 succeeded. Is success rate significantly different from 50%?
Question: Group A mean = 52 (n=50, σ=8) vs Group B mean = 48 (n=50, σ=7). Is there a significant difference?
Use z-test when you know the population standard deviation. Use t-test when you only have sample standard deviation or small sample sizes. For large samples (n>30), both are similar.
A p-value of 0.05 means there's a 5% chance of observing your results if the null hypothesis were true. It's the conventional threshold for statistical significance.
This calculator handles one-sample, two-sample, and proportion z-tests. For other tests (ANOVA, chi-square), use specialized calculators.
Left-tailed tests the alternative hypothesis that parameter < null value. Right-tailed tests parameter > null value. Two-tailed tests parameter ≠ null value (most common).
Z-tests tell if a parameter is significantly different from a value (hypothesis testing). Confidence intervals estimate the range where the true parameter likely falls.
Z-tests work best with n>30 for the normal approximation to be accurate. For smaller samples with unknown population std dev, use t-test instead.