The Handy Calculators logoTheHandyCalculators.com

    Standard Deviation Calculator

    Mean, median, mode, range, sample/population standard deviation, variance, quartiles, IQR, and SEM for any list of numbers.

    Autosave on
    Count (n)
    10
    Mean
    14
    Median
    14
    Mode
    14 (×2)

    Spread

    • Standard deviation2.582
    • Variance6.6667
    • Range8
    • IQR (Q3 − Q1)3.5
    • SEM0.8165

    Five-number summary

    • Min10
    • Q1 (25th %ile)12.25
    • Median14
    • Q3 (75th %ile)15.75
    • Max18

    Compute mean, median, mode, range, standard deviation, variance, quartiles, and the standard error of the mean for any list of numbers. Choose sample (n−1) or population (n) standard deviation.

    What each statistic tells you

    Mean — the arithmetic average. Sensitive to outliers; one extreme value pulls it noticeably.

    Median — the middle value when sorted. Robust to outliers, which is why income and home-price reports use the median, not the mean.

    Mode — the most frequent value(s). A dataset can have no mode (no repeats), one mode (unimodal), or multiple modes (bimodal, multimodal). Especially useful for categorical or discrete data.

    Range — max minus min. Quick spread but completely outlier-driven.

    Variance & standard deviation — average squared deviation from the mean (variance), or its square root (SD). SD is in the same units as the data, which is why it's the workhorse spread statistic.

    Interquartile range (IQR) — Q3 − Q1. The spread of the middle 50% of the data. Used in box plots and outlier detection (anything beyond Q1 − 1.5×IQR or Q3 + 1.5×IQR is a candidate outlier).

    Standard error of the mean (SEM) — SD ÷ √n. The expected standard deviation of the sample mean if you took many samples. Drives the width of confidence intervals.

    Sample vs population SD — when to use which

    Population SD divides by n. Use it ONLY when your data is the entire population you care about (e.g. exam scores for every student in a single class, when the class IS the population).

    Sample SD divides by n−1 (Bessel's correction). Use it when your data is a SAMPLE drawn from a larger population (e.g. survey of 100 customers from a base of 100 000). The n−1 denominator corrects for the fact that the sample mean is itself estimated from the same data — without it, sample SD systematically underestimates the true population SD.

    Almost every real-world calculation uses sample SD, including every standard statistical test (t-tests, regression, ANOVA). The difference shrinks as n grows: at n = 100, sample and population SD differ by 0.5%.

    Worked example

    Dataset: 12, 15, 14, 10, 18, 17, 16, 14, 13, 11 (n = 10). Sum = 140, mean = 14.0.

    Squared deviations: (12−14)² + (15−14)² + … = 4 + 1 + 0 + 16 + 16 + 9 + 4 + 0 + 1 + 9 = 60.

    Sample variance = 60 / 9 = 6.667. Sample SD = √6.667 ≈ 2.582. Population SD would be √(60/10) = √6 ≈ 2.449.

    Sorted: 10, 11, 12, 13, 14, 14, 15, 16, 17, 18. Median = (14+14)/2 = 14. Mode = 14 (appears twice). Range = 18 − 10 = 8. Q1 = 12.25, Q3 = 15.75, IQR = 3.5. SEM = 2.582 / √10 ≈ 0.816.

    Common pitfalls

    Mixing sample and population SD between studies makes results incomparable. State explicitly which one you used.

    Standard deviation assumes a roughly symmetric distribution. For skewed data (income, response times, traffic), report median + IQR instead — the SD will be misleading.

    Outliers explode SD because they're squared. One extreme value can multiply SD by 2× or more. Always plot or quantile-check before reporting.

    Don't confuse SD with SEM. SD measures spread of the data; SEM measures uncertainty in the estimate of the mean. SEM is always smaller than SD by a factor of √n. Bar charts that show 'mean ± SEM' look much tighter than 'mean ± SD' for the same data — neither is wrong, but they answer different questions.

    Quartile definitions vary across software. This calculator uses the linear-interpolation method (R-7 / Excel.QUARTILE / NumPy default). SAS, Minitab, and TI calculators may give slightly different Q1/Q3.

    Frequently asked questions

    What's the difference between sample and population SD?

    Sample SD divides squared deviations by n−1; population SD divides by n. Use sample SD whenever your data is a subset of a larger population (almost always).

    What if my data has no repeated values?

    There's no mode — the calculator returns '—' for mode. That's the standard convention; some textbooks call this 'no mode', others 'every value is a mode' (statistically equivalent).

    Can I paste a column from Excel?

    Yes. Numbers separated by commas, spaces, tabs, semicolons, or new lines all work. Non-numeric tokens are silently skipped.

    Why is my SEM smaller than my SD?

    SEM = SD / √n. Larger samples give a tighter estimate of the mean — that's exactly what SEM measures, and it shrinks with √n.

    How are quartiles calculated?

    Linear interpolation between the two surrounding ranks (R-7 method, the default in Excel and NumPy). For exactly 4 values, Q1 = 1.75th value, Q3 = 3.25th value, with linear interpolation between the integer ranks.

    Is the variance shown the same as SD squared?

    Yes. Variance = SD². They contain the same information; SD is preferred for reporting because it's in the same units as the data.

    Can I do this for very large datasets?

    Up to roughly 100 000 numbers will run in milliseconds. Beyond that, use a dedicated stats tool — but the math here scales linearly so it'll still complete.

    By Larius software engineer, NC real estate broker & CRE/business appraiserLast reviewed: June 2026Reviewed by the Handy Calculators editorial teamHow we build calculators

    More in Math Tools

    General-purpose math: percentages, percent change, averages, proportions, slope/grade, fractions, descriptive statistics, and a full scientific calculator.

    See hub →
    Browse all Education →