Weighted Standard Deviation Calculator

Calculate the weighted standard deviation when your data points carry different importance, frequency, or reliability. Enter your values and weights to get the weighted mean, weighted standard deviation, variance, and effective sample size — with a full step-by-step solution.

Textbook-accurate formulas · Reviewed July 2026 · Reliability-weight correction reduces to Bessel’s n − 1 when weights are equal

Enter Values & Weights

Values (x)0 values
Weights (w)0 weights

You need exactly one weight for each value. Weights can be counts, credit hours, portfolio amounts, or any measure of importance. They must be non-negative.

Data type

Use Sample when your data is a subset of a larger group. Use Population when your values and weights describe the entire group.

Your Result

Weighted Standard Deviation
Enter values and weights to calculate
Weighted mean
Weighted variance
Σ weights
Effective n

Weighted Distribution

Circle size shows each value’s weight

  • Value (size = weight)
  • Weighted mean
  • ±1 SD range

What Is Weighted Standard Deviation?

Weighted standard deviation measures the spread of a dataset when some values matter more than others. In an ordinary standard deviation, every data point counts equally. But in the real world, that’s often the wrong assumption: a course worth four credit hours should influence your GPA more than a one-credit elective, a $1 million position should move your portfolio’s risk more than a $1,000 one, and a survey response representing a large demographic should carry more weight than one representing a handful of people. Weighted standard deviation gives each value influence proportional to its weight, then measures how spread out the data is around the weighted mean.

The result is expressed in the same units as your original data, so it sits naturally alongside the weighted mean. A small weighted standard deviation means the important, heavily weighted values cluster tightly around the weighted average; a large one means they’re widely dispersed.

The Weighted Standard Deviation Formula

Everything starts with the weighted mean, which is the sum of each value times its weight, divided by the total weight:

w = ( Σ wᵢ xᵢ ) / ( Σ wᵢ )

The population weighted standard deviation then measures the weighted spread around that mean:

σw = √[ ( Σ wᵢ (xᵢ − x̄w)² ) / ( Σ wᵢ ) ]

For a sample, an unbiased (reliability-weight) correction adjusts the denominator so it reduces to the familiar n − 1 when all weights are equal:

sw = √[ ( Σ wᵢ (xᵢ − x̄w)² ) / ( Σ wᵢ − (Σ wᵢ² / Σ wᵢ) ) ]

The calculator above lets you switch between the population and sample forms with one tap, and shows exactly which numbers go where.

How to calculate weighted standard deviation step by step

  1. Find the weighted mean. Multiply each value by its weight, add those products, and divide by the sum of the weights.
  2. Find each weighted squared deviation. For every value, subtract the weighted mean, square the result, and multiply by that value’s weight.
  3. Sum the weighted squared deviations.
  4. Divide by the appropriate denominator — the sum of weights for a population, or the reliability-corrected denominator for a sample.
  5. Take the square root to get the weighted standard deviation.

Frequency Weights vs. Reliability Weights

Not all weights mean the same thing, and the distinction matters for the sample formula. Frequency weights are counts — a weight of 5 means that value literally appears five times. Reliability weights (also called importance or precision weights) signal how much you trust or value each observation, without implying it was observed multiple times. This calculator uses the reliability-weight correction for its sample mode, which is the most general convention and matches the behavior most people expect: when all weights are equal, it collapses neatly to the standard n − 1 sample formula.

 Frequency weightsReliability weights
MeaningHow many times a value occursHow important or precise a value is
ExampleGrouped/frequency tablesSurvey sampling weights, GPA credits
Sample denominatorΣw − 1Σw − (Σw² / Σw)
Whole numbers?Yes, always integer countsCan be any non-negative number

What Is Effective Sample Size?

When weights are unequal, the amount of information in your data isn’t the same as the number of data points. The effective sample size, calculated as (Σwᵢ)² / Σwᵢ², tells you how many equally-weighted observations would carry the same information as your weighted sample. When all weights are equal, it equals the actual count. When a few observations dominate with large weights, the effective sample size shrinks — a useful warning that your results rest on fewer influential points than the raw count suggests. The calculator reports this automatically.

