Standard Deviation Calculator

Quick answer

Standard deviation measures how far values sit from their mean. Find the mean, square each deviation, add them, divide by n - 1 for a sample or N for a population, then take the square root. For 72, 85, 90, 64, 78, 88, 95 and 70 the sample SD is 10.938 and the population SD is 10.232.

Updated 2026-09-28Reviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Statistics
Most people want the first option. The other two give the standard error from summary figures.
Pick sample when your values are a subset of a bigger group. Pick population only when you have every member.
Paste from a spreadsheet or type numbers separated by commas, spaces, tabs or new lines. Do not use thousands commas: type 1200, not 1,200.
The standard deviation of single values, for example 15 points for a test scale.
Tell the tool how you typed the value below: 0.42, 42 or 210 of 500 all mean the same thing.
The share of yes answers or successes in the sample.
The number of values or people in the sample. Whole number, 1 or more.

Sample standard deviation (s)

--
Mean--
Sample variance (s squared)--
Count n, min and max--
Sum of squared deviations--
Standard error of the mean (s / sqrt n)--
Population SD (N) for comparison--

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)

How to Use the Standard Deviation Calculator

  1. Paste or type your data. Copy a column from a spreadsheet or type values with commas or spaces between them. Negative numbers and decimals work.
  2. Choose sample or population. Use sample (n - 1) when the values stand for a larger group. Use population (N) only when you measured every member of the group.
  3. Read the result and the steps. The standard deviation shows first. The mean, variance, count and each squared deviation appear below it, so you can copy the working into homework.

The two extra modes in the first drop-down handle summary figures: a known SD with a sample size gives the standard error of the mean, and a proportion with a sample size gives the standard error of a proportion.

ResultWhat it tells you
Standard deviationThe typical distance of a value from the mean, in the same units as the data.
MeanThe sum of the values divided by the count; the center the spread is measured from.
VarianceThe standard deviation squared. It is in squared units, such as points squared.
Count n, min and maxHow many numbers the tool read, and the smallest and largest. Use it to confirm the paste worked.
Sum of squared deviationsThe total of (value - mean) squared, the numerator of the variance.
Standard error of the meanHow much the mean itself would vary from sample to sample: s divided by the square root of n.
Comparison SDThe other formula, so you can see how much n - 1 versus N changes the answer.
Verdict bandThe coefficient of variation (SD as a percent of the mean), labeled low, moderate or high spread.

What Is Standard Deviation?

Standard deviation is a measure of spread: it tells you how far, on average, the values in a data set sit from their mean. A small standard deviation means the values cluster near the mean. A large one means they are scattered.

The NIST/SEMATECH e-Handbook defines it as the square root of the variance, and notes that taking the root restores the original units. Test scores in points give a standard deviation in points; heights in centimeters give a standard deviation in centimeters. That is why people quote the SD, not the variance, in reports.

Statistics uses two symbols. The lower-case letter s is the sample standard deviation, and the Greek letter sigma is the population standard deviation. The mean is the center, the variance is the average squared deviation, and the range (max minus min) is a cruder measure of spread that only looks at two values.

Standard deviation is not the same as the standard error. The SD describes single values. The standard error describes the mean of a sample, and it shrinks as the sample grows.

How Does the Standard Deviation Formula Work?

The formula averages the squared distances from the mean and then takes a square root. The only difference between the two versions is the divisor.

Sample: s = sqrt( sum of (x - mean)^2 / (n - 1) )Population: sigma = sqrt( sum of (x - mu)^2 / N )
  1. Add the values and divide by the count to get the mean.
  2. Subtract the mean from each value. These differences are the deviations, and they always add up to 0.
  3. Square each deviation so negatives do not cancel positives.
  4. Add the squares. This is the sum of squared deviations.
  5. Divide by n - 1 for a sample or N for a population. The result is the variance.
  6. Take the square root of the variance. That is the standard deviation.

