Home › Calculators › Standard Deviation Calculator

Standard Deviation Calculator

Paste or type a list of numbers to get the standard deviation, variance, mean, median, mode, quartiles and more, with every step of the working shown.

Last updated:

Sample standard deviation (s)–
Sample variance (s²)–
Mean (x̄)–

Frequency chart

Show step-by-step working
Advertisement
Advertisement

How to use the Standard Deviation Calculator

  1. Paste your numbers into the box. Separate them with commas, spaces, tabs or new lines; you can paste a column straight from Excel or Google Sheets.
  2. Choose sample or population. Use sample if your numbers are a sample from a bigger group (most common); use population if they are the whole group.
  3. Read the results: standard deviation, variance, mean, median, mode, quartiles, range and more update as you type.
  4. Open the working to see each value's deviation from the mean and its square, the same steps you would write by hand.

Standard deviation formulas

MeasureFormula
Meanx̄ = Σx ÷ n
Population varianceσ² = Σ(x − μ)² ÷ n
Sample variances² = Σ(x − x̄)² ÷ (n − 1)
Standard deviationσ = √σ²  or  s = √s²
Standard error of the meanSE = s ÷ √n
Coefficient of variationCV = SD ÷ mean × 100%

Worked example

Take the numbers 2, 4, 4, 4, 5, 5, 7, 9. The mean is 40 ÷ 8 = 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32.

  • Population variance = 32 ÷ 8 = 4, so the population standard deviation is √4 = 2.
  • Sample variance = 32 ÷ 7 ≈ 4.571, so the sample standard deviation is ≈ 2.138.
  • The median is 4.5 and the mode is 4 (it appears three times).

Mean, median and mode

The mean is the average: add all values and divide by how many there are. The median is the middle value once the numbers are sorted (or the average of the two middle values). The mode is the value that appears most often. When data has extreme values, the median is usually a better "typical" value than the mean.

What the standard deviation tells you

For roughly bell-shaped (normal) data, about 68% of values fall within one standard deviation of the mean, about 95% within two, and about 99.7% within three. This is called the 68-95-99.7 rule.

Frequently asked questions

What is standard deviation?

Standard deviation measures how spread out numbers are around their mean. A small standard deviation means the values are close to the average; a large one means they are spread out.

What is the difference between sample and population standard deviation?

Population standard deviation divides the sum of squared deviations by n (the number of values). Sample standard deviation divides by n − 1, which corrects the tendency of a sample to underestimate the spread of the whole population.

How do I calculate standard deviation by hand?

Find the mean, subtract it from each value, square each result, add the squares, divide by n (population) or n − 1 (sample) to get the variance, and take the square root.

How are quartiles calculated?

This calculator uses linear interpolation between data points, the same method as Excel's QUARTILE.INC and Google Sheets' QUARTILE. Other textbooks use slightly different methods, so small differences are normal.

What if there is no mode?

If every value appears the same number of times, there is no mode. If two or more values tie for the most appearances, all of them are listed.

