Free Financial Calculator Online

Median Calculator

Free online median calculator. Paste any list of numbers to find the median instantly, plus the sorted data, mean, mode, and quartiles.

Separate numbers with commas, spaces, or new lines. You can paste a spreadsheet column.

Median

40

Middle value is position 6 of 11

Sorted data

6, 7, 15, 36, 39, 40, 41, 42, 43, 47, 49

Summary statistics

Count (n)
11
Sum
365
Mean
33.181818
Median
40
Mode
No mode (no value repeats)
Minimum
6
Maximum
49
Range
43
Q1
15
Q3
43
IQR
28
Sample std. deviation
15.873362
Population std. deviation
15.134657
Sample variance
251.963636

How it's calculated

Sort the n values in ascending order.

For 12, 3, 7, 9, 5: sorted 3, 5, 7, 9, 12, so the median is the 3rd value, 7.

Before using our median calculator, it might help to know what the median is and why it’s important.

The median is a measure of central tendency that represents the middle value in a set of data when the data is sorted in ascending or descending order. If the dataset contains an odd number of observations, the median is the middle number. If the dataset contains an even number of observations, the median is the average of the two middle numbers. Unlike the mean, the median is not affected by outliers or extreme values, making it a more reliable measure of central tendency in datasets where such values might skew the mean.

The median is particularly useful in understanding the ‘typical’ value in a dataset where the data may not be symmetrically distributed, i.e., skewed distributions. For example, in economics, the median is often used to understand income distribution, as high-income outliers can significantly skew the mean, making it less representative of the typical income. In real estate, the median home price is often reported as it provides a more accurate picture of the typical house price in an area, as the mean could be skewed by a few very high-priced properties. Thus, the median can provide a more representative ‘central’ or ‘typical’ value in certain datasets, especially those with outliers or skewed distributions.

How To Use Our Free Median Calculator

Input Your Data

You’ll see a text input field labeled “Enter numbers separated by commas”. Input your dataset here. Your dataset should be a list of numbers, each separated by a comma. For example, to find the median of the numbers 5, 3, 9, and 11, you would input “5,3,9,11”.

Calculate the Median

After inputting your data, click on the button labeled “Calculate Median”. This action triggers the JavaScript function calculateMedian(). This function splits your input into individual numbers, sorts them in ascending order, and then determines the median. If there is an even number of numbers, the median is the average of the two middle numbers. If there is an odd number of numbers, the median is the middle number.

View the Result

The median of the dataset you entered will be displayed below the “Calculate Median” button. The result will be displayed as “Median: x”, where x is the calculated median value. If you want to calculate the median for a new dataset, simply clear the input field, enter the new data, and click “Calculate Median” again.

Frequently Asked Questions

›How do you find the median?

Sort the numbers from smallest to largest. With an odd count, the median is the middle number. With an even count, it is the average of the two middle numbers.

›What is the median of 3, 1, 4, 1, 5, 9?

Sorted: 1, 1, 3, 4, 5, 9. There are six values, so average the 3rd and 4th: (3 + 4) ÷ 2 = 3.5.

›When is the median better than the mean?

When data is skewed or has outliers, such as incomes or home prices. One very large value pulls the mean up but barely moves the median.

›Can the median be a number that is not in the data?

Yes. With an even number of values, the median is the average of the two middle values, which may not appear in the data set.

Browse all statistics calculators