Mean, Median, Mode Calculator

Calculate mean (average), median, mode, range, minimum, maximum, and sum for any set of numbers with full step-by-step sorting.

Calculator Inputs

Enter data values separated by commas.

Calculated Results

Mean (Average)
18.50
Median (Middle Value) 19.00
Mode (Most Frequent) No unique mode
Range (Max - Min) 13.00
Values calculate live as you adjust inputs.

About Mean, Median, Mode Calculator

When you calculate an average, you might expect one number to describe your entire dataset. However, the mean, median, and mode can produce three different results from exactly the same list of values. Each measure looks at the data from a different angle, and knowing the difference helps you avoid drawing the wrong conclusion.

Imagine a small online store recording its daily orders over six days:

12, 14, 14, 15, 16, 49

The store can look at the same figures in three ways:

  • Mean: 20 – the arithmetic average across all six days.

  • Median: 14.5 – the midpoint between the two central values after sorting.

  • Mode: 14 – the number of orders recorded most frequently.

Why are the answers different? The final day had 49 orders, considerably more than the other days. This raises the mean, but the median and mode remain closer to the usual daily order count.

That difference is exactly why calculating mean, median, and mode together is useful. The mean shows the overall numerical average, the median identifies the centre of an ordered dataset, and the mode reveals the most frequently occurring value.

Use this Mean Median Mode Calculator to enter your numbers and compare all three results. You can also examine the range, minimum, maximum, and sum to get a clearer picture of the values you are working with.

What Do Mean, Median, and Mode Tell You?

Mean, median, and mode are known as measures of central tendency. They describe the centre of a dataset, but they do not define it in the same way. Understanding what each result represents makes it easier to decide which one answers your question.

Mean: The arithmetic average of your numbers

The mean is calculated by adding every observation and dividing the total by the number of observations. It is what most people mean when they use the word average.

For example, consider five daily sales totals:

8, 10, 12, 14, 16

Add the values:

[
8+10+12+14+16=60
]

There are five observations, so:

[
\text{Mean}=\frac{60}{5}=12
]

The mean is 12.

Every number contributes to this result, which makes the mean useful when you want an overall average that accounts for all observations. However, it also means that unusually high or low values can influence it significantly.

Median: The middle value of an ordered dataset

The median is the value that sits in the middle after all observations have been arranged from smallest to largest or largest to smallest.

For example:

3, 5, 7, 9, 11

There are five numbers, and the third value sits in the centre. Therefore, the median is 7.

When the dataset contains an even number of observations, there is no single middle value. Instead, you take the average of the two central numbers.

For example:

3, 5, 7, 9, 11, 13

The two middle values are 7 and 9:

[
\text{Median}=\frac{7+9}{2}=8
]

The median is 8, even though 8 does not appear in the original dataset.

Because the median depends on the middle position rather than the size of every observation, it is less affected by extreme values than the mean. This makes it particularly useful for income, property prices, and other datasets where a few unusually large or small observations can distort the average.

Mode: The most frequently occurring value

The mode is the number that appears most often in a dataset. It helps identify the most common observation rather than calculating an average or finding a middle position.

Consider:

2, 3, 3, 4, 5

The number 3 appears twice, while every other value appears once. The mode is therefore 3.

A dataset can have more than one mode. For example:

2, 2, 3, 4, 4, 5

Both 2 and 4 appear twice, so the dataset has two modes.

It is also possible to have no unique mode. In 2, 4, 6, 8, every value appears once, so no number occurs more frequently than the others.

The mode is particularly useful when you want to identify the most popular product size, the most frequently selected option, or the most common score in a group. Unlike the mean and median, it can also be used with categories such as colours or product labels, although this calculator works with numerical input.

When Should You Use the Mean Instead of the Median?

The mean and median are both useful, but choosing between them depends on what you want to understand about your data. The mean uses every observation in its calculation, while the median focuses on the central position after sorting.

Consider monthly incomes for five people:

30,000, 32,000, 35,000, 38,000, 200,000

The mean is:

[
\frac{30,000+32,000+35,000+38,000+200,000}{5}=67,000
]

The median is 35,000.

The mean is nearly twice the median because one person earns considerably more than everyone else. If you want to describe the income of a typical person in this particular group, the median may provide a more representative picture.

This does not mean the mean is incorrect. It answers a different question: what is the total income divided equally across the five people?

