Maths

Average Calculator

Compare mean, median, repeated modes and an optional weighted average from your list.

By Nitin Raturi · Last reviewed

Your list

How to use the Average Calculator

Paste a list and compare its mean, median and repeated values.

  1. Enter your values without thousands-grouping commas.
  2. Leave weights blank for an ordinary average, or enter one weight per value.
  3. Read the headline average and compare it with the unweighted median.
  4. Check modes and count to understand repeated values and list size.
  5. Keep the address to reopen the list; it is stored in the URL fragment.

Good to know

  • The entire list stays in the browser; it is not sent to analytics.
  • A single value has no repeated-value mode under this tool’s convention.

Separate numbers with spaces, commas or new lines. No thousands-grouping commas: write 1000, not 1,000.

Values

The list of numbers whose centre you want to understand.

How to fill it in

  • Separate values with commas, semicolons, spaces or new lines. Use a dot for decimals; negative and scientific-notation numbers are accepted.
  • Enter 1 to 1,000 numbers, each from −10,00,00,00,00,000 to 10,00,00,00,00,000.
  • Commas separate numbers: enter 1000, not 1,000, when you mean one thousand.

Example

The default list has 4 numbers, sum 80 and mean 20.

Keep in mind: Only compare numbers in the same units. A mean can be pulled away from most observations by an extreme value.

1 to 1,000 values. A dot marks decimals; minus signs and scientific notation are accepted.

Weights (optional)

How much each number should count in the weighted mean. Blank gives every number equal importance.

How to fill it in

  • If used, enter one weight per value in the same order, using the same separators.
  • Each weight is from 0 to 10,00,000; at least one must be positive. Decimal weights do not need to total 100.
  • For group averages, use each group’s size as its weight. Zero removes a value only from the weighted mean.

Example

The worked weighted example gives a weighted mean of 22.5.

Keep in mind: Median, mode, count, sum and ordinary mean still describe the unweighted list. Weights change only the weighted mean.

Optional: one nonnegative weight per value. Blank means equal weights. At least one entered weight must be positive.

Average (arithmetic mean)

20

The sum 80 divided by 4 values gives an average of 20.

Count
4
Sum (unweighted)
80
Mean (unweighted)
20
Median (unweighted)
20
Mode (unweighted)
20
Smallest / largest
10 / 30

Your list stays in this browser. The URL fragment keeps it out of ordinary server requests; anyone you share the full address with can read it.

All figures other than weighted mean describe the unweighted list. A mode means an exact repeated value; ties are all shown. Up to six decimals are displayed, with scientific notation for very small or large results.

How this calculator works

  1. Step 1Add the values80The example list is 10, 20, 20, 30.
  2. Step 2Count the entries4Repeated values still count as separate observations.
  3. Step 3Divide sum by count20This is the ordinary arithmetic mean.

The arithmetic mean spreads the sum equally over the observations. The median instead finds the centre after sorting, and the mode identifies values that repeat most often. These answers describe different things; they need not agree.

With an even count, the median averages the two central sorted values. With an odd count, it is the central value itself. This calculator reports all tied repeated-value modes, in ascending order.

Worked example: mean, median and mode

One list, three descriptions of its centre
Ordinary mean
mean = sum of values ÷ count
Weighted mean
weighted mean = sum(value × weight) ÷ sum(weights)
  1. List10, 20, 20, 30
  2. Sum80
  3. Number of observations4
  4. Sum divided by count20
  5. Middle of the sorted list20
  6. Most frequent repeated value20

The default mean, median and mode happen to coincide. That does not make them interchangeable. If every entry is unique, the tool says No repeated value rather than listing every number as a mode.

When weights change the answer

  • Ordinary mean23.333333Each entered value counts once.
  • Weighted mean22.5The middle value counts twice in this example.
  • Unweighted median20Sorting ignores the optional weights.

