Uniform Distribution Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Statistics Hub

The continuous uniform distribution (rectangular distribution) models a random variable that is equally likely to take any value in an interval [a, b]. It is the simplest continuous distribution and the basis of most random number generators.

Enter the minimum a and maximum b, and optionally an x value to compute probabilities. The calculator also shows the full probability table for selected values across the range.

Formula

f(x) = 1/(b−a) for a ≤ x ≤ b F(x) = (x−a)/(b−a)

a
minimum value (lower bound)
b
maximum value (upper bound)
f(x)
probability density function (constant height 1/(b−a))
F(x)
CDF = P(X ≤ x)

Distribution Parameters

Uniform Distribution Key Facts

PropertyFormulaExample U(0,10)
Support[a, b][0, 10]
PDF f(x)1 / (b−a)0.1
Mean(a+b) / 25
Median(a+b) / 25
Variance(b−a)² / 128.333
Std deviation(b−a) / √122.887
Skewness0 (symmetric)0
Excess kurtosis−6/5 = −1.2−1.2

Disclaimer

For educational and exploratory use only. Verify that the uniform distribution is appropriate for your data before applying this model.

Frequently Asked Questions