CalcaTools

Z-Test Calculator | Compute Z Statistic For A Sample Mean

Run a one-sample z-test: enter the sample mean, hypothesized mean, population standard deviation and sample size, and get the z-statistic, degrees of freedom and p-value. The significance conclusion is explained — essential for statistics coursework and research.

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

info Z Test Calculator

Free math calculator — enter your numbers and get an instant, accurate result.

info Private by design

Everything runs locally in your browser. No uploads, no accounts, no tracking.

info Works everywhere

Fully responsive and mobile-friendly — calculate on any device, any time.

info Educational

Includes the formula and step-by-step explanation so you understand the math, not just the answer.

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

lightbulb Worked example

Let's say you are using the Z Test Calculator. Calculates z test using z = (x-bar - mu) / (sigma / sqrt(n)), instantly in your browser. Enter the values that match your situation into the input fields and press calculate — using realistic numbers makes the result directly useful for you.

Result: The calculator instantly applies the formula z = (x-bar - mu) / (sigma / sqrt(n)); p-value from the standard normal distribution and returns the result with appropriate precision.

What this means: Read the result in the context of what you are measuring. The step-by-step breakdown lets you confirm the math and understand which input most affects the outcome.

Formula & methodology

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

The Z Test Calculator is built on a well-established calculation method. It uses the formula z = (x-bar - mu) / (sigma / sqrt(n)); p-value from the standard normal distribution to turn your inputs into a reliable result. Calculates z test using z = (x-bar - mu) / (sigma / sqrt(n)), instantly in your browser. The steps are shown on the page so you can follow the reasoning from input to output.

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.

What is the Z Test Calculator?

The Z Test Calculator is a free, browser-based math calculator tool that helps you Calculates z test using z = (x-bar - mu) / (sigma / sqrt(n)), instantly in your browser.. Instead of working through the math by hand or in a spreadsheet, you enter your values and the calculator returns an accurate result instantly — while still showing the formula and the steps so you can verify the reasoning. It is designed for quick everyday use: no sign-up, no installation, and everything runs locally in your browser for complete privacy.

How to use the Z Test Calculator

  1. Enter the required values into the input fields.
  2. Press the calculate button — the result appears immediately, updated live as you change any value.
  3. Read the step-by-step breakdown below the result to see exactly how the calculation was performed.
  4. Use the interpretation guide to understand what the result means for your situation, and try different inputs to see how they change the outcome.

How to use the Z Test Calculator

Enter the sample mean, the population mean under the null hypothesis, the population standard deviation, the sample size, and your significance level (commonly 0.05). The tool computes the test statistic z = (x̄ − μ) ÷ (σ ÷ √n) and derives the p-value from the standard normal distribution. If the p-value is below the significance level, the result is statistically significant — the sample mean differs from the hypothesized value more than random sampling would explain.

Interpreting your result

The z-test answers whether a sample mean is plausibly drawn from a population with the hypothesized mean, given known population spread. The standard error σ ÷ √n shrinks as the sample grows, which is why large samples can detect tiny differences. The p-value is the probability of seeing a sample mean this extreme if the null hypothesis were true — a small p-value means the evidence against the null is strong. A significant result does not mean the difference is practically important; with enough data, trivial differences become significant.

Common mistakes to avoid

The most common error is using the z-test when the population standard deviation is unknown — that requires the t-test with the sample standard deviation, especially for small samples. Second, misinterpreting the p-value as the probability the null is true; it is a conditional probability under the null. Third, ignoring the significance-level choice — 0.05 is a convention, and the conclusion flips with the level. Finally, confusing statistical significance with practical significance: always look at the effect size, not just the p-value.

Tips for best results

Confirm you actually know the population standard deviation before choosing the z-test over the t-test. State the null and alternative hypotheses before running the test. Report the p-value and the effect size together. For one-tailed questions (testing only whether the mean increased), use the one-tailed option deliberately. Pre-register the significance level to avoid moving the goalposts after seeing the data. When the sample is under 30, prefer the t-test unless σ is known.

Authoritative source: Wolfram MathWorld

Frequently asked questions

When should I use a z-test vs a t-test?
The Z Test Calculator is free, private, and accurate: it runs entirely in your browser (no uploads, no accounts), applies the standard calculation, and explains each step so you can verify the result. Calculates z test using z = (x-bar - mu) / (sigma / sqrt(n)), instantly in your browser. There is no limit on usage, and it works on any device.
How do I interpret the p-value?
Enter the required values into the input fields and press the calculate button. The tool applies the formula z = (x-bar - mu) / (sigma / sqrt(n)); p-value from the standard normal distribution and returns the result with a short explanation of each step, so you can check the working yourself.
What is the z-statistic?
The z-statistic is the test value z = (x̄ − μ) ÷ (σ ÷ √n), measuring how many standard errors the sample mean lies from the hypothesized population mean. A large absolute z means the sample is far from what the null hypothesis predicts. It is compared against the critical z for your significance level to decide whether to reject the null.
What's the difference between one- and two-tailed tests?
A two-tailed test checks whether the sample mean differs from the hypothesized value in either direction, splitting the significance level between both tails. A one-tailed test checks a specific direction — greater than or less than — putting the entire level in one tail. One-tailed tests are more powerful for detecting a directional effect but risk missing an opposite-direction surprise.
What does it mean to reject the null hypothesis?
The Z Test Calculator is a free online tool that calculates z test using z = (x-bar - mu) / (sigma / sqrt(n)), instantly in your browser. You enter a few values, and it returns an accurate result together with a step-by-step explanation, so it works as both a calculator and a quick reference for the underlying concept.
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.
What does the Z Test Calculator do?
Calculates z test using z = (x-bar - mu) / (sigma / sqrt(n)), instantly in your browser. The calculator takes your inputs, applies the standard calculation, and returns a clear result so you can make an informed decision without doing the math by hand.
What formula does the Z Test Calculator use?
The Z Test Calculator applies the standard formula: z = (x-bar - mu) / (sigma / sqrt(n)); p-value from the standard normal distribution. The tool walks through each step of the calculation so you can verify the numbers yourself.
Is the Z Test Calculator free and private?
Yes — the Z Test Calculator. There is no sign-up, no paywall, no trial, and no limit on how many calculations you can run. CalcaTools covers its costs with non-intrusive display advertising, so the calculator itself never asks for payment or restricts any feature.
How accurate is the Z Test Calculator?
The Z Test Calculator applies the standard formula: z = (x-bar - mu) / (sigma / sqrt(n)); p-value from the standard normal distribution. It is tested against published worked examples before launch and uses native double-precision arithmetic, so results are accurate to typical precision for the values you enter — with no intermediate rounding that could distort the answer.

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.