M̃ Median Calculator
Find the median (middle value), Q1, Q3, interquartile range, and five-number summary. Robust to outliers — ideal for skewed income, housing, or test-score data.
The Middle Value That Survives Outliers
BrainyCalculators editorial insight — unique to this tool
Median home prices reported by NAR and Indian RERA dashboards describe the typical buyer better than mean because a few luxury sales skew averages upward. In even-count datasets, median is the average of the two central values — salary bands with 50 employees use this routinely. Unlike mean, median ignores the magnitude of extremes: one CEO earning 100× the staff does not move the median rupee.
When to use this calculator
Choose median for skewed income, housing, latency, or review scores when you want "what a typical case looks like." Use Mean when you need properties for variance or the data is symmetric.
| Reference | Value | Context |
|---|---|---|
| US household income | Median < Mean | Census reports both |
| Home sale prices | Median preferred | NAR methodology |
| Server response times | Median P50 | Outlier-resistant SLA |
| Even n dataset | Avg of 2 middles | e.g., 4 values |
Not what you need? For "what % of values fall below X," use Percentile. For spread, use Standard Deviation — median alone says nothing about dispersion.
Need arithmetic or compound averages?
This page finds the median, quartiles, and IQR. For arithmetic, geometric, and harmonic means — including growth-rate averaging — use the Mean Calculator →
Five-Number Summary
Sorted Data (median highlighted)
What is the Median?
The median is the middle value when data is sorted. Half the observations fall below it and half above — unlike the mean, extreme outliers do not pull it. This calculator also reports Q1, Q3, IQR, and the five-number summary for box-plot and outlier analysis.
Use the median for skewed distributions: salaries, home prices, exam scores with a few very high values. When you need the most common value (e.g., most frequent shoe size or survey answer), use the Mode Calculator instead.
For the arithmetic average and when outliers are acceptable or symmetric, use the Mean Calculator. Median, mode, and mean are complementary — pick the measure that matches the question.
Median Formula
How to Find the Median
-
1Enter Your NumbersType numbers separated by commas or spaces. Order does not matter — the calculator sorts the data for you.
-
2Sort the DataArrange all values from smallest to largest. The calculator does this automatically and shows the sorted list.
-
3Find the Middle ValueFor odd count, the median is the exact middle element. For even count, it is the average of the two middle elements.
-
4Read Quartiles and IQRQ1 is the median of the lower half, Q3 is the median of the upper half. IQR = Q3 − Q1 measures spread.
Worked Example
Data set: 1, 3, 3, 6, 7, 8, 9
How the Median Calculator Works
Formula, assumptions, and calculation steps for this statistics tool.
Methodology
Statistics calculators organize sample data, apply the selected descriptive or inferential formula, and report the statistic with interpretation.
Calculation Steps
- Enter raw values or summary statistics.
- Clean separators and count the sample size.
- Apply the relevant statistic, probability, or confidence formula.
- Display the result with context such as degrees of freedom, percentile, or strength.
Assumptions and Limits
- Samples should be representative of the population being studied.
- Normality or independence assumptions apply only where the selected method requires them.
- Rounded results may differ slightly from spreadsheet software.
Frequently Asked Questions
The median is the middle value of a data set when sorted in order. It divides the data into two equal halves. Unlike the mean, it is not affected by extreme outliers, making it a reliable measure of central tendency for skewed data.
When the count is even, there is no single middle value. Instead, take the average of the two middle values after sorting. For example, in {2, 4, 6, 8} the median is (4 + 6) / 2 = 5.
The IQR is the difference between Q3 (75th percentile) and Q1 (25th percentile). It represents the spread of the middle 50% of your data and is used to identify outliers. Values below Q1 − 1.5×IQR or above Q3 + 1.5×IQR are often considered outliers.
Use median when your data is skewed or contains outliers. For example, household income data is typically reported using the median because a small number of very high earners would inflate the arithmetic mean, making it unrepresentative of typical income.
Real-World Applications
Common Mistakes
Mean vs Median: When to Use Each
| Situation | Preferred Measure | Reason |
|---|---|---|
| Symmetric distribution, no outliers | Either (mean preferred) | Mean uses all information |
| Right-skewed (e.g. income) | Median | Outliers inflate mean |
| Left-skewed (e.g. age at retirement) | Median | Low outliers deflate mean |
| Ordinal data (e.g. ratings) | Median | Mean requires interval scale |
| Normally distributed data | Mean | Mean = Median; mean has nicer math |
| Survival / time-to-event data | Median | Right-censored, not normally distributed |
References
- Tukey, J.W. Exploratory Data Analysis. Addison-Wesley, 1977.
- Moore, D.S., McCabe, G.P., and Craig, B.A. Introduction to the Practice of Statistics. Freeman, 2017.
- Casella, G. and Berger, R.L. Statistical Inference. Cengage, 2001.
- US Census Bureau. Current Population Survey — Income, Poverty and Health Insurance in the United States. Census Bureau, 2024.
- WHO. World Health Statistics 2024. World Health Organization, 2024.
Related Calculators
Browse all Statistics calculators →Mean Calculator
Calculate arithmetic mean, geometric mean, and harmonic mean for any data set.
Mode Calculator
Find the mode (most frequent value) of any data set, including multimodal sets.
Percentile Calculator
Calculate percentile rank and find the value at any percentile in a data set.