Z-test Calculator

One-sample • Two-sample • p-value • Critical z

Settings

α
α is optional (default 0.05) to show critical z threshold(s).
Quick summary
Enter summary stats to compute Z-test.
μ₀
σ
n
σ must be known (population SD). n must be integer ≥ 1.

Results

z statistic
p-value
Standard error (SE)
Effect
Critical z
Based on α and tail selection.
Decision
“Reject H₀” if p ≤ α (α default 0.05).
Updating…

Action

Hard reset: cancels pending updates and clears everything on the first click.

Use this Z-Test Calculator to perform one-sample or two-sample mean z-tests when the relevant population standard deviation is known. It calculates the z statistic, standard error, p-value, and critical value.

Calculation Method

One-sample z-test:

z = (x̄ − μ₀) ÷ (σ ÷ √n)

Two-sample z-test:

z = [(x̄₁ − x̄₂) − Δ₀] ÷ √(σ₁²/n₁ + σ₂²/n₂)

The calculator can use two-tailed, left-tailed, or right-tailed alternatives.

Example

Suppose:

Sample mean = 110
Hypothesized mean = 100
Known population SD = 15
Sample size = 25

Standard error:

SE = 15 ÷ √25 = 3

Z statistic:

z = (110 − 100) ÷ 3 ≈ 3.33

Important Note

This mean-based z-test requires a known population standard deviation. If the population standard deviation is unknown and must be estimated from the sample, a t-test is usually more appropriate.

Two-sample mode assumes independent groups. Statistical significance does not automatically imply practical importance or causation.

Sources

More of our calculators...

Percentile Calculator

Use our Percentile Calculator to find percentile values from a data set with nearest rank or linear interpolation. Supports raw numbers and value:count input.

p-value Calculator

Use our P-value Calculator to calculate one-tailed or two-tailed p-values for Z, t, chi-square, and F test statistics.

Outlier Calculator (Tukey Fences)

Use our Outlier Calculator to find low and high outliers with Tukey fences and the IQR method. Get Q1, Q3, IQR, fences, counts, and sorted data fast.

Margin of Error Calculator

Use our Margin of Error Calculator to find margin of error for a mean or proportion from sample size, confidence level, and z value.

IQ PERCENTILE CALCULATOR

Use our IQ Percentile Calculator to convert an IQ score into percentile rank, percent above, and percent below using SD 15 or SD 16 normal-distribution scales.

IQR (Interquartile Range) Calculator

Use our IQR Calculator(Interquartile Range) to find Q1, Q3, median, and interquartile range from a data set. Supports raw numbers, value:count input, and two quartile methods.

Standard Deviation Calculator

Use our Standard Deviation Calculator to find sample or population standard deviation from a data set. Get variance, mean, range, and sorted values fast.

Sample Size Calculator

Use our Sample Size Calculator to estimate sample size for a mean or proportion from confidence level, margin of error, and optional finite population correction.

t-test Calculator

Use our T-Test Calculator to compute t statistic, p-value, confidence interval, and conclusion for one-sample, Welch, pooled, or paired t-tests.