One-Sample Z-Test Statistic

z=xˉ−μσ/nz = \frac{\bar{x} - \mu}{\sigma / \sqrt{n}}

Units aren’t used in this calculation: every value is a plain number.

sig figs

Worked example: xbar 104 vs mu 100, sigma 15, n 36 → z = 1.6. Press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value.

See also

One-Sample T-Test Statistic: Both use sample mean and hypothesised mean.Two-Sample Z-Test Statistic: Both use test statistic and sample mean.Confidence Interval Lower Limit: Both use sample mean and population standard deviation.Confidence Interval Upper Limit: Both use sample mean and population standard deviation.Z-Score (Standard Score): Both use test statistic and population standard deviation.Weighted Mean of Two Groups: Both use sample mean and sample size.
3 more relatedCohen's d (Effect Size): Both use sample mean.Regression Line Intercept: Both use sample mean.Arithmetic Mean of Two Numbers: Both use sample mean.
Learning zone

One-Sample Z-Test Statistic explained

μσx̄zn

A z-test asks whether a sample mean is further from a claimed value than sampling noise can comfortably explain. The numerator is the raw discrepancy; the denominator is the standard error, the typical size of that discrepancy under the claim. A machine supposed to fill to 100 ml with known σ = 15 produces 36 bottles averaging 104: z = 4/(15/6) = 1.6. That is inside the usual two-sided 5% cutoff of ±1.96, so the evidence is not strong enough to say the machine has drifted, which is not the same as saying it hasn't.

Use this only when σ is genuinely known from long production history or theory; if you estimated it from the same sample, you want the t-test instead. The deeper trap is confusing statistical and practical significance. With n large enough, the standard error shrinks until any difference at all becomes "significant": the same 4 ml drift measured on 3,600 bottles gives z = 16, an overwhelming result about a discrepancy that no customer would ever notice. Always read the size of x̄ − μ alongside the test statistic.

One-Sample Z-Test Statistic formula

z=xˉ−μσ/nz = \frac{\bar{x} - \mu}{\sigma / \sqrt{n}}
Where
  • zz= Test statistic
  • xˉ\bar{x}= Sample mean
  • μ\mu= Hypothesised mean
  • σ\sigma= Population standard deviation
  • nn= Sample size
Revised 31 October 2026
Cite this page

formula.expert. (2026, October 31). One-Sample Z-Test Statistic Formula & Calculator. https://formula.expert/solvers/one-sample-z-test