Mean, Median & Mode Calculator

Enter a dataset and instantly get mean, median, mode, range, min, and max. Sorted data display with frequency table and bar chart.

Ad
Ad

About Mean, Median & Mode Calculator

Enter a dataset and instantly get the mean, median, mode, range, minimum, maximum, and sum. Values are shown sorted with median position highlighted, and a frequency table with bar chart shows the distribution at a glance.

What Are Mean, Median, and Mode?

These three measures of central tendency each answer the question "what is a typical value?" in a different way:

MeasureDefinitionBest Used When
MeanSum of all values divided by the countData is symmetric with no extreme outliers
MedianThe middle value when data is sortedData is skewed or has outliers
ModeThe most frequently occurring valueData is categorical or you want the "most common"

How to Calculate Each Measure

Mean:

Mean = (sum of all values) / (number of values)

Dataset: 4, 7, 2, 9, 7, 3, 8

  • Sum = 4 + 7 + 2 + 9 + 7 + 3 + 8 = 40
  • Count = 7
  • Mean = 40 / 7 = 5.714

Median:

  1. Sort the data: 2, 3, 4, 7, 7, 8, 9
  2. Count = 7 (odd), so the median is the middle value
  3. Middle position = (7 + 1) / 2 = 4th value
  4. Median = 7

For even-count datasets: the median is the average of the two middle values.

  • Dataset: 3, 5, 7, 9 (4 values)
  • Two middle values: 5 and 7
  • Median = (5 + 7) / 2 = 6

Mode:

  • Dataset: 2, 3, 4, 7, 7, 8, 9
  • 7 appears twice, all others appear once
  • Mode = 7

When Mean and Median Disagree

The relationship between mean and median tells you about the shape of the data:

RelationshipShapeExample
Mean ≈ MedianSymmetricHeights of adults: mean and median both around 170 cm
Mean > MedianRight-skewed (positive skew)Income: a few high earners pull the mean up
Mean < MedianLeft-skewed (negative skew)Retirement age: most retire at 65, a few retire very early

Classic example: In a room of 10 people earning £30K each, the mean and median income are both £30K. If one person gets a raise to £1 million, the mean jumps to £127K but the median stays at £30K. This is why median income is more informative than mean income for understanding "typical" earnings.

Types of Mode

TypeMeaningExample Dataset
No modeAll values appear equally often1, 2, 3, 4, 5
UnimodalOne mode1, 2, 2, 3, 4
BimodalTwo modes1, 1, 2, 3, 3
MultimodalThree or more modes1, 1, 2, 2, 3, 3

Additional Summary Statistics

Beyond the three central tendency measures, the calculator also shows:

StatisticDefinitionFor dataset 2, 3, 4, 7, 7, 8, 9
RangeMaximum - Minimum9 - 2 = 7
SumTotal of all values40
CountNumber of values7
MinimumSmallest value2
MaximumLargest value9

Which Average to Report?

ContextBest MeasureWhy
Test scores (symmetric)MeanUses all data, most precise when distribution is normal
House pricesMedianExtreme values (mansions) skew the mean
Salary dataMedianA few high earners distort the mean
Shoe sizes soldModeYou want the most popular size to stock
Survey ratings (1-5)Mode or MedianOrdinal data - mean of 3.7 stars is harder to interpret
Scientific measurementsMeanRandom errors cancel out; mean is the best estimate

Weighted Mean

When some values count more than others, use a weighted mean:

Weighted mean = Σ(value × weight) / Σ(weights)

Example: A course grade with homework (30%), midterm (30%), and final (40%):

  • Homework: 85, Midterm: 78, Final: 92
  • Weighted mean = (85 × 0.3) + (78 × 0.3) + (92 × 0.4) = 25.5 + 23.4 + 36.8 = 85.7
  • The unweighted mean would be (85 + 78 + 92) / 3 = 85.0 - slightly different

For standard deviation and variance calculations that build on the mean, the standard deviation calculator takes the analysis further. For a simpler tool focused just on averages, the average calculator handles weighted and unweighted means.

All calculations run in your browser. No data is sent to any server.

Frequently Asked Questions

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

Mean is the arithmetic average (sum divided by count). Median is the middle value when sorted. Mode is the most frequently occurring value. Each measures central tendency differently.

What if there is no mode?

If every value appears the same number of times (all frequencies are 1), there is no mode. The calculator displays 'No mode' in that case.

Can there be multiple modes?

Yes. If two or more values share the highest frequency, the dataset is multimodal. The calculator shows all modes and notes how many there are.

How is the median calculated for an even number of values?

For an even-count dataset, the median is the average of the two middle values. For example, in the sorted set {2, 4, 6, 8}, the median is (4 + 6) / 2 = 5.

How many values can I enter?

There is no hard limit. The calculator handles hundreds of values comfortably. Just paste your dataset separated by commas or spaces.

Link to this tool

Copy this HTML to link to this tool from your website or blog.

<a href="https://toolboxkit.io/tools/mean-median-mode-calculator/" title="Mean, Median & Mode Calculator - Free Online Tool">Try Mean, Median & Mode Calculator on ToolboxKit.io</a>