Median and Mode Calculator
Calculate the median and mode of a number list after sorting (middle value; most frequent). Example: 1,2,2,3,4 → median 2, mode 2. Browser-only statistics process for quick checks.
How it works
Paste numbers separated by commas or spaces. The tool reports median and a single mode.
Formula
Sort x; odd n → x[(n+1)/2]; even → average of two central. Mode = argmax frequency. Notes:
- Even-length median uses the mean of the two central values.
- If all frequencies tie, mode is the smallest value.
- Pair with mean / SD tools.
Example
Example: 1,2,2,3,4 → median 2, mode 2.
When to use it
- Homework median/mode.
- Quick center vs peak.
- Compare with mean.
Frequently asked questions
Sample?
1,2,2,3,4 → 2 and 2.
Multimodal?
We return one mode (smallest among ties).
Empty?
Rejected.
Advice?
Educational only.
Questions or feedback
Something unclear, broken, or missing? Draft a message below — we read every note about these tools.