Median of Five Numbers Calculator

Find the median (middle value) of exactly five numbers.

🧮

Enter your values and click Calculate

Finding the median of exactly five numbers is a frequent task in statistics, science, and everyday analysis. Five-value datasets appear in small surveys, quiz score comparisons, weekly measurements, and lab experiment results. Because five is odd, the median is always one specific value with no ambiguity — the third number once the set is sorted — with exactly two values below it and two values above it. This makes the median more resistant to distortion by outliers than the mean. For example, if four test scores cluster around 70 and one student scores 20, the median remains near 70 while the mean would be pulled downward by the low score. Use this calculator when you need a quick, outlier-resistant central value for any set of five numbers, whether they are grades, prices, times, measurements, or survey responses. Negative numbers and decimals are fully supported. The calculator also returns the minimum, maximum, and sum of your five values, giving you a compact statistical summary alongside the median in a single step.

How It Works

The five input values are placed into an array and sorted in ascending order. Because five is an odd number, there is always a single middle element — the value at index position 2 (the 3rd of 5) in the sorted array. That value is the median. No averaging is needed since an odd count guarantees one unambiguous middle value with two values below it and two values above it. This is a key advantage of five-value datasets over even-sized sets, where the median must be approximated as the average of two central values. The calculator also returns the minimum (first sorted value), maximum (fifth sorted value), and the sum of all five inputs so you have a complete statistical summary alongside the median. The order in which you enter the values does not matter — sorting is handled internally.

Examples

Simple sequence
Finding the median of 10, 20, 30, 40, 50.
Result: The median is 30.
Unsorted values
Median of 5, 100, 3, 77, 42.
Result: Sorted: 3, 5, 42, 77, 100. The median is 42.
Values with an outlier
One extreme value shifts the mean but not the median.
Result: Median = 15. Mean = 51.4 — the outlier inflates the average but not the median.

Frequently Asked Questions

What is the median?
The median is the middle value of a sorted dataset — half the values fall above it and half fall below. For five numbers, it is always the 3rd value after sorting, with no averaging required.
How is median different from average?
The average (mean) sums all values and divides by the count, so a single extreme number can shift it dramatically. The median finds the physical middle of the sorted list and is largely immune to outliers.
Does the order I enter the values matter?
No. The calculator sorts all five values internally before finding the middle, so you can enter them in any order and the result will be the same.

Related Calculators