🎓 Statistics & Data • Descriptive Statistics 100% Client-Side Privacy

Median Calculator

Computes the median of odd and even-sized numerical datasets, immune to skewness and extreme outliers.

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
0.018.023.530.048.0LF: 0.0UF: 48.0
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 separating the higher half from the lower half of a sorted data sample.

Formula & Step-by-Step Calculation

Median = x_((n+1)/2) for odd n; [x_(n/2) + x_(n/2 + 1)] / 2 for even n

Middle observation or average of the two central numbers.

Worked Step-by-Step Examples

Example 1

Find median of: 3, 13, 7, 5, 21, 23, 39, 23, 40, 23, 14, 12, 56, 23, 29

Solution: Median = 23.00
• Sorted: 3, 5, 7, 12, 13, 14, 21, 23, 23, 23, 23, 29, 39, 40, 56 ⟹ 8th value is 23

Common Real-World & Academic Use Cases

  • ✓ Real estate median home prices
  • ✓ National median household income reports
  • ✓ Medical survival analysis

How to Use the Median Calculator

1

Input Dataset

Enter numbers.

2

Inspect Median

Review the middle value and sorted data order.

Frequently Asked Questions

Q: Why is median preferred over mean for salaries?

Because a few extremely high salaries pull the mean upward, whereas the median represents the true middle earner.

Related Statistics & Data Calculators