Skip to content
Investment Math
Investment Math

Currency and number style

Only changes how amounts look. There is no currency conversion.

Average explained: formula, worked example and common mistakes

Mean, median, mode and range of any list of numbers, with the sorted list beside them. Free, no sign-up, nothing leaves your browser.

Updated

What the calculator does

You type or paste a list of numbers, separated by commas, spaces or new lines. The calculator returns the mean, the median, the mode, the range, the count, the sum, the smallest and the largest, and a table of the sorted values with the distance of each from the mean. It works for returns, prices, quotes, scores or anything else you can count. Nothing is stored, and nothing leaves your browser.

Open the calculator at /tools/average/ to try it with your own list.

The four measures

The mean is the sum of the list divided by how many numbers it holds. It uses every value, so a single very large or very small one moves it.

The median is the middle value once the list is sorted. If the count is even, it is the mean of the two middle values. It only looks at the middle of the list, so extreme values hardly move it.

The mode is the value that appears most often. A list can have more than one mode, if values tie for most frequent, and it has none when every value appears once. The calculator says “none” in that case instead of choosing one.

The range is the largest value minus the smallest, which is the full width of the list.

The formulas

mean   = sum ÷ count
median = the middle value of the sorted list
         (or the mean of the two middle values when the count is even)
mode   = the most frequent value or values
range  = largest − smallest

A worked example at the calculator’s defaults

The page opens on the list 12, 15, 15, 18, 90.

sum    = 12 + 15 + 15 + 18 + 90 = 150
count  = 5
mean   = 150 ÷ 5 = 30
median = the third value of 12, 15, 15, 18, 90 = 15
mode   = 15, which appears twice
range  = 90 − 12 = 78

The mean is 30, yet four of the five values are 18 or lower. One value, 90, pulls the mean up. The median is 15, which sits in the middle of the list and is nearer to what a typical value looks like here. The page flags this: when the mean and the median are more than a fifth apart, it says that a value such as 90 is pulling the mean away from the middle of the list.

When the mean and the median disagree

A small gap means the list is balanced and the mean describes it well. A large gap means a few values sit far from the rest. The calculator does not decide which is right for your question. It prints both, and the sorted table lets you see where the spread comes from.

This matters for money. A fund that returns 12%, 15%, 15%, 18% and 90% in five years has a mean of 30% and a median of 15%. Quoting only the mean describes a run that no ordinary year matched. For the rate your money actually grew at, use the average return calculator, which also shows the compound rate.

Checking for outliers

An outlier is a number far from the rest of the list. There is no single rule for it. One common check flags values more than 1.5 times the interquartile range beyond the quartiles. Another is simply to sort the list and look at both ends. The sorted table on the page is built for that. If one value looks out of place, remove it and run the list again to see how much the mean moves.

What the page does not do

It does not choose an average for you, and it does not weight the values: every number counts once. If your numbers carry weights, such as amounts invested at different rates, a plain mean is the wrong tool, and the weights need to go into the sum first.

Frequently asked questions

How do I find the median of a list with an even count?

Sort the list and take the two middle values, then find their mean. For 12, 15, 18 and 90 the middle pair is 15 and 18, so the median is (15 + 18) ÷ 2 = 16.5. The mean of the same list is 33.75, well above it, because 90 pulls it up.

What happens to the default list if the 90 is removed?

The list becomes 12, 15, 15 and 18. The sum is 60, so the mean is 60 ÷ 4 = 15, and the median is also 15. The mean fell from 30 to 15 because of one value, while the median did not move. That gap is how an outlier shows itself.

Why is the plain average of yearly returns not the rate my money grew at?

Take one year of +50% and one of −50%. The plain mean is 0%, yet 100 becomes 150 and then 75, a loss of 25%. A plain mean ignores compounding, so use the average return calculator for the compound rate the money actually followed.

How does one extreme value affect the range?

The range uses only the largest and smallest values, so it reacts most to extremes. The default list 12, 15, 15, 18 and 90 has a range of 90 − 12 = 78. Without the 90 it is 18 − 12 = 6. A wide range is a prompt to check the sorted table.

Can I use the page for values that carry weights?

Not directly, because a plain mean counts each number once. If 1,000 earns 10% and 3,000 earns 6%, the plain mean of the rates is 8%, but the weighted figure is (100 + 180) ÷ 4,000 = 7%. Multiply each value by its weight, add them, then divide by the total weight.

This tool shows math, not advice.

Cite this page

Copy this line into a reference list, a report or a spreadsheet note.

Investment Math Calculator. “Average Calculator”. Updated 2026-11-14. https://investmentmathcalculator.com/guides/average-calculator/

Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.