Z-test
The z-test compares means using the standard normal distribution, and is used when the population standard deviation (σ) is known — usually from previous research. This calculator runs two variants: one-sample (compare a sample mean to a known value, μ0) and two-sample (compare the means of two independent groups). If σ is unknown, use the t-test instead.
How to use the z-test calculator
- Choose the test with the buttons at the top.
- Enter the known population SD (σ) — for the two-sample test, one for each group.
- Enter the data — raw values in the grid (one or two columns depending on the test) or summarized statistics (x̄, n).
- Choose the tails and the significance level, and for the one-sample z-test, the expected mean (μ0).
- Open More options to set the expected difference, rounding, outliers and effect size.
- Press Calculate.
Assumptions
- Normal distribution (or a large sample, based on the central limit theorem).
- The population standard deviation (σ) is known.
- Independent observations; for the two-sample test, independent groups.
Example: a farmer calculated last year the average weight of the apples in his orchard, μ0 = 17 kg, based on the entire population, and knows the standard deviation from previous research. This year he checked a small sample with an average of x̄ = 18 kg. Has the average weight changed this year?