Math

Mean, Median, Mode, Range Calculator

Results

Enter values and calculate to see results.

Embed on your site

Any ezcalcs calculator can be embedded with one script tag. Copy the snippet below or use the homepage playground to preview and customize.

<!-- ezcalcs embed: mean-median-mode-range-calculator — paste anywhere in the body -->
<script
  async
  src="https://ezcalcs.net/embed.js"
  data-calc="mean-median-mode-range-calculator"
  data-theme="light"
  data-width="100%"
  data-height="640"
></script>

Enter your numbers into the calculator above to instantly find the mean, median, mode, and range for any data set. The tool handles the sorting, counting, and arithmetic so you can focus on what the results tell you.

Mean, median, and mode are the three most common measures of central tendency in statistics. Each one describes a "typical value" in a different way. Range measures the spread between the largest and smallest values.

Here is a quick summary of each:

  • Mean is the arithmetic average. Add all values, then divide by the number of values.
  • Median is the middle value when the numbers are sorted in ascending order.
  • Mode is the number that occurs most frequently.
  • Range is the difference between the largest and smallest values.

These four statistics give a fast snapshot of any data set, from homework problems to real survey results.

Mean Median Mode Calculator

This free online mean median mode calculator accepts a list of numbers separated by commas, spaces, or line breaks. It returns all four statistics at once, along with supporting details like the count of values and the sum.

When should you use each measure?

  • Use the mean when your data is roughly symmetric and has no extreme outliers.
  • Use the median when your data is skewed or contains outliers. The median is simply the middle number, so one extreme value does not pull it off center.
  • Use the mode when you need the most frequently occurring value, such as the most popular shoe size sold.
  • Use the range to get a quick sense of how spread out the values are.

Should you use average or median? If a few extreme values could distort the picture (like incomes in a small group), the median is the more reliable choice. For symmetric distributions, the mean and median will be close to each other.

Calculate the Mean

The mean (often just called the average) is the simplest summary of a data set. Add every value together, then divide by the total number of values.

Formula:

Mean = Sum of all values ÷ Number of values

For example, to calculate mean for the data set 1, 5, 8, 10, 7, and 5:

  1. Sum: 1 + 5 + 8 + 10 + 7 + 5 = 36
  2. Count: 6 values
  3. Mean: 36 ÷ 6 = 6

What is the mean of 9, 7, 8, 6, 0? The sum is 30 and there are 5 values, so the mean is 30 ÷ 5 = 6.

Find the Mean for Any Data Set

Finding the mean works the same way regardless of the data set size. Whether you have 5 numbers or 500, the steps are:

  1. Add all the numbers together.
  2. Count how many numbers you have.
  3. Divide the sum by the count.

The result is a single number that represents the "balance point" of the data. The mean is widely used in statistics because it factors in every value. That strength is also a weakness: one very large or very small value can drag the mean away from where most data points cluster.

Arithmetic Mean vs. Geometric Mean

The most commonly used mean is the arithmetic mean. It is the straightforward "add and divide" calculation described above. When people say "average" without further context, they almost always mean the arithmetic mean.

The geometric mean multiplies all values together, then takes the nth root (where n is the number of values). It is useful when values compound, such as annual investment returns or growth rates.

  • Arithmetic mean of 4 and 16: (4 + 16) ÷ 2 = 10
  • Geometric mean of 4 and 16: √(4 × 16) = √64 = 8

The geometric mean will always be equal to or less than the arithmetic mean. For most everyday calculations, the arithmetic mean is the right choice. This calculator uses the arithmetic mean.

What Is the Difference Between Sample Mean and Population Mean?

The population mean (often represented by the Greek letter μ) is the average of every member of an entire group. The sample mean is the average of a subset drawn from that group.

The formula is the same: add the values and divide by the count. The distinction matters when you move into inferential statistics, because formulas for standard deviation and confidence intervals adjust depending on whether your data represents a full population or a sample.

For basic calculations, simply enter your numbers and the result is the mean of the values you provided.

Find the Median

The median is the middle value in a data set after you arrange the numbers from lowest to highest. It splits the data into two equal halves.

How to calculate the median:

  1. Sort the numbers in ascending order.
  2. If there is an odd number of values, the median is the single middle number.
  3. If there is an even number of values, the median is the average of the two middle values.

Median and Mode as Measures of Central Tendency

Both the median and mode describe a typical value, but they do it differently.

The median answers: "What value sits at the center of the sorted list?" It is resistant to outliers, which makes it a good choice for skewed data like home prices or salaries.

The mode answers: "Which value appears most often?" It is the only measure of central tendency that works with categorical (non-numeric) data, such as favorite colors or brand preferences.

The relationship between mean, median, and mode can tell you about the shape of your data:

  • In a perfectly symmetric distribution, the mean, median, and mode are all the same.
  • When the mean is greater than the median, the data is right-skewed (pulled by high values).
  • When the mean is less than the median, the data is left-skewed (pulled by low values).

Middle Value in an Odd or Even Data Set

Odd number of values:

Data: 3, 7, 9, 15, 21 (five values, already sorted). The median is simply the third value: 9.

Even number of values:

Data: 2, 5, 8, 12 (four values). The two middle numbers are 5 and 8. The median is the average of the two middle values: (5 + 8) ÷ 2 = 6.5.

