Skip to content
Average Calculator

Average Calculator

Paste your numbers into the average calculator to compare the mean, median and weighted average.

Paste your numbers, then press Calculate.

Separate with commas, spaces or new lines. One unit; no thousands separators.

Leave blank for a simple average. For unequal groups, enter each group size in matching order.

Input options

Ctrl/⌘ + Enter: calculate · Escape: clear · Ctrl/⌘ + Shift + C: copy results

One nonnegative weight per value; at least one weight must be positive. Other statistics remain unweighted. Examples: group sizes, credits or percentages. Weights need not total 100.

Enter numbers to calculate

Enter numbers above or try the weighted example. Compare the arithmetic mean with the median before you export.

Sorted values

Local history

Calculations stay in your browser. History saves up to 10 different manually started calculations on this device when local storage is available. Clear history to remove them.

Average calculator: check the list before the answer

A pasted column is only useful if every entry means what you intended. I check the decimal format first, then the count, then the answer. In decimal-point mode, 1.5, 2.5 contains two values. In decimal-comma mode, write 1,5; 2,5 instead. A comma cannot be both a decimal mark and a list separator in the same calculation.

Spaces, tabs, semicolons and line breaks separate entries in either mode. A spreadsheet column usually pastes directly. Remove currency symbols, percentage signs, thousands separators and unit names before calculating. Scientific notation such as 1e3 is accepted, but fractions such as 1/2 must be converted to decimals. The calculator rejects an invalid entry rather than quietly using part of it.

  1. Paste values in one consistent unit and choose the decimal separator.
  2. Leave weights empty for an ordinary mean, or paste one weight per value.
  3. Calculate, then check the count, sorted values and substituted formula.
  4. Copy the results or download the CSV if you need an audit trail.

The denominator decides what your average means

The arithmetic mean is the total divided by the number of observations. For the hypothetical measurements 4, 8 and 12, the sum is 24 and the count is 3. The average is therefore 24 / 3 = 8. All three observations count equally. Reordering the list does not change the result; duplicating one observation can change it.

Arithmetic mean = sum(values) / count(values)

A recorded zero is an observation, not an empty cell. The list 0, 8, 12 has a sum of 20 and a mean of approximately 6.66666666667. Removing the zero would change the question: 8 and 12 average 10. Blank space is not a recorded zero here. Decide what missing data means before you substitute numbers, and keep that decision consistent across the list.

Negative values are valid. For -8, 0 and 8, the sum and mean are both zero, although the observations vary substantially. Convert quantities into the same unit before pasting: a value expressed in minutes cannot be averaged directly with another expressed in hours. The tool performs arithmetic; it cannot determine whether your observations belong together.

Read the mean beside the median

I report both measures when a list has an unusually large or small value. In the hypothetical list 12, 13, 14, 15, 96, the total is 150, so the mean is 30. The median is 14, the middle of the sorted list. Neither number is a mistake. The mean preserves the total; the median describes the central position. The NIST explanation of location measures provides the underlying distinction. The twelve histogram bars count every observation, including entries beyond the first 50 dots. Bar height indicates frequency, not value magnitude.

The number line places the first 50 observations on a shared scale, with the arithmetic mean above the line and the median below it. A vertical tick identifies zero. All entered values are used in the calculation, even when only the first 50 are drawn. Open Sorted values to inspect the complete ordered list. The diagram is descriptive: it does not label an observation as erroneous or make an outlier-removal decision.

Mode describes frequency rather than balance or position. Multiple values can tie for the greatest frequency. A repeated single value is its own mode: 3, 3, 3 has mode 3. If two or more distinct values all occur equally often, the result is no distinct mode. For 1, 1, 2, 2, 3, the modes are 1 and 2. The range is maximum minus minimum, and says nothing about where the other observations sit. Read the mean-versus-median guide when you need to choose a summary.

Combine unequal groups with weights

Weights change how much each value contributes. Enter values 72, 84, 91 and weights 2, 3, 5 to reproduce the example button. Multiply each pair: 144, 252 and 455. The weighted numerator is 851, the weight total is 10, and the weighted mean is 851 / 10 = 85.1. The ordinary mean of the three values is approximately 82.3333333333.

