Descriptive Statistics Calculator

Paste a data set to get the mean, median, mode, standard deviation, variance, quartiles, IQR, range and CV, for a sample or a population, with the working.

Statistics Calculator

Calculate comprehensive statistical measures including mean, median, mode, standard deviation, variance, quartiles, and more. Enter your data set to analyze central tendency, dispersion, and distribution characteristics.

Data Input

Values can be separated by commas, semicolons, spaces, tabs or new lines. Do not use thousands separators (write 1000, not 1,000). Entries that are not numbers are listed as ignored.

Calculation Options

Descriptive Statistics Calculator

Most people reach for a statistics calculator expecting it to hand them a single "correct" answer, and that expectation is the first thing that goes wrong. Descriptive statistics are not one number; they are a set of summaries that each answer a different question about the same data, and the answers only mean something when you know which question you asked. A mean can tell you the center of a set, but it will not tell you whether the set is tightly packed or wildly spread out. A standard deviation can tell you spread, but it will not tell you where the middle sits when the data is skewed. The true skill is not pressing buttons; it is choosing which summary fits the story you are trying to tell, and knowing that a different choice would have given a different but equally valid picture.

What Each Result Means

When you enter a list of numbers and press calculate, the statistics calculator returns a grid of measures. Each one is a different lens on the same data, and each has a precise definition that you should be able to state in one sentence before you ever use it on real numbers.

  • Mean (Average): The sum of all values divided by the count; the arithmetic center of the data.
  • Median: The middle value when the data is sorted from smallest to largest; the 50th percentile.
  • Mode: The most frequently occurring value; a data set can have one, two, many, or no mode at all.
  • Minimum: The smallest value in the set.
  • Maximum: The largest value in the set.
  • Range: The maximum minus the minimum; the simplest measure of spread.
  • Q1 (First Quartile): The median of the lower half of the data; the 25th percentile.
  • Q2 (Second Quartile): The median itself; the 50th percentile.
  • Q3 (Third Quartile): The median of the upper half of the data; the 75th percentile.
  • Variance (Sample): The average of the squared differences from the mean, using n-1 in the denominator to correct for sampling from a larger population.
  • Standard Deviation (Sample): The square root of the sample variance; the typical distance of values from the mean, in the original units.

Worked Example: A Ten-Value Data Set

Let us take a concrete set of ten numbers: 4, 8, 6, 5, 3, 9, 7, 2, 8, 5. Follow along with the calculator, and the steps below will appear in the "Steps" section after you press calculate.

First, sort the data: 2, 3, 4, 5, 5, 6, 7, 8, 8, 9. The minimum is 2 and the maximum is 9, so the range is 9 - 2 = 7.

For the mean, sum all values: 2+3+4+5+5+6+7+8+8+9 = 57. Divide by 10 (the count) to get 5.7. The median sits between the 5th and 6th values (5 and 6), so the median is (5+6)/2 = 5.5. The mode is the value that appears most often: 5 appears twice and 8 appears twice, so the data set is bimodal with modes 5 and 8.

For quartiles, we use the method that treats the median as a boundary. The lower half of the sorted data (values below the median) is 2, 3, 4, 5, 5; its median is 4, so Q1 = 4. The upper half (values above the median) is 6, 7, 8, 8, 9; its median is 8, so Q3 = 8. The five-number summary is therefore Minimum = 2, Q1 = 4, Median = 5.5, Q3 = 8, Maximum = 9.

For variance, subtract the mean (5.7) from each value, square the differences, and sum them: (2-5.7)² + (3-5.7)² + ... + (9-5.7)² = 13.69 + 7.29 + 2.89 + 0.49 + 0.49 + 0.09 + 1.69 + 5.29 + 5.29 + 10.89 = 48.1. Divide by n-1 (which is 9) to get the sample variance: 48.1 / 9 = 5.3444.The calculator rounds to four decimal places for display.

Ten-Value Data Set: Summary at a Glance

MeasureValueWhat It Tells You
Minimum2Smallest value
Q1425th percentile; median of lower half
Median (Q2)5.550th percentile; middle value
Q3875th percentile; median of upper half
Maximum9Largest value
Range7Max - Min; crude spread
Mean5.7Arithmetic average
Sample Variance7.7Average squared deviation, n-1 denominator
Sample Std Dev2.7749Typical distance from mean, original units
Modes5, 8Bimodal; two values tie for most frequent

Which Quartile Method This Calculator Uses

There is no single universal way to compute quartiles, and this is the most common source of a one-digit difference between calculators. The method used here is the one taught in most introductory statistics courses, sometimes called the "median of halves" or "Tukey's hinges" method: sort the data, find the median (Q2), then find the median of the lower half for Q1 and the median of the upper half for Q3, excluding the median itself from both halves when the count is odd.

For our ten-value set, the count is even, so the median is the average of the two middle values, and each half has five numbers. The lower half is 2, 3, 4, 5, 5; its median is 4. The upper half is 6, 7, 8, 8, 9; its median is 8. This matches what a TI-84 calculator would give for the same data under its default setting, and it matches most high school textbooks in the United States.

