🎓 Mathematics • Statistics
100% Client-Side Privacy
Median Calculator
Sorts datasets and extracts the exact physical middle observation (median) with step-by-step sorting.
Descriptive Statistics Engine
Dataset Analysis & Five-Number Summary
Input comma or space separated numbers. Computes central tendency, spread, shape moments, Tukey fences, and interactive plots.
Raw Data Values10 observations parsed
Presets:
Mean (x̄)24.7Sum / N
Median (Q₂)23.550th percentile
Sample Std Dev (s)8.7819s² = 77.1222
IQR (Q₃ - Q₁)12Middle 50%
Interactive Data Visualization
IQR Box (Q₁ to Q₃) Median (23.5)✕ Mean (24.7) Outlier (Outside 1.5×IQR)
Comprehensive Metrics Table
Count (N)10
Sum (Σx)247
Mode22
Range28 (12 - 40)
Sample Variance (s²)77.1222
Pop Variance (σ²)69.41
Standard Error (SE)2.7771
Coef of Variation (CV)35.55%
10% Trimmed Mean24.375
First Quartile (Q₁)18
Third Quartile (Q₃)30
Tukey Fences [LF, UF][0, 48]
Skewness0.319 (Symmetric)
Excess Kurtosis-0.525 (Platykurtic)
Detected OutliersNone detected
Single Value Evaluator (Z-Score & Percentile)Standardized deviation from sample mean: z = (x - x̄) / s
Standardized Z-Score+0.034 σ0.034 standard deviations above mean
Percentile Rank55th PercentileBetter than or equal to 55% of sample
Step-by-Step Statistical Derivations
1. Sorted Ascending Dataset:
12, 15, 18, 22, 22, 25, 28, 30, 35, 40
2. Central Tendency:
- Mean: x̄ = Σx / n = 247 / 10 = 24.7
- Median: Ordered middle position average of items 5 & 6 = 23.5
- Mode: 22 (Frequency = 2)
3. Sum of Squared Deviations & Variance:
- SS = Σ(x_i - x̄)² = 694.1
- Sample Variance: s² = SS / (n - 1) = 694.1 / 9 = 77.1222
- Sample Standard Deviation: s = √s² = √77.1222 = 8.7819
4. Five-Number Summary & Outlier Fences:
- Min = 12, Q₁ = 18, Median = 23.5, Q₃ = 30, Max = 40
- IQR = Q₃ - Q₁ = 30 - 18 = 12
- Lower Fence = Q₁ - 1.5×IQR = 18 - 18 = 0
- Upper Fence = Q₃ + 1.5×IQR = 30 + 18 = 48
What is the Median?
The median is the middle value in an ordered dataset that separates the higher half from the lower half.
Because it depends on rank rather than numerical sums, it is robust against outliers.
Formula & Step-by-Step Calculation
Odd n: Middle element, Even n: Average of two middle elements
Order-based central tendency metric.
Worked Step-by-Step Examples
Example 1
Median of 3, 13, 7, 5, 21, 23, 39, 23, 40, 23, 14, 12, 56, 23, 29
Solution: 23
• Sorted middle value is 23.
Common Real-World & Academic Use Cases
- ✓ Real estate median house prices
- ✓ Household income reports
- ✓ Class test rankings
How to Use the Median Calculator
1
Paste Numbers
Input dataset.
2
View Median
Inspect sorted order and middle value.
Frequently Asked Questions
Q: Why use median instead of mean?
When distributions are skewed or have extreme outliers, median better represents typical values.