Skip to content
CalculatorBuddy

Mean, Median, Mode, Range Calculator

Find the mean, median, mode, range, and geometric mean of a comma-separated list of numbers.

Maintained by CalculatorBuddy TeamEditorial methodology

Add as a preferred source on Google (opens in a new tab)

ExampleSample values — edit any field to see your result.

Separate numbers with commas. At least two values are required.

Results update as you type.

Mean

22.14

Estimated result

Median
23
Range
36
Mode
38, 23, each appeared 2 times
Geometric Mean
16.41
Largest
38
Smallest
2
Sum
155
Count
7
Sorted Data Set
2, 10, 21, 23, 23, 38, 38

Saved calculations stay only in this browser. Share copies a link containing your entered values.

Compare scenarios

Keep a baseline, then change an assumption to see its effect side by side.

Paste a comma-separated list of numbers to get the arithmetic mean, median, mode, range, and geometric mean, plus the largest and smallest values, the sum, the count, and the sorted data set.

Examples

Default list 10, 2, 38, 23, 38, 23, 21

The sum is 155 and n is 7, so the mean is 22.142857142857. Sorted, the middle value is 23 (the median). Largest 38 minus smallest 2 is a range of 36. Both 38 and 23 appear twice, so the mode is 38, 23, each appeared 2 times (first-appearance order). The geometric mean is 16.412764443111.

All unique values 1, 2, 3, 4

The mean and median are both 2.5, the range is 3, and the mode is All values appeared just once. The geometric mean is 2.2133638394006.

Negatives and zeros

For -2, 10, 0, 10, -2 the mean is 3.2, the median is 0, and the range is 12. The mode is -2, 10, each appeared 2 times. Because the list includes zero and negatives, the geometric mean is 0.

Formula

The mean is the sum of the n values divided by n:

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

Sort the list in ascending order to find the median. For an odd count the median is the middle value; for an even count it is the average of the two middle values.

range = largest − smallest

The mode is the value (or values) with the highest frequency. Geometric mean is the n-th root of the product:

gmean = (x1 × x2 × … × xn)^(1/n)

If any xi is zero or negative, geometric mean is reported as 0.

Mean, median, mode, and range each describe a different aspect of the same list. An outlier pulls the mean and the range far more than the median, so looking at all four together is more informative than any one figure alone.

Choosing a summary

Mean, median, mode, and range describe different features of the same list. The mean is sensitive to outliers, the median ignores distances between most observations, the mode may be absent or nonunique, and the range depends only on two values. Preserve units and the sampling context when comparing datasets.

Paste-ready data activity: the outlier changes the story

This original activity uses ten fictional wait times, measured in minutes. Paste the following line into the calculator:

6, 7, 7, 8, 8, 8, 9, 10, 12, 25

Before calculating, ask which single number looks unusual and predict whether the mean or median will be larger. Then use the sorted-data output to check the position of the middle values.

Student prompts

  1. Find the mean, median, mode, and range, and include minutes with every answer where the unit applies.
  2. Which measure of center better describes a typical wait for this data set? Support the choice with two calculated values.
  3. Remove the 25-minute observation and recalculate. Which summaries change?
  4. Could the 25 be a data-entry error? What information would you need before deleting it from a real data set?
  5. Write a different ten-value data set with the same median of 8 but no mode.

Answer check

For all ten waits, the sum is 100, so the mean is 10 minutes. The two middle observations are both 8, making the median 8 minutes. The mode is 8 minutes, and the range is 25 − 6 = 19 minutes.

After removing 25, the sum is 75 across nine observations: the mean is about 8.333 minutes, the median is 8 minutes, the mode remains 8 minutes, and the range becomes 6 minutes. The original median and mode do not change, while the mean and range do. That contrast supports using the median when the goal is to describe the center without letting one long wait dominate—but the choice should still be explained in context.

An unusual observation is not automatically an error. In real work, check how the value was recorded and what happened during that observation before excluding it. The calculator summarizes the values supplied; it cannot judge their provenance or decide which statistic answers the research question.

Frequently asked questions

How should I enter the numbers?
Type or paste values separated by commas, such as 10, 2, 38, 23. Spaces around commas are fine. At least two numbers are required. Empty slots (two commas in a row) and non-numeric tokens are rejected.
What is the difference between mean, median, and mode?
The mean is the arithmetic average (sum divided by count). The median is the middle value after sorting — or the average of the two middle values when the count is even. The mode is the value that appears most often; a list can have one mode, several modes, or none if every value is unique.
How is range calculated?
Range is the largest value minus the smallest. It measures spread in the same units as the data, and a single outlier can make it much larger.
What is the geometric mean, and when is it zero?
The geometric mean is the n-th root of the product of the n values. It is only defined for positive numbers. If any value is zero or negative, this calculator reports a geometric mean of 0.
How are multiple modes listed?
When two or more values share the highest frequency, they are listed in the order they first appear in your input, followed by "each appeared k times." If every value appears once, the result is "All values appeared just once."

Related calculators