Mean, Median and Mode Calculator

Enter your numbers to get the mean, median, mode and range instantly. The mean is the sum divided by the count, the median is the middle value of the sorted data, and the mode is the value that appears most often. For 3, 7, 7, 2, 9, 10 the mean is 6.3333, the median is 7 and the mode is 7.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

What Are the Mean, Median and Mode?

The mean, median and mode are the three standard measures of central tendency: each boils a whole dataset down to one number that describes the “typical” value. The mean is the arithmetic average, the median is the middle value once the data is sorted, and the mode is the value that occurs most often.

Almost every analysis starts here. Before you run a test or draw a chart, you want to know where the data is centred. A manager checking weekly sales, a teacher reading exam results and a researcher cleaning survey data all begin by asking the same question: what does a typical value look like? These three numbers answer it from three different angles.

  • Mean: add everything up and divide by the count. It uses every value, so it reflects the whole dataset, but it is easily pulled by extremes.
  • Median: the midpoint. Half the values fall below it and half above. It ignores how extreme the extremes are.
  • Mode: the most common value. It is the only one of the three that also works for categories such as shoe sizes or colours.

Mean vs Median vs Mode at a Glance

MeasureWhat it tells youAffected by outliers?Best used whenCan it have several values?
MeanThe balance point of all valuesStronglyData is roughly symmetric, no extreme valuesNo, always exactly one
MedianThe middle of the sorted dataBarelyData is skewed, such as income or pricesNo, always exactly one
ModeThe most frequent valueNot at allCounting categories or finding the most common choiceYes, zero, one or many

Why Three Measures Instead of One?

Because a single “average” can mislead. Imagine seven employees earning $30,000, $35,000, $38,000, $40,000, $42,000, $45,000 and $400,000. The mean salary is $90,000, yet six of the seven people earn less than half that. The median, $40,000, describes the group far better. Reporting both numbers shows the reader that the data is skewed, which is information in itself.

Mean, Median and Mode Formulas

Mean formula

Mean (x̄) = (x₁ + x₂ + … + xₙ) ÷ n = Σx ÷ n
  • x̄ (“x-bar”) is the mean you are calculating.
  • x₁ … xₙ are the individual values in your dataset.
  • Σx means “the sum of all the values”.
  • n is how many values there are.

Median formula

First sort the values from smallest to largest, then use whichever rule matches the count:

If n is odd: Median = value at position (n + 1) ÷ 2 If n is even: Median = average of the values at positions n ÷ 2 and (n ÷ 2) + 1

Here n is again the number of values, and a “position” is simply the place in the sorted list, counting from 1.

Mode

The mode has no arithmetic formula. Count how many times each value appears and pick the value (or values) with the highest count. If every value appears once, there is no mode.

Range (a useful companion)

Range = maximum value − minimum value

The range does not measure the centre, but it tells you how wide the data stretches, which helps you judge how much to trust the mean.

Worked Example: Exam Scores

Suppose eleven students score 72, 85, 90, 68, 85, 77, 94, 85, 61, 79 and 88 on a test. Type these numbers into the calculator above to follow along.

  1. Sort the data: 61, 68, 72, 77, 79, 85, 85, 85, 88, 90, 94.
  2. Add the values: 61 + 68 + 72 + 77 + 79 + 85 + 85 + 85 + 88 + 90 + 94 = 884.
  3. Mean: 884 ÷ 11 = 80.3636 (rounded to four decimals).
  4. Median: there are n = 11 values, which is odd, so take position (11 + 1) ÷ 2 = 6. The sixth sorted value is 85.
  5. Mode: 85 appears three times and every other score appears once, so the mode is 85.
  6. Range: 94 − 61 = 33.

Notice that the mean (80.36) sits below the median (85). The two low scores, 61 and 68, drag the average down while barely moving the middle. That gap is a quick signal that the data is skewed to the left.

A Quick Even-Count Example

For 4, 8, 15, 16, 23, 42 there are six values, so the median is the average of positions 3 and 4: (15 + 16) ÷ 2 = 15.5. The mean is 108 ÷ 6 = 18, and there is no mode because nothing repeats.

