Median Calculator

Last updated: 2026-08-24

Median Calculator — Calculate median of a data set.
Inputs
Result
Enter values and press Calculate

How to use it

  1. Dataset: 23, 17, 31, 25, 19, 28, 22 (n=7)
  2. Sort ascending: 17, 19, 22, 23, 25, 28, 31
  3. Find middle position: (7+1)÷2 = 4th value
  4. Median = 23

Common mistakes

  • ⚠️ Not sorting the data before finding median
  • ⚠️ Using mean instead of median for skewed distributions
  • ⚠️ Incorrectly averaging middle two for even-sized datasets

Worked example

Calculate median of 3, 7, 9, 12, 15.

The median {median} is the middle value when data is sorted: {sorted}.

Input guide

FieldTypical range
valuesComma-separated numbers: -1e9 to 1e9, minimum 1 value