Compute probabilities, statistics, and probability density for the continuous uniform distribution U(a, b). Perfect for modeling random events with equal likelihood across an interval.
Last updated: March 2026
Minimum value (inclusive)
Maximum value (inclusive)
For P(X ≤ x₁)
For P(x₁ ≤ X ≤ x₂)
Mean (μ)
5.0000
Variance (σ²)
8.3333
Std Dev (σ)
2.8868
PDF f(x)
0.100000
Probability Results
The continuous uniform distribution, denoted U(a, b), models the probability of outcomes uniformly distributed over an interval [a, b]. Every value in the range has equal likelihood of occurring — this is the simplest continuous distribution.
Key Formulas:
f(x) = 1/(b−a) for a ≤ x ≤ b, else 0
μ = (a+b)/2
σ² = (b−a)²/12
P(x₁ ≤ X ≤ x₂) = (x₂−x₁)/(b−a)
The uniform distribution is useful for:
Specify the lower bound a and upper bound b. For example, if modeling a random waiting time between 0 and 60 seconds, set a=0 and b=60.
The mean is always (a+b)/2, the midpoint. Variance increases with the interval width: σ²=(b−a)²/12. Larger intervals have greater spread.
For P(X ≤ x₁), use (x₁−a)/(b−a) if x₁ is in [a, b]. For a range P(x₁ ≤ X ≤ x₂), use (x₂−x₁)/(b−a).
The PDF is constant: f(x) = 1/(b−a). This flat shape confirms equal probability density across the entire interval.
Use uniform assumptions cautiously. Real-world data often shows variation in density — test for uniformity before applying this model.
Scenario: A subway train arrives uniformly at random within a 10-minute window. If you walk into the station at a random time, what's the probability you wait between 3 and 7 minutes?
Setup: Let X = waiting time in minutes. We model X ~ U(0, 10).
a = 0, b = 10
μ = (0+10)/2 = 5 minutes (expected waiting time)
σ² = (10−0)²/12 = 8.33 minutes²
σ = √8.33 ≈ 2.89 minutes
P(3 ≤ X ≤ 7) = (7−3)/(10−0) = 4/10 = 0.40 = 40%
Interpretation: There's a 40% chance you'll wait between 3 and 7 minutes. The uniform model assumes equal probability across the full 10-minute interval, so any subinterval of the same width has the same probability.
Related Tools
Gaussian probabilities.
Z-score from probability.
Binary outcome probabilities.
Rare event frequency.
Time between events.
Calculate beta probabilities.