Averages and Statistics Calculator

Describe an unweighted list, with exact averages and an explicit choice of population or sample spread.

Your numbers

Separate up to 200 numbers with commas, spaces or line breaks.

Input limits

Enter signed or unsigned decimals with up to 30 digits per number and up to 12 decimal places. Write fractions and exponents as decimals. Commas separate entries, so omit thousands separators. The full list can contain up to 8,192 characters.

The mean, median, mode and range are the same for either choice. Sample spread needs at least two values.

Results

Arithmetic mean (exact)
5
Decimal: 5. Terminating decimal, exact.
Count
8
Median
9/2
Mode
4
Minimum
2
Maximum
9
Range
7

Spread

Population variance
4
4. Terminating decimal, exact.
Standard deviation
≈ 2
Numerical square root, up to 10 significant digits.

Working

  1. Count n = 8; exact sum = 40.
  2. Mean = sum ÷ count = 5.
  3. Sort all values; average the two middle values for median = 9/2.
  4. Most frequent value: 4; each appears 3 times.
  5. Range = maximum - minimum = 7.
  6. Divide the exact squared-deviation sum by n: variance = 4.
Sorted values
2, 4, 4, 4, 5, 5, 7, 9

How the statistics are calculated

xˉ=∑xin,σ2=∑(xi−xˉ)2n,s2=∑(xi−xˉ)2n−1\bar{x}=\frac{\sum x_i}{n},\quad \sigma^2=\frac{\sum(x_i-\bar{x})^2}{n},\quad s^2=\frac{\sum(x_i-\bar{x})^2}{n-1}

The median is the middle sorted value, or the mean of the two middle values for an even count. Modes are the most frequent repeated values. Range is maximum minus minimum. Standard deviation is the square root of the chosen variance.

Calculations use exact scaled integers and rational arithmetic. Variance is computed from n × sum of squares - sum² with its corresponding denominator, avoiding cancellation from nearby large values.

Worked example: 2, 4, 4, 4, 5, 5, 7, 9

  1. Eight values sum to 40, so the mean is 40 ÷ 8 = 5.
  2. The two middle values are 4 and 5, so the median is 9/2 = 4.5. Mode is 4, occurring three times.
  3. The range is 9 - 2 = 7. Squared deviations from the mean sum to 32.
  4. Population variance is 32 ÷ 8 = 4; population standard deviation is 2. Sample variance is 32/7, and sample standard deviation is approximately 2.138089935.

Reading the results

  • Each observation has equal weight. Repeat a value only when it represents a repeated observation.
  • The mean uses every value and can shift with outliers. The median describes the middle of the sorted list.
  • Choose population spread for the full group of interest, or sample spread for observations used to estimate population variation.
  • Variance has squared units. Standard deviation has the original units. Use one consistent unit across the list.
  • Fractions remain exact. Bracketed decimal digits repeat; unfinished expansions are labelled truncated. Standard deviation is a numerical approximation.

Frequently asked questions

Which average does this calculator show?
The main answer is the unweighted arithmetic mean: add all values and divide by their count. Every entered occurrence has equal weight. Median and mode are shown separately.
How do population and sample variance differ?
Population variance divides the sum of squared deviations from the mean by n. Sample variance divides by n - 1. Choose population when describing the complete group of interest, or sample when using observations to estimate population spread.
What happens with just one value?
The mean, median, minimum and maximum equal that value, and the range is zero. Population variance is zero. Sample variance and sample standard deviation are not defined because n - 1 is zero.
How are multiple modes handled?
Every value tied for the highest frequency is listed in ascending order. If every value occurs only once, the result is No mode. Equivalent decimal spellings such as 1 and 1.0 count as the same value.
Are the results exact?
Mean, median, range and variance are calculated as exact fractions from the decimal digits. Standard deviation uses a numerical square root and is labelled approximate when non-zero. Decimal expansions repeat in brackets or are labelled truncated after 30 places.
How should I enter the list?
Separate values with commas, spaces or line breaks. Use at most 200 numbers and 8,192 characters. Each signed decimal accepts up to 30 total digits, including 12 decimal places. Empty comma entries, exponent notation and fractions are rejected. Commas are separators, not thousands marks.
Does this calculate weighted averages or quartiles?
No. This page describes an unweighted list using mean, median, mode, range, variance and standard deviation. It does not infer weights, missing observations, units or a quartile convention.
Esc