Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Median Calculator

Median Calculator

Find the median — the middle value — of any list of numbers. Automatic sorting, a step-by-step breakdown for odd and even datasets, and a full statistics summary.

What Is the Median?

The median is the middle value of a dataset once the numbers are put in order — half the values fall below it and half above. This median calculator sorts your numbers for you, picks the center, and shows a clear step-by-step explanation for both odd and even-sized datasets, all in your browser.

The median is a robust measure of center: unlike the mean, it is not pulled by extreme outliers, so it describes skewed data more faithfully.

When the Median Is the Right Measure

Income & Prices

Median income or median home price avoids distortion from a handful of very high values.

Response Times

Median latency captures typical performance better than the average when slow spikes occur.

Skewed Data

For lopsided distributions, the middle value represents the center more reliably than the mean.

How to Find the Median

1

Enter Your Numbers

Type or paste your values into the input field, separated by commas, spaces, semicolons, tabs, or new lines. A live count shows how many values were parsed as you go.

2

Data Is Sorted Automatically

The calculator sorts your numbers into order, then identifies the central value — computed live with no submit button to press.

3

Show the Steps

Click Show Steps to see the sorted data and exactly how the middle value — or the two-value average — was selected.

4

Review the Summary

The Summary panel also lists mean, mode, standard deviation, variance, quartiles, range, and more — a full set of descriptive statistics for the same data.

Odd vs. Even Datasets

Sort the data first. With an odd count, the median is the single middle value at position (n + 1) / 2. With an even count, it is the average of the two middle values.
Sorted DatasetCount (n)Middle Value(s)Median
1, 3, 5, 7, 95 (odd)55
2, 4, 6, 84 (even)4 and 65
10, 20, 30, 40, 505 (odd)3030

Features

Automatic Sorting

Your data is ordered before the middle value is picked, so the order you type in never changes the result.

Odd & Even Datasets

Handles both cases — a single center value, or the average of the two middle values.

Step-by-Step Breakdown

See how the median was chosen, with the sorted data laid out for verification.

Resistant to Outliers

A robust measure of center that stays stable even when extreme high or low values are present.

Full Statistics Summary

Mean, mode, standard deviation, variance, quartiles, and range — all computed at once for the same dataset.

Private by Design

All math runs in your browser — your numbers never leave your device.

Ideal for skewed data: when a few extreme values would distort the average, the median gives a more representative center.

Frequently Asked Questions

How do you find the median with an even number of values?

When the count is even there are two middle values, so the median is their average. For example, in 2, 4, 6, 8 the middle values are 4 and 6, so the median is (4 + 6) / 2 = 5.

How do you find the median with an odd number of values?

Sort the data and take the single value in the center — the one at position (n + 1) / 2, where n is how many values you have. In 3, 5, 7, 9, 11 the count is 5, so position 3 gives a median of 7.

What is the difference between the median and the mean?

The mean is the sum of all values divided by the count, so every value influences it. The median is only the middle value, so extreme outliers barely move it. Use the median when data is skewed — median income, for instance, is more representative than mean income because a few very high earners inflate the average.

Is the median always one of the values in my dataset?

Not always. With an odd count it is one of your data points, but with an even count the median can be a value that lies between two data points — such as 4.5 from 2, 3, 4, 5, 7, 8.

Does the order I enter the numbers matter?

No. The calculator sorts your data automatically, so the median is the same no matter what order you enter the values in.

Is my data sent anywhere?

No. Every calculation runs locally in your browser. Your numbers are never uploaded to a server, so the tool keeps working even offline once the page has loaded.

Enter Data
Data Type
Decimals
Arithmetic Mean
-
x̄ = (Σxᵢ) / n
Median
-
Middle value of sorted data
Mode
-
Most frequent value(s)
Sample Standard Deviation
-
s = √[Σ(xᵢ - x̄)² / (n - 1)]
Sample Variance
-
s² = Σ(xᵢ - x̄)² / (n - 1)
Summary Statistics
Count -
Sum -
Min -
Max -
Range -
Mean -
Median -
Mode -
Std Dev (S) -
Std Dev (P) -
Variance (S) -
Variance (P) -
Q1 -
Q2 -
Q3 -
IQR -
The median is the middle value once your data is sorted in order
For an odd count, the median is the single center value at position (n + 1) / 2
For an even count, it is the average of the two middle values
Sorting is automatic — the order you type the numbers in never changes the result
The median is resistant to outliers, unlike the mean
Click Show Steps to see the sorted data and how the middle value was chosen
All calculations run locally in your browser
Want to learn more? Read documentation →
1/8
Start typing to search...
Searching...
No results found
Try searching with different keywords