Loading…

Calculators01.04

Mean, Median and Mode Calculator

Paste a list of numbers and instantly get the mean, median, mode, standard deviation and weighted average.

Back to Calculators

Separate values with commas, spaces, semicolons or line breaks. Use a period for decimals.

Use it when some values count more than others, like tests and homework in a class.

This runs entirely in your browser. We don’t store any data.

Statistics

Type or paste at least one number.

How to use it

  1. 01

    Type or paste your numbers, one per line or separated by commas or spaces. You can copy them straight from a spreadsheet column.

  2. 02

    The statistics update as you type.

  3. 03

    To average grades that count differently, check “Calculate a weighted average” and enter each value’s weight in the same order.

  4. 04

    Use the button in the results panel to copy the main result.

How it works

The mean is the sum of the values divided by how many there are. The median is the middle value once they’re sorted (or the average of the two middle values if there’s an even number of them). The mode is the value that shows up most often — there can be several, or none at all.

When a few values are extreme, the median gives a better picture than the mean: for 1, 2, 3, 4 and 100, the mean is 22 but the median is 3.

Standard deviation tells you how spread out the values are around the mean. The population version divides by n and is the one to use when you have every value; the sample version divides by n − 1 and is used when your data is a sample from a larger group.

A weighted average multiplies each value by its weight and divides by the total of the weights. Weights can be percentages, credit hours or any positive number.

Examples

  • Weighted class grade

    With scores of 60 (30%), 80 (30%) and 90 (40%), the weighted average is 78, while the simple mean would be 76.67.

  • Median vs. mean

    For salaries of $28,000, $30,000, $32,000 and $150,000, the mean is $60,000, but the median of $31,000 is much more typical.

  • Most common survey answer

    For the answers 2, 4, 4, 4, 5, 5, 7 and 9, the mode is 4 (it appears 3 times), the median is 4.5 and the mean is 5.

Frequently asked questions

Which standard deviation should I use?

If your numbers cover every case you care about (say, the scores of an entire class), use the population figure. If they’re a sample used to estimate something bigger, use the sample figure — it’s what most spreadsheets return by default with STDEV.

Can I paste numbers with thousands separators?

No. Commas separate values here, so 1,500 would be read as 1 and 500. Remove the separators first and type 1500.