Back to Home

Mean, Median, Mode Calculator

Calculate central tendency measures for your dataset

Data Input

Separate values with commas, spaces, or new lines

Definitions

Mean: Average of all values (sum ÷ count)

Median: Middle value when sorted

Mode: Most frequently occurring value(s)

Range: Difference between max and min

Results

Mean (Average)

17.0833

Median (Middle Value)

19

Mode (Most Frequent)

20

Additional Statistics

Count (n)

12

Sum

205

Minimum

5

Maximum

28

Range

23

Frequency Distribution

Sorted Data

5812121518202020222528

Value Frequency

Value: 5Count: 1
Value: 8Count: 1
Value: 12Count: 2
Value: 15Count: 1
Value: 18Count: 1
Value: 20Count: 3
Value: 22Count: 1
Value: 25Count: 1
Value: 28Count: 1

Overview

This calculator finds the three classic measures of central tendency for any list of numbers — the mean (arithmetic average), the median (middle value) and the mode (most frequent value) — along with the count, sum, minimum, maximum and range. It also draws a frequency bar chart with the mode highlighted and lists your data in sorted order, which makes it useful for students, teachers, and anyone summarizing test scores, prices, survey answers or measurements.

The mean is the sum of the values divided by how many there are. The median is found by sorting the list and taking the middle value, or the average of the two middle values when the count is even. The mode is every value that appears most often; if several tie, all are listed (multimodal), and if every value appears equally often the calculator reports that there is no mode.

The three measures answer different questions. When data contain outliers or are skewed — incomes or home prices, for example — the median usually describes a "typical" value better than the mean.

How to Use

  1. Type or paste your numbers into the Enter Data Values box, separated by commas, spaces or new lines. Decimals and negative numbers are accepted; a sample data set is preloaded.
  2. Click Calculate.
  3. Read the Mean (Average), Median (Middle Value) and Mode (Most Frequent) results, plus Count, Sum, Minimum, Maximum and Range under Additional Statistics.
  4. Scroll down to the Frequency Distribution chart, where the modal values are drawn in a darker bar, and to the Sorted Data and Value Frequency lists.
  5. Click Clear All to empty the box and enter a new data set.

Frequently Asked Questions

How do you find the mean, median and mode?

Take the preloaded data set 5, 8, 12, 12, 15, 18, 20, 20, 20, 22, 25, 28. The sum is 205 and there are 12 values, so the mean is 205 ÷ 12 ≈ 17.0833. With an even count, the median is the average of the 6th and 7th sorted values, (18 + 20) ÷ 2 = 19. The value 20 appears three times, more than any other, so the mode is 20.

How do you find the median of an even number of values?

Sort the numbers from smallest to largest, then average the two values in the middle. For 4, 9, 11, 16, the middle pair is 9 and 11, so the median is (9 + 11) ÷ 2 = 10. With an odd count there is a single middle value: for 3, 5, 7, 8, 12, 13, 14, 18, 21 (nine values), the median is the 5th value, 12.

Can a data set have more than one mode or no mode?

Yes. If two or more values tie for the highest frequency, the data are multimodal and the calculator lists every mode — for 1, 2, 2, 3, 3, 4 the modes are 2 and 3. If every value occurs the same number of times, such as 1, 2, 3, 4 or 1, 1, 2, 2, there is no mode, and the calculator says so rather than listing every number.

When should I use the median instead of the mean?

Use the median when the data are skewed or contain outliers. For five salaries of $42,000, $45,000, $48,000, $51,000 and $250,000, the mean is $87,200 — higher than four of the five people earn — while the median is $48,000. This is why agencies such as the US Census Bureau typically report median household income rather than the average.

What is the range in statistics?

The range is the difference between the largest and smallest values, a quick measure of spread. In the sample data set, the maximum is 28 and the minimum is 5, so the range is 23. Because it depends on only two values, the range is very sensitive to outliers; the standard deviation is a more robust measure of variability.

What happens if I enter text or symbols in the data box?

The calculator splits your input on commas, spaces and line breaks and keeps only entries that are valid numbers; anything else, such as a word or a value with a unit or dollar sign attached, is skipped. Check the Count (n) under Additional Statistics to confirm that every value you meant to include was read. Remove thousands separators too — "1,200" is read as two values, 1 and 200.