ForHosting KIT · Math

Average calculator

The average of 2, 4, 6, 8 and 10 is 6: the numbers add up to 30 and there are 5 of them. Paste a list of scores, prices or readings and get the plain, unweighted average, with every value checked first. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Numbers
2, 4, 6, 8, 10
You get
Quantity
5
Sum
30
Average
6

People reach for an average calculator when they have scores, measurements, prices, temperatures, or any other set of finite numbers and they want one representative figure for the set. This calculator accepts a non-empty list of finite numbers and returns the count, the parsed list, the sum, and the arithmetic mean together with the formula used.

What the arithmetic mean is and when the unweighted average is the right tool

The arithmetic mean of a list of numbers is the unweighted average: add every observation and divide by the count n. If the list is two, four, six, eight and ten, the sum is thirty and the mean is six. That is the number people mean when they search for an average calculator: one representative value that treats each observation with equal weight.

The formula does not apply weights, does not take a geometric product, does not invert reciprocals, and does not report the median or the mode. It is the right tool when every number already lives on the same scale and deserves the same influence: quiz points that are not yet percents, daily temperatures in one city, unit prices of comparable items, sensor readings from one instrument, or a short column of measurements copied from a spreadsheet. It is the wrong tool when some observations should count more than others.

Averaging a salary of ten people in one team with a salary of ten thousand people in another hides the large group. Negative numbers and zeros are accepted because they are still finite. Empty lists are rejected: there is no average of nothing.

Any entry that is not a finite number is rejected by index rather than skipped, so a stray label, NaN, or infinity cannot silently shrink the sample and produce a fake average. A single-element list is valid: the average of one number is that number itself.

Where an average calculator earns its keep, and what it is not

Use this average calculator when you already have a list of numbers and you want their unweighted arithmetic mean. Teachers average raw quiz points that are not yet percents. Analysts average daily temperatures, unit prices, or sensor readings from one instrument.

Spreadsheet users paste a column and want a second opinion that does not depend on a hidden filter or a silent skip of blank cells. Prefer a weighted mean when sample sizes or durations differ a lot. Prefer the median when a few outliers would drag the arithmetic mean away from the typical value.

Pin the rounded average field in tests. Round-trip checks are easy: add the numbers by hand, divide by the count, and confirm the ratio matches the published mean within twelve decimal places.

Measurements and sensor readings

Summarize a column of temperatures, prices, or instrument readings into one unweighted arithmetic mean for a daily report.

Spreadsheet paste and second opinion

Paste a short numeric column and confirm the average independently of a hidden filter or a silent skip of blank cells.

What happens if the list is empty or a value is not a finite number?

There is no average of an empty list, and NaN, infinities, and non-numeric entries are not skipped. Failed validation is not billed.

Does this calculator weight some numbers more than others?

No. Every value has equal weight. If observations should count differently, use a weighted mean and supply the weights yourself.

Can the list include negatives or zero?

Yes. Negative numbers and zeros are accepted as long as they are finite. A single-element list is also valid: the average of one number is that number.

When should I use the median instead of the average?

When a few extreme values would drag the average away from the typical one. This calculator gives the arithmetic mean only; if a handful of outliers dominate your list, the median is the more honest summary.

How many numbers can I average at once?

Up to one hundred thousand, each no larger than one quadrillion in size. A list with a single number is also valid: its average is simply that number.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/math/average

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/math/average \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"numbers":[2,4,6,8,10]}'
{
  "numbers": [
    2,
    4,
    6,
    8,
    10
  ]
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "math.average",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

max_items100000
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

The arithmetic mean is the everyday average of a list of numbers: add every value and divide by how many values there are. An empty list or any value that is not a finite number — including NaN and infinities — fails with invalid_input and is never billed. A successful API call costs $0.002.

What the arithmetic mean is and when the unweighted average is the right tool

In that case a weighted mean is the honest summary, and this endpoint will not invent weights you did not supply. Magnitudes above one quadrillion are also rejected so the Worker and the browser stay inside a safe numeric range.

Input contract, response shape, and error behaviour

Numeric strings inside the array are coerced, so a pasted column of figures still works. On success the body reports count as n, numbers as the parsed list in input order, sum as the total of those values, average as sum divided by n, and a formula string restating (x1 + x2 + … + xn) / n. A single-element list is valid and returns that number as the average. Send a JSON body with one required field named numbers: a non-empty array of finite numbers. Aliases values, list and data are accepted and behave the same. Failed validation — missing numbers, an empty list, a non-finite entry such as NaN or Infinity, a list longer than one hundred thousand values, or a magnitude above one quadrillion — returns invalid_input naming the problem and is never charged. A successful API request is charged the published $0.002 base price with unit item. Pair classroom examples deliberately: two four six eight ten produce six; one point five, two point five and negative one produce one; an empty list demonstrates the invalid_input path.

Where an average calculator earns its keep, and what it is not

Pair classroom examples deliberately so learners can check by hand: two, four, six, eight and ten produce six; ten, twenty and twenty-five produce about 18.3333; an empty list demonstrates the invalid_input path. This page is not a mean-median-mode summary, which reports three descriptive statistics at once and ranks for a different search. It is not an average-percentage calculator, which treats the figures as percents already expressed out of one hundred. It is not a weighted mean, a geometric mean, or a harmonic mean. Keep magnitudes inside the published absolute limit and keep the list within one hundred thousand values so interactive Worker and browser paths stay fast. Failed tasks that return invalid_input do not consume prepaid balance, which keeps exploratory scripts cheap when learners send empty arrays or stray text. API pricing remains the flat $0.002 per successful request.

Quiz points and homework checks

Average a list of raw scores (2, 4, 6, 8, 10) and check the mean against a deterministic browser or API result without converting to percents first.

How is the average calculated?

Send a non-empty list of finite numbers. The API returns (x1 + x2 + … + xn) / n as average, plus count and the sum.

What does the average calculator cost?

The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.

Read the full KIT documentation →