Standard Deviation Calculator

Paste or type a list of numbers to find the standard deviation instantly. Choose sample or population, and the calculator also gives the variance, mean, median, count, sum, minimum, maximum and range. A step-by-step table shows each value’s distance from the mean and its square, so you can follow or check every part of the calculation.

Separate values with commas, spaces or new lines. You can paste a column from a spreadsheet. Don’t use thousands separators.
2.13809Sample standard deviation (s)
Variance (s²)—
Mean—
Median—
Count—
Sum—
Minimum—
Maximum—
Range—
Steps
    #xx − mean(x − mean)²

    Runs entirely in your browser. Nothing you enter is uploaded or stored.

    Rate this tool

    Be the first to rate this tool

    How to use the Standard Deviation Calculator

    1. Choose Sample if your numbers are a subset of a larger group, or Population if they are the whole group.
    2. Paste or type your numbers, separated by commas, spaces or new lines.
    3. Read the standard deviation at the top and the variance, mean, median and other statistics below it.
    4. Scroll the step table to see each deviation and its square, then copy the results or download the table as CSV.

    What standard deviation measures

    Standard deviation describes how spread out a set of numbers is around its mean. A small standard deviation means the values sit close to the average, and a large one means they are scattered widely. Two classes can both average 75 on a test, but if one class has a standard deviation of 3 and the other 15, the first group scored much more consistently. Because standard deviation is in the same units as the data, it is easier to interpret than variance: a standard deviation of 4 minutes on a commute time means a typical trip lands within a few minutes of the average.

    How to calculate standard deviation step by step

    Take the data set 2, 4, 4, 4, 5, 5, 7, 9. First find the mean: the sum is 40 and there are 8 values, so the mean is 5. Next subtract the mean from each value and square the result, giving 9, 1, 1, 1, 0, 0, 4 and 16. Add these squared deviations to get 32. For a population, divide by the number of values, 32 ÷ 8 = 4, which is the variance; the square root of 4 gives a population standard deviation of exactly 2. For a sample, divide by one less than the count instead, 32 ÷ 7 ≈ 4.571, and the sample standard deviation is about 2.138. The table under the calculator shows every one of these steps for your own data.

    Sample vs. population: which should you use?

    Use the population formula when your numbers include every member of the group you care about, such as the final scores of all 25 students in one class. Use the sample formula when your numbers are a selection from a bigger group and you want to estimate the spread of that bigger group, such as a survey of 200 voters or 30 measurements from a production line. Dividing by n − 1, known as Bessel’s correction, makes the sample variance an unbiased estimate of the population variance, because a sample’s values tend to sit slightly closer to their own mean than to the true population mean. Most statistics classes, scientific papers and spreadsheet functions such as STDEV.S use the sample version by default, while STDEV.P is the population version.

    Reading the other statistics

    The mean is the arithmetic average and the median is the middle value once the numbers are sorted; for an even count, it is the average of the two middle values. When the mean and median are far apart, the data is skewed or has outliers, and a single extreme value can inflate the standard deviation a lot. The range, maximum minus minimum, is a quick but rough measure of spread that depends only on the two extremes. For roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean and about 95% within two, which is a useful way to spot unusual results.

    Accurate results with large or precise numbers

    Large values that differ only slightly, such as 1,000,000,004 and 1,000,000,007, can trip up the shortcut formula that subtracts two huge sums. This calculator uses a corrected two-pass method with compensated summation, so it stays accurate for timestamps, prices with many decimals and long lists. Everything runs in your browser, and your data is never uploaded. To compare growth between two values instead, use the percentage increase calculator.

    Examples

    • 2, 4, 4, 4, 5, 5, 7, 9 → population SD 2, sample SD 2.13809, mean 5, median 4.5
    • 10, 12, 23, 23, 16, 23, 21, 16 → sample SD 5.23723, population SD 4.89898
    • 1, 2, 3, 4, 5 → sample variance 2.5, sample SD 1.58114
    • 5, 5, 5, 5 → SD 0 (no spread)

    Standard Deviation Calculator FAQ

    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 for estimating a larger group’s spread from a subset. The sample value is always a little larger.

    How is variance related to standard deviation?

    Variance is the average squared deviation from the mean, and standard deviation is its square root. A variance of 16 means a standard deviation of 4.

    Can standard deviation be negative?

    No. It is the square root of an average of squared values, so it is always 0 or positive. It is 0 only when every value is the same.

    Why does the sample standard deviation need at least two numbers?

    The sample formula divides by n − 1. With one value, that is division by zero, so the spread cannot be estimated. The population standard deviation of a single value is 0.

    Does this match Excel and Google Sheets?

    Yes. Sample mode matches STDEV.S (or STDEV) and VAR.S, and population mode matches STDEV.P and VAR.P, apart from display rounding.

    Is my data sent anywhere?

    No. The calculation runs entirely in your browser, and the numbers you paste are not uploaded or stored.

    Related tools

    All Calculators
    Age CalculatorFind your exact age in years, months and days.BMI CalculatorCalculate body mass index in metric or imperial units.Percentage CalculatorSolve percent of, percent change and increase/decrease problems.EMI CalculatorWork out monthly loan payments, interest and a full schedule.Hours to Decimal ConverterConvert hours and minutes to decimal hours and back, with a timesheet.Age Difference CalculatorFind the exact age gap between two people in years, months and days, plus total days and weeks, who is older and each person’s current age.Aspect Ratio CalculatorFind the missing width or height for any ratio, and simplify any resolution like 1920 × 1080 to 16:9.Birthday CalculatorFind the day of the week you were born, your exact age, a countdown to your next birthday, your zodiac sign and half-birthday.Calorie CalculatorEstimate your BMR and daily calorie needs, with targets for losing, maintaining or gaining weight.Days Between DatesCount the days between two dates in days, weeks, months and years, plus business days without weekends and US holidays.Discount CalculatorFind the sale price and how much you save from a percent or dollar discount, including stacked extra % off deals.Etsy Fee and Profit CalculatorCalculate Etsy listing, transaction, payment, and offsite ad fees plus net profit.GCF CalculatorFind the greatest common factor of two or more whole numbers, with prime factorization, Euclidean steps and every common factor.GPA CalculatorAdd your courses, grades and credits to calculate your GPA instantly.Hourly to Salary CalculatorConvert an hourly wage to annual, monthly, biweekly, weekly and daily pay, with overtime – or turn a salary into an hourly rate.LCM CalculatorFind the least common multiple of two or more whole numbers, with prime factorization, listing multiples and the GCF formula.Loan CalculatorWork out the monthly payment, total interest and payoff date for any loan in seconds.Mortgage CalculatorEstimate your monthly mortgage payment with principal, interest, taxes and insurance, plus the total interest over the loan.Percentage Increase CalculatorFind the percent increase or decrease between two numbers, raise or lower a value by a percent, or work back to the original.Pregnancy CalculatorEstimate your due date, current week and trimester from the first day of your last period.Ratio CalculatorSolve A:B = C:D for a missing value, simplify ratios (decimals too), split an amount by a ratio, and turn ratios into fractions and percents.Sales Tax CalculatorAdd sales tax to a price or work backward from a total to find the pre-tax price and the tax paid.Scientific CalculatorA full scientific calculator with trig, logs, powers and roots, evaluated safely in your browser.Stripe Fee CalculatorCalculate Stripe card fees and find the exact invoice amount to receive your target net.TikTok Creator Rewards CalculatorEstimate TikTok Creator Rewards earnings from views, qualified view rate, and RPM.Number to WordsConvert numbers to words for writing checks, plus plain English words, ordinals and dollars-and-cents text, up to decillions.Image CompressorShrink JPG, PNG and WebP images to 20 KB, 50 KB, 100 KB or any size.