Statistics Calculator

Paste a list of numbers to get full descriptive statistics: mean, median, mode, range, variance, standard deviation, quartiles, IQR, outliers, skewness and a frequency table.

Statistics calculator
Mean (average)

Central tendency

    Spread

      Position and shape

        Sorted data

        ValueFrequencyRelative frequency

        Choose Sample when your numbers are a sample from a larger group (divides by n − 1); choose Whole population when you have every value (divides by n). Quartiles use the median-of-halves method (exclusive), the one taught in most schools. Outliers are values more than 1.5 × IQR beyond the quartiles.

        On this page

        A statistics calculator gives a full set of descriptive statistics for a list of numbers in one go: the count, sum, mean, median, mode, range, variance, standard deviation, quartiles, interquartile range, outliers, skewness and kurtosis. It also sorts your data and builds a frequency table, and lets you choose whether your numbers are a sample or a whole population, which changes the variance and standard deviation.

        For example, the data set 12, 15, 11, 19, 15, 22, 14 has a mean of 15.43, a median of 15, a mode of 15, a range of 11 and a sample standard deviation of 3.87. Its quartiles are 12 and 19, so the interquartile range is 7.

        How to use the statistics calculator

        1. Type or paste your numbers into the box, separated by commas, spaces or new lines. You can paste a column straight from a spreadsheet.
        2. Choose Sample if your numbers are a sample from a larger group, or Whole population if they include every value you’re interested in.
        3. Press Calculate. The results are grouped into central tendency, spread, and position and shape, followed by the sorted data and a frequency table.

        Measures of central tendency

        These describe the typical or central value of the data.

        • Mean: the sum of the values divided by the count. For our example, 108 ÷ 7 ≈ 15.43.
        • Median: the middle value once the data is sorted. With an even count, it’s the average of the two middle values. Sorted, our example is 11, 12, 14, 15, 15, 19, 22, so the median is 15.
        • Mode: the value that appears most often. Here 15 appears twice. A data set can have no mode or several modes.
        • Geometric mean: the nth root of the product of the values, used for growth rates and ratios. It needs all values above zero.
        • Harmonic mean: the count divided by the sum of reciprocals, used for averaging rates such as speeds.

        Measures of spread

        These describe how spread out the values are.

        • Range: maximum minus minimum. Simple, but heavily affected by extreme values.
        • Variance: the average squared distance from the mean. For a sample, divide the sum of squared deviations by n − 1; for a population, divide by n.
        • Standard deviation: the square root of the variance, in the same units as the data.
        • Interquartile range (IQR): Q3 minus Q1, the spread of the middle 50% of the data. It’s not affected by outliers.
        • Coefficient of variation: the standard deviation as a percentage of the mean, which lets you compare variability between data sets with different units or scales.
        • Standard error of the mean: the sample standard deviation divided by √n. It shows how precisely the sample mean estimates the population mean.
        • Mean absolute deviation: the average distance from the mean, without squaring.

        Worked example step by step

        Using the data 12, 15, 11, 19, 15, 22, 14 as a sample:

        1. Count and sum: n = 7 and the sum is 108.
        2. Mean: 108 ÷ 7 ≈ 15.4286.
        3. Deviations from the mean: −3.43, −0.43, −4.43, 3.57, −0.43, 6.57 and −1.43.
        4. Square and add them: the sum of squared deviations is about 89.71.
        5. Sample variance: 89.71 ÷ (7 − 1) ≈ 14.95.
        6. Sample standard deviation: √14.95 ≈ 3.87.
        7. Coefficient of variation: 3.87 ÷ 15.43 × 100 ≈ 25.1%, a moderate amount of variation.

        If the same seven numbers were a whole population, the variance would be 89.71 ÷ 7 ≈ 12.82 and the standard deviation about 3.58.

        Sample or population?

        Use population statistics when you have every value in the group you care about, such as the test scores of all 30 students in one class when you only care about that class. Use sample statistics when your data is a subset used to learn about a bigger group, such as 30 students surveyed to understand a whole school.

        The sample formulas divide by n − 1 instead of n. This adjustment, called Bessel’s correction, compensates for the fact that a sample’s values tend to be closer to their own mean than to the true population mean. Without it, a sample would underestimate the population’s variability. For large data sets, the difference is tiny.

        Quartiles and the five-number summary

        Quartiles split sorted data into four equal parts. Q1 is the median of the lower half, the median is Q2, and Q3 is the median of the upper half. This calculator leaves the overall median out of both halves when the count is odd, the method used in most school textbooks and in box plots. Spreadsheets sometimes use different methods, which can give slightly different quartiles for small data sets.

        The five-number summary lists the minimum, Q1, median, Q3 and maximum. For our example it’s 11, 12, 15, 19, 22. These five numbers are exactly what a box-and-whisker plot shows.

        Finding outliers

        A common rule treats any value more than 1.5 × IQR below Q1 or above Q3 as an outlier. Take the data 10, 12, 12, 13, 12, 11, 14, 13, 15, 10, 10, 10, 100. Q1 is 10 and Q3 is 13.5, so the IQR is 3.5, and the fences are 10 − 5.25 = 4.75 and 13.5 + 5.25 = 18.75. The value 100 is far above the upper fence, so it’s an outlier. Notice how it drags the mean up to 18.62 while the median stays at 12. Always check outliers: they may be data-entry errors, or genuinely important unusual cases.

        Skewness and kurtosis

        Skewness measures how lopsided a distribution is. A value near zero means roughly symmetrical. Positive skewness means a longer tail on the right, with a few high values pulling the mean above the median; incomes are a classic example. Negative skewness means a longer tail on the left.

        Excess kurtosis describes how heavy the tails are compared with a normal distribution, which has an excess kurtosis of zero. Positive values mean more extreme values than a normal distribution; negative values mean fewer. Both measures are unreliable for very small data sets, so treat them as rough guides when you have fewer than about 20 values.

        Choosing the right average

        SituationBest measure
        Symmetrical data without outliersMean
        Skewed data or outliers, such as house prices or incomesMedian
        Categories or the most popular choiceMode
        Growth rates and percentage changesGeometric mean
        Average speed over equal distancesHarmonic mean

        Where descriptive statistics are used

        Teachers summarise exam results with the mean, median and spread. Businesses track average order values and their variation. Scientists report the mean and standard deviation of repeated measurements, and quality engineers watch the spread of product sizes to keep them within tolerance. In every case, a few well-chosen statistics turn a long list of numbers into something you can understand at a glance.

        Common mistakes

        • Using population formulas for a sample, which underestimates the spread.
        • Forgetting to sort the data before finding the median or quartiles by hand.
        • Reporting the mean for strongly skewed data, where the median better describes a typical value.
        • Deleting outliers without checking why they’re there.
        • Using a comma as a decimal point. Enter 3.5, not 3,5, because commas separate numbers.

        Related calculations

        For related questions, use the average calculator to find the average or weighted average of any numbers, or the confidence interval calculator to find the confidence interval for a mean or proportion.

        Frequently asked questions

        Numbers that summarise a data set, such as the mean, median, mode, range, standard deviation and quartiles. They describe the data without drawing conclusions about a wider population.

        Choose population if your data includes every member of the group you're studying. Choose sample if it's a subset used to learn about a larger group. If unsure, sample is the safer choice.

        A sample tends to sit closer to its own mean than to the true population mean, so dividing by n would underestimate the spread. Dividing by n − 1 corrects this bias.

        There's no universal good value. It depends on the scale of your data. The coefficient of variation, which compares the standard deviation with the mean, is easier to judge across data sets.

        Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are flagged as outliers. The calculator lists the fences and any values outside them.

        The data has a longer tail on the right, usually with the mean above the median, as with incomes or house prices.

        There are several methods for quartiles. This calculator uses the median-of-halves method taught in schools. Excel's QUARTILE.INC and QUARTILE.EXC use interpolation, so small data sets can give slightly different results.

        Yes. If two or more values tie for the highest frequency, all of them are modes. If every value appears once, there is no mode.

        Up to 100,000 values, separated by commas, spaces or new lines.

        It's the sample standard deviation divided by the square root of the count. Smaller values mean the sample mean is a more precise estimate of the population mean.

        Yes. Copy a column or row of numbers and paste it into the box; line breaks and tabs are treated as separators.