Mean Median Mode Calculator
The three averages, the midrange and the count for a pasted column, with the mode's tally shown.
What this page computes
Paste one number per line. The mean is Σx/n, the median is the middle order statistic with linear interpolation (R type 7 at p = 0.5), the mode is every value that shares the highest tally, and the midrange is (min + max)/2. When every value appears once the page says there is no mode rather than inventing one, and when several values tie it lists all of them with the shared count. Figures print to six significant figures.
None of the three averages is more correct than another: the page prints them side by side and does not pick one. It refuses an empty box, refuses a token that is not a number by line number, and refuses a comma inside a line, since this page takes one value per line.
The arithmetic happens in your browser. Paste the same column after a reload and the same four lines come back.
The page prints the three everyday averages side by side — the mean Σx/n, the median at the type 7 rule, and every value sharing the highest count as the mode — plus the midrange (min + max)/2. The eight values 2, 4, 4, 4, 5, 5, 7, 9 give a mean of 5, a median of 4.5, a mode of 4 appearing three times and a midrange of 5.5. When every value appears once it says there is no mode rather than inventing one, and a comma inside a line is refused because this page reads one value per line.
Compare the mean, median and mode of one column, with ties listed and an honest no-mode answer.
How to use it
Paste your data with one value per line. A comma inside a line is refused, because the page reads a column rather than a list — that refusal is the only place the two input conventions could be confused. The mode line shows how many times the value occurs, and a tie lists every tied value in ascending order.
Why the three can disagree
None of the three averages is more correct than the others, which is why the page prints them together and does not pick one: the mean moves with every value, the median only with the middle of the order, and the mode with the tallest tally, so a single outlier separates them. The median applies the type 7 interpolation, so an even count gets the average of the two middle order statistics and not the lower of the two.
What to Expect
Best for
- Showing how far apart the three averages can sit
What this tool keeps
- Nothing leaves this tab: the arithmetic runs in the page you are reading, and a reload discards both the input and the result.
Sample input
2 4 4 4 5 5 7 9
Sample output
mean = 5 median = 4.5 mode = 4 (appears 3 times) midrange = 5.5 ((min + max) / 2) n = 8
Frequently asked questions
What happens when two values tie for the mode?
Every tied value is listed in ascending order with the shared count, and none is promoted. If every value appears exactly once the page reports that there is no mode.
How is the median computed for an even count?
By the type 7 rule, which averages the two middle order statistics. For these eight values that is (4 + 5)/2 = 4.5, not 4.
Is my data uploaded?
No. All four figures are computed in this page from the pasted column, and nothing is posted to a server or stored.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.