Files
freeCodeCamp/guide/english/mathematics/how-to-find-the-median-value/index.md
UzawaT 98dc1856fb added description and examples to the article (#35019)
* fixed grammar error

* added description and examples to the article
2019-04-06 19:50:48 +05:30

950 B

title
title
How to Find the Median Value

How to Find the Median Value

The median is the middle value of the sorted number set.

Example 1

Find the median value for the set below.
244 191 160 187 180

Step 1. Sort the numbers in order.

After it is sorted, you will have 160 180 187 191 244.

Step 2. Find the median value.

Once the numbers are ordered, the median is the value in the middle. In this case, the median is 187.

Example 2

Find the median value for the set below.
205 211 183 211 180 194

Step 1. Sort the numbers in order.

After it is sorted, you will have 180 183 194 205 211 211.

Step 2. Find the median value.

In this case, there are two middle numbers (194 and 205). To find the median, we will look for the average of the two middle values. The median is (194 + 205) / 2 = 199.5.