Standard Deviation/Variance Calculator

Enter a set of numbers to get standard deviation and variance instantly

01

Enter numbers

Supports line breaks, commas, spaces, and Chinese commas.

Numbers are calculated only in your browser

02

Summary

Your summary will appear here.

Mean
Count0
Sum0
Population standard deviation
Population variance
Sample standard deviation
Sample variance
Coefficient of variation

What is a standard deviation calculator?

A standard deviation calculator measures how spread out a set of numbers is around their average. When you report only a mean, you hide whether every value sits close together or whether a few outliers stretch the range. Standard deviation and variance answer that dispersion question with two related statistics: variance squares the distances from the mean, and standard deviation takes the square root so the result stays in the same units as your original data.

The standard deviation calculator on Yaya Tools accepts a pasted list of numbers—separated by commas, spaces, line breaks, or Chinese commas—and returns mean, count, sum, population variance, population standard deviation, sample variance, sample standard deviation, and the coefficient of variation (CV). Results update as you type. There is no sign-up, no file upload, and no server round trip: every calculation runs locally in your browser.

Whether you are checking homework, summarizing lab readings, reviewing sales by region, or comparing two datasets before a meeting, a dedicated variance calculator saves time because you do not have to rebuild spreadsheet formulas each time the list changes. The page shows both population and sample formulas side by side, which makes sample vs population standard deviation choices visible instead of buried in a cell comment.

How to use this standard deviation calculator

The workflow is built for quick paste-and-read analysis.

  1. Open the standard deviation calculator in your browser.
  2. Paste or type your numbers into the input box. Separate values with commas, spaces, line breaks, or Chinese commas (,).
  3. Read the summary cards: mean, count, sum, population SD and variance, sample SD and variance, and CV.
  4. Use Reset example to restore the built-in sample dataset, or Clear to wipe the field and start over.

The tool validates input continuously. Empty fields, non-numeric tokens, or values that produce invalid results trigger a status message so you can fix the list before trusting the output. When only one number is present, population statistics still compute, but sample variance and sample standard deviation show "—" because they require at least two values. When the mean is exactly zero, CV also shows "—" because dividing by zero is undefined.

For a quick sanity check on the mean before you interpret spread, compare your result with the average calculator. If you need the raw total of the list, the number sum tool adds the same values without dispersion metrics.

Standard deviation and variance formulas

The calculator implements textbook definitions. Below, n is the count of numbers, xᵢ is each value, μ is the population mean (here, the mean of your entered list), and x̄ is the sample mean (numerically the same as μ for one dataset, but the formulas differ in the denominator).

Mean, count, and sum

Mean (μ or x̄) = sum of all values ÷ n
Sum = x₁ + x₂ + … + xₙ
Count = n

The mean is the balance point of the dataset. Sum and count appear on the results panel so you can verify inputs or reuse totals elsewhere—for example, confirming a column total in the number sum tool before analyzing spread here.

Population variance and population standard deviation

Population formulas treat your entered list as the entire group of interest:

Population variance  σ² = Σ(xᵢ − μ)² ÷ n
Population SD        σ  = √σ²

Each term (xᵢ − μ)² is the squared deviation from the mean. Squaring removes negative signs so values far from the mean contribute more than values close to it. Dividing by n yields the average squared deviation. Taking the square root returns to the original measurement unit, which is why standard deviation is easier to interpret than variance when values represent dollars, seconds, or test points.

Sample variance and sample standard deviation

