Skip to content
Hands-on Mentor
ENTR
Back to blog

Normal distribution and the 68-95-99.7 rule, explained

The normal distribution is a symmetric bell curve set by its mean and standard deviation. Learn the 68-95-99.7 rule, z-scores and when data is not normal.

5 min read

The normal distribution is a bell-shaped curve where values cluster symmetrically around the mean and become rarer the farther you go from it. Two numbers define it: the mean (the center) and the standard deviation (the width). The 68-95-99.7 rule says that in a normal distribution about 68% of values fall within 1 standard deviation of the mean, about 95% within 2, and about 99.7% within 3.

What is the 68-95-99.7 rule?

Say the time Bazaar, a fictional online store, takes to pack an order is roughly normal, with a mean of 30 minutes and a standard deviation of 5 minutes. (If you need a refresher, read [standard deviation explained](/blog/standard-deviation-explained).) The rule gives you ranges with no calculation:

RangeMinutesShare of orders
Mean ± 1 standard deviation25 to 35about 68%
Mean ± 2 standard deviations20 to 40about 95%
Mean ± 3 standard deviations15 to 45about 99.7%

About 95% of orders are packed in 20 to 40 minutes. The remaining 5% splits between both ends: about 2.5% take under 20 minutes and about 2.5% take over 40. An order that takes more than 45 minutes is very rare, so it is worth asking why rather than calling it normal variation.

How do you get exact values in Python?

import numpy as np
from scipy import stats

packing = stats.norm(loc=30, scale=5)
print(round(packing.cdf(35) - packing.cdf(25), 4))
print(round(packing.cdf(40) - packing.cdf(20), 4))
print(round(packing.cdf(45) - packing.cdf(15), 4))
print(round(1 - packing.cdf(40), 4))
print(round(packing.ppf(0.95), 1))
0.6827
0.9545
0.9973
0.0228
38.2

The first three lines give the exact shares behind the rule: 68.27%, 95.45% and 99.73%. Line 4 is the share of orders over 40 minutes: 0.0228, about 2.3%. The rule said "about 2.5%", and the small gap comes from rounding.

cdf (cumulative distribution function) gives the probability of a value at or below a number. For a range, subtract the lower cdf from the upper one. ppf is the reverse: you give a probability and get the value. Line 5 says 95% of orders are packed within 38.2 minutes. If the store wants to promise a packing time, promising the mean (30 minutes) would fail for half of the orders, and ppf helps you choose a safer number.

You can also check the rule by simulation. This draws 10,000 packing times from the same curve:

rng = np.random.default_rng(7)
sample = rng.normal(30, 5, size=10_000)
for k in [1, 2, 3]:
    print(k, round((np.abs(sample - 30) <= k * 5).mean() * 100, 1))
1 68.2
2 95.4
3 99.7

What is a z-score?

A z-score tells you how many standard deviations a value is from the mean:

z = (value - mean) / standard deviation

For a 40-minute order, z = (40 - 30) / 5 = 2. Saying "2 standard deviations above the mean" lets you compare data in different units.

Here is an example. Maya scored 70 in math (class mean 55, standard deviation 10) and 80 in English (class mean 75, standard deviation 5). The raw scores make English look better. The z-scores tell another story:

print((70 - 55) / 10, (80 - 75) / 5)
1.5 1.0

Compared with her class, Maya did better in math (z = 1.5) than in English (z = 1.0).

Which data is normal, and which is not?

Measurements built from many small, independent effects tend to be close to normal: height, measurement errors, small variations in manufacturing. Many things are not:

  • Income, order amounts, house prices. They are right-skewed, with a few very large values.
  • Waiting times. They cannot go below zero and are usually right-skewed.
  • Counts with small numbers. Complaints per day will not look bell-shaped.

Always look at a histogram before using the rule. To see what goes wrong, test it on skewed data:

skew = rng.exponential(30, size=10_000)
print(round((np.abs(skew - skew.mean()) <= skew.std()).mean() * 100, 1))
85.9

For this skewed sample, 85.9% of values fall within 1 standard deviation, not 68%. The rule only works for bell-shaped data. Even "roughly normal" is a model: the curve stretches forever in both directions, while a real packing time cannot be negative. The model is useful as long as it describes most of the data well.

Why does the normal distribution matter so much?

The central limit theorem says that averages of large enough samples are roughly normal, even when single values are not. [Confidence intervals](/blog/confidence-interval-explained) and many hypothesis tests rely on this. That is why the normal curve appears all over statistics.

Common mistakes

  • Assuming all data is normal. On skewed data the rule gives wrong estimates.
  • Treating both tails as one. The 5% outside ±2 standard deviations splits across two ends, so "over 40 minutes" is about 2.5%, not 5%.
  • Forgetting the standard deviation. The mean alone does not describe the spread.

What to read next

The lessons [Distribution shape and z-scores](/learn/statistics-data-analysis/distribution-shape-z-score) and [The normal model and the central limit theorem](/learn/statistics-data-analysis/normal-model-clt) calculate these probabilities on Bazaar data. You can also explore the [Statistics and Data Analysis course](/courses/statistics-data-analysis) (44 lessons, free) or start with [mean, median, mode](/blog/mean-median-mode).

  • #statistics
  • #normal distribution
  • #bell curve
  • #z-score
All posts