Type or paste a list of numbers and get the four answers everyone asks for first: the average, the middle value, the most common value and the spread. Every result comes with the worked steps, so you can see exactly how it was found.
A mean median mode range calculator exists because these four numbers describe a data set from four different angles, and looking at any one of them alone can mislead. This page works through the example set 10, 2, 38, 23, 38, 23, 21 as it goes, so every figure below can be checked against the calculator above. Sorted, the set reads 2, 10, 21, 23, 23, 38, 38.
The mean is the sum of every value divided by how many values there are:
x̄ = (x1 + x2 + ... + xn) ÷ n
x̄ the mean · each x a value in the set · n how many values there are
For the example set, the sum is 10 + 2 + 38 + 23 + 38 + 23 + 21 = 155, and 155 ÷ 7 = 22.14 (rounded from 22.142857). The mean is the most used average because it involves every value, and that is also its weakness: change one number and the mean moves. A single large value can drag it far from where most of the data actually sits.
The median is the middle value once the data is sorted from smallest to largest. With seven values, the fourth one sits in the exact center: 2, 10, 21, 23, 23, 38, 38, so the median is 23. When the count is even there is no single middle value, so the median is the average of the two middle ones. The heights preset in the calculator has eight values, and its median of 169 comes from averaging 168 and 170.
The median's defining property is resistance. Add one huge value to the example set, say 1,000,000, and the mean leaps from 22.14 to about 125,019 while the median barely shifts, because one new value only nudges the middle position by half a place. That is why house prices, incomes and other skewed data are usually reported as medians.
The mode is the value that appears most often. In the example set, 23 and 38 each appear twice and every other value appears once, so the set has two modes and is called bimodal. A set where three or more values tie is multimodal, and a set where every value appears exactly once has no mode at all, which the calculator reports as "None".
The mode is also the only one of the four measures that works on categories. A list of favorite colors has no meaningful average, but it still has a most common answer. When a clothing store knows size M is the mode, it stocks more size M regardless of what the average size happens to be.
The range is the largest value minus the smallest: 38 - 2 = 36 for the example set. It is the fastest possible description of spread, and the fastest to be distorted. The same trick that wrecks the mean wrecks the range: add that single value of 1,000,000 and the range jumps from 36 to 999,998, even though nothing else moved. Because the range depends entirely on the two most extreme values, treat it as a quick first look rather than a final answer, and pair it with a spread measure that uses all the data, such as the standard deviation on the full statistics page.
When the mean and the median are close, the data is fairly balanced and either one represents it well. When they disagree, the gap points at skew. In the example set the mean (22.14) sits below the median (23) because the low value 2 pulls it down, which is a mild left skew. A common rule of thumb:
The mean treats every value as equal, but many real situations do not. Courses carry different credit hours, assignments carry different point totals, and customers buy in different quantities. The fix is the weighted average: multiply each value by its weight, add the products, and divide by the total of the weights:
x̄w = (w1x1 + w2x2 + ...) ÷ (w1 + w2 + ...)
each w is the weight, such as credit hours or quantity purchased
A grade point average is the classic example. An A (4.0) in a 3-credit course and a B (3.0) in a 4-credit course gives (4.0 × 3 + 3.0 × 4) ÷ (3 + 4) = 24 ÷ 7 = 3.43, not the 3.5 that a plain average of the two grades would claim. The plain mean ignores that the B occupied more of your schedule. The same arithmetic averages gas prices weighted by gallons bought and delivery times weighted by package counts, and whenever the weights are all equal it collapses back into the ordinary mean.
The mean, in most cases, because test scores are usually fairly symmetric and every score matters, which is exactly how teachers compute grades. Check the median too: if it is clearly higher than the mean, one or two very low scores dragged the average down, and the median may describe how the class actually performed.
Yes. A set with two tied values at the top is bimodal and the calculator lists both, as in the example set where 23 and 38 each appear twice. Three or more ties make it multimodal. Two modes often signal that two distinct groups are mixed in one data set, so it is worth splitting the list to see.
Because every value contributes fully to the sum that the mean divides. One value of 1,000,000 added to the example set turns an average of 22.14 into an average of about 125,019, while the median moves by half a position at most. This is why the median is preferred for skewed data such as incomes and house prices.
Type or paste numbers separated by commas, spaces, tabs or line breaks into the box, then read the results, which update as you type. Decimals like 4.75 and negatives like -12 are accepted, and a column copied from a spreadsheet pastes in correctly. If a value cannot be read, the error message names the exact token to fix.
It means every value in your list appears exactly once, so no value is more common than the others. This is normal for measurements such as heights or prices. It is not an error, it simply means the "most frequent value" question has no answer for this data.
Sort the data and average the two middle values. With eight values, positions 4 and 5 are the middle pair; the heights preset gives 168 and 170, and their average of 169 is the median. This is the only situation where finding a median involves any averaging, and it only ever uses those two middle values.
The range uses only the two most extreme values, while the standard deviation measures how far every value sits from the mean. Both describe spread, but the range can be created or destroyed by a single outlier and the standard deviation cannot. Use the range for a quick first look and the standard deviation when the answer matters.
Yes, and it usually is. The mean of 1, 2 and 4 is 2.33, which appears nowhere in the list, because averaging divides the total evenly across all values rather than selecting one of them. The median, by contrast, is always an actual value when the count is odd, and the mode is always an actual value by definition.
Yes, and it happens most naturally in small symmetric sets with a clear peak. The set 2, 3, 3, 4 has mean 3, median 3 and mode 3. Agreement between the three is a healthy sign: it means the typical value, the middle value and the most common value all tell the same story, which is exactly the situation where quoting a single average is safe.
Use one whenever your values do not all count equally: grades with different credit hours, prices across different purchase quantities, satisfaction scores from groups of very different sizes. Multiply each value by its weight, add the products, and divide by the total weight. The plain mean is just the special case where every weight is 1, so switching to the weighted version never means abandoning the mean, only respecting what each value represents.
No. Every calculation runs in your browser. Nothing is stored or transmitted.