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
- 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
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.
- 03One Rep Max Calculator - Epley, Brzycki & MoreEstimate your 1RM from any set using the Epley, Brzycki, Lombardi, and O'Conner formulas, with a training percentage table. Free, instant, browser-based.
- 04Fuel Cost Calculator - Trip & Commute Fuel CostsCalculate the fuel cost of any trip or your monthly commute, with km/miles, L/100km or MPG, cost per person, and round-trip support. Free and browser-based.
- 05Volume Converter - Liters, Gallons & CupsFree browser-based volume converter between liters, gallons, quarts, pints, cups, fluid ounces, tablespoons, and more, all shown at once instantly.
- 06Area 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.
- 07TDEE 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.
- 08Running 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.
- 09Roman 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.
- 10Numbers 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.
- 11Percentage 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.
- 12Grade 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.
From the blog
Further reading- Free Online Calculators for Everyday Math and FinanceFree online calculators for percentages, discounts, VAT, compound interest, and unit conversion. Instant results in your browser, no sign-up needed.8 min read
- Financial Calculators: Loans, Compound Interest & DiscountsHow to use financial calculators for loan amortization, compound interest projections, discount analysis, and everyday money decisions that matter.9 min read
- Number Bases, Chmod & Validation for DevelopersHow number base conversion works, how Unix chmod permissions are calculated, and how to validate IBANs and credit card numbers with check digit algorithms.9 min read