Where Weighted Standard Deviation Is Used

  • Education (GPA): weighting each grade by its credit hours to measure how consistent a student’s performance is. Our Weighted GPA Calculator applies the same weighting idea to grades.
  • Finance: measuring the volatility of a portfolio where positions have very different dollar values.
  • Survey research: applying sampling weights so under- or over-represented groups contribute correctly to the variability estimate.
  • Meta-analysis: combining studies of different sizes or precision, giving more reliable studies more influence.
  • Quality control: weighting measurements by instrument precision or batch size.

Frequently Asked Questions

Weighted standard deviation measures how spread out a dataset is when some values carry more importance, frequency, or reliability than others. Instead of treating every data point equally, it gives each value influence proportional to its weight and measures the spread around the weighted mean. It’s used in GPA calculations, portfolio risk, survey analysis, and meta-analysis, and is expressed in the same units as the original data.

First find the weighted mean by multiplying each value by its weight, summing, and dividing by the total weight. Then, for each value, subtract the weighted mean, square it, and multiply by the weight. Sum these weighted squared deviations and divide by the sum of weights (population) or the reliability-corrected denominator (sample). Finally, take the square root. This calculator performs every step automatically and shows the working.

Regular standard deviation treats every data point as equally important. Weighted standard deviation lets each point carry a different weight, so more important, more frequent, or more reliable values have a greater effect on both the mean and the measure of spread. When all weights are equal, the weighted standard deviation reduces exactly to the ordinary standard deviation.

Use the population form (dividing by the sum of weights) when your values and weights describe the entire group you care about. Use the sample form (with the reliability-weight correction) when your data is a subset of a larger population and you want an unbiased estimate of its spread. This calculator’s sample mode reduces to the standard n − 1 correction when all weights are equal, so it’s a safe default for most estimation work.

Effective sample size, calculated as the square of the sum of weights divided by the sum of squared weights, tells you how many equally-weighted observations would provide the same amount of information as your weighted sample. If all weights are equal, it matches the number of data points. If a few observations have very large weights, the effective sample size shrinks, warning you that your estimate leans heavily on a small number of dominant points.

Weights can be any non-negative numbers, including decimals. Frequency weights are typically whole-number counts, but reliability or importance weights — such as survey sampling weights or precision weights — are often fractional. The only requirements are that each value has exactly one corresponding weight and that no weight is negative. This calculator accepts decimal weights and uses the reliability-weight convention for sample estimates.

Methodology & formulas used

This calculator uses standard weighted-statistics formulas, reviewed July 2026. All computation runs locally in your browser; your data is never uploaded.

  • Weighted mean: x̄w = Σwᵢxᵢ / Σwᵢ
  • Population weighted variance: σ²w = Σwᵢ(xᵢ − x̄w)² / Σwᵢ
  • Sample weighted variance (reliability weights): s²w = Σwᵢ(xᵢ − x̄w)² / (Σwᵢ − Σwᵢ²/Σwᵢ)
  • Weighted standard deviation: square root of the weighted variance
  • Effective sample size: n_eff = (Σwᵢ)² / Σwᵢ²

The sample (reliability-weight) denominator reduces to n − 1 when all weights are equal, matching the ordinary Bessel-corrected sample standard deviation. If you are working with frequency weights (integer counts), the sample denominator is instead Σwᵢ − 1; the population form is identical either way. Weights must be non-negative, and the weighted mean must be defined (sum of weights greater than zero). Results are rounded for display but computed at full precision.

References

  1. NIST Dataplot. Formula for the Weighted Standard Deviation. itl.nist.gov
  2. Real Statistics. Weighted Variance, Standard Deviation, and Covariance. real-statistics.com
  3. Bessel’s Correction — the n − 1 basis for unbiased sample variance. en.wikipedia.org