Some software, including certain spreadsheet functions, uses a different method that interpolates between values, producing Q1 = 3.5 and Q3 = 8.5 for this same data. Neither is wrong; they answer slightly different questions about position. If you are checking homework against a classmate's result, confirm which method your instructor expects. Trust the method shown here, because the calculator’s steps display exactly how each quartile was derived.

Mean Median Mode Calculator: When the Center Is Not Enough

The mean, median, and mode are the three classic measures of central tendency, and a dedicated mean median mode calculator usually stops there. This statistics calculator includes all three, but it also tells you why they differ. For the ten-value set, the mean is 5.7 and the median is 5.5; they are close because the data is nearly symmetric. The mode is 5 and 8, which tells you that two values repeat, but it does not tell you anything about the center at all; a mode can be far from the mean in skewed data.

Here is the rule of thumb: if the mean and median are close, the data is roughly symmetric, and the standard deviation is a fair summary of spread. If the mean is higher than the median, the data is right-skewed (the tail pulls the mean up). If the mean is lower, it is left-skewed. In either skewed case, the median is the more honest center, and the interquartile range (Q3 - Q1) is a better measure of spread than the standard deviation, because the standard deviation is also pulled by the tail.

The mode has a special failure case. A continuous variable with no repeated values, or a data set where every distinct value appears exactly once, has no mode. This calculator returns "No mode" in that situation, which is correct; inventing a mode for continuous data is a classic error. A bimodal data set, like ours, signals that two subgroups may be hiding inside the numbers, and a single mean will hide them.

Standard Deviation Calculator: Sample vs. Population

The standard deviation calculator uses the sample formula, with n-1 in the denominator.

That is a deliberate choice, and you need to know why before you copy the number into a report. If your numbers are a complete population (every single item you care about, not a sample), then the population standard deviation is the one you want, and the sample version will be slightly too large. If your numbers are a sample, the n-1 correction makes the sample variance an unbiased estimate of the population variance, and the sample standard deviation is the square root of that.

Here is the catch that trips up most students: the square root of an unbiased variance is not an unbiased standard deviation. The sample standard deviation is biased slightly low as an estimate of the population standard deviation, but the bias is small for moderate sample sizes and is the standard convention in every introductory course. This calculator follows that convention, and the steps section shows the exact arithmetic, so you can see the n-1 in the denominator.

A low standard deviation means the values cluster close to the mean; a high one means they are spread out. There is no universal "good" or "bad" threshold. A standard deviation of 2.31 on a scale of 0 to 10 is high; the same number on a scale of 0 to 100 is low. What matters is the ratio of the standard deviation to the mean, which is the coefficient of variation (CV = SD / mean). This calculator does not compute CV, but you can do it in one step from the results it gives.

Five Number Summary Calculator and Box Plot Fundamentals

The five-number summary is the minimum, Q1, median, Q3, and maximum, and it is the skeleton of a box plot. A five number summary calculator typically stops there, but this statistics calculator gives you the same five numbers as part of its full output, and it also gives you the range and the quartiles separately so you can construct the box plot by hand if you want.

For our data, the five-number summary is 2, 4, 5.5, 8, 9. The box would span from Q1 (4) to Q3 (8), with a line at the median (5.5). The whiskers extend to the minimum and maximum because there are no outliers; if a value fell more than 1.5 times the interquartile range (IQR) below Q1 or above Q3, it would be plotted as a dot and the whisker would stop at the next value inside that fence. Here, IQR = 8 - 4 = 4, so the fences are at 4 - 6 = -2 and 8 + 6 = 14; no values fall outside, so no outliers.

The box plot is the single best visual check on whether the mean and median tell the same story. If the median line is not in the middle of the box, the data is skewed. If one whisker is much longer than the other, there is a tail. If you see a dot beyond a whisker, you have an outlier that deserves investigation, not deletion; it might be a data entry error, or it might be the most interesting point in the set.

Quartile Calculator: Understanding IQR and Outliers

A quartile calculator divides your data into four equal parts, and the interquartile range (IQR) is the difference between Q3 and Q1. For our data, IQR = 8 - 4 = 4. The IQR is the spread of the middle 50% of your data, and it is far more resistant to outliers than the range or the standard deviation. If you have a data set with one enormous value, the range explodes, the standard deviation inflates, but the quartiles barely move because they are based on positions, not magnitudes.

The IQR is also the basis for the standard outlier rule: any value below Q1 - 1.5 * IQR or above Q3 + 1.5 * IQR is flagged as a potential outlier. For our data, the fences are at -2 and 14, so nothing is flagged. But consider a data set like 2, 3, 4, 5, 6, 7, 8, 9, 10, 100. The median is 6.5, Q1 is 4.5, Q3 is 9.5, and the IQR is 5. The upper fence is 9.5 + 7.5 = 17, so 100 is a clear outlier. The mean of that set is 15.4, dragged up by the 100, but the median is 6.5, which is far more representative of the bulk of the data.

