Skip to content
Read full notice

The Calculators House tools are for illustration only. Results are estimates, not financial, tax, medical or legal advice. Statutory rates change; verify figures with a qualified professional before acting on them.

Math

Statistics Calculator

Mean, median, mode, range and standard deviation for a set of numbers.

Your inputs

Your inputs

Separate values with commas or spaces, e.g. 12, 15, 15, 18.

Results

Mean

19.29

Median
18.00
Mode
15
Count
7
Sum
135.00
Minimum
12.00
Maximum
30.00
Range
18.00
Standard deviation (sample)
6.2106 (Use this one when your numbers are a sample of a larger group.)
Standard deviation (population)
5.7499
Variance
33.0612

This link includes your calculator inputs. Share it only with people or services you trust.

How is this calculated?

Worked examples

For the same finite dataset 2, 4, 6: mean = 4 and squared deviations sum to 8. Population variance = 8/3 ≈ 2.6667 and standard deviation ≈ 1.6330; sample variance = 8/2 = 4 and deviation = 2. The displayed variance row is population variance. Sample deviation requires at least two values; one value has no sample estimate. Equal values such as 5, 5, 5 have zero variance. Input must satisfy the tool’s finite-number limits; neither zero variance nor a small sample establishes certainty about a wider population.

NIST — Sample standard deviation

Worked examples

These are the tool’s initial inputs for United States, using model version 2. The results below are calculated from those inputs; they are an illustration, not a personal recommendation.

Inputs

Your numbers
12, 15, 15, 18, 21, 24, 30

Results

Mean
19.29
Median
18.00
Mode
15
Count
7
Sum
135.00
Minimum
12.00
Maximum
30.00
Range
18.00
Standard deviation (sample)
6.2106 (Use this one when your numbers are a sample of a larger group.)
Standard deviation (population)
5.7499
Variance
33.0612

Change one input at a time and compare the result. Rounding can make displayed totals differ slightly; formulas use the underlying numbers.

The formula applies to the input domain shown by the tool. Undefined ratios, invalid dimensions and non-finite results should be corrected rather than interpreted as zero.

Frequently asked questions

Which standard deviation do I want?

Use population standard deviation to describe the complete group represented by your data. Use sample standard deviation when estimating variability in a wider population from a sample; it requires at least two observations. The choice depends on the question, not simply the size of the dataset.

Why is the mode sometimes empty?

Because nothing repeated. A set where every value appears once has no mode; calling every value a mode would be technically arguable and useless.

Related calculators

View all

Ready to start calculating?

Free tools with no sign-up. Calculations run on your device; shared links include your inputs.

Explore all calculators