How this standard deviation calculator works
A standard deviation calculator measures how spread out a list of numbers is around its mean. This free calculator pastes a sample or a full population, then shows standard deviation, variance, and — when you open Advanced — the mean, median, quartiles, and a deviation table. Sample is the default, because that is almost always what a student or analyst actually has.
A small standard deviation means the values sit close to the average; a large one means they are scattered. Variance is the square of that figure. Two numbers are the minimum: with a single value there is nothing to spread. The list is numbers only — not free text — and it stays in your browser.
How to use the standard deviation calculator
- Paste or type your numbers. Separate them with spaces, new lines, or semicolons. A comma or a dot can be a decimal.
- Choose Sample or Population. If you are unsure, you have a sample — that is the default.
- Read the standard deviation, variance, mean, count, and sum. Those headline figures do not wait on Advanced.
- Open Advanced only if you want median, mode, quartiles, standard error, coefficient of variation, or the deviation table. Closing it hides those extras even if the checkbox stays ticked.
Sample versus population (n − 1)
A population is every member of the group you care about. A sample is a subset you will use to guess that group. Sample standard deviation divides the sum of squared deviations by n − 1 (Bessel’s correction) so the figure is not systematically too small. Population standard deviation divides by n. Switching the toggle does not change the mean, median, or quartiles — only the denominator of variance and everything built from it (standard deviation, standard error, coefficient of variation).
Standard deviation formulas
These are the same formulas the calculator uses. SS is the sum of squared deviations from the mean. Variance is SS divided by the denominator below; standard deviation is the square root of variance.
Quartiles, median, and Tukey hinges
The median is the middle value of the sorted list, or the average of the two middle values when n is even. Quartiles on this page are Tukey hinges: Q1 is the median of the lower half, Q3 is the median of the upper half. When n is odd, the overall median is left out of both halves. The interquartile range is Q3 − Q1. Mode is the most frequent value or values; if every number appears once, the calculator reports no mode. These extras appear only while Advanced is open.
The deviation table and extra statistics
mean
How a pasted list is read
The calculator splits on spaces, new lines, and semicolons — not on every comma — so a European 12,5 13,2 stays two values. A comma-separated integer list such as 12,15,18 still works, as does 12, 15, 18. US thousands (1,234.5) stay one number. Tokens that are not finite numbers are skipped and counted. At most 5,000 numbers are used. A list that is too long to save still shows a result; history simply will not keep a shorter copy.
Worked examples
Example: sample SD of 2, 4, 4, 4, 5, 5, 7, 9
There are 8 values. The mean is 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4, 16, so SS = 32. Sample variance is 32 ÷ 7 ≈ 4.571, and s ≈ 2.138. That is the default on this page.
Example: the same list as a population
The mean and SS do not change. Population variance is 32 ÷ 8 = 4, so σ = 2. SEM using the sample s is 2.138 ÷ √8 ≈ 0.756. CV is 2.138 ÷ 5 × 100 ≈ 42.76%.
Example: median and quartiles of that list
Sorted, the list is already 2, 4, 4, 4, 5, 5, 7, 9. n is even, so the median is (4 + 5) / 2 = 4.5. The lower half is 2, 4, 4, 4 (Q1 = 4). The upper half is 5, 5, 7, 9 (Q3 = 6). IQR is 2. The mode is 4, which appears three times. Range is 9 − 2 = 7.
Things to keep in mind
Standard deviation is a measure of spread, not of whether a value is “right.” Outliers pull it up quickly. Sample vs population is a denominator choice, not a different mean. Closing Advanced does not clear your paste; it only stops the extra statistics and the table from counting in the result. Completed lists can be saved in this browser’s local history. They stay on your device and are not sent to our servers or to analytics.
Standard deviation calculator FAQ
Should I use sample or population standard deviation?
Use sample (n − 1) unless you truly have every member of the group. That is the default here. Population (n) is for a complete census of the values you care about. If you are unsure, you have a sample.
How do I calculate standard deviation by hand?
Find the mean, subtract it from each value, square those differences, add them (SS), divide by n − 1 for a sample or by n for a population, then take the square root. The deviation table in Advanced shows those first three columns.
What is the difference between variance and standard deviation?
Variance is the average squared deviation from the mean. Standard deviation is its square root, so it is in the same units as the data. This calculator reports both. Switching sample/population changes both, because they share the same denominator.
Why do I need at least two numbers?
Spread is a comparison. One value has no deviations to square, and a sample denominator of n − 1 would be zero. Paste two or more finite numbers to see a result.
How are quartiles calculated on this page?
Tukey hinges: sort the list, split it in half, and take the median of each half. When n is odd, the overall median is excluded from both halves. Q1 is the lower hinge, Q3 the upper, and IQR is Q3 − Q1. They appear only while Advanced is open.
Does this calculator store my numbers?
Completed results can be saved in this browser’s local history so you can reopen them later. The paste is a list of numbers, not free prose. It stays on your device and is not sent to our servers or to analytics. Very long lists still calculate, but history will not keep a truncated copy.