Average Calculator

Mean, median, mode, range, standard deviation and weighted average

Paste a list of numbers to get the average (mean), median, mode, range, minimum, maximum, sum, count, standard deviation and geometric mean. Switch to weighted average for grades, prices or scores that count differently.
Share
Try an example:
Your result will appear here as you type.

About Average Calculator

Formula

Mean = Sum of values ÷ Number of values

Weighted mean = Σ(value × weight) ÷ Σ weight

Sample standard deviation = √(Σ(x − mean)² ÷ (n − 1))

Worked examples

Mean and median

For 1, 2, 2, 3, 12 the mean is 4 but the median is 2 - one large value pulls the mean up.

Weighted grades

Exam 90 (60%) and coursework 70 (40%): (90 × 60 + 70 × 40) ÷ 100 = 82.

How it works

  1. Every number in your text is found - commas, spaces, semicolons and new lines all work as separators.
  2. Mean = sum ÷ count. Median is the middle value once sorted (the average of the two middle values for an even count). Mode is the most frequent value.
  3. Standard deviation measures spread: "sample" (dividing by n − 1) is right for a sample of a bigger group; "population" (dividing by n) for a complete set.
  4. Weighted average multiplies each value by its weight, adds them up and divides by the total weight - so a value with weight 3 counts three times as much.

What you need

  • A list of numbers. For a weighted average, one value and its weight per line, such as "85, 3".

Tips

  • Use the median for things like salaries or house prices, where a few very large values pull the mean up.
  • For course grades, use the weighted average with credits or percentage weights.
  • The geometric mean is the right average for growth rates and ratios (it is shown when all numbers are positive).

Limitations

  • Up to 100,000 numbers at a time.
  • Text such as "1,000" is read as two numbers (1 and 000) - write large numbers without thousands separators.

Runs in your browser. Calculations run in your browser - nothing you enter is sent anywhere.

Definitions

Mean
The arithmetic average.
Median
The middle value once the numbers are sorted.
Mode
The value that appears most often.
Standard deviation
How spread out the numbers are around the mean.

Frequently asked questions

How do I calculate an average?+

Add all the numbers and divide by how many there are. The average of 4, 8 and 12 is (4 + 8 + 12) ÷ 3 = 8.

What is the difference between mean, median and mode?+

The mean is the arithmetic average, the median is the middle value when sorted, and the mode is the most common value. In 1, 2, 2, 3, 12 the mean is 4, the median 2 and the mode 2.

How do I calculate a weighted average?+

Multiply each value by its weight, add the results, and divide by the sum of the weights. Exam 90 (weight 60%) and coursework 70 (40%): (90 × 60 + 70 × 40) ÷ 100 = 82.

Which standard deviation should I use?+

Sample standard deviation when your numbers are a sample from a larger group (most surveys and experiments); population when you have every value in the group.

Was this calculator helpful?