How are outliers detected?

Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are flagged as possible outliers, the same rule used for box plots.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Graphing CalculatorPlot multiple functions with zoom, pan, intersections and a value table.Scientific CalculatorTrig, logs, powers and more in your browser.Percentage CalculatorWork out percentages, increases and decreases.Compound Interest CalculatorSee how savings and investments grow over time.A/B Test Significance CalculatorCheck if your A/B test result is statistically significant.Black-Scholes CalculatorPrice European call and put options with Black-Scholes, plus delta, gamma, theta, vega and rho.Box Plot MakerPaste data to draw box-and-whisker plots with quartiles, IQR and outliers. Download PNG or SVG.CAPM CalculatorExpected return from the risk-free rate, beta and market return using the CAPM formula.Average CalculatorMean, weighted average, median, sum, min and max of any list.Z-Score CalculatorZ-score from a value, mean and SD, plus percentile and p-value; or the value from z.Probability CalculatorFind and, or, not, conditional and at-least-once probabilities from P(A) and P(B).Permutation and Combination CalculatorCalculate nPr and nCr, with or without repetition, as exact big numbers.Mean Median Mode CalculatorFind the mean, median, mode, range, min, max, sum and count of a list of numbers.Confidence Interval CalculatorConfidence interval and margin of error for a mean or a proportion, with steps.Sample Size CalculatorHow many survey responses you need for a given confidence level and margin of error.Percentile CalculatorValue at any percentile, percentile rank of a score, quartiles, IQR and outliers.Correlation Coefficient CalculatorPearson r and Spearman rank correlation with significance and interpretation.Average Order Value CalculatorAverage order value from revenue and orders, plus the revenue impact of raising AOV.Binomial Distribution CalculatorBinomial probabilities P(X = k), at most, at least or between, with mean, variance and chart.Normal Distribution CalculatorNormal probabilities P(X < x), between two values and inverse percentiles, on a shaded bell curve.Poisson Distribution CalculatorPoisson probabilities for a rate λ: exactly k, at most, at least or between, with a chart.T-Test CalculatorOne-sample, two-sample (Welch/pooled) and paired t-tests with p-value and CI.Chi-Square CalculatorChi-square goodness-of-fit and independence tests with p-value and expected counts.Variance CalculatorSample and population variance and standard deviation with a step-by-step deviations table.Five Number Summary CalculatorMin, Q1, median, Q3, max, IQR and fences of a data set, with a box plot.Outlier CalculatorFind outliers with 1.5×/3× IQR fences, z-scores or modified z-scores; get the cleaned data.Geometric Mean CalculatorGeometric, harmonic, arithmetic and quadratic means compared, or average growth from % changes.Expected Value CalculatorExpected value, variance and standard deviation from outcomes and their probabilities.One-Way ANOVA CalculatorOne-way ANOVA for 2-10 groups: SS, df, MS, F statistic, p-value, effect size and full table.Bayes Theorem CalculatorPosterior P(A|B) from P(A), P(B|A) and P(B|not A), with a probability tree and table.Coefficient of Variation CalculatorCV % from a dataset (sample or population) with mean, SD and a two-dataset comparison.Critical Value CalculatorCritical values of z, t, chi-square and F for any alpha, tails and degrees of freedom.Dice Probability CalculatorOdds of rolling a sum (exactly, at least, at most) with any dice, plus the full distribution.Effect Size Calculator (Cohen's d)Cohen's d, Hedges' g and Glass's delta from two means, SDs and sample sizes, with CI.Frequency Table GeneratorMake a frequency, relative and cumulative frequency table from numbers or categories.Histogram MakerPaste numbers, choose bins and get a histogram, frequency table and PNG download.Margin of Error CalculatorSurvey margin of error from sample size, confidence and proportion, with population correction.Moving Average CalculatorSimple, exponential and weighted moving averages of a data series, with table and line chart.Permutations GeneratorList all permutations of letters, words or items, with k-permutations and repeats, and export them.Statistical Power CalculatorPower or required sample size for t-tests, proportions and correlations, with a power curve.T-Table (Student's t Distribution)Interactive t-table: critical t-values for any df and α, p-values, and a printable full table.Z-Test CalculatorOne-sample, two-sample and proportion z-tests with z, p-value, decision and shaded curve.Shannon Entropy CalculatorEntropy of text, data or probabilities in bits, nats or hartleys with a frequency table.Odds Ratio and Relative Risk CalculatorOdds ratio, relative risk, risk difference, 95% CIs and p-values from a 2x2 table.Standard Error CalculatorStandard error of the mean from data or SD and n, plus SE of a proportion, with CIs.Descriptive Statistics CalculatorPaste data and get mean, median, mode, quartiles, SD, skewness, kurtosis and a histogram.Empirical Rule Calculator68-95-99.7 rule ranges from a mean and standard deviation, with a shaded bell curve.Average Rate of Change CalculatorAverage rate of change of f(x), two points or a data table over [a, b], with the secant line.Binomial Expansion CalculatorExpand (a + b)^n with the binomial theorem: every term, Pascal coefficients and any specific term.Combinations GeneratorList every k-combination of your items, with or without repetition, and copy or export them.Covariance CalculatorSample and population covariance of paired X and Y data, with a step table and scatter plot.Grouped Data CalculatorMean, median, mode, variance and standard deviation from class intervals and frequencies.
See all 52 Statistics & Probability Calculators →