Why n - 1? A sample mean sits closer to its own values than the true population mean does, so dividing by n would understate the spread. OpenStax Introductory Statistics uses n - 1 for the sample SD and N for the population SD, the same as this tool.

Standard Deviation Example with Test Scores

A teacher samples eight scores from a large class: 72, 85, 90, 64, 78, 88, 95 and 70. What is the standard deviation?

Score xx - mean(x - mean) squared
72-8.2568.0625
854.7522.5625
909.7595.0625
64-16.25264.0625
78-2.255.0625
887.7560.0625
9514.75217.5625
70-10.25105.0625
Sum 6420837.5
  1. Mean = 642 / 8 = 80.25.
  2. Sum of squared deviations = 837.5.
  3. Sample variance = 837.5 / 7 = 119.642857.
  4. Sample SD = sqrt(119.642857) = 10.938 points.

If the eight scores were the whole class, the population variance would be 837.5 / 8 = 104.6875 and the population SD 10.232 points. The standard error of the mean is 10.938 / sqrt(8) = 3.867 points, and the SD is 13.6 percent of the mean, which the verdict band calls moderate spread.

Factors That Change the Standard Deviation

The standard deviation reacts most to outliers, the sample size and the choice of divisor.

Outliers

Squaring gives far values extra weight. The NIST handbook points out that a value 10 units from the mean adds 100 to the sum, while one 2 units away adds only 4. In the example, the single score of 64 contributes 264 of the 837.5 total, almost a third. A typo such as 950 instead of 95 would swamp the result.

Sample Size

With few values, the gap between n - 1 and N is large. For 8 values the sample SD is 6.9 percent higher than the population SD. For 100 values the gap falls to about 0.5 percent.

Units and Scale

Multiplying every value by 10 multiplies the SD by 10. Adding a constant, such as 5 bonus points to every score, leaves the SD unchanged, because the mean moves by the same amount.

Grouped or Rounded Data

Rounding values to whole numbers or grouping them into classes hides small differences and can change the SD slightly. Enter raw values when you have them.

Sample vs Population Standard Deviation

Use the sample formula unless you truly have every member of the group.

MeasureDivisorSymbolUse it when
Sample SDn - 1sYour values are a subset used to estimate a bigger group: a survey, a lab sample, a batch test.
Population SDNsigmaYou have every value: all 30 students in one class, every day in a finished year.
Standard error of the meansqrt(n)SEYou want the precision of an average, not the spread of single values.
SD of a proportionnsqrt(pq/n)Your data are yes/no answers and you want the precision of the percentage.

Many spreadsheets offer two functions for the same reason: one divides by n - 1 and one divides by N. The tool shows both, so you can match whichever your course or report asks for.

When to Use a Standard Deviation Calculator

Homework and Exams

Students check a hand calculation step by step. The method line lists each squared deviation for up to 12 values, which matches the table most textbooks ask for.

Quality and Lab Measurements

Repeated measurements of the same part show how consistent a process is. A lower SD means tighter, more repeatable results.

Grades, Sports and Finance Data

Teachers compare how spread out two classes are. Coaches compare lap times. Analysts compare how much two return series swing. To place one value against the spread, move on to the z-score calculator, which divides the distance from the mean by the SD.

Surveys and Polls

The proportion mode gives the standard error of a percentage, the building block of a poll margin of error.

Common Mistakes with Standard Deviation

1. Using N for a Sample

Dividing a sample by N understates the spread. With 8 values the error is about 6.5 percent of the correct answer.

2. Forgetting the Square Root

The variance, 119.64 in the example, is not the SD. The SD is its square root, 10.94. Units are the quick check: variance is in squared units.

3. Pasting Thousands Separators

The value 1,200 is read as two numbers, 1 and 200. Remove thousands commas before pasting, and confirm the count n matches the number of values you meant to enter.

4. Mixing Up SD and Standard Error

