Find the median of a list of numbers, averaging the two middle values for an even count.
Mean Calculator
Find the arithmetic mean of a list of numbers exactly, with no floating-point drift in the sum.
- Free
- No sign-up
- Runs in your browser
Input
0 characters
Separate with commas, spaces or new lines. A column pasted from a spreadsheet works. Processed in your browser.
How many digits to show when the answer is irrational. An exact answer ignores this.
Try an example
Fill in Values to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Paste or type your values, separated by commas, spaces or new lines.
- 2
A column copied from a spreadsheet works directly.
Questions about Mean Calculator
When is the mean the wrong average?
When the data is skewed or has outliers, because the mean follows them. One billionaire raises the mean income of a town while leaving the median almost unchanged - which is why income and house prices are usually reported as medians. For rates and growth factors the geometric or harmonic mean is the right average instead.
Why do I get a different answer from a spreadsheet?
Almost always because the spreadsheet is using 64-bit floating-point arithmetic and this is not. Those numbers cannot represent 0.1 exactly, so errors accumulate: summing 0.1 ten times gives 0.9999999999999999. The difference is usually in the last digit or two, and this tool is the one without the error.
Why does this say the answer is exact?
Because it is. The arithmetic runs on exact fractions over arbitrary-precision integers, not floating-point numbers, so 1/3 + 1/3 + 1/3 is exactly 1 rather than 0.9999999999999999, and there is no rounding anywhere in the calculation. Where a result genuinely cannot be written exactly - a square root, a logarithm, anything involving pi - the page says so and gives a stated number of correct digits instead.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Mean Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Mean Calculator keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Find every most-frequent value, reporting multimodal data as multimodal and data with no repeats as having no mode.
Find the range of a list of numbers, with the minimum and maximum.
Compute variance exactly, always reporting both the sample (n-1) and population (n) definitions because they are different numbers.
Compute a standard deviation to a stated precision, reporting both the sample and population definitions.
Compute a z-score exactly, with the normal percentile rank and two-tailed p-value, stating the normality assumption those rest on.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.