ToCalculator
Math

Median Calculator

Median calculator: find the middle value, plus the range and quartiles, of up to six numbers.

Editorial review: Farrow (pseudonym; identity and professional credentials are not disclosed). This page is for educational purposes, not professional advice.

Updated

Your inputs

Results update as you type. Nothing you enter leaves your device.

Results

Median
8
Range
12
Q1 / Q3
4 / 12
Count
6

Example with the starting values

These results use the calculator's initial inputs. Change the values above to calculate your own estimate.

Inputs

Value 1
3
Value 2
9
Value 3
4
Value 4
12
Value 5
7
Value 6
15

Results

Median
8
Range
12
Q1 / Q3
4 / 12
Count
6

How does the Median Calculator work?

Sort the numbers from smallest to largest. The median is the middle one, or the average of the two middle ones when the count is even.

Quartiles are the medians of the lower and upper halves. Leave a box empty to skip it.

Frequently asked questions

What if there is an even number of values?

Average the two middle numbers. The median of 2, 4, 6, 8 is 5.

When is median better than mean?

When there are outliers, like incomes or home prices, since extreme values pull the mean.

What is the interquartile range?

The third quartile minus the first. It measures the spread of the middle half of the data.

Can a data set have two medians?

No. A set has one median. With an even count, you average the two middle values to get it.

Related calculators

All math calculators