Math Tools

Statistics Calculator: Mean, Median, Mode and Standard Deviation

Paste or type a list of numbers to get all the common descriptive statistics at once: count, sum, mean, median, mode, minimum, maximum, range, quartiles and the interquartile range, plus the variance and standard deviation for both a sample and a whole population, and the standard error of the mean.

01

Your inputs

Start with the example, or enter your own values.

Processed in your browser. Your inputs stay on this device.

02

Your result

A little clarity, coming right up.

Make room for the answer.

Enter your values and run the tool. Your result will appear here.

How to use the Statistics Calculator

Paste or type your numbers, separated by commas, spaces or new lines, and press Calculate. Decimals and negative numbers are fine.

Read more: How to Use the Statistics Calculator: Steps and a Worked Example

Worked example

For 4, 8, 15, 16, 23 and 42 the sum is 108 and the count 6, so the mean is 18. Sorted, the two middle values are 15 and 16, so the median is 15.5. The squared distances from the mean add up to 910; divided by 5 that is a sample variance of 182, and its square root, 13.49, is the sample standard deviation.

Mean or median?

The mean uses every value, so one very large or very small number pulls it a long way. The median is the middle value and barely moves. In the example, 42 lifts the mean to 18 while the median stays at 15.5. For skewed data such as incomes or house prices, the median usually describes a typical value better.

The formula

Mean = sum ÷ n. Sample variance = Σ(x − mean)² ÷ (n − 1); population variance divides by n. Standard deviation is the square root of the variance. Standard error = sample standard deviation ÷ √n.

Examples

  • Six numbers: 4, 8, 15, 16, 23, 42
    Count: 6
    Sum: 108
    Mean: 18
    Median: 15.5
  • Test scores with a repeated value
    Count: 8
    Sum: 678
    Mean: 84.75
    Median: 85
  • Odd count: 2, 4, 4, 4, 5, 5, 7, 9, 10
    Count: 9
    Sum: 50
    Mean: 5.555556
    Median: 5

Limitations and assumptions

Quartiles are the medians of the lower and upper halves, leaving out the middle value when the count is odd; spreadsheets and other calculators may use a slightly different method and give slightly different quartiles.

Frequently asked questions

What is the difference between sample and population standard deviation?

Use the population figure when your numbers are the whole group you care about, and the sample figure when they are a sample from a bigger group. The sample version divides by n − 1 instead of n, which makes it slightly larger and corrects for the sample being small.

What if no number repeats?

Then the list has no mode, and the result says so. If several numbers share the highest count, all of them are shown as modes.

How are the quartiles worked out?

The list is sorted, split into a lower and an upper half (leaving out the middle value when the count is odd), and Q1 and Q3 are the medians of those halves. Excel’s QUARTILE.INC uses another method, so its quartiles can differ slightly.