How to Use This Mean, Median and Mode Calculator

  1. Type or paste your numbers into the box. Commas, spaces, semicolons and line breaks all work, so you can paste a column straight from a spreadsheet.
  2. Pick how many decimal places you want. Four is a good default.
  3. Read the results as you type. There is no submit button, and the mean, median, mode, range, count, sum, minimum and maximum update instantly.
  4. Scroll to the step-by-step solution to see the sorted data and each calculation, or open the frequency table to see how often each value appears.
  5. Use “Copy results” to paste the numbers into a report, or “Copy share link” to send someone the same dataset.

Tip: if you see an error, it names the first entry it could not read as a number. Currency symbols, percent signs and thousands separators need to be removed first.

Real-World Uses of the Mean, Median and Mode

Business and finance

  • Retailers use the mode to stock the most commonly bought size or colour, and the mean to forecast average basket value.
  • Analysts report median home prices and incomes because a handful of luxury sales or high earners would distort the mean.
  • Investors compare the mean and median of monthly returns to see whether a few extreme months are driving performance.

Science and health

  • Researchers average repeated measurements to reduce random error, then check the median to spot a bad reading.
  • Clinical studies often report median survival or recovery time because patient outcomes are rarely symmetric.

Education

  • Teachers use the mean for class averages and the mode to see the most common score.
  • Students meet all three in school maths and in introductory statistics, where they lead into variance, standard deviation and z-scores.

Everyday decisions

  • Comparing commute times, utility bills or restaurant ratings becomes easier once you know the typical value rather than just the most memorable one.

What Are the Most Common Mistakes With the Mean, Median and Mode Calculator?

  • Using the mean on skewed data. Income, property values and response times usually have a long right tail. The median is the safer summary there.
  • Forgetting to sort before finding the median. The middle of the unsorted list is meaningless. Sort first, then count to the middle.
  • Averaging averages. If class A has 10 students averaging 70 and class B has 40 students averaging 85, the combined mean is (700 + 3,400) ÷ 50 = 82, not (70 + 85) ÷ 2 = 77.5. Always weight by group size.
  • Assuming there is exactly one mode. Data can be bimodal or multimodal, and bimodal data often hides two distinct groups worth analysing separately.
  • Expecting a mode in continuous data. Measurements such as heights recorded to many decimals rarely repeat. Group the values into ranges first.
  • Treating the mean as a value that exists in the data. A mean of 2.4 children per household is a useful statistic, not a household you will ever find.
  • Ignoring spread. Two datasets can share the same mean and median yet differ wildly in variability. Pair these measures with the range or standard deviation.

Limitations to keep in mind: these measures describe the data you entered and say nothing about its cause, its quality or how well a sample represents a larger population. If your dataset contains typing errors or mixed units, the results will be wrong however carefully they are calculated.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

What is the difference between the mean, median and mode?

The mean is the sum of all values divided by how many there are. The median is the middle value once the data is sorted. The mode is the value that appears most often. All three describe the centre of a dataset, but they react differently to extreme values and repeated values.

Can a dataset have more than one mode, or no mode at all?

Yes to both. If two values tie for the highest frequency the data is bimodal, and if several tie it is multimodal. If every value appears exactly once, there is no mode. This calculator lists every mode it finds and says “No mode” when nothing repeats.

When should I use the median instead of the mean?

Use the median when the data is skewed or contains outliers, such as salaries, house prices or waiting times. A few very large values pull the mean upward, while the median stays near the typical case. For symmetric data without outliers, the mean and median will be close together.

How do you find the median of an even number of values?

Sort the data, then average the two middle values. For 4, 8, 15, 16, 23, 42 the two middle values are 15 and 16, so the median is (15 + 16) ÷ 2 = 15.5. The median of an even-sized dataset is often a number that is not in the dataset itself.

Does this calculator work with decimals and negative numbers?

Yes. Enter decimals such as 3.75 and negatives such as −12 separated by commas, spaces or new lines. Scientific notation like 2.5e3 is accepted too. Everything is calculated in your browser, so your data is never uploaded or stored.

Is the mean of a sample different from the mean of a population?

The arithmetic is identical: add the values and divide by the count. The distinction matters for spread, where variance and standard deviation use n − 1 for a sample but N for a whole population. For central tendency, the formula for the mean does not change.