Statistics Calculator

Paste any list of numbers and get the complete picture at once: mean, median, mode, standard deviation, variance, quartiles, skewness and more, plus a histogram and box plot that show the shape behind the numbers.

What you get
  • 25+ measures at onceCenter, spread and shape in one summary table.
  • Histogram & box plotSee the distribution, not just the averages.
  • Paste-ready inputCommas, spaces, tabs or line breaks all work.

Your data set

Results update as you type

Decimals and negative numbers are fine, so 4.75 and -12 both work. Values separated by tabs or line breaks paste straight in from a spreadsheet.
0
ADD stores the displayed number into the data set above; C clears the entry and CAD empties the data set. The right-hand keys show statistics of the stored data without changing anything.
Rounding only changes how results are displayed. Every calculation below runs at full precision. Bins decide how finely the histogram groups your values. The automatic setting adapts to how many numbers you have; more bins reveal finer detail, fewer bins show the broader shape.

Runs entirely in your browser. Nothing you paste is sent or saved

Statistics guide

What descriptive statistics are

A data set on its own is just a wall of numbers. Descriptive statistics condense that wall into a handful of figures that answer three questions: where is the middle, how wide is the spread, and what shape does the data form? A statistics calculator computes all of those figures for you, but knowing what each one means is what turns the output into insight.

This page works through the example set 10, 2, 38, 23, 38, 23, 21 as it goes, so you can check every number against the calculator above.

Measures of center: mean, median and mode

All three measures answer the same question, "what is a typical value?", and they often disagree. That disagreement is information, not noise.

  • Mean: the sum of every value divided by how many there are. For the example set, 155 ÷ 7 = 22.14. The mean uses every value, which makes it precise but also sensitive: a single extreme value can pull it a long way.
  • Median: the middle value once the data is sorted, or the average of the two middle values when the count is even. Sorted, the example set is 2, 10, 21, 23, 23, 38, 38, so the median is 23. Half of all values sit below it and half above.
  • Mode: the value that appears most often. Here both 23 and 38 appear twice, so the data is bimodal. If every value appears exactly once there is no mode at all, which the calculator reports as "None". The mode is the only center measure that works for categories (a list of favorite colors has a mode but no mean).

When the mean is clearly larger than the median, a few high values are dragging it up and the data is right-skewed. When it is smaller, low values are dragging it down. In the example the mean (22.14) sits below the median (23) because of the low outlier 2.

There is also a fourth average the calculator reports: the geometric mean, the nth root of the product of all values (about 16.41 here). It only exists when every value is positive, and it is the right average for growth rates and ratios. An investment that gains 100% one year and loses 50% the next ends exactly where it started, yet the arithmetic mean of the two yearly returns claims +25%. The geometric mean of 2 and 0.5, the growth factors, is √(2 × 0.5) = 1, which correctly reads as 0% a year.

Measures of spread: variance and standard deviation

Two data sets can share a mean and still look nothing alike. Spread measures describe how far values typically sit from the center.

σ2 = Σ(xi - μ)2 ÷ N

σ2 population variance · s2 sample variance divides by N - 1 instead · the standard deviation is the square root of either one

  • Variance: the average of the squared distances from the mean. Squaring makes every distance positive but also changes the units (dollars become square dollars), which is why variance is rarely read on its own.
  • Standard deviation: the square root of variance, back in the original units. The example set has a population standard deviation of 12.30 and a sample standard deviation of 13.29. Roughly speaking, "most" values fall within one standard deviation of the mean.
  • Sample vs population: use the population versions (σ) when your data covers everything you care about, such as the scores of all students in one class. Use the sample versions (s) when the data is a sample from a bigger group, because dividing by N - 1 corrects for the fact that a sample slightly underestimates spread.
  • Coefficient of variation: the standard deviation expressed as a percentage of the mean, here 13.29 ÷ 22.14 = 60%. It is the fairest way to compare spread across data sets with different scales: a $2 SD on a $10 stock is volatile, while a $2 SD on a $1,000 stock is calm.
  • Standard error of the mean: the sample SD divided by √n (5.02 here). It estimates how much a sample mean would wobble if you repeated the sampling, and it shrinks as n grows, which is the mathematics behind "bigger samples are more reliable".

Quartiles, the IQR and outliers

