Chebyshev Inequality Calculator

A guaranteed bound, whatever the distribution.

  • Any distribution
  • One- and two-sided
  • Checks your data
A smooth sandy mound in a garden, ringed with small pebbles, with a wooden plank resting at its left and a soft blurred lawn behind.

The guide

A mean and a spread promise something about any distribution, but the promise is a weak one

Chebyshev's inequality guarantees that at most 1 in k squared values lies k standard deviations from the mean, whatever the distribution, and the guarantee is reached only in one narrow case.

  • 75% least share within 2 standard deviations, any distribution
  • 4.4721 standard deviations needed to cover 95%
  • 1/5 one-sided bound at k = 2, against 1/4 for both sides
  • 95.45% what a normal distribution holds within 2
Read the full guide Fold the guide 6 min · 12 sources

Most people meet the 68-95-99.7 rule first and take it for a law of nature. It is a property of one particular shape, the normal distribution. Chebyshev’s inequality is what survives when you know far less.

The inequality needs two numbers, a mean and a standard deviation. With them it says that the probability of landing k or more standard deviations from the mean is at most 1 divided by k squared. It does not ask whether the distribution is symmetric, bell shaped, bounded or smooth. It asks only that the mean and variance exist and that the variance is not zero.

Put numbers on it. At k = 2 the bound is 1/4, so at least 3/4 of any such distribution lies within two standard deviations: 75%. At k = 3 the minimum within is 8/9, about 88.89%. At k = 4 it is 15/16, which is 93.75%. Those shares hold for waiting times, test scores, rainfall or anything else with a finite spread.

Where the guarantee comes from

The name is slightly unfair to the man who first stated it. His friend Bienayme formulated the inequality and proved it in 1853, and Pafnuty Chebyshev proved a more general form in 1867. Chebyshev’s paper of that year, On mean values, used the inequality to reach a generalised law of large numbers, which is why it is often called the Bienayme-Chebyshev inequality.

Andrey Markov, who had attended Chebyshev’s lectures as a student, gave another proof in his doctoral thesis of 1884. His name is also on a simpler inequality that sits underneath the first. For a quantity that can never be negative, the probability of reaching a threshold a is at most the mean divided by a.

The proof takes two lines. Apply Markov’s bound to the squared distance from the mean, which cannot be negative, with the threshold set to k sigma, squared. The mean of that squared distance is the variance, sigma squared, so the bound is sigma squared over k squared sigma squared, which is 1 over k squared.

The same derivation shows why the result is loose. Markov’s step discards everything about the values that fall inside the interval, and it treats every value outside as if it sat exactly at the edge. Real data rarely behaves that badly, which is why the share actually observed beyond k is often well below the bound.

Two words deserve care. Beyond means k or more standard deviations from the mean, on either side. Within means less than k. A common slip is to swap them and report that at most 75% lies inside two standard deviations, when the guarantee runs the other way. Another is to apply the bound at k = 1 or below. There 1 over k squared is 1 or more, so the statement is true and empty: it says nothing.

How loose is loose

A normal distribution holds about 68.27% within one standard deviation, 95.45% within two and 99.73% within three. Set that beside the guarantee of 75% at two and 88.89% at three. The gaps are 20.45 and 10.84 percentage points, and they are the price of not knowing the shape. The gap shrinks as k grows, but slowly, because the guarantee falls off as a power of k while the normal tail falls off far faster.

The normal figures come from the error function, an integral of the bell curve’s shape. For a normal distribution with standard deviation sigma, the error function of a divided by sigma times the square root of two is the probability that a measurement lies between minus a and a. The calculator evaluates it directly and sets it beside exact fractions for Chebyshev.

Take articles that average 1,000 words with a standard deviation of 200. Chebyshev says at least 75% of them run between 600 and 1,400 words. If the lengths were normal, the middle 75% would span only about 770 to 1,230. The first statement costs no assumptions. The second is far sharper and rests entirely on the shape.

Turn the question around and ask how far out you must go. For a coverage c, set 1 minus 1 over k squared equal to c. That gives k as 1 over the square root of 1 minus c. For 95% the answer is the square root of 20, or 4.4721. For 99% it is exactly 10. The familiar 1.96 for 95% belongs to the normal distribution alone. Anyone who quotes it without knowing the shape is borrowing a guarantee they have not earned.

