Mean, Median, Mode & Range Calculator

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.

What you get
  • Four answers at onceMean, median, mode and range in a single panel.
  • Worked steps, not just numbersEach answer shows the arithmetic behind it.
  • Paste-ready inputCommas, spaces, tabs or line breaks all work.

Your numbers

Results update as you type

Decimals and negative numbers are fine, so 4.75 and -12 both work. Values separated by tabs or line breaks paste straight in from a spreadsheet.

Runs entirely in your browser. Nothing you paste is sent or saved

Guide

The four measures, in one breath

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.

Mean: the balanced average

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.

Median: the true middle

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.

Mode: the most popular value

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.

Range: the width of the spread

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.

Choosing between the mean and the median

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:

  • Use the mean for symmetric data without outliers: measurements from a lab, lap times on a quiet day, scores from a fair test.
  • Use the median for skewed data or data with outliers: salaries, house prices, response times, anything with a long tail.
  • Use the mode for categories and for "what happens most often" questions, like the busiest hour of a shop's day.
Quick sanity check: compute all four measures every time. If the mean and median tell different stories, or the range looks enormous next to the values, something in the tails deserves a second look before you quote any single number.

Weighted averages: when values count differently

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.

Where you already meet these four measures

  • Median house prices: real estate reports quote the median, not the mean, because one $40 million mansion would drag the average price of an ordinary neighborhood up to a number nobody living there could afford.
  • Mean incomes: economists report both, and the gap between them is itself news. A country where the mean income far exceeds the median income has wealth concentrated at the top, whatever its average says.
  • Mode in manufacturing and retail: the most common shoe size, the most common failure point, the most common order size. The mode answers stocking and engineering questions that averages cannot.
  • Range in forecasts: "high of 85, low of 61" is a range, quoted because the two extremes are the part of the spread people plan around.
  • Mean in physics and engineering: repeated measurements of a constant quantity are averaged, because independent errors partially cancel and the mean of many readings is more trustworthy than any single one.

Using the calculator well

  • Entering data: separate values with commas, spaces, tabs or line breaks. Decimals and negatives are accepted, and pasting a column from Excel or Google Sheets works as is. If a value cannot be read, the error message names it so you can fix the typo directly.
  • Watch for mixed groups: a bimodal result often means two different populations are sharing one list, such as morning and evening commute times. Splitting the data usually tells the story better than any single average can.
  • Mind the units: the mean, median and range all inherit the unit of your values. A range of 17 means 17 centimeters for the heights preset and 17 dollars for prices.
  • Small data sets: with fewer than about 10 values, every one of these measures is fragile. A second sample of the same size can give quite different answers, so treat the results as a sketch of the data rather than a measurement of the world.
  • Need more depth? The full statistics calculator on this site also computes standard deviation, variance, quartiles, skewness and a histogram from the same input.

Common questions

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.

Four answers. One paste. Zero guesswork.

Browse all math calculators