Statistics Calculator
Enter a dataset to calculate mean, median, mode, range, quartiles, variance, standard deviation, and other descriptive statistics instantly.
Enter your data
Use at least one finite number. For sample variance and standard deviation, two or more values are required. Quartiles use the median-of-halves method.
Statistical results
Sorted dataset
4, 7, 7, 9, 10, 12, 15, 16
Calculation details
- Count: 8 values.
- Sum: 80.
- Mean: 80 ÷ 8 = 10.
How to use the Statistics Calculator
- Enter your numbers in the dataset box.
- Separate values using commas, spaces, semicolons, or line breaks.
- Select Calculate statistics to analyze the data.
- Review the measures of center, spread, quartiles, sorted values, and calculation steps.
- Copy the results or download them as a CSV file for your records.
What are descriptive statistics?
Descriptive statistics summarize the main characteristics of a dataset. Measures of center describe a typical value, while measures of spread describe how much the values vary. These summaries help you understand data before drawing conclusions or performing more advanced analysis.
Important formulas
The mean is the sum of all observations divided by the number of observations. The median is the middle sorted value, or the average of the two middle values when the dataset has an even number of observations.
Standard deviation is the square root of variance. Population measures describe an entire population; sample measures estimate variation using a sample and use n − 1 in the variance denominator.
Measures of spread
- Range: maximum minus minimum.
- Quartiles: Q1 and Q3 mark the medians of the lower and upper halves of the sorted data.
- Interquartile range (IQR): Q3 minus Q1, representing the middle half of the data.
- Mean absolute deviation: the average absolute distance of values from the mean.
Worked example
For the values 2, 4, 4, 6, the sum is 16 and the mean is 16 ÷ 4 = 4. The sorted middle values are 4 and 4, so the median is 4. The mode is 4 because it occurs twice, and the range is 6 − 2 = 4.
Frequently asked questions
What is the difference between mean, median, and mode?
The mean is the arithmetic average, the median is the middle value after sorting, and the mode is the most frequently occurring value. A dataset can have more than one mode or no mode under a frequency-based definition.
Should I use population or sample standard deviation?
Use population standard deviation when your data includes the entire population of interest. Use sample standard deviation when the observations are a sample used to estimate a larger population's variability.
How does this calculator find quartiles?
It sorts the data and uses the median-of-halves method: Q1 is the median of the lower half and Q3 is the median of the upper half. Other statistical software may use a different quartile convention.
What if there are multiple modes?
The calculator reports every value tied for the highest frequency, as long as that frequency is greater than one. If every value occurs once, it reports no mode.
Can I enter negative or decimal numbers?
Yes. Negative numbers, decimal values, and integers are supported. Use a dot as the decimal separator and separate each value with a comma, space, semicolon, or new line.
Are sample variance and standard deviation available for one value?
No. Sample variance and sample standard deviation require at least two observations because their formulas divide by n − 1. The calculator shows them as unavailable for a single value.