Intermediate

Hypothesis Testing Calculator — One-Sample Z-Test

Test whether your sample mean differs significantly from a known or claimed population mean. Enter the sample mean, the null-hypothesis mean, the population standard deviation, sample size and significance level — and get the z-statistic, p-value and a formal decision.
Known or assumed population standard deviation
Common values: 0.05, 0.01, 0.10

Alternative hypothesis

z-statistic
1.8257

Fail to reject H₀ — result is not statistically significant

p-value
6.7889%
Standard error (SE)
2.7386
Significance level (α)
5.0000%
Decision
Fail to reject H₀
z=1.83Standard normal distribution — shaded area shows the p-value region
Step by step
  1. 1

    Standard error (SE)

    15 ÷ √30 = 2.7386
    SE = σ / √n — how much the sample mean varies by chance.
  2. 2

    z-statistic

    (105 − 100) ÷ 2.7386 = 1.8257
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

The one-sample z-test statistic z = (x̄ − μ₀) / (σ / √n) measures how many standard errors the sample mean is from the null-hypothesis mean μ₀. If the resulting p-value is below the significance level α, reject H₀. Requires known σ and a random, sufficiently large sample.

Formula
z = (x̄ − μ₀) / (σ / √n) • p = 2·P(Z > |z|) for two-tailed
How this is calculated

A one-sample z-test checks whether a sample mean x̄ is compatible with a hypothesised population mean μ₀, given a known (or assumed) population standard deviation σ. The test statistic z = (x̄ − μ₀) / (σ / √n) expresses the observed difference in units of the standard error SE = σ / √n. Under the null hypothesis H₀: μ = μ₀, the statistic follows a standard normal distribution, so the p-value is the probability of observing a z this extreme or more extreme purely by chance.

For a two-tailed test (H₁: μ ≠ μ₀) the p-value equals 2 × P(Z > |z|). For a right-tailed test (H₁: μ > μ₀) it is P(Z > z); for left-tailed (H₁: μ < μ₀) it is P(Z < z). If the p-value is below the significance level α, reject H₀ and call the result statistically significant at that level. The bell curve highlights the computed z and shades the p-value tail area.

Key assumptions: the sample is drawn randomly and independently; the population standard deviation σ is known (if unknown, use a t-test instead); the Central Limit Theorem applies — generally n ≥ 30 or the population is known to be normal. Statistical significance does not imply practical importance; always consider effect size alongside the p-value.

Frequently asked questions

A z-test requires the population standard deviation σ to be known. If you only have the sample standard deviation s, use a t-test, which uses the t-distribution with n − 1 degrees of freedom. For large samples (n ≥ 30) the two tests give nearly identical results.

It means the data do not provide strong enough evidence against the null hypothesis at the chosen significance level — not that H₀ is proven true. The test may simply be underpowered (too small a sample) to detect the actual difference.

Choose before looking at the data. Use a two-tailed test if any difference matters (larger or smaller). Use a one-tailed test only when a difference in the opposite direction is impossible or scientifically irrelevant, and you pre-registered that direction.

APA

TG we-Calculate Editorial Team. (2026). Hypothesis Testing Calculator — One-Sample Z-Test [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/hypothesis-testing-calculator

Chicago

TG we-Calculate Editorial Team. "Hypothesis Testing Calculator — One-Sample Z-Test." TG we-Calculate. 2026. https://we-calculate.com/calculator/hypothesis-testing-calculator.

IEEE

TG we-Calculate Editorial Team, "Hypothesis Testing Calculator — One-Sample Z-Test," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/hypothesis-testing-calculator

BibTeX

@misc{wecalculate_hypothesis_testing_calculator, title = {Hypothesis Testing Calculator — One-Sample Z-Test}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/hypothesis-testing-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?