Skip to main content
Calcimator

Average Calculator

Calculate mean, median, mode, range, geometric mean, and harmonic mean of a set of numbers.

This calculator computes eight statistics — mean, median, mode, range, sum, count, and (when every value is positive) geometric and harmonic mean — from up to five entered values. Value 4 and Value 5 are optional in a way that goes beyond a typical default: the engine only includes either one in the data set when it is both defined and not equal to 0, via inputs.value4 !== undefined && inputs.value4 !== 0. That means entering a genuine 0 as a fourth or fifth data point is indistinguishable from leaving the field untouched — it is silently dropped from every statistic rather than being averaged in as a real zero. Among the three always-included values, Value 2 has the largest measured effect on Mean under a small nudge, ahead of Value 1 and Value 3 — not because the mean formula weighs it more heavily (every value contributes an identical 1/n share to the sum), but because Value 2 starts at the largest default (92, versus 85 and 78), and a percentage-based nudge to a larger number produces a larger absolute swing. Geometric Mean and Harmonic Mean both fall back to 0 rather than computing a value whenever any included value is zero or negative, per the allPositive check gating both formulas.

Inputs

Results

Mean (Average)

85

Median85
ModeNo mode
Range14
Sum255
Count3
Geometric Mean84.81
Harmonic Mean84.61
How to Use This Calculator
  1. Enter up to five numbers in the Value fields (at minimum two values are required for meaningful statistics).
  2. The Mean output is the arithmetic average — the sum of all values divided by the count.
  3. Median is the middle value when the list is sorted; it is less sensitive to outliers than the mean.
  4. Mode shows which value appears most often; 'No mode' is displayed when all values are distinct.
  5. Geometric Mean and Harmonic Mean are specialized averages useful for growth rates and rates-of-change respectively — both require all values to be positive.
  6. Range (max − min) tells you how spread out the data is; pair it with Standard Deviation for a fuller picture.

How the result changes with Value 2

Value 2Mean (Average)
-799,999-266,612
-300,000-99,945.67
300,000100,054.33
799,999266,720.67

What each input means

Value 1
First value in the data set.
Value 2
Second value in the data set.
Value 3
Third value in the data set.
Value 4 (Optional)
Fourth value in the data set.
Value 5 (Optional)
Fifth value in the data set.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Value 1 = 85, Value 2 = 92, Value 3 = 78, Value 4 (Optional) = 0 = 5 input(s) provided
  2. Calculate Mean
    Mean
    85 = 85
  3. Calculate Median
    Median
    85 = 85
  4. Calculate Mode
    Mode = modeStr
    No mode = No mode

Engine last updated . Checked against 2 independently-derived tests how we verify calculators.

Frequently Asked Questions

If I type 0 into Value 4, does it count as a real data point?

No. The engine treats value4 as included only when inputs.value4 !== undefined && inputs.value4 !== 0, so an entered 0 is treated exactly like an empty field and excluded from the mean, median, mode, range, and every other statistic. There is no way to average in a genuine zero as a fourth or fifth value through this field.

Why does Value 2 move the Mean more than Value 1 or Value 3 under a small nudge?

All three values are weighted identically in the mean formula — each contributes an equal 1/n share of the sum. Value 2 simply starts at the largest default of the three (92, versus 85 and 78), so the same percentage-sized nudge produces a bigger absolute change in the sum, which is why it registers as having the largest measured effect at these particular starting values.

Why do Geometric Mean and Harmonic Mean sometimes show 0 instead of a number?

Both are gated behind the same allPositive check in the engine, which requires every value actually included in the data set to be strictly greater than zero. If any included value is zero or negative, both Geometric Mean and Harmonic Mean are set to 0 rather than computing a mathematically undefined or misleading result, since neither formula is meaningful across non-positive numbers.

What does the calculator show when all the entered values are different?

Mode falls back to the literal text "No mode" whenever the maximum observed frequency in the data set is 1 — meaning every value appears exactly once. The engine's modeStr only lists specific numbers when at least one value repeats more often than the others, per the maxFreq > 1 condition in its filter.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.