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

View Sponsored Offers →

Related Tools

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.

Chi-Square Calculator

Use our Chi-Square Calculator to run goodness-of-fit and independence tests, or find right-tail p-values and critical χ² values from df and alpha.

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.

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.

t-statistic Calculator

Use our t-Statistic Calculator to compute the t value, degrees of freedom, and standard error for one-sample, two-sample, Welch, pooled, or paired t-tests.

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.

Confidence Interval Calculator

Use our Confidence Interval Calculator to find confidence intervals for a mean or proportion with standard error, critical value, margin of error, and lower and upper bounds.

Z-score Calculator

Use our Z-Score Calculator to standardize a value or sample mean, convert percentile to z, convert z to percentile, and view left-tail and right-tail probabilities.

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.