What this calculator does
A continuous uniform distribution describes a variable that is equally likely to take any value between two bounds. It is the simplest continuous model, and its probability calculations reduce to length: the chance of landing in a sub-interval is the width of that interval divided by the total width. That makes it a good first distribution for teaching, and a genuinely useful one for modelling rounding errors, arrival times within a fixed window, and any quantity known only to lie between a minimum and a maximum. The mean is the midpoint of the bounds, and the variance depends only on the width, not on where the interval sits. This calculator reports all of those, plus the density and the tail probabilities.
How to use it
- Enter the lower bound of the possible values.
- Enter the upper bound; it must be greater than the lower bound.
- Enter the start and end of the range you want a probability for.
- Read the probability and check that it is between zero and one.
- Compare the mean and standard deviation with the raw bounds.
How it works
Example calculations
Example 1: A value between 0 and 10, with a range of 2 to 7
The interval is five units wide out of ten, so the probability is 50.0%. The mean is 5.0, the standard deviation is 2.8868, and the density is 0.1000 per unit.
Example 2: A value between 0 and 1, with a range of 0.25 to 0.75
Half the width gives a probability of 50.0%. The density is 1.00, which makes sense: the total probability of one is spread evenly over a one-unit interval.
Example 3: A value between 20 and 60, with a range of 30 to 45
The range covers 15 of the 40 units, so the probability is 37.50%. The mean is 40.0 and the standard deviation is 11.5470.
What the result means
The most common mistake with a uniform model is using it where values cluster. Real arrival times, repair durations, and measurement errors are usually not uniform; they peak somewhere. The model is appropriate when you genuinely have no reason to expect one value more than another inside a range, which is often the case for a rounding error between minus half a unit and plus half a unit. The standard deviation is width divided by about 3.46, so a wide range has a large spread regardless of where it starts. Because the distribution is continuous, the probability of any single exact value is zero, which is why the calculator works with intervals.
Common mistakes
- Using the normal distribution for a variable that is actually bounded and flat.
- Entering the same value for both bounds, which makes the interval zero.
- Reporting a probability for a range entirely outside the bounds.
- Confusing the density with a probability when the width is not one.
- Assuming the mean is the midpoint of the range of interest rather than of the bounds.
- Treating a continuous uniform model as appropriate for counts.
Assumptions and limits
- The variable is continuous and equally likely anywhere between the bounds.
- The upper bound is strictly greater than the lower bound.
- The interval of interest may extend beyond the bounds and is clipped to them.
- Every observation is independent of the others.
- The model is not appropriate for discrete counts.
Frequently asked questions
What is a continuous uniform distribution?
A probability distribution where every value between two bounds is equally likely. Its density is flat, and probability is proportional to interval length.
Why is the probability of an exact value zero?
Because a continuous distribution has infinitely many possible values, each with zero width. Probability is only defined for intervals.
What is the difference between density and probability?
Density is the height of the probability curve and can exceed one for narrow intervals. Probability is the area under the curve over an interval and is always between zero and one.
How do I handle a range outside the bounds?
Clip it to the bounds. Any part of the range outside the support contributes nothing, and a range entirely outside gives a probability of zero.
Is the uniform distribution used in real life?
Yes, for rounding errors, random number generators, and quantities known only to lie between a minimum and a maximum. It is less suitable where values cluster.
What about whole numbers?
That is a discrete uniform distribution, where each integer has probability 1/n. This calculator handles the continuous case only.
Sources
2026 update
How to use the professional output
This page is not just a formula box. The result is designed to be checked, compared, and taken away.
- Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
- A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
- Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.
The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.