CalcaTools

Z Test Calculator

Calculates z test using z = (x-bar - mu) / (sigma / sqrt(n)), instantly in your browser.

Last updated: July 2026 · Free · No sign-up required

Results

Enter values above and click Calculate to see your result instantly.

About the Z Test Calculator

Under the hood, this calculator applies z = (x-bar – mu) / (sigma / sqrt(n)); p-value from the standard normal distribution, so the z test calculator result you see is genuine math, not a lookup table.

Scroll past the calculator for a quick-reference table, a step-by-step methodology with a fully worked example, and answers to the questions people most often ask about z test calculator.

Quick reference

Z critical values:

Test0.05 level0.01 level
Two-tailed+/-1.96+/-2.576
One-tailed1.6452.326

functions Shows the working, not just the answer

For students and teachers, the final number is only half the value. Every math tool here exposes the formula it applied, the intermediate steps, and the rounding rule, so you can follow along, check your homework, or use the answer in a proof or report with confidence.

calculate Accurate to the spec

Calculations use 64-bit floating point with sensible rounding for the domain (currency to 2 decimals, percentages to 4 decimals, algebra to 6 significant figures). Where exact rational arithmetic matters — fractions, factorials, simplification — we use a dedicated BigNumber path so 1/3 + 1/6 returns ½, not 0.49999.

school Free for classroom use

Educators are welcome to link to any math calculator on CalcaTools from a class site, Google Classroom, or worksheet. The pages are mobile-friendly, free, ad-supported (so we can keep them free) and have no sign-up wall — students just click and use them in class or at home.

tips_and_updates Pair with the spoke articles

Below the calculator we link a small set of plain-English explainer pages — "What is a percentage?", "Why does PEMDAS matter?", and so on. They cover the underlying concept in 4–6 short paragraphs. Read those before the calculator if the topic is new, or after if you want the extra context.

Interpretation guide

Reading the result:

ConditionConclusion
p < alphaReject the null hypothesis
p >= alphaFail to reject the null
|z| largeSample far from the null value
|z| near 0Sample consistent with the null

Formula & methodology

Formula: z = (x-bar - mu) / (sigma / sqrt(n)); p-value from the standard normal distribution

A z-test compares a sample mean or proportion to a hypothesized value when the population standard deviation is known (or the sample is large). The calculator computes the z-statistic — how many standard errors the sample sits from the null value — and the corresponding p-value. If the p-value is below your significance level (alpha), you reject the null hypothesis. Use the t-test instead for small samples with an unknown population standard deviation.

Frequently asked questions

When should I use a z-test vs a t-test?
Use a z-test when the population standard deviation is known or the sample is large (n >= 30); use a t-test for small samples with unknown sigma.
How do I interpret the p-value?
It's the probability of a result this extreme if the null were true. Below your alpha (often 0.05), the result is statistically significant.
What is the z-statistic?
The number of standard errors between your sample estimate and the hypothesized value: z = (x-bar - mu)/(sigma/sqrt(n)).
What's the difference between one- and two-tailed tests?
One-tailed tests a direction (greater or less); two-tailed tests for any difference and splits alpha across both tails.
What does it mean to reject the null hypothesis?
The data provide enough evidence that the true value differs from the hypothesized one at your chosen confidence level.
What are the steps to test a hypothesis with a z-test?
Five steps: state H₀ and H₁, set α (typically 0.05), compute z = (x̄ − μ₀) ÷ (σ/√n), get the p-value, and compare. Example: claimed mean 500, sample of 64 averaging 508 with σ = 24 gives z = 8 ÷ 3 = 2.67, two-tailed p ≈ 0.0076 — reject H₀. Use z only when σ is known or n is large; otherwise it's a t-test.

Explore the full statistics toolkit

Every CalcaTools statistics calculator — descriptive measures, probability distributions, hypothesis tests, confidence intervals, and Six Sigma process metrics — with step-by-step workings on each result.

Process quality