Here are some situations where each measure can be useful:

Situation Useful measure Why
Class examination scores with no unusual results Mean Accounts for every student’s score
Household income Median Less influenced by exceptionally high incomes
Property prices in an area Median Reduces the effect of unusually expensive properties
Average daily production Mean Describes overall output per day
Most popular shoe size Mode Identifies the most frequently purchased size
Most common customer rating Mode Shows which rating occurs most often

The best measure is not always the one that produces the smallest or largest number. It is the one that represents the information you are trying to communicate.

What Happens When an Outlier Changes the Average?

An outlier is an observation that is unusually far from the other values in a dataset. It can have a noticeable effect on the mean because every observation contributes to the total.

Let’s compare two lists.

Original dataset:

10, 12, 14, 16, 18

  • Mean = 14

  • Median = 14

  • No unique mode

Dataset after adding an unusually high value:

10, 12, 14, 16, 18, 100

  • Mean = 28.33

  • Median = 15

  • No unique mode

Only one number was added, but the mean increased from 14 to 28.33. The median moved from 14 to 15 because the two middle observations are now 14 and 16. The mode remained unchanged.

This is a good example of why the mean and median should not always be treated as interchangeable.

Outliers can occur for several reasons:

  • A genuine unusual event, such as a very large customer order.

  • An incorrect value entered into a spreadsheet.

  • A measurement error during an experiment.

  • A rare but important observation that differs from normal activity.

Before removing an outlier, investigate why it exists. If it represents a real event, excluding it may hide useful information. If it is a data-entry mistake, correcting it may be appropriate.

When a dataset contains extreme values, comparing the mean and median can help you understand how strongly those observations influence the overall average.

What Does It Mean When Mean, Median, and Mode Are Equal or Different?

The relationship between these three measures can reveal useful information about the distribution of your numbers. They do not need to produce the same answer for a dataset to be correct.

When all three measures are equal

Consider:

2, 3, 3, 3, 4

The mean is 3, the median is 3, and the mode is 3.

All three measures identify the same central value. This can happen in a balanced dataset, although equality alone does not prove that a distribution is perfectly symmetrical.

When the mean is greater than the median

Consider:

2, 3, 4, 5, 20

The mean is 6.8, while the median is 4.

The unusually high value pulls the mean upward. This pattern can occur in a right-skewed distribution, where a longer tail extends towards larger values.

You might see a similar pattern in income data, where a small number of very high incomes raise the overall average.

When the mean is lower than the median

Now consider:

1, 15, 16, 17, 18

The mean is 13.4, while the median is 16.

The unusually low observation pulls the mean downward. This may occur in a left-skewed distribution, where the tail extends towards smaller values.

When all three measures are different

A dataset does not have to follow one particular pattern. Its mean, median, and mode may all be different because each measure responds differently to the observations.

Rather than assuming that one result is wrong, examine the actual values and consider whether extreme observations, repeated numbers, or an uneven distribution explain the difference.

The relationship between the mean and median can offer a clue about skewness, but it is not a complete test of the distribution’s shape. A histogram or box plot can reveal more.

How to Find the Median in an Odd or Even Dataset

Finding the median requires arranging the values in order first. The method then depends on whether the dataset contains an odd or even number of observations.

Finding the median with an odd number of values

Consider:

15, 4, 11, 7, 20

First, arrange the numbers from smallest to largest:

4, 7, 11, 15, 20

There are five observations, so the third value is the middle one.

Median = 11.

Finding the median with an even number of values

Now consider:

18, 5, 12, 9, 25, 7

After sorting:

5, 7, 9, 12, 18, 25

There are six observations, so the two central values are 9 and 12.

[
\text{Median}=\frac{9+12}{2}=10.5
]

Median = 10.5.

Notice that the median does not have to be one of the original observations. When the dataset contains an even number of values, the middle two numbers can produce a decimal result.

This is one reason manually calculating the median can become inconvenient when you are working with a long list of observations. A median calculator sorts the values and identifies the correct middle position for you.

Why Sorting Your Data Matters Before Finding the Median

The order in which you enter your numbers does not determine the median. What matters is their position after sorting.

For example, take this unsorted list:

18, 5, 12, 9, 25, 7, 14

After arranging the values in ascending order:

5, 7, 9, 12, 14, 18, 25

