🔒 Please log in to use tool features (fill sample / analyze / AI interpretation / export document)
HomeQuality ToolsHypothesis Testing CalculatorZ-Test Calculator
Z-Test CalculatorFree online tool · works on PC and mobile
Use it now →

Z-Test Online: One-Sample and Two-Sample with Known Variance

What is the One-Sample Z-Test?

The one-sample Z-test is used when the population standard deviation σ is known, testing whether a sample mean equals a target value with the statistic Z = (x̄ − μ0)/(σ/√n), which follows the standard normal distribution. Unlike the t-test it does not consume degrees of freedom, but it requires σ to be known, usually from long-term process history, equipment accuracy or industry standards. The tool returns the p-value for the Z-value and can also compute critical values at a given significance level.

When to Use It

Use it for comparing means when the population variance is known, or when both sample sizes are large (generally n ≥ 30 per group) so the central limit theorem makes the sample means approximately normal. Typical cases include comparing two processes or supplier batch means in high-volume production. When both variances are unknown but both samples are large, substituting sample standard deviations for σ is an acceptable approximation.

How to Use It (Step by Step)

Enter the sample mean or means, the known standard deviation(s), sample size(s) and significance level. The tool computes the Z-value, p-value and confidence interval, and also provides power and required sample size calculations. Use the power function before the study to confirm the design is sensitive enough to avoid false negatives.

Key Formulas / Example

One-sample Z = (x̄ − μ0)/(σ/√n); two-sample Z = (x̄1 − x̄2)/√(σ1²/n1 + σ2²/n2). Power = 1 − β depends on α, effect size and sample size. For example, the two-sided 95% critical Z-value is 1.96, so |Z| > 1.96 rejects H0 at α = 0.05.

Open Z-Test Calculator → Calculate online in your browser · free registration · PC and mobile
HYPTEST Discussions · Latest
No discussions yet — be the first to ask a question in the community.
Frequently Asked Questions
Where does the population standard deviation come from?
From long-term process standard deviation, equipment accuracy ratings, industry standards, or published values from similar studies. If no reliable σ exists, use a t-test instead.
How large must the sample be to safely use Z?
Generally n ≥ 30 per group is sufficient. For clearly skewed populations, use larger samples or switch to nonparametric methods.
What if power is insufficient?
Increase the sample size, raise the significance level, increase the effect size (for example by improving the process gap), or use a more sensitive paired design.