The median splits sorted data in half; the quartiles split it into quarters. Q1 is the median of the lower half, Q3 the median of the upper half, and the interquartile range (IQR) is Q3 - Q1, the width of the middle 50% of the data. This calculator uses the median-of-halves method (Tukey's method): with Q1 = 10, Q3 = 38 and IQR = 28 for the example set. Other textbooks interpolate within ordered positions, so a statistics package may report slightly different quartiles for the same data. All of them are legitimate.

Quartiles power the most common rule for flagging outliers. Values more than 1.5 × IQR below Q1 or above Q3 are considered unusual. The fences here run from 10 - 42 = -32 to 38 + 42 = 80, so none of the example values qualify, and the box plot shows no dots outside its whiskers. The same five figures, minimum, Q1, median, Q3 and maximum, form the five-number summary that the box plot draws.

Reading the box plot: the box holds the middle half of your data, the line inside it is the median, and the whiskers stretch to the furthest values that are not outliers. Any dots beyond the whiskers are the values the 1.5 × IQR rule flags. A long upper whisker means a right tail; a median line crowded against the bottom of the box means the same thing from the other direction.

Skewness and kurtosis: the shape of your data

Center and spread do not capture everything. Two sets can share both and still differ in symmetry or in how heavy their tails are.

  • Skewness: near 0 means a symmetric shape. Positive skew means a long right tail (income and house prices are classic cases); negative skew means a long left tail. The example set scores about -0.15, just left of symmetric because of the lone low value 2. As a rough guide, values between -0.5 and 0.5 count as fairly symmetric.
  • Kurtosis (excess): compares the heaviness of your tails with the bell curve. Near 0 is normal-like, clearly positive means heavy tails with more extreme values than a normal distribution would produce, and clearly negative means flat and thin-tailed. The example's -1.05 says the values are spread quite evenly rather than clustered near the mean.

The histogram makes all of this visible at a glance. Tall narrow bars clustered around one point suggest a tight, symmetric set; a long staircase down one side suggests skew; two separate clusters suggest two populations hiding in one data set, which no single average can describe honestly.

A complete worked example, by hand

Nothing builds trust in a statistics calculator like checking one result yourself. Take the five values 1, 3, 4, 7, 8 and follow along:

  • Mean: 1 + 3 + 4 + 7 + 8 = 23, and 23 ÷ 5 = 4.6.
  • Median and mode: sorted, the set is 1, 3, 4, 7, 8, so the median is 4. There is no mode, because every value appears exactly once.
  • Population variance: each value's distance from 4.6 is -3.6, -1.6, -0.6, 2.4 and 3.4. Squaring gives 12.96, 2.56, 0.36, 5.76 and 11.56, which sum to 33.2. Dividing by 5 gives a population variance of 6.64 and a standard deviation of √6.64 = 2.58.
  • Sample variance: the same 33.2 divided by 5 - 1 = 4 gives 8.3, so the sample standard deviation is √8.3 = 2.88.
  • Quartiles: the median 4 splits the set into a lower half of 1, 3 and an upper half of 7, 8. Their medians are 2 and 7.5, so the IQR is 5.5.
  • Geometric mean: the product is 1 × 3 × 4 × 7 × 8 = 672, and the fifth root of 672 is 3.68.

Type the same five numbers into the calculator above and every figure should match what you just computed. Doing one set by hand and trusting the tool afterwards is exactly how professionals use statistical software.

Reading a histogram like an analyst

The distribution chart above the guide does more than decorate the summary table. Analysts look for four things in its shape:

  • One tall cluster: a single typical value with the bars thinning out on both sides. Most everyday measurements look like this when nothing is wrong.
  • A long tail on one side: a staircase that steps down slowly to the right or left. The summary numbers that agree with this picture are a median well away from the mean and a skewness value beyond 0.5.
  • Two separate clusters: a bimodal shape usually means two populations are mixed into one data set, such as weekday and weekend delivery times. Averages describe neither group honestly, so the fix is to split the data and analyze each cluster on its own.
  • Gaps and isolated bars: a bar standing apart from the rest is a visual flag for outliers or data entry problems, like a price of 10,000 sitting among prices near 100.

Compare the bar heights against the frequency table under the chart as well. If one interval holds most of the values while the others hold one or two, the mean and standard deviation are being dominated by that single interval's spread, and the median may describe your data better.

Using the calculator well

  • Entering data: type or paste numbers separated by commas, spaces, tabs or line breaks. Decimals and negatives are accepted. A value that cannot be read, such as 4x, is listed in the error message so you can fix the typo instead of hunting for it.
  • Choosing sample or population: the table reports both standard deviations and both variances, so pick the row that matches your situation. Comparing your classroom against itself? Population. Claiming something about all schools from 30 sampled ones? Sample.
  • Watch the extremes: before trusting the mean and the SD, look at the box plot and the outliers row. One mistyped value (a salary of 100000 instead of 10000) can move the mean by more than all the honest data combined. The median and IQR barely move, which is exactly why analysts report them for skewed data.
  • Mind the units: every measure inherits the unit of your data. A standard deviation of 6.13 means 6.13 centimeters for the heights example and 6.13 dollars for prices.
  • Small data sets: with fewer than about 10 values, sample statistics are unstable. A second sample of the same size can easily produce a very different SD, so treat the results as a rough sketch rather than a measurement.

How many data points are enough?

There is no single answer, but there are useful markers along the way:

  • 3 to 5 values: enough to compute everything in this calculator, but unstable. One new reading can move the mean and standard deviation sharply.
  • About 10 values: the point where the median and quartiles start to mean something, and where genuine outliers stand out clearly on the box plot.
  • About 30 values: the traditional threshold where a sample mean starts behaving the way the normal distribution predicts, so z-scores and confidence intervals become trustworthy.
  • 100 or more: summary statistics change only slowly with each new value, and the histogram's shape is usually a reliable picture of the population.

When you need a precise count before collecting data, the sample size calculator takes your margin of error and confidence level and tells you exactly how many observations to gather.

A short history of descriptive statistics

States have counted things for as long as states have existed: censuses, grain stores, taxes. The word statistics itself comes from the Latin status, the state, because the first statisticians were bureaucrats describing the resources of a country. In the 1660s John Graunt tallied London's burial records and published the first life table, work that made an entire insurance industry possible.

The mean and the standard deviation were sharpened into their modern forms around 1800. Carl Friedrich Gauss and Pierre-Simon Laplace developed the method of least squares and the mathematics of the normal curve, and in 1893 Karl Pearson coined the term "standard deviation" itself. Pearson also gave skewness its name, and in 1905 published the first formal treatment of correlation and moments, the family of measures this calculator reports.

Quartiles and the box plot are younger than you might expect. John Tukey introduced the box plot in 1970, together with the 1.5 × IQR outlier rule that still bears his name, and his 1977 book Exploratory Data Analysis argued that analysts should look at their data before modeling it. Every chart on this page is that argument, drawn in SVG.

Common questions

They differ in one divisor. Population variance divides the squared deviations by N, the number of values you have. Sample variance divides by N - 1, which makes the estimate slightly larger and corrects for the bias that appears when a small sample stands in for a whole population. The same N - 1 correction applies to the standard deviation. Use the population figures when your data is the entire group of interest, and the sample figures when it is a subset.

Use the mean when the data is fairly symmetric and has no extreme outliers, because it uses every value. Use the median when the data is skewed or contains outliers, such as incomes or house prices, because extreme values cannot move it. Use the mode for categories, shoe sizes, most common answer, where an average makes no sense. If the mean and median disagree by a lot, trust the median and investigate the tails.

When every value in your data set appears exactly once, no value is more common than the others, so there is no mode. This is normal for measurements such as heights or prices. A set with two tied values at the top is bimodal, and the calculator lists both; more than two is multimodal. Bimodal data often means two different groups are mixed together.

There are several accepted ways to compute quartiles. This calculator takes the median of the lower and upper halves of the sorted data (Tukey's method). Excel's QUARTILE.INC, R's default type 7 and many textbooks instead interpolate between neighboring order statistics. For large data sets the answers are nearly identical; for small ones they can differ by a value or two, and both answers are correct by their own definitions.

Yes. Copying a column of cells produces values separated by line breaks or tabs, and both are handled. If a pasted column includes headers or text such as "N/A", the calculator will name the values it could not read so you can trim them off. Empty cells are skipped automatically.

There is no absolute answer, because the SD has the same units as your data. A standard deviation of 5 minutes is excellent for a bus schedule and terrible for a fire response. The fair comparison is relative: the coefficient of variation, SD divided by the mean, expresses spread as a percentage that means the same thing across scales. Under about 10% is tight, 10% to 30% is moderate, and above that the values scatter widely relative to their average.

They change the mean, variance, standard deviation, skewness and kurtosis, sometimes dramatically. They barely move the median, mode, quartiles or IQR, which is why those are called resistant measures. The calculator flags outliers with the 1.5 × IQR rule and draws them as dots beyond the box plot whiskers, so you can decide whether they are mistakes to remove or genuine extreme observations worth reporting.

No. Every calculation runs in your browser. Nothing is stored or transmitted.

Descriptive statistics summarize only the data in front of you: the mean, spread and shape that this calculator reports. Inferential statistics use a sample to make claims about a larger population, with confidence statements attached, which is the territory of confidence intervals and hypothesis tests. The two build on each other: you compute a descriptive mean from your sample, and inference then says how precisely it likely reflects the whole.

Look for agreement between several clues rather than one test. On a normal data set the histogram looks like a symmetric bell, skewness sits near 0, excess kurtosis sits near 0, roughly 68% of values fall within one standard deviation of the mean, and the box plot's median line runs through the middle of its box. If two or more of those checks disagree, the data is not normal, and methods that assume normality should be used with care.

The standard deviation depends on every value's distance from the mean, and adding a value changes two things at once: the mean itself moves, and the new value contributes its own distance. If the new value sits far from the old average, both effects push the SD up; if it sits close to the average, the SD often shrinks because the new point adds certainty. The divisor changes too, from n to n + 1, which matters a lot when the data set is small.

Every number tells a story. Read yours in seconds.

Browse all math calculators