Skip to content
LoveToCalc

Definition — what does that mean?

Probability for the uniform distribution

The probability of landing in an interval is the interval's share of the whole length.

In Swedish: Sannolikhet för den likformiga fördelningen

Probability for the uniform distribution

The relation

P(c ≤ X ≤ d)=d−cb−a

The probability that a quantity equally likely to fall anywhere between a and b lands in the interval from c to d: the length d − c over the length b − a.

Solve for

P(c ≤ X ≤ d)=0.3

P(c ≤ X ≤ d) equals (5 minus 2) divided by (10 minus 0), equals 3 divided by 10, equals 0.3

Working3 steps

Practice questions

You are given

  • d=9
  • c=4
  • b=12
  • a=2

The formula

P(c ≤ X ≤ d) = (d − c) / (b − a)

Holds for X uniform on [a, b] and an interval [c, d] that lies inside [a, b]. The density is the constant 1/(b − a), so the probability is a rectangle’s area. Outside [a, b] the density is 0, and an interval partly outside is cut at the end.

A bus every 20 minutes, arriving at a random moment; waiting between 5 and 10 minutes: P = (10 − 5)/(20 − 0) = 0.25.

A range with a negative end

X is uniform on [−5, 5] and the interval is [−2, 3]:

Working P
Wrong (3 − (−2))/5 1
Right (3 − (−2))/(5 − (−5)) 0.5

The divisor is the width b − a = 10, not b. Subtracting a negative end adds its size. Because the density is constant, P(X = c) = 0 for any single value, so P(c ≤ X ≤ d) and P(c < X < d) are equal.

Common mistakes

The mean and spread of the same distribution are on the pages for the mean and the variance.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
P(c ≤ X ≤ d)d−cb−a5−210−00.3
cd−P(c ≤ X ≤ d)(b−a)5−0.3(10−0)2
dc+P(c ≤ X ≤ d)(b−a)2+0.3(10−0)5

Last reviewed October 11, 2026 ·How pages are reviewed

Statistics and probabilityAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.