Math Tools

Mean, Median, Mode and Range Calculator

Paste a list of numbers to find the mean, median, mode and range. Check each result against the sorted values and frequency counts.

Go to calculator
Created by BiznToolsFounder: Syed TalhaMethod checked

Paste up to 500 numbers separated by commas, spaces or line breaks. Use a decimal point and write 1000 without a thousands separator.

Results

Enter your numbers to see the four statistics and how each was calculated.

On this page
No sign-up Private calculationsHow it’s calculated

The method

How to find mean, median, mode and range

Add all observations and divide by the count to find the mean. Sort them from smallest to largest to find the median. Use the middle value for an odd count and the average of the middle two for an even count. Count repetitions to find the mode or tied modes, and subtract the smallest value from the largest to find the range.

MeanSum ÷ count
MedianMiddle sorted value, or the average of the middle two
ModeEvery repeated value tied for the highest frequency
RangeMaximum − minimum

Example 1

Compare the mean and median with a high value

The values 2, 2, 3, 5 and 18 sum to 30. The mean is 30 ÷ 5 = 6 and the median is the third value, 3. Only 2 repeats. Replacing 18 with 8 changes the mean to 4 while the middle value stays 3.

Mean
6
Median
3
Mode
2
Range
16

Example 2

Use both middle values for an even count

In 1, 2, 5 and 8, the middle two values are 2 and 5. Their average is 3.5 even though 3.5 does not occur in the list. Every value appears once.

Mean
4
Median
3.5
Mode
No mode
Range
7

Example 3

Keep every tied repeated mode

In 1, 1, 3, 3 and 5, both 1 and 3 appear twice. Each is a mode. In a repeated constant list such as 4, 4 and 4, the sole mode is 4.

Modes
1 and 3
Frequency of each mode
2

Before you calculate

Assumptions & limits

  • Enter one number per observation using the same units throughout. Repeated observations count separately.
  • Use up to 500 signed whole numbers or decimals. Each magnitude can be up to one trillion, with up to eight decimal places.
  • Commas, spaces, tabs and line breaks separate numbers. Use a period for the decimal point and omit thousands separators. An invalid or missing value blocks the calculation.
  • The calculator retains exact arithmetic. If a mean has a repeating decimal, the rounded value is labeled and the exact fraction is available.
  • The CSV includes the exact numerator and denominator. Import large numbers as text if your spreadsheet rounds them.
  • Entries and outputs are handled in your browser.

Keep in mind

Common mix-ups

What if no value repeats?

This calculator reports no mode if all values occur once. If two or more repeated values tie for the highest frequency, it reports all of them.

Does the median have to be in the list?

For an even count, the median is halfway between the middle two sorted values. It can fall between observations.

What does the range tell me?

The range is the distance between the smallest and largest observations. The intermediate values can change without changing the range.

What if some values count more than others?

Use Weighted Average when each value has its own weight. Here each observation has the same weight, including repeated values.

Sources & calculation notes

NIST/SEMATECH Engineering Statistics Handbook · Measures of Location

Defines the arithmetic mean, odd and even medians, and modes based on frequency.

NIST/SEMATECH Engineering Statistics Handbook · Measures of Scale

Defines the range using the two extreme observed values.

Method and input rules checked: . Engineering validation; no professional specialist review is claimed.