Z Test Statistic Calculator

This z test statistic calculator computes the z-score for a single value, a sample mean, a proportion or the difference of two proportions, with the left-tail, right-tail and two-tailed p-values.

Checks on your data

  • The z statistic for a mean needs σ known, or a large sample (about 30 or more). Otherwise use a t-test. Use a t-test →

Results

z for a sample mean
1.725
Two-tailed p-value
0.084527
Right-tail p-value
0.0422637
Left-tail p-value
0.957736
Percentile of this z
95.774 th
share of the standard normal below z
Critical z (α = 0.05, two-tailed)
± 1.96
Standard error / spread used
1.33333
Significant at α = 0.05? (two-tailed)
No
Standard normal curve: shaded area is the cumulative probability up to your z
-4-2024z = 1.72
Reference: z and cumulative probability
zP(Z ≤ z)Interpretation
-30.0013499unusual (|z| ≥ 2)
-20.02275unusual (|z| ≥ 2)
-10.15866typical
00.5typical
10.84134typical
20.97725unusual (|z| ≥ 2)
30.99865unusual (|z| ≥ 2)
Show step-by-step solution
  1. z = (x̄ − μ₀) ÷ (σ/√n) = (52.3 − 50) ÷ 1.33333 = 1.725.
  2. Left-tail area Φ(z) = 0.957736; right-tail = 0.0422637.
  3. Two-tailed p-value = 2 × min(left, right) = 0.0845275.
IdeaDistance from H₀ in SE units
DistributionStandard normal
|z| ≥ 1.96Significant at 5% (two-tailed)
CoversMean, proportion, 2 proportions

What Is Z Test Statistic?

A z test statistic measures how many standard errors an observed value lies from its expected value under the null hypothesis. The general pattern is z = (observed − expected) ÷ standard error, and only the standard error changes between the four cases covered here.

The calculator gives all three p-values so you can choose the one that matches your alternative hypothesis, plus the percentile of the z-score and whether |z| ≥ 1.96, the usual two-tailed cut-off at the 5 % level. For a full test with a decision and confidence interval, use the z-test calculator.

Below you will find the formulas, a variables table, a worked example and answers to common questions such as how to compute z for a proportion and how to choose the tail.

How to Use the Z Test Statistic Calculator

  1. Choose what you are standardising.
  2. Fill in the matching inputs.
  3. Read z and the p-value that matches your alternative hypothesis (two-tailed, right or left).
  4. Compare |z| with the critical value, for example 1.96 at α = 0.05 (two-tailed).

Z Test Statistic Formula

z-score of one value

z=x−μσz=\frac{x-\mu}{\sigma}

z for a sample mean

z=xˉ−μ0σ/nz=\frac{\bar x-\mu_0}{\sigma/\sqrt n}

z for a proportion

z=p^−p0p0(1−p0)/nz=\frac{\hat p-p_0}{\sqrt{p_0(1-p_0)/n}}

z for two proportions

z=p^1−p^2p^(1−p^)(1/n1+1/n2)z=\frac{\hat p_1-\hat p_2}{\sqrt{\hat p(1-\hat p)(1/n_1+1/n_2)}}

Z Test Statistic Variables Explained

SymbolMeaningNotes
zTest statistic(observed − expected) ÷ SE
x̄, μ₀, σ, nInputs for a meanz = (x̄ − μ₀) ÷ (σ/√n)
p̂, p₀Sample and hypothesised proportionFor a proportion
SEStandard errorDepends on the case

Z Test Statistic Worked Example

Using the example values (press “Load example” above to try them):

  1. z = (x̄ − μ₀) ÷ (σ/√n) = (52.3 − 50) ÷ 1.33333 = 1.725.
  2. Left-tail area Φ(z) = 0.957736; right-tail = 0.0422637.
  3. Two-tailed p-value = 2 × min(left, right) = 0.0845275.

Result: z for a sample mean = 1.725; Two-tailed p-value = 0.084527.

Reading the z value

What different z values mean
|z|Two-tailed p-valueReading
0 to 1above 0.32Very ordinary
1.6450.10Significant at 10%
1.960.05Significant at 5%
2.5760.01Significant at 1%
3.2910.001Significant at 0.1%
Above 4below 0.0001Extremely unusual under H₀

z or t?

Use a z statistic when the population standard deviation is known, or when you test a proportion (where the variance is determined by p₀). If σ is unknown and you estimate it from the sample, use a t statistic, which is wider in the tails for small samples. With n above 30 the two give almost identical answers.

Conditions

  • Random sample with independent observations.
  • For means: the population is roughly normal or n is large (about 30 or more).
  • For proportions: expected successes and failures at least 10 under H₀.
  • For two proportions: both groups have at least 10 successes and failures.

Where Z Test Statistic Is Used

Standardising a value

Finding how far one observation is from the mean in SD units.

Testing a mean or proportion

Computing the statistic and the matching p-values.

Comparing two proportions

Getting z for the difference between two rates.

Coursework

Checking z calculations and tail choices.

Common Z Test Statistic Mistakes to Avoid

  • The sign of z shows direction; the size shows strength.
  • For a left-tailed test use the left-tail p-value, for right-tailed the right-tail value.
  • A z-score for a single value is a standardised distance, not a test of a hypothesis.

Z Test Statistic Terms and Definitions

z-score
The number of standard deviations a value lies from the mean.
Standard error
The standard deviation of a statistic such as the sample mean.

Z Test Statistic FAQs

What is a z test statistic?

A standardised value that tells you how many standard errors a sample estimate is from the hypothesised value.

How do I calculate the z test statistic for a mean?

Subtract the hypothesised mean from the sample mean and divide by σ/√n.

What is the critical z for 95% confidence?

1.96 for a two-tailed test. For a one-tailed 5% test it is 1.645.

How do I get a p-value from z?

Use the standard normal distribution: left tail Φ(z), right tail 1 − Φ(z), two-tailed twice the smaller tail.

What is the difference between z-score and z-statistic?

A z-score standardises a single observation. A z-statistic standardises a sample statistic such as a mean, using its standard error.

Can z be negative?

Yes. A negative z means the observed value is below the hypothesised value.

Related calculators

Last updated 2026-11-09. See our disclaimer.