Uniform Distribution Calculator (Continuous and Discrete)

Find the pdf, cdf, mean, variance and percentiles of a continuous or discrete uniform distribution.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Uniform Distribution Calculator (Continuous and Discrete) and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Uniform Distribution Calculator (Continuous and Discrete) does

    Find the pdf, cdf, mean, variance and percentiles of a continuous or discrete uniform distribution.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Choose continuous or discrete, enter the lower and upper limits a and b, a value x and a percentile. The calculator gives the density (or probability), the cumulative probability at x, the mean, variance, standard deviation and the value at the percentile.

Continuous

Density 1 ÷ (b − a) on [a, b]; cdf (x − a) ÷ (b − a); mean (a + b) ÷ 2; variance (b − a)² ÷ 12.

Discrete

For the whole numbers a to b there are N = b − a + 1 equally likely values, each with probability 1 ÷ N; the mean is (a + b) ÷ 2 and the variance (N² − 1) ÷ 12. A fair die is a = 1, b = 6.

Worked example

Continuous on [2, 10]: density 0.125, mean 6, sd 2.309; P(X ≤ 6.5) = 56.25% and the 75th percentile is 8. A fair die has mean 3.5 and variance 2.917.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

What is the difference between the two?

Continuous allows any value in the range, discrete only whole numbers.

What is the density?

The height of the flat line, 1 ÷ (b − a).

Must b be above a?

Yes.

Do the limits need to be whole numbers for the discrete case?

Yes.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages