Standard Deviation Calculator
See the spread behind the average.
Enter your data
Exact statistics.
Separate signed decimals, scientific e notation or integer fractions with commas, spaces, semicolons, pipes or new lines. Decimal point only; commas separate values, never thousands.
Each method keeps its own data. Frequency counts represent repeated observations, not arbitrary weights.
Conventions and display
A literal label only; all observations must already use the same measurement unit. No unit conversion is performed.
Changes the main result only. Both sample and population calculations remain available below.
Exact rational answers do not change. Tiny nonzero views use scientific notation. Halfway values round away from zero.
Imports into the selected method. Files must be UTF-8, at most 64 KiB, and contain only supported numeric data plus an optional frequency header. Invalid files leave current data unchanged.
Supports up to source observations or frequency rows, and total count . Nonzero source magnitudes range from through , with forty significant digits per number. Combined exact arithmetic is bounded to numerator or denominator digits. Results describe the supplied data; no missing values or outliers are removed automatically.
Sample standard deviation
points
Sample and population comparison
Population variance divides by ; sample variance divides by . Variances and squared-deviation totals use squared source units. Standard deviations return to the original unit. Exact radicals and their separately rounded decimal views are both shown.
Sample standard deviation
Population standard deviation
Sample variance
Population variance
Arithmetic mean
Sum of squared deviations
Estimated standard error of mean
Sum of observations
Minimum
Maximum
Range
Mean absolute deviation about the mean
Sum of squared observations
- Observation count
- Distinct exact values
- Zero-frequency rows excluded
The estimated standard error has its usual sampling interpretation only with independent, comparably distributed observations. Mean absolute deviation here means the average absolute distance from the mean, not median absolute deviation.
Step-by-step standard deviation solution
1. Validate the observation model
Every active source is checked. Integer frequencies count actual repetitions; zero-frequency rows are excluded and reported. The selected highlight does not hide the other denominator convention.
2. Find the exact arithmetic mean
The unrounded total and observation count determine the center. Exact decimal and fraction arithmetic preserves close values and cancellation.
3. Center, square and weight each observation
Subtract the same exact mean from every distinct value. Square that deviation and multiply by its repetition count. The audit table retains every contribution.
4. Choose the variance denominator
The population treats these observations as the complete target set. The sample convention divides by one fewer observation when estimating a larger population variance.
5. Take the nonnegative square roots
The square-root forms are exact. Perfect rational squares simplify to rational values. Decimal views are rounded from the full rational square using integer comparisons, without floating-point overflow or underflow.
6. Check the centered arithmetic independently
Signed weighted deviations must total zero. A separate exact second-moment identity must reproduce the same squared-deviation sum. No rounded intermediate is reused in either audit.
7. Keep standard error and relative spread distinct
The estimated standard error uses the sample spread and presumes independent, comparably distributed observations for its usual interpretation. Optional coefficients of variation require a positive mean and meaningful ratio-scale zero. Neither output is a confidence interval or a guarantee of measurement accuracy.
Sorted squared-deviation audit
Each row keeps one distinct exact value and its full repetition count. The same unrounded mean is subtracted in every row. Squared and frequency-weighted contributions use squared source units; contribution percentages are undefined when total dispersion is zero.
Showing distinct rows 1–4 of 4. Printing includes this page; copying and CSV include every row.
| Observed value | Frequency | Signed deviation | Squared deviation | Weighted square | Weighted signed deviation | Share of squared-deviation total |
|---|---|---|---|---|---|---|
| Valuepoints | ||||||
| Valuepoints | ||||||
| Valuepoints | ||||||
| Valuepoints |
See how each observation contributes to spread
Compare both variance denominators
A sample and a complete population can contain the same numerical observations while serving different statistical purposes. The comparison keeps their shared squared-deviation total visible and changes only the appropriate denominator. Choosing the highlighted estimate does not delete the other result. A small dataset can describe a complete target set, and a large dataset can still be a sample, so the tool does not choose the interpretation from count alone.
Audit every weighted squared deviation
The sorted audit connects an exact observed value to its repetition count, signed deviation, squared deviation and weighted contribution. Rows with identical numerical values are combined without changing their total multiplicity. Percentages show how much of the squared total each row contributes, while a constant dataset receives an explicit no-dispersion statement. All rows remain in copying and CSV even when the browser displays only one page.
Retain small differences beside large values
Large measurement offsets can hide a small real numerical spread when rounded binary values are subtracted. Exact rational sources preserve those differences before squaring. The standard-deviation view then rounds directly from the rational square, without using an overflowing or underflowing floating-point intermediate. These arithmetic guarantees concern the entered numbers; they do not create additional measurement precision or establish that a dataset represents a wider population.
Standard deviation formulas and a complete worked example
The population formula treats the supplied values as the complete target set, whose center is numerically . The sample formulas require . For , the mean is and the squared-deviation total is . Therefore , , and .
For the repeated-value example , the mean is and the squared total is . Its population standard deviation is exactly , while its sample standard deviation is . The same observations produce different denominators without changing their center or individual contributions.
Standard error presumes a suitable independent sampling model for its usual interpretation. Relative spread additionally requires a meaningful ratio-scale zero and a positive mean. No normal-distribution coverage percentages or confidence intervals are inferred automatically.
Why exact arithmetic and interpretation stay separate
The numerical audit is reproducible
- Invalid source tokens and missing punctuated cells never disappear or become zero.
- The mean and each deviation retain exact rational values through the squared total.
- Signed weighted deviations close to zero exactly, and a second-moment identity independently checks the total.
- Square-root views use exact rounding boundaries, while full certificates remain available in CSV.
The statistical model remains explicit
- Both sample and population results remain visible under a clear denominator convention.
- A singleton's undefined sample estimates are distinguished from genuine zero spread.
- Frequency counts represent repeated observations, with zero-count exclusions reported.
- Standard error and optional relative spread include their own interpretation and scale assumptions.
A practical spread check for learning and numerical review
Students following the variance calculation
Work from a shared mean into signed differences, squared distances and the final denominator. The default dataset contains repeated values and unequal deviations, so the frequency audit explains why some rows contribute more than others. Compare exact roots with rounded numerical views without treating a decimal approximation as an algebraic certificate. Constant and singleton examples make the boundaries of the two formulas visible.
Teachers comparing conventions and assumptions
Use the same data to explain the distinction between describing a complete target set and estimating a population variance. Compare the individual-observation spread with the estimated standard error of the mean. Frequency tables make the difference between distinct rows and total observations concrete. Exact large-offset and small-scale examples also separate numerical accuracy from the separate question of whether a statistical sampling model is appropriate.
People reviewing numerical measurement lists
Paste supported values or import a local numerical file to inspect dispersion before moving into a larger analysis. Literal labels distinguish a source unit from its squared counterpart without guessing unit conversions. The audit can expose a large contribution that merits checking against the source record, but it never deletes that observation automatically. Range and average absolute distance provide additional descriptive context without claiming to replace a complete distributional analysis.
How it works in three quick steps.
Enter the observations or their repetition counts
Paste a signed numerical list, or choose value and frequency rows. The frequency method uses whole-number multiplicities, not arbitrary reliability weights or grouped intervals. A local CSV or text file can populate either editor. Check that every observation already uses the same unit. Unsupported tokens and oversized sources are rejected explicitly instead of being removed or truncated silently.
Compare the sample and population interpretations
Choose the estimate to highlight while retaining the other convention in the comparison. The calculator reports exact variance and square-root forms, plus separately rounded numerical views. Follow the common mean into each squared deviation and inspect the frequency-weighted contributions. A singleton has zero population dispersion but no defined sample variance or sample standard deviation.
Audit the working and retain a complete record
Review the signed-deviation and second-moment checks, then inspect the sorted audit through its pages. Copy or download the result to preserve every distinct observation and contribution, even when rows or working are hidden. Share the active source when it fits the encoded-link limit. Printing retains visible mathematics and the selected audit page, with complete long certificates available in CSV.
Save the denominator, assumptions and complete contribution audit
Copy both exact and rounded estimates
The readable summary keeps the highlighted convention, both sample and population results, auxiliary estimates and method notes together. Ordered working and all sorted contributions remain included, even when hidden on screen. Mathematical expressions become plain text for destinations that cannot render visual LaTeX. This makes the copied record useful for reviewing the calculation rather than relying on a screenshot of one isolated standard deviation.
Download a complete numerical report
CSV retains the literal active source, source-unit label, precision and interpretation choices alongside each exact result. A rectangular contribution section includes frequencies, signed deviations, squares, weighted totals and percentage contributions. Formula-like text cells are protected against spreadsheet execution. Unavailable estimates retain their reason instead of an invented numerical zero, and hidden rows or optional relative-spread calculations remain distinguishable through the saved display and assumption flags.
Print a focused mathematical worksheet
Use Print / Save PDF and choose a browser PDF destination. Editing controls and supporting article sections are removed, while visible exact working and the selected audit page remain. Short contribution tables stay together and repeated table headings support longer pages. Very long exact expressions point to their complete CSV forms instead of running beyond the page width. For larger audits, use CSV to retain every row rather than assuming one printed page contains the full dataset.
Frequently Asked Questions
Should I use sample or population standard deviation?
What is the difference between variance and standard deviation?
Why does sample variance divide by one fewer observation?
What happens with a singleton or a constant dataset?
How do frequency rows change the calculations?
How are very large offsets and tiny spreads kept accurate?
What does the estimated standard error mean?
When are coefficients of variation useful?
What input, precision and import limits apply?
What is retained in copies, CSV and printed PDFs?
Related calculators
Spread should explain the data and the chosen denominator
A standard deviation describes dispersion through distances from an arithmetic center. Squaring those distances prevents negative and positive deviations from canceling, while also giving distant observations greater influence on the total. Taking the nonnegative square root restores the source unit. A dataset with the same mean as another can still have a very different spread, and one extreme observation can make a substantial contribution. Neither a small standard deviation nor a large sample count establishes measurement accuracy, representativeness or a particular population distribution.
This calculator keeps a numerical audit separate from the interpretation of a dataset. The exact supplied observations determine the mean and squared-deviation total. A population convention describes them as the complete target set; a sample convention uses one fewer degree of freedom in its variance denominator. Both are shown because their statistical purposes cannot be inferred from an opaque unit label. The sample formula requires at least two observations, whereas a singleton has a valid zero population spread. Integer frequencies preserve repetitions without inventing observations inside a grouped class or assuming arbitrary weights count as independent samples.
Exact rational arithmetic retains finite decimal and fraction sources through sorting, centering and squaring. Positive root certificates and certified numerical rounding then keep large, tiny and closely spaced inputs mathematically coherent within the stated bounds. The signed-deviation closure and second-moment identity provide complementary checks on the same source record. Estimated standard error, mean absolute distance and optional coefficients of variation are labelled separately because they answer different questions or require additional assumptions. Together with the complete contribution export, these distinctions help a reviewer connect a numerical spread back to the observations and model that produced it.
Who maintains this page
Ownership and review
Written and maintained by the Toolarithm editorial team. No review date is shown without a maintained editorial record. No independent professional review is claimed.
Methodology
Equations are checked by substituting worked examples into the stated relationship and comparing the result with the interactive implementation.
Read the editorial methodologyDates and sources
Review dates change only after a substantive method or content check.
Keep building