Standard Deviation Calculator – Fast & Free Online Tool

Standard deviation calculator: instant results with full working

By Dr. Irfan Mansuri
August 6, 2026
8 min read
Statistics
Free Tool
Standard deviation calculator showing bell curve, formula, and step-by-step computation on a clean teal interface
Standard deviation calculator – compute population or sample SD instantly with full working steps

Standard deviation – cheat sheet

Concept Key fact
What it measures Spread of data around the mean
Population formula σ = √[ Σ(xᵢ − μ)² / N ]
Sample formula s = √[ Σ(xᵢ − x̄)² / (n−1) ]
Denominator difference Population: N  |  Sample: n−1 (Bessel’s correction)
Unit Same unit as the original data
Range Always ≥ 0; equals 0 only when all values are identical
68–95–99.7 rule ±1σ ≈ 68%, ±2σ ≈ 95%, ±3σ ≈ 99.7% of normal data
Quick answer: Standard deviation measures how spread out a set of numbers is from their mean. Subtract the mean from each value, square the differences, sum them, divide by N (population) or n−1 (sample), then take the square root. A low standard deviation means data clusters near the mean; a high one means it is widely spread. This calculator does all those steps instantly and shows the full working.

⚡ In Short

  • Standard deviation (SD) quantifies data spread around the mean.
  • Use population SD when you have every data point; sample SD for a subset.
  • Sample SD divides by (n−1), not n — this is Bessel’s correction.
  • SD is always in the same unit as your data; variance is in squared units.
  • The 68–95–99.7 rule links SD to probability in a normal distribution.

Fact Detail
Symbol (population) σ (sigma)
Symbol (sample) s
Related measure Variance = SD²
Minimum value 0 (no spread)
Sensitive to outliers? Yes – one extreme value raises SD significantly
First described Karl Pearson, 1894

σ

Standard deviation calculator

Enter comma-separated values – get SD, variance, and mean instantly



Enter at least 2 numbers. Spaces around commas are fine.


