Math

Average calculator

Use the Average calculator for fast, clear results with formulas and practical examples.

Average calculator

Result21
Median21Sum105Range17

What this calculator answers

Use this page for a small numerical dataset when you need its arithmetic mean and basic descriptive checks. The mean is not automatically the best summary for skewed data, so the median and range are shown alongside it.

Input definitions

Numbers
A non-empty list of finite values separated by commas, spaces, or semicolons. Repeated values remain separate observations.

Formulas and variables

Arithmetic mean

mean = (x₁ + x₂ + … + xₙ) / n
  • xᵢ = each observed value
  • n = number of observations, n > 0

Every observation has equal weight.

Median

median = middle sorted value, or mean of the two middle values
  • values are sorted numerically
  • n determines one or two middle positions

Sorting changes order, not membership or the mean.

Range

range = maximum − minimum
  • maximum and minimum come from the entered list

Range measures total spread but ignores the distribution between the endpoints.

Assumptions and rounding

  • All observations are equally weighted; use a weighted-average method when weights differ.
  • The list must contain at least one finite number. Blank tokens are ignored, not converted to zero.
  • The engine keeps full precision; displayed decimals may be rounded to ten places.
  • Mean, median, and range are descriptive values and do not establish statistical significance.

Worked examples

Five-value dataset

Values: 12, 18, 21, 25, 29.

Calculation
  1. Sum: 12 + 18 + 21 + 25 + 29 = 105.
  2. Count: n = 5, so mean = 105 / 5 = 21.
  3. The sorted middle value is 21; range = 29 − 12 = 17.

Result: Mean 21, median 21, sum 105, range 17.

Dataset with a repeated value

Values: 4, 7, 7, 10.

Calculation
  1. Sum: 4 + 7 + 7 + 10 = 28.
  2. Mean: 28 / 4 = 7.
  3. Median: (7 + 7) / 2 = 7; range = 10 − 4 = 6.

Result: Mean 7, median 7, sum 28, range 6.

Questions people ask

Is average always the arithmetic mean?
In everyday usage it often is, but ‘average’ can also refer to median, mode, geometric mean, or a weighted mean. This page labels the arithmetic mean explicitly.
Do repeated numbers count more than once?
Yes. Each entered value is one observation, so entering 7 twice gives it two places in the list.
Why can the mean differ greatly from the median?
A very large or small outlier affects the sum and therefore the mean, while the median depends only on the middle positions.
Can I average percentages directly?
Only when their bases or weights are equal. Percentages based on different sample sizes usually require a weighted calculation from the underlying totals.

Boundaries and common mistakes

  • Do not use an unweighted mean when observations represent different amounts or sample sizes.
  • Do not silently replace missing observations with zero.
  • Range alone is sensitive to endpoints and does not describe how values are distributed.

Sources and scope

Content and formula review date:

Reviewed by the CalculatorToolset editorial team against the cited definitions and engine tests.

Report a calculation or content issue: support@calculatortoolset.com

Variables, defaults, and limits

Mode
Mode is a choice input. The displayed starter value is arithmetic; it is an example, not a hidden assumption.
Default: arithmetic
Accepted values: The field has no narrower HTML limit, but it must still satisfy the documented formula domain and produce a finite result. Available choices: arithmetic, weighted.
Numbers
Numbers is a number list input. The displayed starter value is 12, 18, 21, 25, 29; it is an example, not a hidden assumption.
Default: 12, 18, 21, 25, 29
Accepted values: The field has no narrower HTML limit, but it must still satisfy the documented formula domain and produce a finite result.
Weights
Weights is a number list input. The displayed starter value is 1, 1, 1, 1, 1; it is an example, not a hidden assumption.
Default: 1, 1, 1, 1, 1
Accepted values: The field has no narrower HTML limit, but it must still satisfy the documented formula domain and produce a finite result.

Worked examples

Average calculator evaluated example 1

Use the page’s labelled starter inputs to verify Average calculator.

Inputs
  • Mode: arithmetic
  • Numbers: 12, 18, 21, 25, 29
  • Weights: 1, 1, 1, 1, 1

Evaluated result: 21

Average calculator evaluated example 2

Select weighted mode, enter numbers = 72, 88, 91, 64 and weights = 2, 4, 3, 1 for four differently weighted assessments.

Inputs
  • Mode: weighted
  • Numbers: 72, 88, 91, 64
  • Weights: 2, 4, 3, 1

Evaluated result: 83.3

Validation and boundaries

  • Every visible required input must be present; a missing value is never replaced with zero.
  • NaN, positive or negative infinity, unsafe overflow, and a non-finite final result are rejected.
  • Field-specific minimums, maximums, and choices apply to Mode, Numbers, Weights.
  • Zero, negative values, and discrete counts are accepted only when the displayed field definition permits them.
  • Weighted mode requires equally long nonempty value and weight lists; every weight must be zero or greater and their sum must be positive.

Review and correction links

Frequently asked questions

Do the absolute sizes of the weights matter?
Only their proportions matter. Multiplying every weight by the same nonzero factor leaves the weighted mean unchanged.
What question does Average calculator answer?
Use the Average calculator for fast, clear results with formulas and practical examples. The implemented relationship is R ∈ {Σx₂/n; Σ(x₂ᵢx₃ᵢ)/Σx₃ᵢ}; selector=x₁; x₁=Mode; x₂=Numbers; x₃=Weights.
Which inputs does Average calculator use?
It uses the visible fields Mode, Numbers, Weights. No hidden value is substituted for an omitted required input.
What happens when Average calculator receives an invalid or extreme value?
The page rejects missing, ambiguous, out-of-range, or non-finite values and refuses to display a non-finite result.
Why can Average calculator differ from another result?
Different unit conventions, endpoint policies, fee or rate assumptions, formula domains, and premature rounding can produce a different answer.
Can I use Average calculator as professional advice?
No. It answers the displayed mathematical question and cannot account for omitted real-world facts.
How can I verify the Average calculator result?
Recalculate the two evaluated examples without rounding intermediate values and compare the declared formula or convention with Descriptive statistics.

Source and review scope

Descriptive statistics

Scope: Descriptive statistics is used to check the formula, definition, or convention relevant to Average calculator. The citation does not supply current personal, lender, tax, medical, or market data.

Source checked:

Continue with related tools