How to Find the Median | Definition, Examples & Calculator (2024)

Published on 1 January 2023 by Pritha Bhandari. Revised on 19 January 2023.

The median is the value that’s exactly in the middle of a dataset when it is ordered. It’s a measure of central tendency that separates the lowest 50% from the highest 50% of values.

The steps for finding the median differ depending on whether you have an odd or an even number of data points. If there are two numbers in the middle of a dataset, their mean is the median.

The median is usually used with quantitative data (where the values are numerical), but you can sometimes also find the median for an ordinal dataset (where the values are ranked categories).

Table of contents

  1. Median calculator
  2. Find the median with an odd-numbered dataset
  3. Find the median with an even-numbered dataset
  4. Find the median with ordinal data
  5. When should you use the median?
  6. Frequently asked questions

Median calculator

You can calculate the median by hand or with the help of our median calculator below.

We’ll walk through steps using a small sample dataset with the weekly pay of 5 people.

Weekly pay (£)350800220500130

Step 1: Order the values from low to high.

Weekly pay (£)130220350500800

Step 2: Calculate the middle position.

Use the formula How to Find the Median | Definition, Examples & Calculator (1), where n is the number of values in your dataset.

FormulaCalculation
How to Find the Median | Definition, Examples & Calculator (2)How to Find the Median | Definition, Examples & Calculator (3)
How to Find the Median | Definition, Examples & Calculator (4)

The median is the value at the 3rd position.

Step 3: Find the value in the middle position.

Weekly pay (USD)130220350500800

The median weekly pay is £350.

Find the median with an even-numbered dataset

In an even-numbered dataset, there isn’t a single value in the middle of the dataset, so we have to follow a slightly different procedure.

Let’s add another value to the dataset. Now you have 6 values.

Weekly pay (£)3508002205001301150

Step 1: Order the values from low to high.

Weekly pay (£)1302203505008001150

Step 2: Calculate the two middle positions.

The middle positions are found using the formulas How to Find the Median | Definition, Examples & Calculator (5) and How to Find the Median | Definition, Examples & Calculator (6), where n is the number of values in your dataset.

FormulaCalculation
How to Find the Median | Definition, Examples & Calculator (7)How to Find the Median | Definition, Examples & Calculator (8)
How to Find the Median | Definition, Examples & Calculator (9)
How to Find the Median | Definition, Examples & Calculator (10)How to Find the Median | Definition, Examples & Calculator (11)
How to Find the Median | Definition, Examples & Calculator (12)

The middle values are at the 3rd and 4th positions.

Step 3: Find the two middle values.

Weekly pay (£)1302203505008001150

The middle values are 350 and 500.

Step 4: Find the mean of the two middle values.

To find the median, calculate the mean by adding together the middle values and dividing them by two.

Median: How to Find the Median | Definition, Examples & Calculator (13)

The median weekly pay for this dataset is is £425.

The median is usually used for quantitative data, which means the values in the dataset are numerical. But you can sometimes also identify the median for ordinal data.

Ordinal data is organised into categories with a rank order – for example language ability level (beginner, intermediate, or fluent) or level of agreement (strongly agree, agree, etc.).

The process for finding the median is almost the same.

Odd-numbered dataset

We’ll walk through the steps for an odd-numbered ordinal dataset with 7 values.

You categorise reaction times of participants into 3 groups: slow, medium or fast.

First, order all values in ascending order.

Reaction speedSlowSlowMediumMediumFastFastFast

Next, find the middle value using How to Find the Median | Definition, Examples & Calculator (14), wheren is the number of values in the dataset.

FormulaCalculation
How to Find the Median | Definition, Examples & Calculator (15)How to Find the Median | Definition, Examples & Calculator (16)
How to Find the Median | Definition, Examples & Calculator (17)

The median is the value at the 4th position.

Reaction speedSlowSlowMediumMediumFastFastFast

The median reaction speed is Medium.

Can you find the median for an even-numbered ordinal dataset?

The mean cannot be calculated for ordinal data, so the median can’t be found for an even-numbered dataset.

For example, if the two middle values are ‘slow’ and ‘medium’, you can’t calculate the mean of these values.

In practice, ordinal data is sometimes converted into a numerical format and treated like quantitative data for the sake of convenience. Then the mean of the middle values can be calculated to find the median.

While this is considered acceptable in some contexts, it is not always seen as correct.

When should you use the median?

The median is the most informative measure of central tendency for skewed distributions or distributions with outliers.

In skewed distributions, more values fall on one side of the center than the other, and the mean, median and mode all differ from each other.

In a positively skewed distribution, there’s a cluster of lower scores and a spread out tail on the right.

How to Find the Median | Definition, Examples & Calculator (18)

In a negatively skewed distribution, there’s a cluster of higher scores and a spread out tail on the left.

How to Find the Median | Definition, Examples & Calculator (19)

Because the median only uses one or two values from the middle of a dataset, it’s unaffected by extreme outliers or non-symmetric distributions of scores. In contrast, the positions of the mean and mode can vary in skewed distributions.

For this reason, the median is often reported as a measure of central tendency for variables such as income, because these distributions are usually positively skewed.

The level of measurement of your variable also determines whether you can use the median. The median can only be used on data that can be ordered – that is, from ordinal, interval and ratio levels of measurement.

Frequently asked questions

What are measures of central tendency?

Measures of central tendency help you find the middle, or the average, of a data set.

The 3 most common measures of central tendency are the mean, median and mode.

  • The mode is the most frequent value.
  • The median is the middle number in an ordered data set.
  • The mean is the sum of all values divided by the total number of values.
How do I find the median?

To find the median, first order your data. Then calculate the middle position based on n, the number of values in your data set.

  • Ifn is an odd number, the median lies at the position How to Find the Median | Definition, Examples & Calculator (20).
  • Ifn is an even number, the median is the mean of the values at positions How to Find the Median | Definition, Examples & Calculator (21) and How to Find the Median | Definition, Examples & Calculator (22).
When should I use the median?

The median is the most informative measure of central tendency for skewed distributions or distributions with outliers. For example, the median is often used as a measure of central tendency for income distributions, which are generally highly skewed.

Because the median only uses one or two values, it’s unaffected by extreme outliers or non-symmetric distributions of scores. In contrast, the mean and mode can vary in skewed distributions.

Which measures of central tendency can I use?

The measures of central tendency you can use depends on the level of measurement of your data.

  • For a nominal level, you can only use the mode to find the most frequent value.
  • For an ordinal level or ranked data, you can also use the median to find the value in the middle of your data set.
  • For interval or ratio levels, in addition to the mode and median, you can use the mean to find the average value.

Cite this Scribbr article

If you want to cite this source, you can copy and paste the citation or click the ‘Cite this Scribbr article’ button to automatically add the citation to our free Reference Generator.

Bhandari, P. (2023, January 19). How to Find the Median | Definition, Examples & Calculator. Scribbr. Retrieved 15 April 2024, from https://www.scribbr.co.uk/stats/median-statistics/

Cite this article

Is this article helpful?

You have already voted. Thanks :-) Your vote is saved :-) Processing your vote...

How to Find the Median | Definition, Examples & Calculator (23)

Pritha Bhandari

Pritha has an academic background in English, psychology and cognitive neuroscience. As an interdisciplinary researcher, she enjoys writing articles explaining tricky research concepts for students and academics.

How to Find the Median | Definition, Examples & Calculator (2024)
Top Articles
Latest Posts
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 6237

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.