The five-number summary and the quartile calculator are not optional extras; they are the difference between describing your data accurately and being misled by a single bad value. The mean and standard deviation are powerful, but they are not robust. The median and IQR are.

Variance and Standard Deviation: The Square Root Relationship

Variance and standard deviation are the two most confused measures in descriptive statistics, and the confusion is understandable because they are the same idea expressed two ways. The variance is the average of the squared differences from the mean; the standard deviation is the square root of that average. Squaring the differences removes the negative signs and gives more weight to larger deviations, which is both a strength and a weakness.

The strength is that variance has useful mathematical properties, like additivity for independent variables. The weakness is that variance is in squared units; if your data is in dollars, the variance is in dollars squared, which has no intuitive meaning. The standard deviation returns the measure to the original units, which is why it is the one people quote. For our data, the variance is 5.3444 and the standard deviation is 2.3117. The variance is not "wrong" to report, but it is uninterpretable to most readers; the standard deviation is the one that means something.

Here is the honest caveat: the sample standard deviation is not the average distance from the mean. That honor belongs to the mean absolute deviation, which divides the sum of absolute differences by n. The standard deviation is the root mean square of the deviations, which is always larger than or equal to the mean absolute deviation, and it is larger by exactly the amount that penalizes large errors. If you want a measure that is robust to outliers, the median absolute deviation is a better choice; the standard deviation will always be pulled by extreme values.

Descriptive Statistics Excel and Spreadsheet Equivalents

Most people first meet descriptive statistics in a spreadsheet program, where a column of numbers and a few built-in functions produce the same measures computed by hand.

The advantage of a dedicated descriptive statistics calculator over a spreadsheet is transparency: the steps section shows every intermediate value, so you can trace exactly where a result came from. A spreadsheet cell containing =STDEV.S(A1:A10) gives you a number but no derivation, and if you mistype the range, you get a plausible-looking wrong answer with no warning.

The spreadsheet approach is fine for a quick check, but it has three traps. First, the default STDEV function in older spreadsheet versions computes the sample standard deviation, not the population one; you have to know whether to use STDEV.S or STDEV.P. Second, the quartile function in some spreadsheets uses a different interpolation method than the one shown here, so your Q1 and Q3 can differ from this calculator's output by a fraction. Third, the mode function in some spreadsheets returns only the first mode, not all of them, so a bimodal data set like ours would show only one mode unless you use a more advanced array formula.

For students checking homework, this statistics calculator is the better tool because it shows its work. For analysts who need to process thousands of rows, a spreadsheet is faster. The two are not in competition; they serve different stages of the same workflow. Compute here first to verify your method, then replicate in your spreadsheet of choice for the full data set.

The Honest Limit of Any Descriptive Statistics Calculator

Every number this statistics calculator produces describes the data you typed in, and nothing more. It cannot tell you whether the data was collected correctly, whether the sample is representative of a larger population, or whether the pattern you see is real or a product of random chance. Those questions belong to inferential statistics, which uses different tools like confidence intervals and hypothesis tests, and no amount of descriptive summary can substitute for them.

The specific limitation is this: descriptive statistics describe the sample, and the sample is only as good as its collection method. If your ten numbers came from a biased source, the mean and standard deviation will faithfully describe that biased source, and they will mislead you about the population you care about. This is not a flaw in the calculator; it is a flaw in the data, and the calculator has no way to know.

Use this to verify your arithmetic, check your homework, and understand your data's shape. But when you report results, pair the five-number summary with a sentence about how the data was collected, and be honest about whether the mean is a fair summary or a hostage to the tail. The calculator gives you the tools; you are the one who has to choose to use them correctly.

Statistics Calculator: Mean, SD, Variance, Quartiles

What is the sample variance for the ten-value data set and how is it calculated?

The sample variance is 5.3444. It is calculated by summing the squared differences from the mean (48.1) and dividing by n-1, which is 9.

Why does the calculator use n-1 in the variance formula instead of n?

The calculator uses the sample variance formula with n-1 to correct for sampling from a larger population, making it an unbiased estimate of the population variance. This is the standard convention in introductory statistics courses.

What are the fences for outliers in the ten-value data set and are any values flagged?

The fences are at -2 and 14, calculated as Q1 - 1.5*IQR and Q3 + 1.5*IQR, where IQR is 4. No values in the data set fall outside these fences, so there are no outliers.

How does the calculator determine quartiles for data sets with an odd number of values?

The calculator uses the 'median of halves' method, where the median is excluded from both halves when the count is odd. Q1 is the median of the lower half, and Q3 is the median of the upper half.

What does it mean if the mean is higher than the median in a data set?

If the mean is higher than the median, the data is right-skewed, meaning the tail pulls the mean up. In such cases, the median is a more honest center, and the interquartile range is a better spread measure than the standard deviation.

Guides on this site