Math

How Z-Scores and P-Values Work (Normal Distribution and Hypothesis Tests)

A z-score is (value − mean) ÷ standard deviation, and a p-value is the probability of a result at least this extreme if the null hypothesis is true. A score of 85 with mean 70 and standard deviation 10 has z = 1.5, the 93.3th percentile. A two-tailed z of 1.96 gives p ≈ 0.05.

By CalculatorHub Editorial TeamPublished December 2, 2026Updated December 2, 20267 min read
Run the numbers yourself. Try our free Z-Score Calculator and see the result with your own figures.

Z-scores: how many standard deviations?

A z-score converts a value to standard units: z = (x − μ) ÷ σ. It says how far from the mean a value is, measured in standard deviations. With a mean of 70 and a standard deviation of 10, a score of 85 has z = 1.5, a score of 60 has z = −1, and a score of 70 has z = 0. Because z-scores remove the original units, you can compare an exam result with a height or a running time.

The normal distribution and percentiles

Many measurements follow a bell-shaped normal curve. For a normal distribution, the share of values below a given z is fixed:

zPercentile
-22.28%
-115.87%
050%
184.13%
1.64595%
1.9697.5%
297.72%
399.87%

The 68–95–99.7 rule follows: about 68% of values lie within one standard deviation of the mean, 95% within two (more exactly 1.96) and 99.7% within three. A value beyond z = ±3 is rare.

Hypothesis tests in a nutshell

  1. State a null hypothesis (no effect) and an alternative.
  2. Choose a significance level α, such as 0.05, before seeing the data.
  3. Compute a test statistic (z or t) from the sample.
  4. Find the p-value: the probability, if the null were true, of a statistic at least as extreme.
  5. If p < α, reject the null; otherwise do not reject it.

One-tailed and two-tailed

A two-tailed test looks for a difference in either direction and counts both tails: p = 2 × P(Z > |z|). For z = 1.96, p = 0.05. A right-tailed test looks only for an increase: for z = 1.645, p = 0.05. Choose the direction before collecting data, not after.

z or t?

The t distribution replaces z when you estimate the standard deviation from a small sample. It has heavier tails, so the same statistic gives a larger p-value. With t = 2.228 and 10 degrees of freedom, the two-tailed p is 0.05, while z = 2.228 would give 0.0259.

What a p-value is not

  • It is not the probability that the null hypothesis is true.
  • It is not the probability that your result happened “by chance” alone.
  • A small p does not mean a large or important effect.
  • A large p does not prove there is no effect; the sample may simply be too small.

Calculate your own values with the z-score calculator and the p-value calculator, and get the standard deviation of a data set with the standard deviation calculator.

Key terms

  • Z-score: Distance from the mean in standard deviations.
  • Percentile: The share of values below a point.
  • Null hypothesis: The claim of no effect.
  • Significance level: The threshold for rejecting the null.
  • Two-tailed test: A test for a difference in either direction.

Practice questions

Try each one before you read the answer.

  1. Mean 100, standard deviation 15, value 130. z-score?
    Answer: 2.
  2. A z-score of 0 is at which percentile?
    Answer: 50th.
  3. p = 0.03 and α = 0.05. Decision?
    Answer: Reject the null hypothesis.

Frequently asked questions

What does a p-value of 0.03 mean?

If the null hypothesis were true, a result at least this extreme would occur about 3% of the time. At α = 0.05 you would reject the null.

Is a z-score of 2 unusual?

It is outside the central 95% only just: about 4.6% of values in a normal distribution lie beyond ±2.

What is the difference between significance and importance?

Statistical significance only says an effect is unlikely to be zero. Importance depends on the size of the effect and its real-world meaning.

Try the calculators

Keep reading