Statistics Calculator: Mean, Median and Standard Deviation
By HesaplayıcıHow we calculate
The statistics calculator computes the count, sum, arithmetic mean, median, modes, minimum, maximum and range of any number list, alongside both sample and population variance and standard deviation. Type values directly or paste a spreadsheet column; every observation carries equal weight and every formula step is shown.
Worked example: Two modes in exam scores
Arithmetic mean
463
- Count
- 5
- Sum
- 2,315
- Median
- 480
- Minimum
- 430
- Maximum
- 495
- Range
- 65
- Number of modes
- 2
- Population variance (σ²)
- 756
- Population standard deviation (σ)
- 27.5
- Sample variance (s²)
- 945
- Sample standard deviation (s)
- 30.74
Step by step
Count
n = Count
n = 5
Sum
Σx = x₁ + … + xₙ
Σx = 2,315
Arithmetic mean
x̄ = Σx / n
2,315 / 5 = 463
Median
Median = x₍(n+1)/2₎
x₍3₎ = 480
Minimum
Minimum = x₍₁₎
x₍₁₎ = 430
Maximum
Maximum = x₍ₙ₎
x₍5₎ = 495
Range
Range = max − min
495 − (430) = 65
Number of modes
Number of modes = count(f(x) = fmax > 1)
Count of repeated values tied for highest frequency = 2
Modes and frequencies: Value
430 (Frequency: 2) = 430
Modes and frequencies: Value
480 (Frequency: 2) = 480
Population variance (σ²)
σ² = Σ(x − x̄)² / n
3,780 / 5 = 756
Population standard deviation (σ)
σ = √σ²
√(756) = 27.5
Sample variance (s²)
s² = Σ(x − x̄)² / (n − 1)
3,780 / (5 − 1) = 945
Sample standard deviation (s)
s = √s²
√(945) = 30.74
Measures of center and spread
Standard deviation measures how far observations typically sit from the mean in the same units as your data (dollars, centimeters, test points); smaller values indicate tight clustering and larger values indicate wider spread. Variance averages the squared deviations, and standard deviation is its square root:
- Sum and mean:
sum = Σx,mean = Σx / n - Median: Middle ordered value at position
(n + 1) / 2for oddn, or the average of positionsn / 2andn / 2 + 1for evenn. - Mode: Every repeated value tied for the highest frequency, listed in ascending order (none if every value occurs once).
- Range:
maximum − minimum - Population variance and standard deviation:
σ² = Σ(x − mean)² / n,σ = √σ² - Sample variance and standard deviation (Bessel’s correction):
s² = Σ(x − mean)² / (n − 1),s = √s²
Which statistic should you read?
| Statistic | What it describes | Best used when |
|---|---|---|
| Arithmetic mean | Balance point of all observations | Data is roughly symmetric with no extreme outliers |
| Median | Exact middle value of the sorted list | Skewed data with outliers (salaries, house prices) |
| Mode | Most frequently repeated value(s) | Discrete categories or recurring scores |
Population (σ, divisor n) | True spread of the complete group | Your list contains every member of the group studied |
Sample (s, divisor n−1) | Unbiased spread estimate of a larger group | Your list is a survey, experiment or sample subset |
Worked example
For the list 10, 12, 12, 14, 22 (n = 5):
- Mean:
(10 + 12 + 12 + 14 + 22) / 5 = 70 / 5 = 14. - Median, mode and range: Middle value is 12 (median),
12repeats twice as the sole mode, and range is22 − 10 = 12. - Sum of squared deviations:
(−4)² + (−2)² + (−2)² + 0² + 8² = 16 + 4 + 4 + 0 + 64 = 88. - Population:
σ² = 88 / 5 = 17.6→σ = √17.6 ≈ 4.195. - Sample:
s² = 88 / 4 = 22→s = √22 ≈ 4.690.
Input rules and limits
Accepts 1 to 1,000 numbers between −10¹² and 10¹². Use a decimal point and no thousands separators (1.5, 2, 2, 3.5), or paste a single column from Excel or Google Sheets. Observations carry equal weight—enter raw data rather than a grouped frequency table. Summation uses compensated arithmetic and variance computes deviations directly from the mean for numerical stability. Quartiles, percentiles, weighted averages and hypothesis tests are outside scope; to inspect roots separately use the square root calculator, or to compare two averages over time use the percentage change calculator.
Frequently Asked Questions
When do mean, median and mode give noticeably different answers?
Extreme outliers (such as one very high salary in a small group) pull the arithmetic mean sharply upward while leaving the middle ordered value (median) unchanged. The mode is the most frequent repeated value; datasets can have multiple modes or none.
Should I read sample or population standard deviation?
Read population results (divisor n) if your list is the entire group you are studying. Read sample results (divisor n − 1, Bessel’s correction) if your list is a subset used to estimate a larger population.
How should I paste numbers from a spreadsheet?
Paste a column directly or separate values with spaces, commas, semicolons or new lines using a decimal point and no thousands separators (for example 1.5, 2, 2, 3.5).
Why is sample standard deviation omitted when I enter a single number?
Sample variance divides by (n − 1), which becomes 0 for n = 1 and is undefined. Population variance and standard deviation are well-defined and equal 0.
Calculation rules
- Every observation has equal weight. Population variance divides by n; sample variance divides by n − 1. For one observation, sample variance and standard deviation are omitted; both population values are zero.
- There is no mode when no value repeats. All repeated values tied for highest frequency are listed in ascending order. If the same value is entered several times, it is the sole mode and variance and standard deviation are zero.
- Each value must be from −10¹² to 10¹². Binary floating-point precision limits very close values. Results are not rounded during calculation; the display formats them. Grouped data and weights are not supported.