Calculate mean, median, mode, Q1/Q3 quartiles, population and sample standard deviation, and variance. Enter comma-separated numbers for instant results.
Comma, space, semicolon, or newline separated
Enter numbers above to see statistics
Paste a dataset as comma-, space-, semicolon-, or newline-separated values. This calculator parses the numbers in your browser and returns descriptive statistics without uploading the dataset.
| Category | Measures | What it shows |
|---|---|---|
| Count and total | Count, sum | Dataset size and combined value |
| Central tendency | Mean, median, mode | Typical or most frequent values |
| Minimum and maximum | Minimum, maximum, range | Overall limits and their difference |
| Quartiles | Q1, Q2, Q3, IQR | Distribution across four sections |
| Dispersion | Population/sample variance and standard deviation | How far values spread from the mean |
The mean divides the sum by the number of values. The median is the middle value after sorting; for an even-sized dataset, it is the average of the two middle values. A mode is a value with the highest frequency. If every value occurs once, the dataset has no mode.
Quartiles use linear interpolation on sorted values. Q1 is the 25th percentile,
Q2 is the median, and Q3 is the 75th percentile. The interquartile range (IQR)
is Q3 ā Q1, so it describes the middle half of the dataset while reducing the
effect of extreme outliers.
Population variance divides the sum of squared deviations by N. Sample
variance divides by N ā 1 to estimate the spread of a larger population from
a sample. Standard deviation is the square root of variance and uses the same
population or sample convention.
12, 15, 15, 18, 20
For this dataset, the calculator finds a mean of 16, a median of 15, a mode
of 15, and a range of 8. Values can also be entered as:
12
15
15
18
20
JavaScript:
const values = [12, 15, 15, 18, 20];
const mean = values.reduce((sum, value) => sum + value, 0) / values.length;
Python:
from statistics import mean, median, multimode
values = [12, 15, 15, 18, 20]
print(mean(values), median(values), multimode(values))
SQL:
SELECT
COUNT(*) AS count,
SUM(value) AS total,
AVG(value) AS mean,
MIN(value) AS minimum,
MAX(value) AS maximum
FROM measurements;
Use the mean when every value should contribute equally. Use the median when outliers or skewed values could distort the average. Compare population and sample measures based on how the data was collected, not on which result is larger. A low standard deviation means values cluster near the mean; a high standard deviation means they are more dispersed.
This tool is provided for general informational and utility purposes only. Results may be inaccurate, incomplete, outdated, or contain errors. Always verify results before relying on or using them.
Some tools may use AI, automated processing, third-party services, or server-side processing. Do not rely on these tools as a substitute for professional advice.
Use at your own risk. BestToolOnline makes no guarantees regarding the accuracy, reliability, completeness, availability, or suitability of results, to the maximum extent permitted by applicable law.
See our Terms of Service and Privacy Policy for complete details.