Weights express how much each entry counts. For group averages, use group sizes: averaging two group means without their sizes can misrepresent the combined group. For coursework, use the official component weights only if the grading method is a weighted mean.

Weighted example: 10, 20, 40 with weights 1, 2, 1
  1. Sum of value × weight90
  2. Sum of weights4
  3. Weighted sum divided by total weight22.5

Weights can be decimals and do not have to add up to one hundred. Scaling every weight equally leaves the weighted mean unchanged. A zero weight removes an entry only from the weighted calculation, not from ordinary statistics.

A large value can pull the mean

  • Original list mean20Median: 20.
  • Replace the last value with 15050Median: 20. The middle stayed put.

The mean reacts to the size of every observation. The median depends on sorted positions, so an extreme observation can shift the mean without shifting the median. Neither answer automatically makes an observation wrong; examine the data and its purpose.

Input conventions, limits and privacy

Use commas, semicolons, spaces or new lines between numbers. A dot marks the decimal point. Negative numbers and scientific notation are accepted. Empty comma-separated cells are errors, not silently missing observations.

You can enter up to one thousand values, each with absolute value up to one trillion. Optional weights need one entry per value, each from zero to one million, with at least one positive entry. Each text field is limited to twenty thousand characters.

Calculation uses floating-point numbers with compensated summation to reduce cancellation error. Display rounds to at most six decimals; very small and large answers use scientific notation. This is not exact decimal or arbitrary-precision arithmetic.

The list stays in the browser. The address stores it after the hash, not in a server query. Analytics receives neither the list nor its weights. Anyone receiving the full address can still read the list, so avoid sharing sensitive data.

Common average mistakes

  • Mistake: Write a thousands-grouping comma inside a number.

    Instead: Write 1000 for one thousand; a comma creates a separate entry.

  • Mistake: Average group averages without checking group sizes.

    Instead: Use group sizes as weights when reconstructing their combined mean.

  • Mistake: Assume weights also change median and mode.

    Instead: Only the weighted mean uses weights here; other statistics stay unweighted.

  • Mistake: Compare a mean across unrelated units.

    Instead: Convert to a common unit and confirm the numbers measure the same thing.

An average describes the centre of a list. Spread and position need other measures.

To measure how spread out the values are, use the standard deviation calculator. The percentile calculator shows where one value sits, and the grade calculator handles weighted course marks.

Checking the method

The mean, median and mode conventions follow NIST and OpenStax. Golden tests use rational sums, deviation balancing and expanded integer-weight lists. Tests also cover ties, negative values, malformed lists, cancellation and input limits. Sources and review details appear below.

Read how we test our calculators, or browse more maths calculators.

Frequently asked questions

What is the difference between mean, median and mode?

The mean is the sum divided by the count. The median is the central sorted value, or the average of the two central values for an even count. The mode here is the most frequent repeated value, including all ties.

How do I enter numbers without confusing thousands commas?

Use plain numbers such as 1000, not 1,000. Commas, semicolons, spaces and new lines separate entries. A dot marks decimals, and negative numbers and scientific notation are accepted.

How does the weighted average work?

It divides the sum of each value times its weight by the sum of weights. The example 10, 20, 40 with weights 1, 2, 1 gives 22.5.

Do weights have to add up to one hundred?

No. Nonnegative weights can be counts, proportions or other relative weights. There must be one weight per value and at least one must be positive. Blank weights give an ordinary average.

Do weights change the median and mode?

No. Only weighted mean uses the optional weights. Count, sum, ordinary mean, median, modes, smallest and largest describe the unweighted list, including any zero-weight entries.

What if no value repeats, or several values tie?

If no value repeats, the tool says No repeated value. If several repeated values share the highest frequency, it lists every tied mode in ascending order.

Are my list and weights sent to a server?

No. They stay in the browser and are stored after the hash in the URL, not in a server query or analytics event. Anyone you share the full address with can read them.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 27 Oct 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.