Mean Median Mode Calculator

Type or paste your numbers separated by commas, spaces, or line breaks. You get the mean, median, mode, range, and midrange, each with its working shown, plus a frequency table of every value.

Put this calculator on your website for free

Copy one snippet and give your visitors a working Mean Median Mode Calculator.

How the mean median mode calculator works

Paste your list and the calculator finds all three averages at once: the mean (add everything, divide by the count), the median (sort the list, take the middle), and the mode (the value that appears most often). It also gives you the range, the midrange, the count, the sum, and a full frequency table showing each distinct value with its count, its relative frequency as a decimal and a percent, and the cumulative count. Every result comes with its working shown, using your own numbers, so you can follow the arithmetic rather than trust a box.

If you just want a quick everyday average, our average calculator is the lighter tool: mean and median without the ceremony. This page is the stats-class version. It adds the mode with all its edge cases handled honestly (two modes, no mode), the midrange, and the frequency table that makes the mode visible instead of just announced.

The formulas

Mean = sum of all values / count of values
Median = the middle value of the sorted list (average the two middle values when the count is even)
Mode = the value that appears most often
Range = maximum - minimum
Midrange = (maximum + minimum) / 2

The mean uses every value. The median uses only the sorted order. The mode uses only the counts. That is why they can disagree, and why the disagreement is often the most interesting number on the page.

Worked example

Five people work at a small shop. Their salaries are $38,000, $42,000, $42,000, $45,000, and $250,000 (the last one is the owner).

Mean: the salaries sum to $417,000, and $417,000 / 5 = $83,400. That is higher than what four of the five people actually earn.

Median: sorted, the middle value is $42,000. Half the staff earn at or below it, half at or above it.

Mode: $42,000 appears twice, more than any other salary, so the mode is $42,000: the most common paycheck in the room.

Range: $250,000 - $38,000 = $212,000. Midrange: ($250,000 + $38,000) / 2 = $144,000, which nobody earns; it is fragile for exactly this reason.

Three averages, because one number cannot hold a shape

All three answers in the example are correct, and they differ by a factor of two. That is not a flaw in the arithmetic; it is the whole reason three averages exist. The mean chases the outlier, because every dollar pulls on it. The median stays with the middle person, because sorting puts the outlier at the end of the line where it counts as just one entry. The mode reports the common case, the answer you would get by asking around the room. One data set, three honest summaries, three different questions answered.

This is why the choice of average matters whenever numbers reach the public. Home prices are reported as medians because a few mansions would otherwise drag the figure above what a typical buyer pays. Average salary claims often use the mean, which is the right number for total payroll and a misleading one for what a typical employee takes home. Neither number is dishonest; each answers a different question. The useful habit, and the one this page is built to teach, is asking which question a quoted average is answering before you let it persuade you. When someone hands you an average, it is fair to ask: mean or median?

A good second habit: check the gap. When the mean and median land close together, the data is usually roughly symmetric. When the mean sits well above the median, something large is pulling it up (a right skew); well below, something small is pulling it down. This calculator runs that check on your data automatically and says what it sees in plain words. And once you know where the middle of your data is, the natural next questions are how spread out it is (the standard deviation and variance calculators) and where a particular value stands within it (the percentile and quartile calculators).

Frequently asked questions

How do you calculate the mean, median, and mode?

Mean: add every value and divide by how many there are. Median: sort the list and take the middle value, or average the two middle values when the count is even. Mode: count how often each value appears and report the one that appears most. The calculator above does all three with your own numbers and shows each step.

What if there is no mode, or two modes?

Both are real answers. If every value appears equally often, the data simply has no mode, and forcing one would be making something up. If two values tie for most frequent, the data is bimodal and both are modes; three or more ties make it multimodal. This calculator reports exactly what the tally shows, including the honest "no mode."

Mean vs median: which is the real average?

Both are, for different questions. The mean is the balancing point: every value, however extreme, pulls on it. The median is the middle person's answer: half the values sit above it and half below, and outliers cannot budge it. If they land close together your data is roughly symmetric; if they disagree, the gap itself is telling you the data has a long tail on one side.

What is the range of a data set?

The range is the maximum minus the minimum: one number for the total spread. For 1, 1, 3, 8, 12 the range is 12 - 1 = 11. It is quick and easy to read, but it listens only to your two most extreme values, so a single unusual entry can stretch it dramatically. For a spread measure that uses every value, see the standard deviation calculator.

What is the midrange?

The midrange is the midpoint of the extremes: (maximum + minimum) divided by 2. For 1, 1, 3, 8, 12 it is (12 + 1) / 2 = 6.5. It is the fastest average to compute by hand and the most fragile, because it ignores everything except the largest and smallest values. It shows up in weather reporting, where the day's "average" temperature is often the midrange of the high and the low.

Why does the news report median home prices instead of the mean?

Because home prices have a long right tail: a handful of very expensive homes pull the mean well above what a typical buyer pays, while the median stays at the middle of the market. The median answers the question most readers are actually asking, which is what a typical home costs. When you see a mean quoted instead, it is worth asking which question that number answers; it may be the right one, for example for total market value.

How do I enter my numbers into this calculator?

Separate them with commas, spaces, semicolons, or line breaks, in any mix. Negative numbers, decimals, and duplicates are all fine, and duplicates matter here: they are exactly what the mode and the frequency table count. If something in your list cannot be read as a number, the calculator names the exact entry so you can fix it rather than silently dropping it.

Related calculators