Median Calculator

Enter your data set as comma- or space-separated numbers, and this Median Calculator finds the median (middle value) along with the mean, mode, range, minimum, maximum, count, and sum. Paste values directly from a spreadsheet or type them in — results update as soon as you calculate.

Enter numbers separated by commas, spaces, or new lines. You can also paste data from a spreadsheet.

Results

Median

--

Mean (Average)

--

Mode

--

Count (n)

--

Sum

--

Minimum

--

Maximum

--

Range

--

Interquartile Range (IQR)

--

Data Distribution

Results Table

Frequently Asked Questions

What is the median and how is it different from the mean?

The median is the middle value of a data set when all values are arranged in order from smallest to largest. Unlike the mean (average), the median is not affected by extremely high or low outliers, making it a better measure of central tendency for skewed data sets.

How do you find the median of a data set?

First, sort all values from smallest to largest. If there is an odd number of values, the median is the middle number. If there is an even number of values, the median is the average of the two middle numbers. For example, for the set {3, 5, 7, 9}, the median is (5 + 7) / 2 = 6.

What is the median formula?

For an odd count (n), the median is the value at position (n + 1) / 2 in the sorted list. For an even count (n), the median is the average of the values at positions n / 2 and (n / 2) + 1. This calculator handles both cases automatically.

What are mean, median, and mode?

All three are measures of central tendency in statistics. The mean is the arithmetic average of all values. The median is the middle value when data is sorted. The mode is the value that appears most frequently. Each describes what is 'typical' in a data set in a different way.

What is the interquartile range (IQR)?

The IQR is the difference between the third quartile (Q3) and the first quartile (Q1) of a sorted data set. It represents the spread of the middle 50% of data and is useful for identifying outliers, since values more than 1.5 × IQR below Q1 or above Q3 are often considered outliers.

What are outliers and how do they affect the median?

Outliers are data points that are significantly higher or lower than most values in a set. The median is resistant to outliers — a single extreme value does not shift the median the way it shifts the mean. This makes the median particularly useful for data sets like income, where a few very high values would skew the average.

Can a data set have more than one mode?

Yes. If two or more values appear with the same highest frequency, the data set is called bimodal or multimodal, and all those values are considered modes. If every value appears only once, the data set has no mode.

What formats can I enter data in?

You can separate values with commas, spaces, or new lines. You can also paste data directly from a spreadsheet or text document. The calculator will parse and sort the numbers automatically before computing results.

More Math Tools