Average Calculator

Find the arithmetic mean or weighted average, with the sum, count and calculation shown.

Find a mean

Use 1–200 values, up to ±1,000,000,000,000 with 6 decimal places. Use a decimal point and no thousands separators.

Separate numbers with commas, spaces, tabs or new lines. Blank cells are errors. For example, 1,234 means two numbers: 1 and 234. Zeros count.

Your result

Enter your values and select Calculate, or use Try example.

Method & examplesReviewed · Sources

Enter a list or weighted rows

For a Simple average, paste a column of numbers or separate numbers with commas, spaces, tabs or new lines. Use a decimal point and no thousands separators: 1,234 is two values, 1 and 234. A zero is a value and counts toward the mean. Negative values are accepted. A bad or missing item produces an error rather than being silently dropped.

For a Weighted average, enter a value and a weight in every row. Use Add row or Remove row to change the list. Or open Paste from spreadsheet and paste exactly two tab-separated columns: value, then weight, without headers. Check the preview, then select Apply rows to replace the current rows. Invalid cells identify the row and column and leave the current rows intact. Clear a pending paste to keep using the current rows. Weights must be nonnegative and at least one must be positive. They do not have to sum to 1 or 100. Keep the same scale throughout: use either 1 and 3, or 0.25 and 0.75; mixing those scales changes the calculation.

Try example fills the selected mode without calculating. Calculate displays the mean, accepted count and sum. Simple results also show median, minimum, maximum and range. Weighted results show the sum of weights and sum of products, without an unweighted median or range. Reset clears the inputs and restores Simple average. Changing modes clears values and the result. Editing clears the previous answer and copy action.

Method and examples

The arithmetic mean is sum(x) / n, where n is the number of accepted values. For 0, 10, 20, the sum is 30, the count is 3, and the mean is 10.

The median is the middle value after sorting numerically. With an even count, it is the mean of the two middle values. The minimum and maximum are the smallest and largest values, and the range is maximum − minimum. For 0, 10, 20, 100, the mean is 32.5, the median is 15, the minimum is 0, the maximum is 100, and the range is 100. A one-value list has range zero. These statistics apply only to Simple average.

The weighted average is sum(value × weight) / sum(weight). For 80 with weight 1 and 90 with weight 3, the products total 80 × 1 + 90 × 3 = 350. The weights total 4, so the average is 87.5. Weights 25 and 75 give 8,750 / 100 = 87.5; multiplying every weight by the same positive factor leaves the result unchanged.

A value with weight zero still counts as an accepted row and appears in the ordinary sum of values, but contributes zero to the weighted mean.

Limits and rounding

Enter 1–200 values or rows. Values can range from −1,000,000,000,000 to 1,000,000,000,000 with at most six decimal places. Weights have the same upper bound and precision, with a minimum of zero. Scientific notation is not accepted. Enter every value and weight; blank cells and rows are errors. One final line ending from a spreadsheet is accepted; extra blank rows are not.

The mean is displayed to at most 12 decimal places and marked when rounded. Sum, weight sum, product sum and simple-list statistics are retained without display rounding. An even-count median can have seven decimal places, and the range can reach 2,000,000,000,000. The calculation uses decimal arithmetic; displayed rounded means are never reused as inputs.

This tool does not calculate a weighted median, mode, GPA, stock cost basis, sporting averages or average rate of change. For relative changes, use the Percentage Change Calculator; for two-part comparisons, use the Ratio Calculator. The Percentage Calculator finds a percentage of a number.

Sources and model

Method version 1.0.0. Reviewed .

Maintained by Aleksandr Pervukhin. Report a calculation error.