When the count is even, the median may be a number that does not actually appear in the data set. That is normal.

Find the Mode

The mode is the value that occurs most frequently in a data set. To find it:

  1. Count how many times each number appears.
  2. The number with the highest count is the mode.

A data set can have:

  • One mode (unimodal): one value appears more than any other.
  • Two modes (bimodal): two values tie for the highest frequency.
  • Multiple modes (multimodal): three or more values share the top frequency.
  • No mode: every value appears the same number of times.

Example: In the set 21, 9, 14, 3, 11, 33, 5, 9, 16, 21, 5, 9, the value 9 appears three times, which is more than any other number. The mode is 9.

Mode Calculator for Statistical Analysis

The mode is especially useful in statistical analysis when you need to identify the most common outcome. Think of a store checking which product size sells most, or a teacher identifying the most common test score.

Unlike the mean, the mode is not affected by extreme values. Unlike the median, it can highlight clusters in the data. For large data sets, finding the mode by hand is tedious, so the calculator does the counting for you instantly.

If all numbers in your data set occur the same number of times, the calculator will report that there is no mode.

Calculate Average and Range

Average and range together give you two essential pieces of information: the center and the spread.

  • Average (mean): Tells you where the center of the data falls.
  • Range: Tells you how far apart the largest and smallest values are.

Range formula:

Range = Largest value − Smallest value

For the data set 4, 8, 15, 16, 23, 42:

  • Mean: (4 + 8 + 15 + 16 + 23 + 42) ÷ 6 = 108 ÷ 6 = 18
  • Range: 42 − 4 = 38

A large range relative to the mean suggests wide variation. A small range suggests the values are tightly clustered.

Range Calculator and Standard Deviation

Range captures only the distance between the two most extreme data points. It ignores everything in between. That makes it a quick but rough measure of spread.

Standard deviation provides a more detailed picture. It measures how far, on average, each data point sits from the mean. A low standard deviation means values cluster near the center. A high standard deviation means they are spread out.

Both are helpful in different situations:

  • Use range for a fast, at-a-glance measure.
  • Use standard deviation for deeper statistical analysis, especially when comparing data sets of different sizes.

This calculator reports the range alongside the mean, median, and mode. For a dedicated standard deviation breakdown, check the statistics section of the site.

Midrange Calculation

The midrange is another simple measure of central tendency. It is the average of the largest and smallest values in a data set.

Formula:

Midrange = (Largest value + Smallest value) ÷ 2

For the data set 3, 7, 10, 18:

Midrange = (3 + 18) ÷ 2 = 21 ÷ 2 = 10.5

The midrange is easy to calculate, but like the range itself, it depends entirely on the two extreme values. A single outlier can shift it dramatically. It is best used as a rough estimate alongside more robust measures like the median.

Interquartile Range and Outlier Detection

The interquartile range (IQR) measures the spread of the middle 50% of your data. It is far less sensitive to outliers than the full range.

How to find the IQR:

  1. Sort the data from lowest to highest.
  2. Find Q1 (the median of the lower half).
  3. Find Q3 (the median of the upper half).
  4. IQR = Q3 − Q1.

Outlier detection with the IQR:

A common rule defines an outlier as any value that falls more than 1.5 times the IQR below Q1 or above Q3.

  • Lower fence: Q1 − (1.5 × IQR)
  • Upper fence: Q3 + (1.5 × IQR)

Any data point outside these fences is flagged as a potential outlier. The 1.5 multiplier is a widely used convention in statistics, though some analyses use 2.0 or 3.0 for stricter thresholds.

How an Outlier Affects Mean Median Mode Range

Outliers hit different statistics in different ways:

  • Mean: Highly affected. One extreme value can pull the mean significantly toward it.
  • Median: Barely affected. Because the median depends only on the middle position, an outlier at either end has little impact.
  • Mode: Not affected at all, unless the outlier itself becomes the most frequent value (unlikely by definition).
  • Range: Heavily affected. Since range depends on the largest and smallest values, a single outlier directly inflates it.

This is exactly why understanding all four statistics together is valuable. If the mean is much greater than the median, that gap suggests the data contains high-end outliers pulling the average up. The IQR and median give a more resistant view of the center and spread.

Mean Median Mode Calculation Step by Step

Here is a complete step-by-step walkthrough using a sample data set: 12, 7, 3, 12, 9, 14, 3, 7, 12.

Step 1: Sort the data in ascending order.

3, 3, 7, 7, 9, 12, 12, 12, 14

Step 2: Calculate the mean.

Sum = 3 + 3 + 7 + 7 + 9 + 12 + 12 + 12 + 14 = 79 Count = 9 Mean = 79 ÷ 9 ≈ 8.78

Step 3: Find the median.

There are 9 values (odd number). The middle position is the 5th value. Median = 9

Step 4: Find the mode.

Count each value:

  • 3 appears 2 times
  • 7 appears 2 times
  • 9 appears 1 time
  • 12 appears 3 times
  • 14 appears 1 time

The number 12 occurs most frequently. Mode = 12

Step 5: Find the range.

Range = 14 − 3 = 11

Step 6 (bonus): Find the midrange.

Midrange = (3 + 14) ÷ 2 = 8.5

Enter your own set of numbers into the calculator at the top of the page and it will walk through these steps instantly. This is an estimation and learning tool. For academic work, always verify results according to your course requirements.