Home · Statistics · Distributions & Sampling · Uniform Distribution Calculator
Uniform Distribution Calculator
The cumulative probability P(X ≤ x) for a continuous uniform distribution on the interval [a, b], where every value in the range is equally likely.
What this calculator does
The cumulative probability P(X ≤ x) for a continuous uniform distribution on the interval [a, b], where every value in the range is equally likely. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
The main result is the cumulative probability P(X ≤ x), expressed as a percentage.
The density is flat at 1/(b − a) across [a, b] and zero outside it, so the CDF grows linearly from 0% at a to 100% at b.
x should lie inside [a, b]; values below a give 0% and values above b give 100%.
Worked example
With the example inputs this page opens with (lower bound a 0, upper bound b 10, value x 7), the result is 70.00. Change any figure and the result updates with the same formula.
Quick reference
| Lower bound a | Result |
|---|---|
| 0 | 70.00 |
| 1 | 66.67 |
| 2 | 62.50 |
| 5 | 40.00 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why is the probability just a proportion of the interval?
Because the density is constant, probability is proportional to length. Reaching 7 out of the way from 0 to 10 covers 70% of the interval, hence 70% of the probability.
What are the mean and standard deviation of a uniform distribution?
The mean is the midpoint (a + b)/2 and the standard deviation is (b − a)/√12. For [0, 10] those are 5 and about 2.89.
How does the Uniform Distribution Calculator work?
The cumulative probability P(X ≤ x) for a continuous uniform distribution on the interval [a, b], where every value in the range is equally likely. Lower bound a · Upper bound b · Value x → P(X ≤ x) (%). The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Uniform Distribution Calculator need?
Lower bound a · Upper bound b · Value x → P(X ≤ x) (%). Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.