Average, Median and Mode Calculator

Separate numbers with spaces, commas, semicolons or line breaks. Use a dot for decimals (1.5), or a decimal comma when values are separated by spaces or semicolons. Up to 10,000 numbers; scientific notation is accepted.

Need the working? The mean, median and mode calculator shows every step with a frequency table.

Mean
Median
Mode(s)
4
Count
Minimum
Maximum
xˉ=1n∑i=1nxi\bar{x}=\frac{1}{n}\sum_{i=1}^{n}x_i

About this tool

This tool calculates the mean, median and mode of a list of numbers, along with the count, minimum and maximum. Students, analysts and anyone checking a data set use it to summarize values quickly. The mean is the sum of the values divided by their count, xˉ=1n∑xi \bar{x} = \frac{1}{n}\sum x_i ; the median is the middle value of the sorted list; the mode is the most frequent value.

How it works

Paste a list of numbers separated by spaces, commas, semicolons or newlines. Commas normally separate values, so 1,5 is read as 1 and 5. When values are separated by spaces, semicolons or line breaks, a comma inside a number counts as a decimal comma, so 1,5 2,5 is read as 1.5 and 2.5. The tool sorts a copy to find the median and shows all tied modes if values repeat.

You can paste a column straight from a spreadsheet, since line breaks count as separators, and scientific notation such as 1.2e3 is accepted. Up to 10,000 numbers can be entered at once. If any entry is not a valid number, the calculator shows an error instead of skipping it, so check for stray letters, currency symbols or thousands separators.

Example

For 2, 4, 4, 6, 9, the mean is 5, median is 4 and mode is 4. Count is 5, minimum is 2 and maximum is 9.

The mean comes from the sum, 2 + 4 + 4 + 6 + 9 = 25, divided by the count of 5. The median is the third of the five sorted values, and 4 is the only value that appears twice. Adding one extreme value shows the difference between the measures: for 2, 4, 4, 6, 9, 95 the mean jumps to 20, while the median only moves to 5, the average of the two middle values 4 and 6.

Assumptions and limits

All values have equal weight; there is no weighted average, grouped data, standard deviation or outlier removal. Decimal commas work only when values are separated by spaces, semicolons or line breaks, because otherwise commas separate values. Very large or very precise inputs are limited by standard double-precision floating-point arithmetic, and results are displayed to 12 significant digits.

Frequently asked questions

What happens when there is more than one mode?

Every value tied for the highest frequency is shown if that frequency is at least two. If all values are unique, the tool reports no repeated values. For 1, 1, 2, 3, 3 the modes are 1 and 3, a pattern usually called bimodal.

Is this a weighted average?

No. Each entered value has equal weight. Invalid tokens are rejected instead of silently removed, so missing or malformed numbers cannot quietly alter the result.

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

When the count is even, there are two middle values, and the median is their mean. For 1, 3, 5, 7 the median is (3+5)/2=4 (3 + 5) / 2 = 4 .

When should I use the median instead of the mean?

The median is less affected by extreme values, so it often describes skewed data such as incomes or prices better. The mean uses every value and is useful when the data are roughly symmetric or when totals matter.

How do I calculate a weighted average instead?

Multiply each value by its weight, add the products and divide by the sum of the weights. For scores of 70 and 90 with weights of 1 and 3, the weighted average is (70 × 1 + 90 × 3) ÷ 4 = 85, while the plain mean shown here would be 80. For course grades with percentage weights, the grade calculator on this site does the weighting for you.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
valuesNumbersvalues separated by commas: 2,4,4,6required

Examples

  • ?values=12,15,18,21,95
  • ?values=3.5,4.25,4.25,7

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="average"]