Here is a worked example you can reproduce. Take a mean of 10, a standard deviation of 2.5 and k = 2. At least 3/4 of any distribution with those two numbers lies strictly between 5 and 15, and at most 1/4 lies at 5 or below or at 15 or above. If the quantity cannot be negative, Markov with a threshold of 25 adds that at most 10 over 25, which is 2/5, can reach 25.

One side, and the cases that reach the bound

Chebyshev counts both tails together. When only one direction matters, such as sales falling below a floor, Francesco Cantelli’s one-sided version is sharper. The probability of landing lambda or more above the mean is at most sigma squared over sigma squared plus lambda squared. With lambda equal to k sigma that is 1/(1 + k squared). At k = 2 it is 1/5, against 1/4 from the two-sided bound.

Cantelli published it in 1928, though it traces back to Chebyshev’s work of 1874. Added for both tails it gives a total that is never better than Chebyshev’s own, so the one-sided form is meant for one side only. A neat consequence: the mean and the median of any distribution with a finite spread can never differ by more than one standard deviation.

Can the bound ever be exact? Yes. Take three values, -2, 0 and 2, with probabilities 1/8, 3/4 and 1/8. The mean is 0 and the variance is 1. The chance of being two or more standard deviations out is 1/8 plus 1/8, which is 1/4, the bound itself.

For general k use the values -k, 0 and k with probability 1 over twice k squared at each end. Only distributions of this shape, shifted and scaled, reach the bound exactly. Nothing sharper can be promised for every distribution without knowing more.

Markov’s bound is tight in the same sense: for each threshold some variable reaches it. Tightness is a statement about the worst case, never about the typical one, and a real data set that lands exactly on the bound is rare.

What it will not tell you

Know a little more and the bound tightens. If the distribution has a single peak, the Vysochanskij-Petunin inequality cuts the bound to 4 over 9 k squared once k is at least about 1.633, less than half the Chebyshev figure. The price is the assumption, and the calculator does not make it.

A list of numbers raises two further points. Treat the list as the whole population and the bound holds exactly: the share of listed values at least k standard deviations from the list’s own mean is at most 1 over k squared. The sample standard deviation divides by n minus 1, the Bessel correction, so it is larger, values must sit farther out to count, and the bound holds again.

On the list 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the population standard deviation is 2. One value of eight lies two or more standard deviations away, and the bound allows two. At one standard deviation, three of the eight lie beyond, where the bound says nothing.

Do not mistake this for a statement about a future observation when the mean and spread were estimated from a small sample. That case has its own, wider inequalities. One published table, quoted on the Wikipedia page, gives a multiplier of about 4.47 for 95% at 59 observations, which is 2.28 times the normal figure.

Exact arithmetic matters for a quiet reason. A count against a bound is a yes or no question, and a value sitting exactly k standard deviations out must be counted. So the tool reads decimal text as an exact fraction, as Python’s Fraction does with a string, because a binary floating point 1.1 is not exactly eleven tenths. Counting 100,000 numbers runs in a background worker so the page stays responsive.

The inequality does not say whether a distribution is normal, does not build a confidence interval and does not describe any named distribution. It is a worst-case guarantee, usually far looser than the truth. Its value is that it needs almost nothing. When all you know is a mean and a spread, it is the strongest honest statement available.

Sources

Every source consulted for this guide. Links checked November 10, 2026.

  1. Chebyshev's inequality Wikipedia
  2. Cantelli's inequality Wikipedia
  3. Markov's inequality Wikipedia
  4. Vysochanskij-Petunin inequality Wikipedia
  5. 68-95-99.7 rule Wikipedia
  6. Error function Wikipedia
  7. DLMF: Section 7.2 Definitions, Chapter 7 Error Functions, Dawson's and Fresnel Integrals NIST Digital Library of Mathematical Functions
  8. Bessel's correction Wikipedia
  9. Pafnuty Chebyshev (1821 - 1894) - Biography - MacTutor History of Mathematics MacTutor History of Mathematics Archive, University of St Andrews
  10. Andrei Andreyevich Markov (1856 - 1922) - Biography - MacTutor History of Mathematics MacTutor History of Mathematics Archive, University of St Andrews
  11. fractions - Rational numbers Python Software Foundation
  12. Web Workers API - Web APIs MDN Web Docs