Loading…

Uniform Distributions Probability Calculator

Math Probability • Continuous Probability Distributions

View all topics

Uniform Distribution Probability Calculator – Interval Probability on [min, max] (Free)

For a continuous uniform random variable \(X\sim \mathrm{Unif}[\text{min},\text{max}]\), compute \(\;P(a<X<b)=\dfrac{\text{length of overlap}}{\text{max}-\text{min}}\;\) and visualize the flat PDF.

Tip: Click Fill example, then Calculate. Press Play to animate the shaded interval. Drag the plot to pan; use wheel/trackpad to zoom.

Inputs
The uniform PDF is constant: \(\;f(x)=\dfrac{1}{\text{max}-\text{min}}\;\) for \(x\in[\text{min},\text{max}]\), and 0 outside.
Interval
If \(a\) or \(b\) lies outside \([\text{min},\text{max}]\), the calculator uses the overlap with the support. (Endpoints don’t matter for continuous distributions.)
Settings
Drag on the plot to pan. Use mouse wheel / trackpad to zoom. Tick labels stay inside the frame.
Ready
Flat PDF plot (uniform) — shaded interval probability

The shaded area equals \(P(a<X<b)\). The height is \(1/(\text{max}-\text{min})\).

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

Why is the probability a ratio of lengths?

For a uniform distribution, the density is constant on [min,max], so the probability over an interval is the rectangle area: (overlap length) * (1/(max-min)).

Do endpoints matter for P(a < X < b)?

No. For continuous distributions, P(X=a)=0, so open or closed endpoints give the same probability.

What if my interval extends outside the support?

Only the overlap with [min,max] contributes; probability outside the support is 0.

What is the variance of a uniform distribution?

Var(X) = (max-min)^2/12, and the standard deviation is sqrt(Var).