Uniform Distribution Calculator

Enter your lower bound (a) and upper bound (b) to compute key uniform distribution statistics. Specify an interval [x₁, x₂] to get the probability P(x₁ ≤ X ≤ x₂), plus the PDF, CDF, mean, median, variance, and standard deviation — all calculated for your continuous uniform distribution U(a, b).

The minimum value of the uniform distribution.

The maximum value of the uniform distribution. Must be greater than a.

Lower bound of the interval for probability calculation. Must be ≥ a.

Upper bound of the interval for probability calculation. Must be ≤ b.

Results

P(x₁ ≤ X ≤ x₂)

--

Probability Density Function f(x)

--

CDF at x₁ — F(x₁)

--

CDF at x₂ — F(x₂)

--

Mean (μ)

--

Median

--

Variance (σ²)

--

Standard Deviation (σ)

--

Probability Breakdown

Results Table

Frequently Asked Questions

What is the uniform distribution?

The uniform distribution is a continuous probability distribution where all outcomes within a given interval [a, b] are equally likely. The probability is spread evenly across the interval, meaning every sub-interval of equal length has the same probability. It is sometimes called the rectangular distribution because its PDF graph looks like a rectangle.

How do I calculate the uniform distribution probability?

For a continuous uniform distribution U(a, b), the probability that X falls between x₁ and x₂ is P(x₁ ≤ X ≤ x₂) = (x₂ − x₁) / (b − a), provided a ≤ x₁ < x₂ ≤ b. Simply subtract the lower interval bound from the upper, then divide by the total range of the distribution.

How do I calculate the expected value (mean) of the uniform distribution?

The mean (expected value) of a continuous uniform distribution U(a, b) is μ = (a + b) / 2. It is simply the midpoint of the interval [a, b]. For example, if a = 0 and b = 10, the mean is 5.

How do I calculate the median of the uniform distribution?

The median of a continuous uniform distribution equals the mean, which is (a + b) / 2. Because the distribution is symmetric over [a, b], the median and the mean coincide at the midpoint of the interval.

How do I calculate the standard deviation of the uniform distribution?

The variance of U(a, b) is σ² = (b − a)² / 12, and the standard deviation is σ = (b − a) / √12. For instance, with a = 0 and b = 10, the standard deviation is 10 / √12 ≈ 2.887.

What is the probability density function (PDF) of the uniform distribution?

The PDF of a continuous uniform distribution is f(x) = 1 / (b − a) for a ≤ x ≤ b, and 0 otherwise. This constant value reflects the fact that every point in [a, b] is equally likely. The PDF is flat (constant), which is why the shape is rectangular.

What is the cumulative distribution function (CDF) of the uniform distribution?

The CDF F(x) gives the probability that X is less than or equal to a specific value x. For U(a, b): F(x) = 0 for x < a, F(x) = (x − a) / (b − a) for a ≤ x ≤ b, and F(x) = 1 for x > b. It increases linearly from 0 to 1 over the interval [a, b].

Is the uniform distribution the same as the normal distribution?

No, they are different. The normal distribution is bell-shaped, with most values clustering around the mean and probabilities tapering off toward the tails. The uniform distribution assigns equal probability to all values in [a, b] — its PDF is flat, not bell-shaped. The two distributions share no functional form.

More Statistics Tools