Average Calculator
Compute mean, median, mode, range and standard deviation.
About the Average Calculator
The average calculator computes five descriptive statistics for any list of numbers: the arithmetic mean, the median, the mode, the range, and the standard deviation. These are the five quantities most often reported when summarising a dataset, and together they give a much richer picture than the mean alone, which can be misleading when the data is skewed or contains outliers.
The mean is the sum of the values divided by the count. The median is the middle value when the data is sorted, which is more robust to outliers than the mean. The mode is the value that appears most often. The range is the difference between the largest and smallest values, a simple measure of spread. The standard deviation measures how far the values typically deviate from the mean.
This tool handles any number of inputs separated by commas, spaces, or newlines. It automatically detects whether the mode is unique, bimodal (two modes), multimodal, or absent (all values appear once). All statistics are computed locally in your browser, so you can paste sensitive data such as salaries or test scores without it leaving your device.
How It Works
Each statistic is computed using a standard formula:
Mean = sum(x_i) / n
Median = middle value (or average of two middle values) of the sorted data
Mode = the value(s) with the highest frequency
Range = max(x_i) - min(x_i)
Variance = sum((x_i - mean)^2) / n
Std dev = sqrt(variance)
The mean is the arithmetic average and is the most widely used measure of central tendency. It is sensitive to outliers: a single very large or very small value can pull the mean far from the bulk of the data. The median is more robust because it depends only on the middle value or values of the sorted data, not on the magnitudes of the extremes.
The mode is the only measure of central tendency that applies to categorical as well as numerical data. A dataset can have one mode (unimodal), two modes (bimodal), several modes (multimodal), or no mode at all if every value appears the same number of times. The calculator detects all of these cases.
The standard deviation reported here is the population standard deviation, which divides by n. If you are working with a sample and want to estimate the spread of the underlying population, divide by n-1 instead; use the dedicated standard deviation calculator for that case.
Worked Examples
Using the default dataset 12, 15, 18, 22, 15, 30, 18, 15, the calculator first sorts the values: 12, 15, 15, 15, 18, 18, 22, 30. The sum is 145, so the mean is 145 / 8 = 18.125. With eight values, the median is the average of the fourth and fifth sorted values: (15 + 18) / 2 = 16.5.
The value 15 appears three times, more than any other value, so the mode is 15. The range is 30 - 12 = 18. The variance is the average squared deviation from the mean, and the standard deviation is its square root, approximately 5.86.
Notice that the mean (18.125) is higher than the median (16.5) because the value 30 pulls the mean upward. This is a classic sign of right-skewed data. When the mean and median differ substantially, the median is often a better summary of the typical value.
When to Use This Tool
Use the average calculator whenever you need to summarise a list of numbers:
- Computing class averages or test score distributions in education.
- Summarising monthly sales, revenue, or expense figures for a small business.
- Analysing survey responses such as customer satisfaction ratings.
- Tracking personal metrics like weight, running pace, or sleep duration.
- Comparing two datasets by their central tendency and spread.
- Detecting outliers that inflate the mean relative to the median.
- Teaching introductory statistics with a hands-on tool.
Limitations & Disclaimer
This calculator reports descriptive statistics only and does not perform inferential analysis, hypothesis testing, or confidence interval estimation. The standard deviation reported is the population version (dividing by n). Very large datasets may be slow to process in the browser. For statistical inference, use a dedicated statistics package. See our disclaimer for full details.
Frequently Asked Questions
What is the difference between mean, median, and mode?
The mean is the arithmetic average, the median is the middle value of the sorted data, and the mode is the most frequently occurring value. The mean is sensitive to outliers, the median is robust, and the mode is the only measure that works for categorical data.
When should I use the median instead of the mean?
When the data is skewed or contains outliers. Income distributions, house prices, and website traffic are typically right-skewed, so the median gives a better picture of the typical value. The mean is preferable for symmetric, roughly bell-shaped distributions.
Can a dataset have more than one mode?
Yes. A bimodal dataset has two values with the same highest frequency, and a multimodal dataset has three or more. The calculator detects all of these cases and reports every mode. If every value appears exactly once, the dataset has no mode.
Why is the standard deviation useful?
It measures how spread out the values are around the mean. A small standard deviation means the values are clustered tightly; a large one means they are spread widely. Two datasets can have the same mean but very different spreads, which the standard deviation reveals.
Is the standard deviation here the population or sample version?
This calculator reports the population standard deviation, which divides by n. If your data is a sample drawn from a larger population and you want to estimate the spread of that population, use the sample standard deviation (dividing by n-1) instead, available in the dedicated standard deviation tool.
How are the numbers separated in the input?
You can separate numbers with commas, spaces, newlines, or any combination. The calculator splits on any whitespace or comma, trims each token, and ignores empty ones. This makes it easy to paste data directly from a spreadsheet or text file.
Last updated: July 21, 2026 · Author: HT99 Tools Editorial Team · Reviewed by: HT99 Tools Editorial Team