Statistics & probability

Mean median mode variance and standard deviation calculator

Summarize unweighted numbers with mean, median, tied modes, range, frequencies and sample or population variance.

Your numbers

Separate up to 1,000 numbers with commas, spaces or semicolons.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Try it, understand it

Explore the result

Use the same observations to compare centre, repeated values and denominator conventions.

Worked example comparison
ExampleOutputWhat to notice
A repeated value and an outlying endpointMean3.5For 1,2,2,9, mean is 3.5, median and mode are two, and range is eight.
Sample rather than population varianceMean3.5The same squared deviations are divided by n−1 instead of n.
Two tied repeated modesMean1.5For 1,1,2,2, both one and two are modes.

Check your understanding

Can the mean and median disagree without either being wrong?

Yes. They summarize the data differently.

Why need at least two sample observations?

Sample variance divides by n−1.

Behind the numbers

How this calculation works

Use equally weighted numeric observations. The mean is the arithmetic average, the median is the middle ordered value or middle-pair average, and the mode identifies the most frequent repeated values. Range is maximum minus minimum. Variance averages squared deviations using n for a population or n−1 for a sample; standard deviation is its square root.

THE FORMULAMean = sum ÷ n; variance = sum of squared deviations ÷ n (or n − 1)

A worked example

For 2, 4, 4, 4, 5, 5, 7, 9, the mean and median are 5. Population variance is 4 and standard deviation is 2.

Good to know

Numbers are equally weighted. This summary does not establish a distribution, independence or statistical significance. Large-magnitude numbers can lose precision in browser arithmetic.

Mean, median, mode and range answer different questions

For matched measurements on the same items, the paired change calculator retains the before/after row relationship. The Shannon entropy calculator instead summarizes category probabilities and ignores numeric spacing between category labels.

The mean uses every value and can be pulled toward a large observation. The median uses ordered position and may remain unchanged when an already extreme observation grows. The mode describes repetition, while the range measures only the distance between the smallest and largest values.

For 1, 2, 2 and 9, the mean is 3.5, median and mode are both two, and the range is eight. These summaries can all be correct at once. If several repeated values tie for highest frequency, the tool reports all of them. With no repeated values it uses the stated convention “no repeated mode,” rather than inventing one unique modal value.

The polyhedral dice roller produces individual numbered results for a small repeatable experiment. Use seeded mode when you want a classmate to reproduce the same sample, then summarize the observations here.

Sample and population variance use different denominators

Population variance divides the sum of squared deviations by n. Sample variance uses n−1 when estimating a population variance from a sample, so it needs at least two observations. Standard deviation is the square root of the selected variance and returns to the original measurement unit.

Frequency equality is based on the numeric values you enter. Closely spaced measurements are not silently rounded into bins. Use the grouped frequency calculator if a stated binning scheme is the intended task. The frequency table preserves repeated observations so that a reader can check how the mode was selected.

A few questions, answered

Can there be more than one mode?

Yes. Every repeated value tied at the highest frequency is reported.

Why does the sample option reject one value?

Its n−1 denominator would be zero.

Is range a substitute for standard deviation?

No. Range uses only the endpoints, while variance and standard deviation use every observation.

Find your calculator

Start typing to explore the library.