Mean, Median and Mode Calculator
Paste or type a list of numbers to see the mean (the average), median, mode, range, minimum and maximum, count, sum and the standard deviation, both sample and population, as you type. It accepts numbers with a decimal point or a decimal comma, and has a weighted average mode for when each value counts differently.
Works anywhere in the world, wherever you are.
Separate them with commas, spaces, semicolons or one per line. You can paste them from a spreadsheet.
Mean (average)
5
of 8 numbers
- Median
- 4.5
- Mode
- 4
- 3 times
- Range
- 7
- 9 − 2
- Minimum
- 2
- Maximum
- 9
- Sum
- 40
- Sample std. dev. (s)
- 2.13809
- Population std. dev. (σ)
- 2
- Sample variance (s²)
- 4.571429
- Population variance (σ²)
- 4
Sorted from smallest to largest
2, 4, 4, 4, 5, 5, 7, 9
The formulas
x̄ = Σx ÷ n = 40 ÷ 8 = 5
σ = √(Σ(x − x̄)² ÷ n) = 2 · s = √(Σ(x − x̄)² ÷ (n − 1)) = 2.13809
School grades? The Grade Calculator works with weights per assignment and exam and gives you the letter, and the GPA Calculator uses credits and the 4.0 scale. This tool is for general statistics.
The numbers you type never leave your device and are not in the Share link. Only the mode and the decimal mark are remembered in your browser.
Related tools
Grade Calculator
Math
Your weighted grade, what is still ungraded and your letter.
OpenGPA Calculator
Math
Term and cumulative GPA, on the scale you use.
OpenPercentage Calculator
Math
Six modes: percent of, what percent, change and more.
OpenScientific Calculator
Math
Sine, cosine, logs, powers, roots, memory and history.
OpenAbout this calculator
What each result measures
The mean is the sum divided by how many numbers there are: what we usually call the average. The median is the middle value once they are sorted; with an even count, it is the average of the two in the middle. The mode is the value that appears most often; there can be several, or none if no value repeats more than another.
The range is the maximum minus the minimum. The standard deviation measures how far the numbers sit from the mean: the population one (σ) divides by n and is for when you have all the data; the sample one (s) divides by n − 1 and is for when your data is a sample of something larger. The variance is the standard deviation squared.
The median and the mode stand up to extreme values better than the mean: in a list of salaries, one very high salary pulls the mean up but barely moves the median.
Example
With 2, 4, 4, 4, 5, 5, 7 and 9: there are 8 numbers adding up to 40, so the mean is 40 ÷ 8 = 5. Sorted, the two in the middle are 4 and 5, so the median is 4.5. The mode is 4, which appears 3 times, and the range is 9 − 2 = 7.
The squared distances from the mean add up to 32. The population variance is 32 ÷ 8 = 4 and the population standard deviation is √4 = 2. The sample version divides by 7: variance 4.571429 and standard deviation 2.13809.
Weighted average: with 80, 90 and 70 and weights 2, 3 and 1, it is (80 × 2 + 90 × 3 + 70 × 1) ÷ 6 = 500 ÷ 6 = 83.33. Without weights the average would be 80.
How to enter the numbers
With “Point: 1.5”, separate them with commas, spaces, semicolons or one per line, the way they come out when you copy a spreadsheet column. Do not use commas for thousands: 1,000 would be read as 1 and 0; if the calculator sees something like that, it warns you.
With “Comma: 1,5”, a comma between two digits is the decimal mark, and numbers are separated by spaces, semicolons, line breaks or a comma followed by a space. For example, 1,5; 2,5; 3,5 gives a mean of 2,5. Anything that cannot be read is left out and shown to you.
In weighted mode, type the values in one box and the weights in the other, in the same order. For school grades with weights and a letter, or for a GPA with credits, there are dedicated calculators under related tools.
Important limitations
- Results are shown with up to 6 decimals; the maths uses the number's full precision.
- It accepts up to 10,000 numbers. Beyond that, use a spreadsheet or a statistics package.
- It does not work out quartiles, percentiles or confidence intervals.
- If your data has thousands separators, remove them before pasting so they are not read as separate numbers.
Frequently asked questions
This calculation runs in your browser and is never sent to a server. Your last values may be saved on your device only, for convenience. Results are estimates and are not financial, tax, accounting or legal advice.