Skip to content

Average calculator

Mean, median, mode, range and standard deviation for any list of numbers, with population or sample statistics.

Separate numbers with commas, spaces or new lines. Negative numbers and decimals are fine.

Standard deviation and variance

Population divides by the count of numbers; sample divides by count minus 1 and needs at least two numbers.

Your statistics

Mean (average)

-

Enter numbers to see the statistics.

Median
-
Mode
-
Range
-
Standard deviation
-
Variance
-
Count
-
Sum
-
Min
-
Max
-

How it works

The mean (average) of a data set is the sum of all values divided by the count, the median is the middle value when sorted, and the mode is the most frequently occurring value.

  1. Enter your numbers

    Paste or type a list, separated by commas, spaces or new lines.

  2. Pick population or sample

    Population is for the full group; sample is for a subset used to estimate it.

  3. Read the statistics

    Mean, median, mode and the rest update as you type.

The formulas

For a data set of n numbers x1 through xn:

mean = (x1 + x2 + ... + xn) / n

The median is the middle value once the numbers are sorted (or the average of the two middle values when n is even). The mode is the value, or values, that occur most often; a data set has no mode when every value occurs exactly once.

Population versus sample standard deviation

population: sigma = sqrt(sum((x - mean)^2) / n) sample: s = sqrt(sum((x - mean)^2) / (n - 1))

Use the population formula when your numbers are the entire group you care about. Use the sample formula when your numbers are a smaller sample drawn from a larger population, since dividing by n minus 1 corrects for the extra uncertainty. Sample standard deviation needs at least two numbers and is always slightly larger than the population figure for the same data.

Mean versus median

The mean is pulled toward outliers, while the median is not. For salaries of 30,000, 35,000, 40,000, 45,000 and 500,000, the mean is about 130,000, which is misleading, while the median of 40,000 better represents a typical value.

Frequently asked questions

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

Mean equals the sum divided by the count; median is the middle value when sorted, or the average of the two middle values for an even count; mode is the most frequent value. For the data set 2, 3, 3, 8, 14: mean is 30 divided by 5, which is 6; median is 3, the middle of the sorted list; mode is 3, since it appears twice. Each measures the center of the data differently.

How does the calculator handle a data set with no mode?

If every value occurs exactly once, no value is more frequent than the others and the data set has no mode. The calculator shows "None" in the mode field in this case. A data set can also have multiple modes, called bimodal or trimodal, when two or more values share the highest frequency.

What is standard deviation and should I use population or sample?

Standard deviation measures how spread out values are from the mean. A small standard deviation means the data clusters tightly around the mean; a large one means high variability. Use population standard deviation when your numbers are the whole group; use sample standard deviation, which divides by count minus 1, when your numbers are a sample used to estimate a larger population. The calculator computes either on request.

Why is the median sometimes better than the mean?

The mean is sensitive to extreme outliers. In a data set of salaries 30,000, 35,000, 40,000, 45,000 and 500,000, the mean is about 130,000, which is misleading because of the one high value. The median of 40,000 better represents the typical salary. The calculator computes both so you can choose the right measure.

How do I enter data into the average calculator?

Type numbers separated by commas, spaces or new lines in the text box, for example 85, 90, 78, 92, 88. The calculator parses every valid number and ignores stray characters automatically, updating all the statistics in real time as you type.