Sample formulas estimate dispersion for a subset drawn from a larger population. They use n − 1 in the denominator (Bessel's correction):

Sample variance  s² = Σ(xᵢ − x̄)² ÷ (n − 1)
Sample SD        s  = √s²   (requires n ≥ 2)

When n is 1, the sample standard deviation is undefined; the calculator displays "—" for sample variance and sample SD in that case. Population standard deviation still computes because its divisor remains 1.

Coefficient of variation (CV)

CV = (population SD ÷ |mean|) × 100%

CV expresses relative variability as a percentage of the mean's magnitude. It helps compare spread across datasets measured in different units or with very different averages. If the mean is zero, CV is not defined and the tool shows "—". For percentage-style comparisons of two proportions or rates, the percentage calculator handles ratio questions; CV here is specifically a dispersion-to-mean ratio.

Sample vs population standard deviation

Choosing the wrong divisor is one of the most common errors in introductory statistics. The calculator outputs both so you can pick the row that matches your question.

Question you are answering Use Divisor
You have every member of the group (full roster, complete census, all parts measured) Population SD / σ n
You have a subset meant to represent a larger group (survey sample, experimental trial, quality spot-check) Sample SD / s n − 1

Population standard deviation describes the list you actually entered as the whole population. Example: every test score in a class of 28 students when you have all 28 scores and care only about that class.

Sample standard deviation adjusts for the fact that a sample mean x̄ usually sits closer to the sample values than the true population mean would. Dividing by n − 1 instead of n makes the sample variance an unbiased estimator of population variance under standard assumptions. Example: 50 customer ratings chosen from thousands of transactions, where you want to infer variability in the full customer base.

For large n, population and sample standard deviation converge. For small samples, the gap matters. With the example dataset 2, 4, 4, 4, 5, 5, 7, 9 (n = 8), the mean is 5, population SD is 2, and sample SD is approximately 2.138. Reporting 2 when your instructor expects the sample formula—or the reverse—will cost points even when the dataset is identical.

If you are unsure which label your assignment or report requires, check whether the prompt treats the data as a complete census or a sample from something larger. When in doubt, sample SD is the safer default for real-world measurements drawn from a broader process.

Worked examples

These examples use numbers you can paste directly into the tool.

Example 1: Built-in sample dataset

The default list is:

2, 4, 4, 4, 5, 5, 7, 9
  • Count: 8
  • Sum: 40
  • Mean: 5
  • Population variance: 4 → population SD: 2
  • Sample variance: 4.571… → sample SD: ≈ 2.138
  • CV: (2 ÷ 5) × 100% = 40%

The mean matches what you get from the average calculator on the same eight values. Most values cluster near 4–5; 2 and 9 pull the standard deviation up to 2 (population).

Example 2: Identical values (zero spread)

Input:

10, 10, 10, 10

Every value equals the mean, so all squared deviations are zero. Population variance, sample variance, population SD, and sample SD are all 0. CV is 0% because variability is nil relative to the mean. This is a useful edge-case check: if your real-world sensor readings look like this but you expected noise, inspect the data source before continuing analysis.

Example 3: Single value

Input:

42

Mean, sum, and count display normally. Population variance and population SD are 0 because one point has no spread around itself. Sample variance and sample SD show "—" with a note that at least two numbers are required. This matches the behavior described in the tool FAQ.

Example 4: Negative and decimal values

Input:

-1.5, 0, 2.25, 3.75

The calculator accepts negatives and decimals. Mean = (-1.5 + 0 + 2.25 + 3.75) / 4 = 1.125. Squared deviations are computed from that mean; population and sample SD return in the same units as the inputs. CV uses |mean| in the denominator, so a negative mean still produces a positive CV percentage.

Example 5: Comparing two lists with CV

Suppose team A daily sales average $1,000 with population SD $50, and team B averages $200 with population SD $40. Raw SD suggests A is more volatile, but CV tells a different story:

  • Team A CV ≈ 5%
  • Team B CV ≈ 20%

Relative to typical sales level, B fluctuates more. CV is built from population SD on this page; use it when means are non-zero and you want a unitless comparison.

When to use variance vs standard deviation

Variance (σ² or s²) is the average squared deviation. It appears in analysis of variance (ANOVA), many statistical tests, and theoretical derivations because squared terms combine cleanly in algebra.

Standard deviation (σ or s) shares the unit of the original measurements. If heights are in centimeters, SD is in centimeters; if reaction times are in milliseconds, SD is in milliseconds. That makes SD the better choice for reports, charts, and verbal summaries ("scores varied by about 12 points").

This calculator returns both so you can copy the statistic your audience expects. In spreadsheets, SD is often the column you plot as error bars; variance is the intermediate step you rarely show to non-specialists.

For related arithmetic on the same list—mean without spread, or sum without averaging—use the average calculator and number sum respectively. For expressing one dispersion value as a share of another quantity, the percentage calculator complements CV when your question is about ratios rather than spread around a mean.

Common mistakes when calculating standard deviation

Using the sample formula on a full census (or the reverse). If the data are the entire population of interest, population SD with divisor n is appropriate. If the data are a sample, sample SD with divisor n − 1 is standard. The tool prints both; pick intentionally.

Forgetting that sample SD needs at least two points. With one observation, spread around the mean is always zero for population formulas, but sample SD is undefined. Do not treat "—" as a bug—it reflects the mathematics.

Confusing standard deviation with standard error. Standard deviation describes variability in the data. Standard error describes variability in an estimate of the mean (typically SD / √n). This page does not compute standard error.

Mixing up variance and standard deviation when reporting. Saying "the variance is 4 minutes" when you mean SD = 4 minutes misstates spread by a factor related to the square. Always label σ² vs σ (or s² vs s) explicitly.

Entering text or mixed separators incorrectly. The parser splits on whitespace, commas, and Chinese commas. Tokens must be valid numbers. Labels like "N/A" or currency symbols attached without spaces can invalidate the list.

Interpreting CV when the mean is near zero. CV divides by |mean|. Very small means inflate CV; a mean of exactly zero makes CV undefined. For data centered around zero, prefer raw SD or another scale-free method suited to your field.

Rounding intermediate steps manually. The tool keeps full precision internally and formats for display. If you hand-compute with rounded means, your variance can drift. Re-enter the same list to audit spreadsheet work.

References

Frequently asked questions

What does a standard deviation calculator do?

It takes a list of numbers and computes summary statistics that describe central tendency and spread: mean, count, sum, population and sample variance, population and sample standard deviation, and coefficient of variation. The Yaya Tools version updates results live as you edit the list and runs entirely in your browser.

What is the difference between variance and standard deviation?

Variance is the average of squared deviations from the mean. Standard deviation is the square root of variance, restoring the original unit of measurement. Both describe dispersion; standard deviation is usually easier to interpret when reporting to a general audience.

When should I use population vs sample standard deviation?

Use population SD when your data represent the complete group you care about (every item, every student in the class, all measured parts). Use sample SD when your data are a subset meant to estimate variability in a larger population. Population divides by n; sample divides by n − 1.

Why does sample standard deviation require at least two numbers?

Sample variance uses (n − 1) in the denominator. When n = 1, that denominator is zero, so sample variance and sample SD are undefined. Population SD still computes for a single value (it is 0) because population formulas divide by n, not n − 1.

What formula does this variance calculator use for population variance?

Population variance σ² = Σ(xᵢ − μ)² / n, where μ is the mean of your entered values and n is the count. Population standard deviation is the square root of that result.

What formula does the tool use for sample variance?

Sample variance s² = Σ(xᵢ − x̄)² / (n − 1). Sample standard deviation is √s². These match the unbiased sample variance estimator taught in introductory statistics courses.

What is the coefficient of variation (CV)?

CV = (population standard deviation ÷ |mean|) × 100%. It expresses relative variability as a percentage of the mean's size. The calculator shows "—" when the mean is zero because CV would require division by zero.

Can I paste numbers separated by commas or spaces?

Yes. The input parser accepts commas, spaces, line breaks, and Chinese commas. Examples: 1, 2, 3, 1 2 3, or one number per line. Invalid tokens trigger an error message instead of partial results.

Does the calculator support negative numbers and decimals?

Yes. Any finite numeric value can appear in the list. Mean, variance, and standard deviation follow the usual real-number arithmetic. Very large or very small magnitudes may display in scientific notation for readability.

Is my data sent to a server?

No. Parsing and calculation happen locally in your current browser tab. Nothing is uploaded for processing or stored in a Yaya Tools account. Clear the field or close the tab when finished on a shared device.

How is this different from an average calculator?

The average calculator focuses on mean (and related central-tendency tools depending on page version). This page adds dispersion: variance, both standard deviations, and CV. Use both when you need center and spread reported together.

Can I verify the sum of my list here?

Yes. The results panel shows count and sum alongside the mean. For a dedicated addition workflow with a different layout, the number sum tool adds the same values without dispersion statistics.

Why are population and sample SD different on the same dataset?

They use different denominators (n vs n − 1) on the same squared deviations. Sample SD is always slightly larger than population SD for the same list when n ≥ 2. The gap shrinks as n grows.

What is a typical "good" standard deviation?

There is no universal threshold. Context matters: SD = 5 points on a 0–100 exam means something different from SD = 5 mm in precision machining. Compare SD to the mean (via CV), to domain guidelines, or across groups measured the same way.

What happens if I enter non-numeric text?

The tool rejects tokens that are not finite numbers and shows a status message. Fix or remove invalid entries; results refresh automatically when the list is valid.

Does this calculator compute standard error of the mean?

No. Standard error (SD / √n) describes uncertainty in the sample mean, not spread in the raw data. This page reports descriptive dispersion only. Extend results manually if your analysis requires standard error.

How many decimal places are shown?

The formatter uses up to 12 significant digits for most everyday ranges and may switch to scientific notation for very large or very small values. Trailing zeros are trimmed for cleaner display while preserving enough precision to audit hand calculations.