Calculate mean, median, mode, and range from any dataset with step-by-step solution.
Reviewed by the CalculatorKosh Editorial TeamUpdated June 2026Free Β· No sign-up
Mean Median Mode Calculator
Calculate mean, median, mode, and range from any dataset with step-by-step solution.
Enter numbers separated by commas or spaces
How It Works
Mean, median and mode are the three primary measures of central tendency in statistics β three different ways of describing the βcentreβ or typical value of a dataset. This calculator takes a list of numbers, separated by commas or spaces, and instantly returns the mean, median, mode (or modes), range, count, sum, minimum and maximum. It is designed for school and college students learning descriptive statistics, for teachers checking answers, and for anyone analysing a set of measurements, marks, prices or survey responses who needs the summary figures without opening a spreadsheet.
Each measure tells a different story, and the right one depends on your data. The mean (the arithmetic average) uses every value, which makes it powerful but also sensitive to outliers β a single very large or very small number pulls it. The median (the middle value when the data is sorted) ignores how extreme the outliers are and reports only their position, so it is resistant to outliers and is the fairer summary of skewed data. The mode (the most frequently occurring value) is the only measure that also works for categorical data and is the natural choice when you care about the most common outcome rather than a numeric average.
Formulas and definitions
Mean: the sum of all values divided by the count of values, written xΜ = (Ξ£x) / n.
Median: sort the values; for an odd count the median is the single middle value, and for an even count it is the average of the two middle values.
Mode: the value (or values) that appear most often. A dataset can have one mode, two (bimodal), several (multimodal), or none if every value is unique.
Range: the simplest measure of spread, equal to the maximum value minus the minimum value.
When to use each measure
Use the mean for roughly symmetric numeric data with no extreme outliers β for example, the average marks of a class where everyone scored within a similar band. Use the median when the data is skewed or contains outliers; this is exactly why incomes, house prices and salaries are almost always reported as medians, since a few very high values would inflate the mean and misrepresent the typical person. Use the mode for categorical data or whenever the most popular value matters most, such as the most common shoe size sold or the most frequent rating in a survey.
Worked example
Take the dataset 4, 8, 6, 8, 10. The sum is 4 + 8 + 6 + 8 + 10 = 36, and the count is 5, so the mean = 36 / 5 = 7.2. Sorting gives 4, 6, 8, 8, 10; with an odd count of 5, the median is the third value, 8. The value 8 appears twice while every other value appears once, so the modeis 8. The range = 10 β 4 = 6. Notice the mean (7.2), median (8) and mode (8) are close but not identical here β the small gap reflects a mild left skew from the value 4.
Tips for using this calculator
- Enter values separated by commas or spaces β both β2, 4, 6, 8, 10β and β2 4 6 8 10β work, and you can mix the two.
- Decimals and negative numbers are fully supported, so you can analyse temperatures, profit/loss figures or measurements directly.
- Compare the mean and median: if they are close, the data is fairly symmetric; if they differ a lot, the data is skewed and the median is usually the safer summary.
- Watch the count field to confirm every value you intended was actually parsed β a stray letter or symbol will be ignored.
Common mistakes to avoid
- Forgetting to sort before finding the median. The median is the middle value of the sorted list, not the middle value as you typed them in.
- Assuming there is always exactly one mode. Data can be bimodal or have no mode at all; this calculator lists every value tied for the highest frequency.
- Reporting the mean for skewed data. When outliers are present, the mean can be misleading β reach for the median instead.
- Confusing the range with spread around the centre. The range only uses the two extreme values; for a fuller picture of variability, consider the standard deviation.
Frequently Asked Questions
The mean is the arithmetic average. The median is the middle number in a sorted list. The mode is the number that appears most often. For symmetric data they are similar; for skewed data they can differ significantly.
Part of Statistics & Probability Calculators β compare every related calculator in one place.