Statistics Calculator: Median

Use this calculator to compute the median from a set of numerical values.



Data is from: Population Sample



Median Calculator Instructions

This calculator computes the median from a data set:

To calculate the median from a set of values, enter the observed values in the box above. Values must be numeric and may be separated by commas, spaces or new-line. You may also copy and paste data into the text box. You do not need to specify whether the data is from a population or a sample, unless you will later examine the variance or the standard deviation. Press the "Submit Data" button to perform the computation. To clear the calculator and enter a new data set, press "Reset".

What is the median

The median is a measure of central tendency. It represents the value for which 50% of observations a lower and 50% are higher. Put simply, it is the value at the center of the sorted observations.

Median formulas

This calculator uses two different formulas for calculating the median, depending on whether the number of observations is odd, or it is even:

When the number of observations is odd the formula is:

$ x_m = x_\frac{n+1}{2}$

When the number of observations is even the formula is:

$ x_m = \frac{x_\frac{n}{2}+x_\frac{n+2}{2}}{2}$

where n is the number of observations.