The SD describes single values; the standard error describes the mean. Reporting the standard error as the SD makes data look far less variable than it is.

5. Ignoring an Outlier

One data-entry error can double the SD. Check the min and max line before you trust the result.

6. Reading the SD Without the Mean

An SD of 10 is large for values near 20 and tiny for values near 10,000. The coefficient of variation in the verdict band puts the SD in context. For a spread measure that ignores extreme values, see the percentile calculator and the interquartile range.

Accuracy and Limitations

The arithmetic is exact to about 15 significant digits; the limits come from the data and the model, not the math.

What it calculates accurately

  • Sample (n - 1) and population (N) standard deviation and variance.
  • The mean, count, min, max and sum of squared deviations.
  • The standard error of the mean, from data or from a known SD.
  • The standard error of a proportion, with the np and nq check.
  • Negative numbers, decimals and values in scientific notation.

What it does not account for

  • Whether your sample is random or biased.
  • Frequency tables: type repeated values out, or use a weighted method such as the weighted average calculator for the mean.
  • Whether the data follow a normal curve. The 1.96 margin assumes they do.
  • Thousands separators and text labels inside the pasted list.
  • Measurement error in the original values.

How We Calculate the Standard Deviation

Method
Two-pass formula: the mean first, then the sum of squared deviations from that mean. This avoids the rounding loss of the shortcut sum-of-squares formula on large values.
Inputs used
A list of numbers and a sample or population choice; or a known SD and n; or a proportion (as a decimal, percent or count) and n.
Assumptions
Each number is one observation. The standard error and the 1.96 margin assume independent observations and a normal model.
Rounding
Internal math uses full double precision. Displayed values are rounded to 6 decimal places with trailing zeros removed.
Edge cases
A sample of 1 value is rejected, because n - 1 = 0. A population of 1 value has SD 0. A mean of 0 skips the CV. Negative data flag the CV as unreliable.
Sources
NIST/SEMATECH e-Handbook section 1.3.5.6 and OpenStax Introductory Statistics 2e sections 2.7, 7.1 and 8.3. See Sources below.
Last reviewed
2026-09-29.

Frequently Asked Questions About Standard Deviation

What is a good standard deviation?

No single value is good; it depends on the mean and the purpose. A common rule of thumb reads a coefficient of variation under 10 percent as low spread and over 30 percent as high.

Can standard deviation be negative?

No. It is a square root of a sum of squares, so it is 0 or positive. It is 0 only when every value is the same.

Why is my calculator answer different from my textbook?

The two most likely causes are the divisor and rounding. Check whether the book used n - 1 or N, and whether it rounded the mean before squaring.

How many values do I need for a standard deviation?

A sample needs at least 2 values. Estimates from fewer than about 10 values move a lot when one value changes.

What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9?

The population SD is exactly 2 and the sample SD is 2.138. The mean is 5 and the sum of squared deviations is 32.

Does adding the same number to every value change the SD?

No. Shifting every value by a constant moves the mean by the same amount, so every deviation stays the same.

What is the standard error of the mean?

It is the SD divided by the square root of n. With an SD of 15 and n = 25, the standard error is 15 / 5 = 3.

How do I find the SD of a percentage from a poll?

Use the proportion mode. For 42 percent of 500 people, sqrt(0.42 x 0.58 / 500) = 0.0221, or 2.2 percentage points.

Can I paste a column from a spreadsheet?

Yes. Copy the cells and paste them in the data box; new lines and tabs count as separators. Check that the count n matches your row count.

Is my data stored or sent anywhere?

No. The math runs in your browser. Nothing is uploaded, and Save keeps a copy only in your own browser storage.

Sources

Related Calculators

Need another statistics or math tool?

Explore all math calculators

This calculator is for study, homework and general data work. It describes the numbers you enter; it does not test whether your data are a fair sample or follow a normal curve. For research, quality control or clinical decisions, check the method with a qualified statistician. Spotted an error? Let us know.

Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~  More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.