Skip to content

Uniform Distribution Calculator

Enter the lower and upper bounds and the range you are interested in. The calculator returns the probability that a value falls inside that range, along with the mean, standard deviation, variance, and probability density of the distribution.

Updated 2026-11-18 Editorial estimate Calccc Editorial Team Free · No sign-up
Scenarios A/BSave two input sets and compare the results. Stored only in this browser.
AEmpty
BEmpty

Your inputs stay in this browser. No account, no uploads.

Professional worksheet

Detailed schedule & assumptions

Inputs used, method, sensitivity, and any year-by-year table. The summary above stays compact; the audit lives here.

Professional worksheet

Inputs, scope, and sensitivity

Inputs used

Method and scope

Result audit

MetricValue

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

  1. Enter the lower bound of the possible values.
  2. Enter the upper bound; it must be greater than the lower bound.
  3. Enter the start and end of the range you want a probability for.
  4. Read the probability and check that it is between zero and one.
  5. Compare the mean and standard deviation with the raw bounds.

How it works

Probability = (min(x₂, b) - max(x₁, a)) / (b - a) for an interval inside [a, b]. Mean = (a + b)/2. Variance = (b - a)²/12. Density = 1/(b - a). In the default case, (7.0 - 2.0) / 10.0 = 50.0%, with a mean of 5.0 and a standard deviation of 2.8868.

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

This calculator applies the continuous uniform distribution. It assumes equal likelihood across the interval and independence between observations, and it is not a substitute for checking whether the model fits your data.

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.

Calccc Editorial Team · Updated 2026-11-18

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.