ToolsleAll tools →
Calculators

Median calculator

Sort values and compute the median—even for even-length sets—for statistics and reporting.

FAQPage Schema
Median Calculator — Free Online Tool
InstantFreeNo signup

The median is the middle of a sorted list: half the values are at or below it, half at or above. With an even count, take the average of the two central values—robust against a few outliers compared with the mean.

Separators: spaces, commas, semicolons, or new lines. Thousand separators inside a token (1,234) are fine.

Parsed count · sorted order

5 values

4, 8, 12, 16, 20

Median

12

How this median was picked

Odd count (5): the middle position after sorting is index 3 of 5 (one-based).

Why use the median?

When a few very large or very small values pull the mean away from “typical,” the median stays anchored to the middle of the distribution. That is why income and home-price summaries often cite medians instead of averages.

Definition this tool uses

Values are sorted in ascending order. For n numbers, if n is odd the median is element (n + 1) / 2 in that sorted list (one-based). If n is even, the median is the arithmetic mean of elements n / 2 and n / 2 + 1.

Related tools

Need mean, mode, and range in one place? Use the average calculator. For comparing measured vs reference values with percent error, open the percent error calculator.

Guides & resources

  • Mean vs Median vs Mode: What's the Difference?

    The mean is the average of a set of numbers, while the median is the middle value when the numbers are arranged in order, and the mode is the number that appears most frequently. The mean is sensitive to outliers, while the median and mode are more robust to extreme values.

  • How to Find the Median Step-by-Step (Odd & Even Sets)

    To find the median of a set of numbers, you first arrange the numbers in order from smallest to largest. If there is an odd number of values, the median is the middle value. If there is an even number of values, the median is the average of the two middle values.

FAQ

Frequently Asked Questions

Sort every observation ascending—if count is odd the median is the middle value; if even average the two central values—median resists outliers unlike the mean.

Embed this tool on your site

Free to use on any website. Copy the code below and paste it into your page. A small “Powered by Toolsle” credit appears inside the embed.

↗ Preview embed · Full tool page

<iframe src="https://www.toolsle.com/embed/median-calculator" width="100%" height="480" style="border:0;max-width:100%;" loading="lazy" title="Median calculator — Toolsle"></iframe>