In short
The mean is the sum of the values divided by how many there are. The median is the middle value once they are sorted, or the average of the two middle values. The mode is the most frequent value. When a few values are much larger than the rest, the median describes a typical value better than the mean.
How it works
mean x̄ = Σxᵢ ÷ n sample s = √( Σ(xᵢ − x̄)² ÷ (n − 1) ) population σ = √( Σ(xᵢ − x̄)² ÷ n )
- xᵢ
- each value
- n
- number of values
- x̄
- mean
The median is found by sorting the values. With an odd count it is the middle value. With an even count it is the mean of the two middle values. The mode is the value that appears most often. A list can have several modes, or none if every value is different.
Sample or population standard deviation?
Use the sample standard deviation (dividing by n − 1) when your numbers are a sample from a larger group, which is the usual case in surveys and experiments. Use the population version (dividing by n) when the list is the entire group you care about. OpenStax’s Introductory Statistics explains why dividing by n − 1 corrects the sample estimate.
Worked examples
Eight test scores
For 72, 85, 90, 66, 85, 78, 94 and 85, the sum is 655 and the mean is 655 ÷ 8 = 81.875. Sorted, the two middle values are 85 and 85, so the median is 85. 85 appears three times, so it is also the mode.
When the median tells the better story
Nine people earn $30,000 a year and one earns $5,000,000. The mean income is 527,000, more than 17 times what nine of the ten earn. The median is 30,000, which describes a typical person far better. Reported averages for income and house prices are usually medians for this reason.
Using this calculator well
- Look at both mean and median. If they differ a lot, the data are skewed or contain outliers. Report the median, or both, rather than the mean alone.
- Paste straight from a spreadsheet. Copying a column gives one value per line, which works as is. Labels and blank cells are skipped and listed under the result so you can check nothing important was dropped.
- For averages of rates, use the right mean. The arithmetic mean of growth rates or speeds over equal distances misleads. Use the compound annual growth rate for growth, and total distance ÷ total time for speed.
Frequently asked questions
What is the difference between mean, median and mode?
The mean is the arithmetic average: the sum divided by the count. The median is the middle value of the sorted list. The mode is the most common value. For 2, 3, 3, 4 and 18, the mean is 6, the median 3 and the mode 3. The outlier 18 pulls only the mean up.
How do I find the median of an even number of values?
Sort the values and average the two in the middle. For 1, 2, 3 and 4, the middle two are 2 and 3, so the median is 2.5. With an odd number of values, the median is simply the middle one.
Should I use sample or population standard deviation?
Use the sample standard deviation, which divides by n − 1, when your data are a sample of a larger group, such as 20 students out of a whole school. Use the population version, dividing by n, when you have every member of the group. The sample version is slightly larger.
Can a list have more than one mode?
Yes. If two or more values tie for the highest count, all of them are modes. The exam scores 430, 430, 480, 480 and 495 are bimodal, with modes 430 and 480. If no value repeats, there is no mode.
Sources and methodology
- Introductory Statistics 2e, 2.5 Measures of the Center of the Data, OpenStax, Rice University, mean, median and mode; Examples 2.26–2.29 (accessed November 24, 2026)
- Introductory Statistics 2e, 2.7 Measures of the Spread of the Data, OpenStax, Rice University, sample (n − 1) and population standard deviation; Example 2.32 (accessed November 24, 2026)
Rounding: Values are summed with compensated (Neumaier) summation to avoid floating-point drift, and results are shown to 10 significant digits.
Review status: formulas verified against the cited sources by automated tests; editorial review pending. Version 1.0.0, content updated November 24, 2026.
Changelog
- 1.0.0 · November 24, 2026: First published.
How we build and test calculators
Embed this calculator on your site
Paste this code into your page. The calculator runs in a frame, with no tracking and no cookies, and links back here for the formula and sources.
<iframe src="https://northcalculator.com/embed/en/average" title="Average Calculator" width="100%" height="760" style="border:0" loading="lazy"></iframe>