Mean, Median & Mode Calculator — Step-by-Step Solutions
Your calculations will appear here
The Mean, Median & Mode Calculator computes the three measures of central tendency for any dataset. It finds the arithmetic mean (average), the median (middle value), and the mode (most frequent value), along with the range.
Enter your data values separated by commas and get instant results. The calculator sorts your data, shows the frequency distribution, and provides step-by-step explanations for each measure.
How to Use the Mean, Median & Mode Calculator
- Enter your data values separated by commas (e.g., 5, 8, 12, 3, 8, 15).
- Click "Calculate" to compute the mean, median, mode, and range instantly.
- Review the step-by-step working for each measure, including the sorted data and frequency distribution.
- Use the results to summarise your dataset or compare it with other datasets.
Formula and Theory
The mean (arithmetic average) is the sum of all values divided by the count. It is sensitive to extreme values (outliers). When a dataset is symmetric and has no outliers, the mean is typically the best measure of central tendency.
The median is the middle value when the data is sorted in ascending order. For an even number of values, the median is the average of the two central values. The median is more robust than the mean when outliers are present, making it the preferred measure for skewed distributions such as household income data.
The mode is the value that appears most frequently. A dataset can be unimodal (one mode), bimodal (two modes), multimodal (several modes), or have no mode at all if every value occurs with equal frequency. The mode is the only measure of central tendency that can be used with categorical (non-numeric) data.
Worked Examples
Example 1: Computing the mean
Problem: Find the mean of: 4, 8, 6, 5, 3, 10.
Solution: Sum = 4 + 8 + 6 + 5 + 3 + 10 = 36. Count = 6. Mean = 36 / 6 = 6.
Answer: Mean = 6
Example 2: Finding the median with an odd count
Problem: Find the median of: 12, 3, 7, 9, 5.
Solution: Sort the data: 3, 5, 7, 9, 12. The middle value (position 3 out of 5) is 7.
Answer: Median = 7
Example 3: Identifying the mode
Problem: Find the mode of: 2, 5, 3, 5, 7, 5, 8, 3.
Solution: Frequencies: 2 appears once, 3 appears twice, 5 appears three times, 7 appears once, 8 appears once. The most frequent value is 5.
Answer: Mode = 5
Example 4: Real-world: comparing salary data
Problem: A team of 5 employees earns 30k, 32k, 35k, 37k, and 150k. Which measure best represents the "typical" salary?
Solution: Mean = (30 + 32 + 35 + 37 + 150) / 5 = 56.8k. Median = 35k (middle value). The 150k outlier inflates the mean.
Answer: The median (35k) better represents the typical salary because the mean (56.8k) is skewed by the outlier.
Frequently Asked Questions
When should I use the mean versus the median?
Can a dataset have more than one mode?
What is the range?
What happens if all values are the same?
Is the mean always a value that appears in the dataset?
Related Statistics Calculators
Probability Calculator
Calculate probability of events, complements, unions, and intersections. Free online probability calculator for statistics.
Standard Deviation Calculator
Calculate standard deviation, variance, mean, and more for any dataset. Supports population and sample statistics. Free online tool.
Z-Score Calculator
Calculate z-scores, find values from z-scores, and determine probabilities. Free online z-score calculator with bell curve visualisation.
Binomial Calculator
Calculate binomial probabilities, cumulative distributions, and expected values. Free online binomial distribution calculator with bar chart.
Normal Distribution Calculator
Calculate probabilities for normal distributions. Find areas under the bell curve, percentiles, and inverse values. Free online tool.
Correlation Calculator
Calculate Pearson correlation coefficient, R-squared, and regression line. Free online correlation calculator with scatter plot.