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.
When the Median Is the Right Measure
Income & Prices
Response Times
Skewed Data
How to Find the Median
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.
Data Is Sorted Automatically
The calculator sorts your numbers into order, then identifies the central value — computed live with no submit button to press.
Show the Steps
Click Show Steps to see the sorted data and exactly how the middle value — or the two-value average — was selected.
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
| Sorted Dataset | Count (n) | Middle Value(s) | Median |
|---|---|---|---|
1, 3, 5, 7, 9 | 5 (odd) | 5 | 5 |
2, 4, 6, 8 | 4 (even) | 4 and 6 | 5 |
10, 20, 30, 40, 50 | 5 (odd) | 30 | 30 |
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.
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.
No comments yet. Be the first to comment!