Calculate the mean and median of any set of numbers, separated by spaces or commas.
Enter values above — results appear automatically, or press Calculate. The formula used is explained below.
The arithmetic mean — the most common meaning of 'average' — adds every value together and divides by how many there are. It uses all the information in the data set but is sensitive to outliers: one extreme number can pull it up or down noticeably. For 12, 18, 7, 25, 9 the sum is 71 across five numbers, so the mean is 14.2.
The median is the middle value once the data is sorted, which makes it robust against outliers. Sorted (7, 9, 12, 18, 25), the middle is 12. When mean and median diverge — say mean 48 but median 12 after adding one 200 — the gap itself diagnoses skew, the classic income-data pattern where a few extremes distort the average.
How to find the average step by step: add all values, count them, divide sum by count. With decimals, keep full precision until the final step — rounding mid-way (14.23 → 14.2 → 14) compounds error across long lists. This calculator rounds only the display to four decimals.
Weighted averages govern grades, portfolios and ratings: multiply each value by its weight, sum, then divide by total weight. A 90 exam at 60% plus 70 homework at 40% is (90×0.6 + 70×0.4) = 82, not the simple mean 80. Simple averages silently assume equal weights — wrong for GPAs, investment returns and review scores.
Outlier handling separates naive from sound averaging: trim extremes (Olympic scoring drops high/low), prefer median for skewed distributions (house prices, salaries), and report both mean and median when they disagree. A single billionaire in a room of teachers makes the mean income meaningless while the median stays honest.
Mean, median and mode answer three different questions, and the right one depends entirely on the shape of the data. The mean uses every value and is the only one that is additive across groups, which is why it is the right choice for balanced data and the wrong choice when outliers exist — a single salary ten times the others drags it further than any other value. The median is a rank, so it resists distortion completely, and it reports the middle of the distribution rather than its centre of gravity. The mode reports the most frequent value and is the only one that handles categorical data at all.
A distribution can have a mean and a median that differ substantially, and the direction of the gap is the diagnosis. Mean above median indicates a right skew, where a minority of large values pull the average up — incomes, house prices, city populations and waiting times all behave this way. Mean below median indicates a left skew, which is rarer in everyday data and often signals a floor. The gap itself is informative: a mean 30% above the median in a salary dataset says more about the distribution than either number does, and reporting only the mean misrepresents the typical case. Where the two diverge, reporting both is the minimum honest presentation.
Weighted averages and unweighted averages are not interchangeable, and the choice is a claim about what the population is. A simple mean treats every entry equally, which is right when each is a person. An average of group percentages is usually wrong in a different way — averaging five subgroups that differ in size gives each subgroup equal influence regardless of how many people it contains, and the weighted version can differ by a wide margin. The classic failure is aggregating satisfaction scores from a department of two and a department of two hundred into one number. Whenever entries have different denominators, the weighting is the substantive decision and it belongs in the report alongside the result.
Calculate the mean and median of any set of numbers, separated by spaces or commas. Formula: mean = (sum of all values) ÷ (number of values). Example: For 12, 18, 7, 25, 9: sum 71 over five numbers, so the mean is 14.2.
The arithmetic mean — the most common meaning of 'average' — adds every value together and divides by how many there are. It uses all the information in the data set but is sensitive to outliers: one extreme number can pull it up or down noticeably. For 12, 18, 7, 25, 9 the sum is 71 across five numbers, so the mean is 14.2.
The median is the middle value once the data is sorted, which makes it robust against outliers. Sorted (7, 9, 12, 18, 25), the middle is 12. When mean and median diverge — say mean 48 but median 12 after adding one 200 — the gap itself diagnoses skew, the classic income-data pattern where a few extremes distort the average.
How to find the average step by step: add all values, count them, divide sum by count. With decimals, keep full precision until the final step — rounding mid-way (14.23 → 14.2 → 14) compounds error across long lists. This calculator rounds only the display to four decimals.
Weighted averages govern grades, portfolios and ratings: multiply each value by its weight, sum, then divide by total weight. A 90 exam at 60% plus 70 homework at 40% is (90×0.6 + 70×0.4) = 82, not the simple mean 80. Simple averages silently assume equal weights — wrong for GPAs, investment returns and review scores.
Outlier handling separates naive from sound averaging: trim extremes (Olympic scoring drops high/low), prefer median for skewed distributions (house prices, salaries), and report both mean and median when they disagree. A single billionaire in a room of teachers makes the mean income meaningless while the median stays honest.
Mean, median and mode answer three different questions, and the right one depends entirely on the shape of the data. The mean uses every value and is the only one that is additive across groups, which is why it is the right choice for balanced data and the wrong choice when outliers exist — a single salary ten times the others drags it further than any other value. The median is a rank, so it resists distortion completely, and it reports the middle of the distribution rather than its centre of gravity. The mode reports the most frequent value and is the only one that handles categorical data at all.
A distribution can have a mean and a median that differ substantially, and the direction of the gap is the diagnosis. Mean above median indicates a right skew, where a minority of large values pull the average up — incomes, house prices, city populations and waiting times all behave this way. Mean below median indicates a left skew, which is rarer in everyday data and often signals a floor. The gap itself is informative: a mean 30% above the median in a salary dataset says more about the distribution than either number does, and reporting only the mean misrepresents the typical case. Where the two diverge, reporting both is the minimum honest presentation.
Weighted averages and unweighted averages are not interchangeable, and the choice is a claim about what the population is. A simple mean treats every entry equally, which is right when each is a person. An average of group percentages is usually wrong in a different way — averaging five subgroups that differ in size gives each subgroup equal influence regardless of how many people it contains, and the weighted version can differ by a wide margin. The classic failure is aggregating satisfaction scores from a department of two and a department of two hundred into one number. Whenever entries have different denominators, the weighting is the substantive decision and it belongs in the report alongside the result.
For 12, 18, 7, 25, 9: sum 71 over five numbers, so the mean is 14.2. Sorted (7, 9, 12, 18, 25), the middle value is 12, which is the median. A weighted case: exam 90 at 60% weight plus homework 70 at 40% gives (54 + 28) = 82 — two points above the naive mean of 80.
Formulas are standard public references (see our methodology). External standards are cited in the text where they apply.
Last reviewed: September 2026 · Report an error