There are seven observations, so the fourth value is the median.

Median = 12.

If you simply selected the fourth number from the original list, you would get 9, which is incorrect. The original order has no statistical significance when finding the median.

Sorting also makes it easier to check for repeated values and identify the range between the smallest and largest observations.

You can enter your numbers into the Mean Median Mode Calculator without manually rearranging the list. The calculator handles the calculations needed to determine the results, saving time when working with larger datasets.

Understanding Range, Minimum, Maximum, and Sum Alongside Your Averages

Mean, median, and mode describe the centre of a dataset. However, knowing where the numbers are centred does not tell you how far apart they are or what the highest and lowest observations look like.

Your calculator also provides additional results that help describe the dataset.

Consider:

5, 8, 8, 10, 14

Result Value What it tells you
Sum 45 Total of all observations
Minimum 5 Smallest value
Maximum 14 Largest value
Range 9 Difference between the largest and smallest values
Mean 9 Arithmetic average
Median 8 Middle value
Mode 8 Most frequently occurring value

The sum is the total obtained by adding all observations together. It is the starting point for calculating the mean.

The minimum is the smallest value in your dataset, while the maximum is the largest. These two results help identify the boundaries of your observations.

The range is calculated by subtracting the minimum from the maximum:

[
\text{Range}=\text{Maximum}-\text{Minimum}
]

In this example:

[
14-5=9
]

Range = 9.

Range is easy to calculate, but it only considers the two extreme values. It does not reveal whether most observations are clustered together or spread across the entire interval. For a more complete understanding of variation, standard deviation and interquartile range can provide additional information.

Where Are Mean, Median, and Mode Used in Everyday Decisions?

These three statistical measures are useful in situations where people need to summarise a group of numbers. The right choice depends on the type of information being analysed and the question behind the calculation.

Retail sales and product demand

A shop selling shoes may want to know which size customers purchase most frequently. The mode can identify the most popular size, helping the store make inventory decisions. The mean number of pairs sold per day can provide a separate view of overall demand.

House prices and property research

Property prices can vary significantly within the same neighbourhood. A small number of expensive properties may increase the mean, even when most homes sell for considerably less. The median can help describe the middle sale price without being pulled as strongly by those unusually high transactions.

Student examination results

A teacher can use the mean to understand the overall average score of a class, the median to identify the middle student’s result, and the mode to see which score appears most frequently. Comparing these measures can reveal whether a few particularly high or low marks are influencing the class average.

Customer waiting times

A business may record how long customers wait before receiving service. If most customers wait around 10 minutes but a few experience delays of an hour, the mean may be higher than the typical waiting time. The median can help show what a customer in the middle of the dataset experiences.

Inventory and business planning

A company may track daily orders, stock requests, or the number of products sold. The mean helps estimate average activity, while the mode can identify the most repeated quantity. The median can provide a useful middle value when occasional unusually large orders affect the average.

These examples show why calculating mean, median, and mode together is more informative than relying on one measure for every decision.

Common Mistakes When Calculating Mean, Median, and Mode

A small mistake in the input or calculation method can change the final result. Watch out for these common problems when working with numerical datasets.

Selecting the median before sorting: The median is based on the middle position in an ordered list. The original order of the observations does not matter.

Dividing by the number of different values instead of total observations: When calculating the mean, repeated values must be counted every time they appear. For example, 2, 2, 2, 4 contains four observations, not two.

Ignoring multiple modes: A dataset can have two or more values tied for the highest frequency. Reporting only one of them may give an incomplete answer.

Assuming every dataset has a mode: If every number appears the same number of times, there may be no unique mode. A dataset containing only distinct values is a common example.

Treating mean and median as interchangeable: The mean can be influenced by extreme observations, whereas the median is based on the middle position. They answer different questions.

Confusing range with average: Range is the difference between the maximum and minimum values. It does not describe the centre of the dataset.

Removing repeated values: Duplicate observations are important. If a value appears four times in the original data, all four occurrences must be included in the calculation.

Mixing measurement units: Do not combine measurements in metres and centimetres without converting them to a consistent unit first. Inconsistent units can make the result meaningless.

When Mean, Median, and Mode Are Not Enough

Mean, median, and mode provide a useful summary of the centre of a dataset, but they cannot explain everything about how the observations are distributed.

