Average Calculator
Calculate mean, median, mode, range, and standard deviation
100% client-side processing
Count
-
Sum
-
Mean
-
Median
-
Mode
-
Range
-
Min
-
Max
-
Pop Std Dev
-
Sample Std Dev
-
0 non-numeric line(s) skipped
Enter numbers above to see statistics
The word “average” hides several different statistics, and choosing the wrong one can completely misrepresent a dataset. This calculator turns a pasted list of numbers into the full descriptive set — count, sum, mean, median, mode, range, minimum, maximum, and both population and sample standard deviation — and hands back a sorted list you can copy. It is meant for students checking homework, teachers summarizing scores, and analysts profiling a column without opening a spreadsheet.
How to Use
- Paste or type numbers into the box. Commas, semicolons, spaces, and line breaks all work as separators, so you can paste straight from a spreadsheet column.
- Watch the stats update as you type. No button press is needed; the grid refreshes on every keystroke.
- Check the invalid-count warning if any tokens could not be read as numbers.
- Copy the sorted list when you want it in order for a report or a second tool.
Which “Average” Should You Quote?
The mean is the arithmetic average: sum divided by count. It uses every value, which makes it responsive to the whole dataset and also vulnerable to outliers. The median is the middle value after sorting; it answers “what does a typical member look like?” even when one value is enormous. The mode is the most frequent value, useful for repeated categories like shoe sizes or defect codes.
A salary list makes the difference concrete. Five people earn $40k, $42k, $45k, $48k, and $900k. The mean is $215k — a figure that describes nobody in the room — while the median is $45k. That is why income, house-price, and response-time reports almost always lead with the median.
Two other averages are worth knowing even though this tool does not compute them. The geometric mean multiplies the values and takes the nth root; it is the correct average for growth rates and ratios, which is why it is used for investment returns and population growth. The harmonic mean divides the count by the sum of reciprocals and is right for averaging rates such as speed over a fixed distance. For plain measurements on one scale, the arithmetic mean shown here is the right choice; for compounding quantities, it is not.
Worked Example: One Dataset, Every Statistic
Take the list 2, 4, 4, 4, 5, 5, 7, 9.
| Statistic | Value | How it is obtained |
|---|---|---|
| Count | 8 | number of values |
| Sum | 40 | 2+4+4+4+5+5+7+9 |
| Mean | 5 | 40 ÷ 8 |
| Median | 4.5 | average of the 4th and 5th sorted values (4 and 5) |
| Mode | 4 | appears three times, more than any other value |
| Min / Max | 2 / 9 | sorted endpoints |
| Range | 7 | 9 − 2 |
| Population std dev | 2 | variance 32 ÷ 8 = 4, then √4 |
| Sample std dev | 2.1381 | variance 32 ÷ 7 ≈ 4.5714, then √4.5714 |
The population and sample spread differ only in the divisor — 8 versus 7 — but that is enough to move the result by about 7% on this small set.
A second list shows why the mean moves so easily. For 10, 10, 10, 10, 100, the mean is 28 but the median is 10. One value lifts the mean by 18 points while the median stays anchored to the typical case. The standard deviation is correspondingly large (about 36 for the population, 40.2 for the sample), which is the numeric signal that the mean is a poor summary here.
Population vs Sample Standard Deviation
Standard deviation measures how far the values typically sit from the mean. The population formula sums the squared deviations and divides by n; the sample formula divides by n − 1. The extra degree of freedom corrects for the fact that a sample drawn from a larger group tends to understate that group’s true spread. As n grows, the two converge: at 500 values the difference is negligible, but at 8 it is visible, and at 1 the sample figure is defined as 0.
Written as equations, the population variance is Σ(x − μ)² / n and the sample variance is Σ(x − x̄)² / (n − 1); the standard deviation is the square root of whichever variance you chose. Both use the same arithmetic mean — only the denominator changes. A useful rule of thumb is that below roughly 30 values the choice can materially change a reported result, so state which one you used.
What Gets Skipped, and Why It Matters
The parser splits on whitespace and punctuation and then calls parseFloat on each token. A label like score is ignored and counted as invalid, which is usually what you want when pasting a column with a header. The subtle case is a number with a trailing unit: 12px, 3.5kg, and 50% all parse successfully as 12, 3.5, and 50, because parseFloat stops at the first non-numeric character. If those units should disqualify the entries, clean them out before pasting. Also remember that blank tokens are dropped entirely and never counted, so a missing cell simply reduces the count.
Practical Tips
- Paste a whole spreadsheet column at once; the separator handling accepts tabs too, because tabs fall under whitespace.
- Keep the header row out unless you want to see the invalid-count warning fire.
- For heavily skewed data, report the median and the interquartile range rather than the mean and standard deviation.
- When every value is unique, quote “no mode” rather than the smallest number.
- Decision-making note: if the mean is far from the median, say which you used and why — readers will otherwise assume the mean.
- Always report the count alongside an average. A mean of 7 from three numbers carries far less weight than the same mean from three hundred, and the count is the fastest way for a reader to judge that.
Related Tools
Frequently Asked Questions
Why does the mode show 'None' even though my list has repeated-looking numbers?
The mode is only reported when at least one value appears more than once; if every number is unique the tool displays None. It also does not round. Writing 4 and 4.0 produces the same number, but 4 and 4.01 are different values with separate frequencies, so a list that looks repetitive in a spreadsheet may still have no mode here.
When should I quote the sample standard deviation instead of the population one?
Use the population figure (divides by n) when your list is the entire group you care about — every student in one class, every day in a month. Use the sample figure (divides by n − 1, Bessel's correction) when the list is a sample drawn from a larger population, which is the common case for surveys and experiments. When the count is 1, the sample standard deviation is reported as 0 because there is no spread to estimate.
How does the tool decide what counts as a number?
It splits your input on commas, semicolons, spaces, and new lines, then runs parseFloat on each token. Tokens that do not begin with a number are counted as invalid and skipped. Note that parseFloat is lenient: a token like 12px is read as 12, and 3.5kg as 3.5, so strip units first if you want them flagged rather than silently truncated.
Why is my median different from my mean for the same list?
The mean adds every value and divides by the count, so a single extreme number pulls it up or down. The median sorts the list and takes the middle value (averaging the two middle values when the count is even), so it ignores how far the extremes reach. When the two diverge sharply, your data is skewed and the median is usually the more honest summary.
Does the calculator handle negative numbers and decimals?
Yes. Negative values, decimals, and scientific notation such as 1e3 are all parsed normally, and the min, max, and range reflect them. The range is always max minus min, so it stays non-negative even when every value is below zero.
What output can I copy, and is it a fixed number of decimals?
The sorted list is available through a copy button. Integers print without a decimal point, while non-integers are shown to at most four decimal places, so a mean of 4.571428571 becomes 4.5714. The standard deviations are rounded to four decimals as well. The mean, sum, and other totals are computed from the full-precision values, not the displayed rounded ones.
Reviewed by the HandyTools Hub team · Last updated