Step-by-step working


    How to use this standard deviation calculator

    1. Type or paste your numbers into the data box, separated by commas (e.g. 4, 7, 13, 2, 1).
    2. Select Sample SD if your values are a subset of a larger population, or Population SD if you have every data point.
    3. Click Calculate. The result card shows the SD, variance, mean, and a numbered step-by-step solution using your actual values.
    4. Click Reset to clear the form and start a new calculation.

    What is standard deviation?

    In my experience teaching statistics, the concept clicks fastest when students think of it as the “average distance from the mean.” It is not literally the average distance (that would be mean absolute deviation), but it behaves like one and shares the same unit as the data — which makes it far more interpretable than variance.

    My POV

    I have seen students spend more time memorising the formula than understanding what the number means. My advice: before you calculate, look at your data and guess whether the spread is small or large. Then check whether your SD matches that intuition. That habit builds real statistical sense faster than any formula drill.

    The standard deviation formula explained

    Population standard deviation

    σ = √[ Σ(xᵢ − μ)² / N ]

    Sample standard deviation

    s = √[ Σ(xᵢ − x̄)² / (n−1) ]

    Symbol Meaning SI / unit
    σ Population standard deviation Same as data
    s Sample standard deviation Same as data
    μ Population mean Same as data
    x̄ Sample mean Same as data
    xᵢ Each individual data value Same as data
    N Total number of values (population) Dimensionless
    n Number of values in the sample Dimensionless
    Σ Sum over all values –

    SI note: Standard deviation carries the same unit as the original data. If your data is in kilograms, SD is in kilograms. Variance is in kg² — which is why SD is usually preferred for reporting.

    Worked examples: step-by-step calculations

    Example 1 – Sample SD: test scores

    Dataset: 70, 80, 85, 90, 75 (five students’ scores)

    1. n = 5
    2. Mean: (70 + 80 + 85 + 90 + 75) / 5 = 400 / 5 = 80
    3. Squared deviations: (70−80)² = 100; (80−80)² = 0; (85−80)² = 25; (90−80)² = 100; (75−80)² = 25
    4. Sum of squared deviations = 100 + 0 + 25 + 100 + 25 = 250
    5. Variance (sample): 250 / (5−1) = 250 / 4 = 62.5
    6. Sample SD: √62.5 ≈ 7.906

    Interpretation: on average, each score sits about 7.9 points away from the class mean of 80.

    Example 2 – Population SD: daily temperatures (°C)

    Dataset: 22, 24, 19, 27, 21, 25, 20 (full week – every day recorded)

    1. N = 7
    2. Mean: (22+24+19+27+21+25+20) / 7 = 158 / 7 ≈ 22.571
    3. Squared deviations: (22−22.571)² ≈ 0.326; (24−22.571)² ≈ 2.041; (19−22.571)² ≈ 12.755; (27−22.571)² ≈ 19.612; (21−22.571)² ≈ 2.469; (25−22.571)² ≈ 5.898; (20−22.571)² ≈ 6.612
    4. Sum ≈ 49.714
    5. Variance (population): 49.714 / 7 ≈ 7.102
    6. Population SD: √7.102 ≈ 2.665 °C

    Interpretation: daily temperatures varied by about 2.7 °C from the weekly average.

    Visual: the 68–95–99.7 rule

      Normal distribution with mean μ and SD σ:
    
      |<-------- 99.7% -------->|
      |<------ 95% ------>|
      |<-- 68% -->|
      ___
     /   \
    /     \
    |  μ  |
    \     /
     \___/
      μ-3σ  μ-2σ  μ-1σ   μ   μ+1σ  μ+2σ  μ+3σ
    
      ±1σ  covers ~68.3% of data
      ±2σ  covers ~95.4% of data
      ±3σ  covers ~99.7% of data
        

    Population SD vs sample SD: which should you use?

    Use population SD when your dataset contains every member of the group you are studying. Use sample SD when your data is a subset drawn from a larger population — which is the case in most real research.

    Feature Population SD (σ) Sample SD (s)
    Denominator N n−1
    When to use You have ALL data points You have a subset
    Bias Exact for the population Unbiased estimate of σ
    Typical context Whole-class exam scores, census data Survey samples, experiments
    Result vs population SD Reference value Slightly larger than σ

    Try the kVA Calculator for electrical calculations

    Common mistakes when calculating standard deviation

    Wrong: Dividing by n instead of n−1 for a sample.
    Right: Always use n−1 (Bessel’s correction) when your data is a sample. Using n underestimates the true population spread.
    Wrong: Forgetting to square the deviations before summing.
    Right: The deviations (xᵢ − x̄) always sum to zero. You must square them first, otherwise the formula produces nothing useful.
    Wrong: Reporting variance when the question asks for standard deviation.
    Right: Variance is in squared units. Take the square root to get SD in the original unit.
    My POV

    The n vs n−1 confusion trips up even university students. Here is the mental model I use: when you only have a sample, your data tends to cluster closer to the sample mean than the true population mean — so the raw sum of squared deviations slightly underestimates reality. Dividing by n−1 inflates the result just enough to correct for that bias. It is a small but important adjustment.

    🧠 Worth Knowing

    Most guides teach standard deviation as a purely descriptive statistic, but its real power is in comparing variability across datasets with different means. A raw SD of 5 means nothing on its own. Divide it by the mean to get the coefficient of variation (CV = SD / mean × 100%) — a unit-free ratio that lets you compare the spread of, say, exam scores (mean 80, SD 8, CV = 10%) against stock returns (mean 2%, SD 5%, CV = 250%). That comparison is impossible with raw SD alone, and most introductory courses skip it entirely.

    Frequently asked questions

    What is standard deviation in simple terms?
    Standard deviation is a number that tells you how spread out your data is around the average. A small SD means most values are close to the mean; a large SD means they are scattered widely. Think of it as the “typical distance” each data point sits from the center.
    What is the difference between population and sample standard deviation?
    Population SD (σ) uses all data points and divides by N. Sample SD (s) uses a subset and divides by n−1. The n−1 denominator — called Bessel’s correction — compensates for the fact that a sample tends to underestimate the true spread of the full population.
    Can standard deviation be negative?
    No. Standard deviation is always zero or positive. It is the square root of variance, which is a sum of squared values — squared numbers are never negative, so neither is their square root.
    What does a standard deviation of 0 mean?
    A standard deviation of 0 means every value in the dataset is exactly the same. There is no spread at all. For example, the dataset {5, 5, 5, 5} has a mean of 5 and an SD of 0.
    How many data points do I need to calculate standard deviation?
    You need at least 2 values. For sample SD, the denominator is n−1; with only 1 value, that becomes 0, making the calculation undefined. For population SD, 1 value is technically valid (SD = 0), but a single data point carries no meaningful statistical information.
    Is standard deviation the same as variance?
    No. Variance is the average of the squared deviations from the mean. Standard deviation is the square root of variance. The key practical difference: variance is in squared units (e.g. kg²), while SD is in the original unit (e.g. kg), making SD far easier to interpret alongside the raw data.

    Related articles

    Leave a Comment

    Your email address will not be published. Required fields are marked *

    Scroll to Top