Imagine two groups of employees with the same median salary. In one group, most salaries are close to the middle value. In the other, salaries are spread across a much wider range. The median alone would not reveal that difference.

You may need additional statistical measures depending on what you want to investigate:

  • Standard deviation: Shows how widely observations vary around the mean. It is useful when you want to understand the consistency or spread of numerical measurements.

  • Variance: Measures the average squared deviation from the mean, using the appropriate population or sample formula.

  • Interquartile range: Measures the spread of the middle 50% of observations and is less affected by extreme values.

  • Quartiles: Divide an ordered dataset into four sections, helping you understand where different portions of the observations fall.

  • Histogram: Shows the distribution and frequency of values, making clusters, gaps, and skewness easier to identify.

  • Box plot: Summarises the median, quartiles, and potential outliers, making comparisons between datasets easier.

For a closer look at data variation, you can also use our Standard Deviation Calculator.

The key is to choose statistics that answer your actual question. A central value is useful, but it should not be mistaken for a complete description of the data.

What is Mean, Median, Mode Calculator?

Mean, median, and mode are the three fundamental measures of central tendency in statistics used to describe the center point of a distribution.

How to Use This Calculator

  1. Enter raw data points separated by commas or spaces.
  2. The tool automatically sorts the values in ascending order.
  3. Review mean, median, mode, range, and total count.

The Mathematical Formula & Variables

Mean = Sum of values / Count of values; Median = Middle value of sorted set; Mode = Most frequently occurring value

Variables Definition

Symbol / Variable Name Description
n Sample Size Total count of data observations.

Step-by-Step Worked Example

Scenario: Numbers: 12, 15, 18, 20, 21, 25.

  1. Sum = 12 + 15 + 18 + 20 + 21 + 25 = 111.
  2. Mean = 111 / 6 = 18.5.
  3. Middle values are 18 and 20. Median = (18 + 20) / 2 = 19.

Result: Mean = 18.5 | Median = 19

Frequently Asked Questions

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

Mean, median, and mode are three measures of central tendency, but they describe a dataset differently. The mean is the arithmetic average, the median is the middle value after sorting, and the mode is the value that occurs most frequently.

Which is better, mean or median?

Neither is always better. The mean is useful when you want an average that accounts for every observation and the data is not heavily influenced by extreme values. The median is often more representative when a dataset contains outliers or is strongly skewed, such as household income or property prices.

Can a dataset have two modes?

Yes. A dataset can have two modes when two different values share the highest frequency. For example, 2, 2, 3, 4, 4, 5 has two modes: 2 and 4. Such a dataset is called bimodal.

Can a dataset have no mode?

Yes. If every value appears the same number of times, there is no uniquely most frequent value. For example, 3, 5, 7, 9 has no unique mode because each number occurs once.

What happens when two middle numbers appear in an even dataset?

When a dataset has an even number of observations, sort the values and calculate the average of the two middle numbers. For example, the median of 4, 6, 8, 10 is (6 + 8) ÷ 2 = 7.

Can the mean, median, and mode all be the same?

Yes. For example, in 2, 3, 3, 3, 4, all three measures equal 3. This happens when the arithmetic average, middle value, and most frequent value coincide.

Why is the median less affected by outliers?

The median depends on the position of values after sorting rather than the size of every observation. An extremely high or low value can change the mean substantially, but it often has little effect on the median unless it changes the central position.

Does the mode have to be one of the original data values?

For a numerical dataset, yes. The mode is an observed value that occurs most frequently. Unlike the mean or median, it is not calculated by averaging or finding a position between observations.

How do you calculate the mean when numbers repeat?

Include every occurrence when adding the values and counting the observations. For example, the mean of 2, 2, 4, 6 is (2 + 2 + 4 + 6) ÷ 4 = 3.5. Repeated values must not be counted only once.

What does it mean when the mean is higher than the median?

It can indicate that a dataset is right-skewed, with some relatively large values pulling the mean upward. However, this relationship alone does not prove the distribution is skewed. Examine the actual observations or use a graph to understand the data more fully.

Can the median be a decimal number?

Yes. When a dataset contains an even number of observations, the median is calculated by averaging the two middle values. This can produce a decimal even if every original observation is a whole number.

What is the difference between range and mean?

The mean is the sum of all observations divided by their count, while the range is the maximum value minus the minimum value. The mean describes the average, whereas the range describes the distance between the two extremes.