Z-Test Calculator | Compute Z Statistic For A Sample Mean
Last updated: July 2026 · Free · No sign-up required
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:
| Test | 0.05 level | 0.01 level |
|---|---|---|
| Two-tailed | +/-1.96 | +/-2.576 |
| One-tailed | 1.645 | 2.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:
| Condition | Conclusion |
|---|---|
| p < alpha | Reject the null hypothesis |
| p >= alpha | Fail to reject the null |
| |z| large | Sample far from the null value |
| |z| near 0 | Sample consistent with the null |
lightbulb Worked example
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
- Enter the required values into the input fields.
- Press the calculate button — the result appears immediately, updated live as you change any value.
- Read the step-by-step breakdown below the result to see exactly how the calculation was performed.
- 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
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.
Center & spread
- Statistics Calculator | Compute Mean, Median, Mode & Quartiles
- Mean Median Mode Calculator | Get mean, median, mode & count
- Variance Calculator | Calculate variance from data samples
- Standard Deviation Calculator | Compute mean, variance & std dev
- Absolute Deviation Calculator | Compute absolute deviation
- Coefficient of Variation Calculator | CV from SD & mean
- Percentile Range Calculator | Get Spread Between Two Percentiles
- Percent Deviation Calculator | Percent deviation from reference
Distributions
Hypothesis tests
Scores, intervals & samples
- Z-Score Calculator | Compute Standard Score and Percentile
- Confidence Interval Calculator | Get mean & proportion CIs
- Sample Size Calculator | Find required sample size for confidence & margin
- Population Proportion Calculator | Estimate Proportion: SE & CI
- Upper and Lower Bound Calculator | Bounds from value & unit
- Mean Squared Error Calculator | MSE between obs & preds
- Coefficient Of Determination Calculator | Report R² & Regression