Weighted mean = sum(value × weight) / sum(weight)
Weights 2, 3 and 5 shown as 20%, 30% and 50% of total weight 10
Bar widths represent weight shares, not the size of the values.

Weights may be counts, credits or percentage allocations; they do not need to total 100. Every weight must be nonnegative and the total must be positive. A zero weight excludes that value from the weighted mean. The other displayed statistics still describe the original unweighted list, including zero-weight values. The ordinary mean and weighted mean are deliberately shown separately.

For percentages with different denominators, use those denominators as weights. Hypothetical scores of 90% on 10 points and 60% on 100 points represent 9 and 60 earned points. The combined percentage is (9 + 60) / (10 + 100) × 100 = 62.7272727273%, not 75%. See weighted averages and denominator mistakes for group means and grading examples.

Different means and different measures of spread

Population standard deviation divides the sum of squared deviations by n before taking the square root. Sample standard deviation uses n minus 1; it is undefined for one observation. Neither tells you whether a sample represents a wider population. For 4, 8, 12, the squared deviations total 32, giving population SD approximately 3.26598632371 and sample SD 4.

The geometric mean uses positive values and combines their logarithms. The harmonic mean also requires positive values here and uses their reciprocals. The NIST geometric-mean reference and harmonic-mean reference define these calculations. Root mean square squares each observation, averages those squares and takes the square root. It can remain positive when the arithmetic mean is zero; it is not a replacement for the signed mean.

Choose the formula that matches your data, rather than the result you prefer. See arithmetic, geometric and harmonic means for equal-distance speeds and successive change factors.

Open More statistics for Q1, Q3 and the interquartile range (IQR). I use the median of each sorted half, excluding the central observation when the count is odd. For 3, 5, 7, 9, 11, 80, the lower half is 3, 5, 7 and the upper half is 9, 11, 80: Q1 = 5, Q3 = 11 and IQR = 6. For a single value, both quartiles equal that value and IQR is zero. Other calculators may interpolate quartiles differently; compare methods before comparing answers.

Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are listed for review and kept in every calculation.

Small lists that expose large mistakes

These control cases are included in the browser tests. They check the denominator, signed values, decimal interpretation and weight pairing. I use them to verify behaviour before relying on a larger list.

InputExpected result
4; 8; 12Sum 24; mean 8; median 8; sample SD 4
-8; 0; 8Mean 0; geometric and harmonic means undefined
72; 84; 91, weights 2; 3; 5Weighted mean 85.1
1,5; 2,5 in decimal-comma modeMean 2
12abcRejected as an invalid entry

Results use browser floating-point arithmetic and display up to 12 significant digits. Compensated summation and scaled calculations reduce common rounding and overflow problems, but this is not arbitrary-precision arithmetic. At most 10,000 values and 200,000 characters per field are accepted. Each nonzero magnitude must be between 1e-100 and 1e100. Lists outside those limits are rejected in full.

Keep a reproducible record on your device

Calculation data is processed locally. If browser storage is available, up to 10 different manually started calculations retain the complete input, weights and separator setting on this device. Clear history removes those records. On a shared device, clear the history when finished. Storage restrictions do not prevent calculation. History is a convenience, not a guaranteed backup. Live calculations while typing are not added to history.

The CSV includes summary statistics and the original values with their weights; numeric cells use decimal points for predictable importing. Labels follow the page language. Editing any input clears the current results and disables export until you calculate again. Ctrl or Command plus Enter calculates, Escape clears the inputs, and Ctrl or Command plus Shift plus C copies results when focus is outside the input fields.

Guides

Common questions

Are zeros included?

Yes. A typed zero counts as an observation. Empty space is ignored; missing data should be resolved before calculation.

Can I use decimal commas?

Yes. Choose decimal-comma mode and separate entries with semicolons, spaces or line breaks. A comma then belongs to the number.

Are all results weighted?

No. Adding weights creates a separate weighted mean. The remaining statistics describe the original unweighted values.

Why is sample SD undefined for one value?

Its denominator is n minus 1, which is zero when n equals 1. Population SD for a single value is zero.

Is the history uploaded?

No. Calculation history is stored locally on this device when supported. Clear history removes these local records.

Updated · About this site