Mean • Median • Mode Calculator
Input data
Results
Action
Important Note : mean is sensitive to extreme values, while median is more resistant. Penn State notes that the mean is heavily influenced by outliers or skewness, and NIST explains that extreme tails can distort the mean while the median is rank-based.
Use this Mean Median Mode Calculator to find the main measures of central tendency from any numeric data set. Enter raw numbers or use value:count frequency input to calculate the mean, median, mode, count, sum, minimum, maximum, range, and sorted preview.
This calculator is useful for statistics homework, classroom examples, data summaries, spreadsheet checks, and quick analysis of small or medium-sized numeric data sets. It helps you compare the average value, middle value, and most frequent value in one place.
Reviewed by: AjaxCalculators Editorial Team
Last updated: April 30, 2026
Method source: Standard descriptive-statistics definitions for mean, median, and mode, using ordered numeric data, repeated values, and optional frequency input.
Editorial standards: See our Editorial Policy for how we review and update calculator content.
What This Mean Median Mode Calculator Does
This calculator finds the three most common measures of center:
- Mean — the arithmetic average
- Median — the middle value after sorting
- Mode — the most frequent value
It also calculates supporting summary values:
- Count, shown as n
- Sum of all values
- Minimum value
- Maximum value
- Range
- Sorted preview
The calculator supports both regular numeric input and frequency-style input. For example, 12:4 means the value 12 appears 4 times.
Mean Median Mode Formulas
Before comparing mean, median, and mode, it helps to understand how each one is calculated.
Mean Formula
The mean is the sum of all values divided by the number of values.
Mean = Sum of all values ÷ Number of values
Using notation:
Mean = (x1 + x2 + x3 + … + xn) ÷ n
Where n is the total count of values.
Median Formula
The median is the middle value after the data are sorted from smallest to largest.
For an odd number of values:
Median = value at position (n + 1) ÷ 2
For an even number of values:
Median = average of the values at positions n ÷ 2 and (n ÷ 2) + 1
Mode Formula
The mode is the value that appears most often in the data set.
A data set can have:
- One mode if one value appears most often
- Multiple modes if several values tie for the highest frequency
- No mode if every value appears the same number of times
Worked Example
Suppose the data set is:
2, 4, 4, 6, 9
Step 1: Count the values
There are 5 numbers, so:
n = 5
Step 2: Find the sum
2 + 4 + 4 + 6 + 9 = 25
Step 3: Calculate the mean
Mean = 25 ÷ 5 = 5
Step 4: Find the median
The data are already sorted:
2, 4, 4, 6, 9
The middle value is 4, so:
Median = 4
Step 5: Find the mode
The value 4 appears twice. Every other value appears once.
Mode = 4
Final result:
- Mean: 5
- Median: 4
- Mode: 4
- Range: 9 − 2 = 7
Even Number of Values Example
Suppose the data set is:
3, 8, 10, 15
The mean is:
(3 + 8 + 10 + 15) ÷ 4 = 36 ÷ 4 = 9
The data are already sorted. Since there are 4 values, the median is the average of the two middle values:
Median = (8 + 10) ÷ 2 = 9
There is no repeated value, so this data set has no mode.
Final result:
- Mean: 9
- Median: 9
- Mode: No mode
Frequency Input Example
This calculator supports frequency input using the format value:count. For example:
5:3, 10:2, 20:1
This means:
- 5 appears 3 times
- 10 appears 2 times
- 20 appears 1 time
The expanded data set is:
5, 5, 5, 10, 10, 20
The count is:
n = 6
The sum is:
5 + 5 + 5 + 10 + 10 + 20 = 55
The mean is:
55 ÷ 6 = 9.17
The median is the average of the 3rd and 4th values:
(5 + 10) ÷ 2 = 7.5
The mode is the most frequent value:
Mode = 5
How to Use the Mean Median Mode Calculator
- Enter your numbers into the input box.
- Separate values with commas, spaces, semicolons, or line breaks.
- Use frequency input if needed. For example, enter 10:4 to count the value 10 four times.
- Turn on the sorted preview if you want to inspect the ordered data.
- Review the count, sum, mean, median, mode, min, max, range, and sorted preview.
- Use reset to clear the calculator and enter a new data set.
Supported Input Formats
You can enter a comma-separated list:
2, 4, 4, 6, 9
You can enter values separated by spaces:
2 4 4 6 9
You can use semicolons:
2; 4; 4; 6; 9
You can place values on separate lines:
2
4
4
6
9
You can also use frequency input:
2:1, 4:2, 6:1, 9:1
This frequency input expands to:
2, 4, 4, 6, 9
How to Interpret the Results
Count (n) shows how many numeric values were included in the calculation.
Sum shows the total of all included values.
Mean shows the arithmetic average. It is useful for balanced data but can be pulled by outliers.
Median shows the middle value after sorting. It is useful when data are skewed or contain extreme values.
Mode shows the most frequent value or values. It is useful when you want to know what occurs most often.
Min / Max shows the smallest and largest values.
Range shows the spread from the smallest to largest value.
Sorted preview shows the ordered data so you can verify how the median and mode were found.
Mean vs Median vs Mode
| Measure | Meaning | Best Used When | Weakness |
|---|---|---|---|
| Mean | Arithmetic average | Data are fairly balanced and not dominated by outliers | Can be strongly affected by very large or very small values |
| Median | Middle value after sorting | Data are skewed or contain outliers | Does not use the full size of every value |
| Mode | Most frequent value | You need the most common observed value | May not exist or may have multiple values |
When the Mean Is Best
The mean is often a good summary when the data are reasonably symmetric and do not contain strong outliers. For example, if test scores are evenly distributed around the center, the mean can give a useful average score.
Example:
70, 75, 80, 85, 90
The mean is:
(70 + 75 + 80 + 85 + 90) ÷ 5 = 80
The median is also 80, and the data are balanced around the center.
When the Median Is Best
The median is often better when the data contain outliers or are skewed. Because the median is based on position rather than the sum of the data, one extreme value usually affects it less than it affects the mean.
Example:
30, 32, 35, 36, 500
The median is 35, but the mean is:
(30 + 32 + 35 + 36 + 500) ÷ 5 = 126.6
In this case, the mean is much higher because of the outlier 500. The median gives a better sense of the typical value.
When the Mode Is Best
The mode is useful when the most common value matters. It can be helpful for repeated scores, survey results, product sizes, ratings, or any data set where frequency is important.
Example:
1, 2, 2, 2, 3, 4, 5
The mode is 2 because it appears more often than any other value.
Can a Data Set Have More Than One Mode?
Yes. If two or more values tie for the highest frequency, the data set has multiple modes.
Example:
1, 1, 2, 3, 3, 4
The values 1 and 3 both appear twice. No other value appears more often.
Modes = 1 and 3
This is called a multimodal data set.
Can a Data Set Have No Mode?
Yes. If every value appears the same number of times, many basic statistics courses describe the data set as having no mode.
Example:
2, 4, 6, 8
Each value appears once, so there is no single most frequent value.
Mean Median Mode and Outliers
Outliers can change the relationship between mean, median, and mode. The mean is usually the most sensitive because it uses every value in the sum. The median is more resistant because it depends on the ordered middle position. The mode depends on frequency, so an outlier may not affect the mode unless it appears often.
| Data Set | Mean | Median | Mode |
|---|---|---|---|
| 10, 12, 13, 14, 15 | 12.8 | 13 | No mode |
| 10, 12, 13, 14, 500 | 109.8 | 13 | No mode |
The outlier 500 changes the mean dramatically, but the median stays the same.
Range, Min, and Max
The calculator also shows minimum, maximum, and range.
Minimum is the smallest value.
Maximum is the largest value.
Range = maximum − minimum
For example, in the data set:
2, 4, 4, 6, 9
The minimum is 2, the maximum is 9, and the range is:
9 − 2 = 7
Range is a simple measure of spread, but it only uses the smallest and largest values. For deeper analysis, use variance, standard deviation, quartiles, or interquartile range.
Mean Median Mode Example Table
| Data Set | Mean | Median | Mode | Range |
|---|---|---|---|---|
| 2, 4, 4, 6, 9 | 5 | 4 | 4 | 7 |
| 3, 8, 10, 15 | 9 | 9 | No mode | 12 |
| 1, 1, 2, 3, 3, 4 | 2.33 | 2.5 | 1 and 3 | 3 |
| 30, 32, 35, 36, 500 | 126.6 | 35 | No mode | 470 |
Common Mistakes When Finding Mean Median and Mode
- Not sorting before finding the median: the median must be based on ordered data.
- Confusing mean and median: the mean is the arithmetic average, while the median is the middle value.
- Ignoring repeated values: repeated values must be counted when calculating all three measures.
- Forgetting multiple modes: a data set can have more than one mode if values tie for highest frequency.
- Forgetting that some data sets have no mode: if all values appear once, there may be no useful mode.
- Using the mean when outliers dominate: for skewed data, the median may be a better summary.
- Entering frequency format incorrectly: value:count means the value appears that many times.
Practical Uses of a Mean Median Mode Calculator
This calculator can help you:
- Summarize a numeric data set
- Check statistics homework
- Compare average, middle, and most common values
- Analyze test scores or survey data
- Work with repeated values using frequency input
- See whether outliers may be pulling the mean away from the median
- Prepare for variance, standard deviation, quartile, and percentile calculations
Assumptions and Limitations
- This calculator works with numeric data only.
- The mean is calculated as the arithmetic average.
- The median is calculated after sorting the values from smallest to largest.
- The mode is based on the most frequent value or values.
- Frequency input must use a positive integer count.
- The calculator does not determine whether the data were collected from a representative sample.
- Mean, median, and mode describe center but not the full spread or shape of the data.
- For a complete statistical summary, also consider range, quartiles, IQR, variance, standard deviation, and outliers.
Tips for Better Statistical Summaries
- Use the sorted preview to check whether the data were entered correctly.
- Compare mean and median to detect possible skew or outlier influence.
- Use the mode when repeated values are meaningful.
- Use the median when the data are skewed or contain extreme values.
- Use the mean when the data are fairly symmetric and outliers are not dominating the result.
- Use spread measures such as standard deviation or IQR when you need more than the center.
Related Calculators
- Median Calculator
- Percentile Calculator
- Variance Calculator
- Standard Deviation Calculator
- IQR (Interquartile Range) Calculator
- Outlier Calculator (Tukey Fences)
References
- Penn State STAT 500: Mean, Median, and Mode
- Penn State STAT 200: Skewness and Central Tendency
- NIST/SEMATECH e-Handbook of Statistical Methods: Measures of Location
Frequently Asked Questions
What does a mean median mode calculator do?
A mean median mode calculator finds the average, middle value, and most frequent value of a numeric data set. This calculator also shows count, sum, min, max, range, and sorted preview.
How do I calculate the mean?
Add all values together, then divide by the number of values. For example, the mean of 2, 4, 4, 6, and 9 is 25 ÷ 5 = 5.
How do I calculate the median?
Sort the values from smallest to largest. If there is an odd number of values, choose the middle value. If there is an even number of values, average the two middle values.
How do I calculate the mode?
Count how often each value appears. The mode is the value or values that appear most often.
Can a data set have more than one mode?
Yes. If two or more values tie for the highest frequency, the data set has multiple modes.
Can a data set have no mode?
Yes. If every value appears the same number of times, the data set may be described as having no mode.
What is the difference between mean and median?
The mean is the arithmetic average. The median is the middle value after sorting. The mean is more affected by outliers, while the median is more resistant to extreme values.
When should I use the median instead of the mean?
Use the median when the data are skewed or contain extreme outliers. The median often gives a better sense of the typical value in those situations.
What does value:count mean?
Value:count is frequency input. For example, 8:3 means the value 8 appears three times in the data set.
Does this calculator work with decimals and negative numbers?
Yes. You can use positive numbers, negative numbers, decimals, or a mix of numeric values.
What is range?
Range is the maximum value minus the minimum value. It gives a simple measure of spread across the data set.
Why are my mean, median, and mode different?
They measure center in different ways. The mean uses all values, the median uses the ordered middle position, and the mode uses frequency. They often differ when data are skewed, repeated, or affected by outliers.
Disclaimer
This calculator is for educational and general statistical use only. It computes mean, median, mode, and simple summary values from numeric input using standard descriptive-statistics rules. For formal statistical analysis, interpret these results with sample size, data source, outliers, spread, distribution shape, and the purpose of the analysis.