How this mean, median, mode and range calculator works
Paste a list of numbers and this calculator reports the arithmetic mean, median, mode, range, and count as soon as there are at least two finite values. The headline is the mean with up to four decimal places. It is a lighter sibling of the standard deviation tool: it does not compute variance, standard deviation, or quartiles.
One number is not enough — the widget shows Two numbers or more are needed and no result. Tokens that are not finite numbers are skipped and counted. At most 5,000 numbers are used. Advanced options is GPA-style: Show sorted values is unused while the section is closed, even if it stays checked. Closing also hides sum, minimum, and maximum.
How to use the mean, median, mode and range calculator
- Paste or type your numbers. Separate them with spaces, new lines, or semicolons. A comma or a dot can be a decimal.
- Read the mean in the headline, plus median, mode, range, and count. Those figures do not wait on Advanced.
- Open Advanced options only if you want the sum, minimum, and maximum, or a sorted view of the list.
- Tick Show sorted values inside Advanced to see the first 50 sorted values. Closing Advanced options hides sum, min, max, and the sorted list even if the checkbox stays checked.
Advanced options, and closing them
This section is GPA-style. Open, extra rows show sum, minimum, and maximum. Open and Show sorted values checked, the first 50 sorted values appear (lists longer than 50 note the truncation). Closed, those extras are unused even if the checkbox stays checked. Mean, median, mode, range, and count stay visible.
Mean, median, mode, and range
Mean is the arithmetic average: sum ÷ n. Median is the middle value of the sorted list, or the average of the two middle values when n is even. Mode is every most-frequent value; if every number appears once the widget reports no repeats. Range is largest minus smallest.
How a pasted list is read
The calculator splits on spaces, new lines, and semicolons — not on every comma — so a European 12,5 13,2 stays two values. A comma-separated integer list such as 12,15,18 still works, as does 12, 15, 18. US thousands (1,234.5) stay one number. Tokens that are not finite numbers are skipped and counted. At most 5,000 numbers are used. A list that is too long to save still shows a result; history simply will not keep a shorter copy.
Worked examples
Example: 2, 4, 4, 4, 5, 5, 7, 9
There are 8 values. The mean is 5, which is the headline. n is even, so the median is (4 + 5) ÷ 2 = 4.5. The mode is 4 (three times). Range is 9 − 2 = 7. Count is 8. With Advanced options open, sum is 40, min is 2, and max is 9.
Example: 1, 2, 3 — no repeats
Mean is 2, median is 2, range is 2. Every value appears once, so mode is no repeats. Closing Advanced options hides sum, min, max, and any sorted chips even if Show sorted values stays checked.
Example: a single number
Paste 12 alone and there is no result. The widget reports Two numbers or more are needed. Empty paste shows Paste or type at least two numbers.
Things to keep in mind
Mean is pulled by outliers; median is more stable. Mode can be more than one value. This page does not report variance or standard deviation. Closing Advanced options does not clear your paste. Completed lists can be saved in this browser’s local history.
Mean, median, mode and range calculator FAQ
How many numbers do I need?
At least two finite numbers. One value shows Two numbers or more are needed and no result. Empty paste shows no result. Advanced options are optional.
What happens when I close Advanced options?
Sum, minimum, maximum, and the sorted list are unused even if Show sorted values stays checked — the same GPA contract as other calculators on this site. Mean, median, mode, range, and count stay visible.
How is the median calculated when n is even?
Sort the list. The median is the average of the two middle values. When n is odd, it is the single middle value.
When is there no mode?
When every value appears once, the widget reports no repeats. If several values tie for most frequent, every one of them is listed.
How is a pasted list read?
It splits on spaces, new lines, and semicolons — not on every comma — so European decimals such as 12,5 stay one number. Integer lists with commas still work. Non-numbers are skipped. At most 5,000 numbers are used.
Does this calculator store my numbers?
Completed results can be saved in this browser’s local history so you can reopen them later. The paste is a list of numbers, not free prose. It stays on your device and is not sent to our servers or to analytics. Very long lists still calculate, but history will not keep a truncated copy.