Median Calculator
Calculate the median value, quartiles (Q1, Q3), and interquartile range (IQR) of any set of numbers.
Privacy First: 100% Client-Side Processing
Processed in your browser. Files are never uploaded.
How to Use the Median Calculator
- 1Enter your numbers separated by commas, spaces, or newlines.
- 2The calculator sorts your numbers from smallest to largest.
- 3If the count (n) is odd, the middle number is highlighted. If even, the average of the two middle numbers is computed.
- 4Inspect Q1, Q3, and the Interquartile Range (IQR).
Formula & How It Works
Median Formula
For an ordered dataset of size n: If n is odd, Median = x_((n+1)/2). If n is even, Median = [x_(n/2) + x_(n/2 + 1)] / 2.
Worked Examples
Odd Dataset Example
Input: 7, 3, 9, 1, 5
Explanation: There are 5 numbers. The third number in sorted order is 5.
Even Dataset Example
Input: 12, 4, 8, 16
Explanation: There are 4 numbers. The average of middle elements 8 and 12 is 10.
Frequently Asked Questions
Why is the median resistant to outliers?▼
Unlike the mean, the median depends only on rank order, so extreme high or low values do not distort the central value.
Does this tool also compute the mean and mode?▼
Yes, secondary statistics including mean, mode, minimum, and maximum are displayed.
Can I enter decimals and negative numbers?▼
Yes, all real numbers are supported.
What is the Interquartile Range (IQR)?▼
IQR is the difference between the third quartile (Q3) and first quartile (Q1), representing the middle 50% of data.
Related Online Tools
Explore complementary calculators and converters with instant client-side execution
Average Calculator
Calculate the arithmetic average (mean), median, mode, sum, and count of any dataset.
Standard Deviation Calculator
Calculate sample and population standard deviation, variance, mean, and margins of error.
Ratio Calculator
Simplify ratios to lowest terms, solve equivalent proportions, and scale dimensions.
Factoring Calculator
Find prime factors of integers and factor quadratic or polynomial expressions instantly.
Proportion Calculator
Solve for the unknown variable in any proportion (A/B = C/D) with cross-multiplication steps.
GCF Calculator
Compute the greatest common factor (GCF/HCF/GCD) of any group of numbers with step-by-step methods.
Explore Other Tool Categories
Browse our full collection of 50 free web utilities
Unit Converters
Exact metric & imperial conversions for weight, length, temperature & volume.
Date & Time
Calendar arithmetic, business day intervals, stopwatch & multi-counter.
Home & Construction
Paint coverage, pool volume, topsoil, roof pitch, square footage & materials.
Finance
Discount savings, markup, profit margins, CD returns & overtime pay.