Paste a dataset to get its mean, median, sample and population standard deviation, sum, count and range instantly, with full steps shown.
Statistics Calculator
Paste a list of numbers and get its mean, median, both standard deviations and range in one clean summary.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Statistics Result
Calculated locally in your browser
—
Name
—
Data values (comma or space separated)
—
Input 2
—
Result
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
To summarise the dataset 4, 8, 15, 16, 23 and 42: add them for a sum of 108 and divide by 6 values to get a mean of 18. The median is 15.5, halfway between the middle pair, and the sample standard deviation is about 13.49, showing the values spread widely around the mean.
- Mean = sum of values divided by count
- Sample SD divides squared deviations by n-1
- Median is the middle value of sorted data
Which summary to report
Reference values for this calculator.
| Situation | Centre | Spread |
|---|---|---|
| Roughly symmetric data | Mean | Standard deviation |
| Skewed data or outliers | Median | Range / IQR |
| Sample from a population | Mean | Sample SD (n-1) |
| Entire population measured | Mean | Population SD (n) |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Summarises a whole dataset in one paste: centre (mean and median), spread (both sample and population standard deviation), count, sum and range. Ideas enhancement: showing both SD versions side by side ends the most common statistics mix-up — dividing by n-1 for a sample versus n for a full population.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Six-value dataset
4, 8, 15, 16, 23, 42
| Calculation | Steps |
|---|---|
| Sum = 108, n = 6, mean = 108 / 6 = 18. Sorted middle pair is 15 and 16, so median = 15.5. Squared deviations sum to 910; sample variance = 910 / 5 = 182, sample SD = 13.49. | Mean 18, median 15.5, sample SD 13.49. |
Result
Example 2
Two values only
10, 20
| Calculation | Steps |
|---|---|
| Mean = 30 / 2 = 15. Median = (10 + 20) / 2 = 15. Sample SD = sqrt(50 / 1) = 7.07. | Mean 15, median 15, sample SD 7.07. |
Result
Example 3
Three decimals
1.5, 2.5, 3.5
| Calculation | Steps |
|---|---|
| Sum = 7.5, mean = 7.5 / 3 = 2.5. Median = 2.5. Sample SD = sqrt(2 / 2) = 1. | Mean 2.5, median 2.5, sample SD 1. |
Result
How to use this calculator
Step 1
Paste or type your dataset into the data field, separated by commas or spaces.
Step 2
Check the count (n) in the steps matches how many values you entered.
Step 3
Read the mean as the main result.
Step 4
Use the median if your data is skewed or has outliers — it resists them better.
Step 5
Pick sample SD for a sample and population SD only when you measured everything.
Frequently asked questions
What is the difference between sample and population standard deviation?
Sample SD divides the squared deviations by n-1 to correct bias when estimating a population from a sample. Population SD divides by n and is only right when the data is the whole population.
When should I use the median instead of the mean?
When data is skewed or has extreme outliers — incomes, house prices, waiting times. The median is the middle value, so one huge figure cannot drag it the way it drags the mean.
How do I enter the data?
As a list separated by commas or spaces, for example 4, 8, 15, 16, 23, 42. You need at least two numbers for a standard deviation to exist.
What does the range tell me?
Range = largest minus smallest. It is a quick spread measure but uses only two values, so treat it as a rough guide next to the standard deviation.
Can this calculate test statistics like t or z?
It gives the ingredients — mean, SD and n — from which t and z statistics are built, but it does not itself run hypothesis tests or return p-values.
About this calculator
A statistics calculator condenses a list of numbers into the summary figures that describe it: how many values there are, their total, their average (mean), their middle value (median), and how spread out they are (standard deviation and range). It is the first step of almost every data analysis.
The mean and median both claim to be the 'typical' value, but they behave differently. The mean uses every value, so it is efficient but fragile: one extreme score pulls it. The median only cares about position, so it stays put when an outlier appears. Reporting both, as this calculator does, immediately reveals skew — when the mean sits far above the median, a few large values are dominating.
Standard deviation measures spread in the same units as the data. The subtlety is the denominator: for a sample you divide by n-1 (Bessel's correction) because a sample's own mean sits closer to its points than the true population mean would, which would otherwise understate the spread. For a complete population you divide by n. This calculator returns both and labels them, so you can pick consciously.
A summary is not the data. Two datasets can share a mean and SD while looking completely different plotted, which is why the steps also report count, sum, minimum, maximum and range — enough to sanity-check that the numbers you pasted were the numbers you meant.
Use it on exam scores, experimental measurements, survey results, sales figures, sports statistics or any list of numbers you need to describe in a sentence instead of reading out in full.
How to calculate it yourself
Step 1
Add all the values and divide by how many there are to get the mean.
Step 2
Sort the values; the middle one (or the average of the middle pair) is the median.
Step 3
Subtract the mean from each value and square each difference.
Step 4
Add the squared differences; divide by n-1 for a sample SD or n for a population SD.
Step 5
Take the square root to return to the original units.
Real-life examples
Class test scores
A teacher records six quiz scores — 4, 8, 15, 16, 23 and 42 out of 50 in a practice set — to describe the class before a parents' evening.
Mean = 108 / 6 = 18. Median = 15.5. The mean sitting above the median flags the single 42 pulling the average up.
Report median 15.5 as typical, and mention the one high score separately.
Weighing produce batches
A market stall weighs three sample bags of potatoes at 1.5, 2.5 and 3.5 kg to check the scale's consistency.
Mean = 2.5 kg, sample SD = 1 kg. An SD of 1 kg on a 2.5 kg mean is very wide, so the filling process, not the scale, needs attention.
Average bag 2.5 kg with a worrying 1 kg spread.
Ideas & use cases
- Outlier alarm: if mean and median disagree strongly, re-check the extreme values for data-entry errors before publishing any summary.
- Before-and-after comparisons: summarise a metric before and after a change and compare medians and SDs, not just averages, to see whether consistency improved too.
- Exam revision: paste your practice scores weekly and watch the SD shrink — consistency, not one good day, is what raises the mean reliably.
Limitations & sources
- Descriptive summaries only: no hypothesis tests, p-values, quartiles/IQR, mode or regression, and datasets are processed as plain numbers with no weighting.
Sources: Standard descriptive statistics definitions (mean, median, Bessel-corrected sample variance) per NIST/SEMATECH e-Handbook of Statistical Methods.
