guide

How to Calculate Mean, Median, and Mode (2026)

By Rui Barreira · Last updated: 18 June 2026

Mean, median, and mode are the three measures of central tendency — each summarizes a dataset with a single number, but in different ways. Understanding which one to use (and why they differ) matters whenever you are describing a distribution, detecting outliers, or communicating data clearly. Use the Mean, Median & Mode calculator to compute all three instantly from any list of numbers.

What Each Measure Means

The mean (arithmetic average) is the sum of all values divided by the count. It accounts for every number in the set, which makes it sensitive to outliers. The median is the middle value when the data is sorted — or the average of the two middle values for an even-count set. It is resistant to outliers and works well for skewed distributions such as income or house prices. The mode is the most frequently occurring value. A dataset can have no mode, one mode, or multiple modes.

MeasureFormulaBest forSensitive to outliers?
MeanΣx / nSymmetric distributions, grades, temperaturesYes
MedianMiddle value of sorted dataSkewed distributions, income, pricesNo
ModeMost frequent valueCategorical data, survey responses, shoe sizesNo

Step-by-Step Example

Take the dataset: 4, 7, 7, 9, 12, 15, 42.

Mean: Sum = 4 + 7 + 7 + 9 + 12 + 15 + 42 = 96. Divide by 7 values: 96 / 7 ≈ 13.7. Notice how the outlier (42) pulls the mean well above most of the data.

Median: The dataset is already sorted. With 7 values the middle position is the 4th: 9. The median is unaffected by the 42.

Mode: The value 7 appears twice; all others appear once. Mode = 7.

This divergence between mean (13.7) and median (9) signals a right-skewed distribution. In such cases the median is usually the more representative summary.

Choosing the Right Measure

Use the mean when your data is roughly symmetric and you need a value that incorporates every data point — test scores, response times, physical measurements. Use the median when the distribution is skewed or contains outliers — salaries, real-estate prices, completion times. Use the mode for categorical or discrete data where you want to know the most common category — survey answers, defect types, product sizes.

Use the Mean, Median & Mode calculator to do this instantly — paste any list of numbers and get all three measures with a breakdown.

Frequently Asked Questions

Is this tool free?
Yes — completely free, no signup required. All processing happens in your browser.
Does the tool work offline?
Once loaded, most features work without an internet connection since everything runs client-side.
More free toolsSee all 469
Merge PDFsCompress ImageJSON FormatterPassword GeneratorVAT CalculatorQR Code Generator
How to Calculate Mean, Median, and Mode (2026) | brevio