Standard Deviation Calculator - Sample & Population
Paste your numbers and instantly get the sample and population standard deviation, variance, mean, and a step-by-step breakdown. Free and fully browser-based, your data never leaves your device.
Sample standard deviation (s)
13.4907
Sample variance: 182
Population standard deviation (σ)
12.3153
Population variance: 151.6667
Count (n)
6
Mean
18
Sum
108
Sum of squares (SS)
910
Min
4
Max
42
Step-by-step breakdown
- Find the mean: add all 6 values and divide by 6.
mean = 108 / 6 = 18
- Square each deviation from the mean: for every value x, compute (x - mean)².
x = 4 (x - 18)² = 196 x = 8 (x - 18)² = 100 x = 15 (x - 18)² = 9 x = 16 (x - 18)² = 4 x = 23 (x - 18)² = 25 x = 42 (x - 18)² = 576 - Sum the squared deviations (SS):
SS = 910
- Divide to get variance: by n - 1 = 5 for a sample, or by n = 6 for a full population.
s² = 910 / 5 = 182 · σ² = 910 / 6 = 151.6667
- Take the square root:
s = 13.4907 · σ = 12.3153
Sample vs Population Standard Deviation Explained
Standard deviation measures how spread out your numbers are around the mean. A small standard deviation means the values cluster tightly (test scores of 78, 80, 82 have a sample standard deviation of just 2), while a large one means they are scattered (scores of 40, 80, 120 have a sample standard deviation of 40). It is the most widely used measure of variability in statistics because it is expressed in the same units as the data itself, unlike variance which is in squared units.
The sample formula divides the sum of squared deviations by n - 1 instead of n. This is called Bessel's correction: a sample tends to underestimate the true spread of the population it came from, and dividing by n - 1 corrects that bias. Use the sample standard deviation (s) when your data is a subset, such as 30 survey responses out of thousands of customers. Use the population standard deviation (σ) only when you truly have every data point, such as the exam scores of all 25 students in one class.
A practical rule of thumb for roughly bell-shaped data is the 68-95-99.7 rule: about 68% of values fall within 1 standard deviation of the mean, 95% within 2, and 99.7% within 3. If a factory produces bolts with a mean length of 50 mm and a standard deviation of 0.2 mm, you would expect about 95% of bolts to measure between 49.6 mm and 50.4 mm. That is exactly how quality control limits, lab reference ranges, and investment volatility bands are constructed.
This calculator accepts numbers separated by commas, spaces, semicolons, or line breaks, so you can paste a column straight from Excel or Google Sheets. It shows every intermediate step (mean, squared deviations, sum of squares, variance) so you can check homework or verify a spreadsheet formula. For the average alone, try the Average Calculator, and for quick percent math the Percentage Calculator is one click away. Both are free and run entirely in your browser.
How the Standard Deviation Calculator Works
- 01Paste or type your numbers, separated by commas, spaces, or new lines - straight from Excel works too.
- 02The calculator finds the mean, then squares each value's deviation from that mean.
- 03It divides the sum of squares by n - 1 for the sample result and by n for the population result.
- 04Read both standard deviations, both variances, and the full step-by-step breakdown, then copy the results.
Sample or population: which one do you need?
Use the sample standard deviation (s, divided by n - 1) when your data is a subset of a larger group, such as 50 survey answers out of thousands of customers. Use the population standard deviation (sigma, divided by n) only when you have every single data point, like all exam scores of one class. When in doubt, the sample version is almost always the right choice - it is what Excel's STDEV.S and most statistics courses use by default.
When to Use This Tool
Use it for statistics homework where you must show every step, for checking a spreadsheet formula, for quality control (how consistent are your measurements?), or for understanding the spread in any data set: test scores, response times, sales per day, or lab results. Because everything runs in your browser, it is also safe for data you would rather not upload anywhere.
Common Use Cases
- Show every calculation step for statistics homework Average Calculator - Mean, Median, Mode, Range
- Check the consistency of manufacturing or lab measurements
- Compare the volatility of two data series, like daily sales or returns
Tips
- When in doubt, use the sample standard deviation - it matches Excel's STDEV.S and most textbooks.
- Outliers have a big effect because deviations are squared; one extreme value can double your result.
- Standard deviation only tells the full story for roughly symmetric data; for skewed data also look at min and max.
Frequently Asked Questions
- The sample version divides the sum of squared deviations by n - 1, the population version by n. For the data set 2, 4, 6 the population standard deviation is 1.63 while the sample standard deviation is 2.0. The n - 1 correction (Bessel's correction) compensates for the fact that a sample underestimates the true spread of the population it was drawn from.
- It means every value in your data set is identical, so there is no spread at all. The data set 5, 5, 5, 5 has a mean of 5 and a standard deviation of 0. Any variation between values immediately makes the standard deviation positive.
- Variance is simply the standard deviation squared. If the standard deviation is 4, the variance is 16. Standard deviation is usually preferred for interpretation because it is in the same units as your data - a standard deviation of 4 cm means something directly, while a variance of 16 square centimeters does not.
- For roughly bell-shaped (normal) data, about 68% of values fall within 1 standard deviation of the mean, 95% within 2, and 99.7% within 3. With a mean of 100 and a standard deviation of 15 (like IQ scores), about 95% of values fall between 70 and 130.
- Yes. Copy a column or row of cells and paste it into the input box. The calculator splits on commas, spaces, tabs, semicolons, and line breaks, and ignores anything that is not a number, so header text is skipped automatically.
What is the difference between sample and population standard deviation?→
What does a standard deviation of 0 mean?→
How is variance related to standard deviation?→
What is the 68-95-99.7 rule?→
Can I paste data straight from Excel or Google Sheets?→
Related tools
12 suggested- 01Average Calculator - Mean, Median, Mode, RangePaste numbers and get mean, median, mode, range, sum, plus geometric and harmonic means. Free, instant, browser-based.
- 02Percentage Calculator - 4 Calculators in OneCalculate percentages instantly: X% of Y, percentage change, tip calculator and more. Four calculators in one free tool.
- 03Volume Converter - Liters, Gallons & CupsFree browser-based volume converter between liters, gallons, quarts, pints, cups, fluid ounces, tablespoons, and more, all shown at once instantly.
- 04Area Converter - m², ft², Acres & HectaresFree browser-based area converter between square meters, feet, yards, inches, miles, kilometers, hectares, and acres, all shown at once as you type.
- 05TDEE Calculator - Daily Calorie Needs, FreeFree browser-based TDEE calculator using the Mifflin-St Jeor equation, with metric and imperial units plus calorie targets for cutting and bulking.
- 06Running Pace Calculator - Pace, Time, DistanceFree browser-based running pace calculator: enter two of distance, time, and pace to get the third, with km/mile splits and race finish predictions.
- 07Roman Numeral Converter - 1 to 3999, FreeFree browser-based Roman numeral converter for numbers 1-3999, with strict validation, a step-by-step breakdown, and a full symbol reference table.
- 08Numbers to Words Converter - Free & InstantFree browser-based numbers to words converter up to quadrillions, with decimals, British style, and a currency mode for writing check amounts.
- 09Percentage to CGPA Calculator - 10 & 4 PointFree browser-based converter between percentage and CGPA using the CBSE 9.5 formula, with 4-point GPA conversion and a handy reference table included.
- 10Grade Calculator - Weighted Average & FinalsFree browser-based grade calculator for weighted course averages, plus a final exam mode that shows the score you need to reach your target grade.
- 11Fraction Calculator - Add, Simplify & ConvertFree browser-based fraction calculator: add, subtract, multiply, and divide fractions, simplify to lowest terms, and convert decimals to fractions.
- 12Currency Converter - Live ECB Rates, FreeFree browser-based currency converter with live ECB exchange rates for 30+ currencies. Swap pairs, see the rate date, and convert amounts instantly.