Skip to main content
Calcimator

Weighting Calculator

Calculate post-stratification weights to adjust your survey sample to match population proportions. See the weight for each stratum and overall weighting efficiency.

About this calculator

This calculator computes a post-stratification weight for each of up to four strata as Population % ÷ Sample % (lines 15-18), the factor you'd multiply that stratum's responses by to make your sample proportions match known population proportions. Each stratum's weight depends only on that stratum's own Sample % and Population %; Stratum 1's inputs never move Stratum 2's weight or vice versa (lines 15-18 read one pair of inputs each). At the defaults, Sample % Stratum 1 has a very slightly larger effect on Stratum 1 Weight (about a 20.2% swing when nudged 10% up and down) than Population % Stratum 1 does (exactly 20%) — not a coincidence of these particular numbers but a general property of any ratio N ÷ D: because 1/D is a convex function, a symmetric 10% nudge to the denominator always produces a slightly larger swing than the same-sized nudge to the numerator.

Weighting Efficiency applies Leslie Kish's design effect formula for unequal weighting — Deff = 1 + the coefficient-of-variation-squared of the nonzero weights, lines 26-34 — the same measure Kish introduced in his 1965 text *Survey Sampling* to summarize how much a weighting scheme inflates the variance of survey estimates relative to a simple random sample of the same size; strata whose weight comes out to exactly 0 — Stratum 3 and Stratum 4 at the defaults, since their Population % is 0 — are excluded from that calculation entirely rather than dragging it toward 0. This calculator does not validate that your Sample % or Population % values actually sum to 100 across strata, and it does not compute a true multi-way design effect beyond this weight-only Kish approximation restricted to whichever of the up-to-four strata currently have a nonzero weight.

Inputs

%
%
%
%
%
%
%
%

Results

Stratum 1 Weight

1.28

Stratum 2 Weight1.4
Stratum 3 Weight0
Stratum 4 Weight0
Maximum Weight1.4
Weighting Efficiency99.78%
Sample Pcts40, 35
Min Weight1.28

Figures current as of 1965. Source: Kish, L. (1965). Survey Sampling. New York: John Wiley & Sons.

How to Use This Calculator
  1. Enter the unweighted sample proportions for each demographic stratum.
  2. Input the population proportions for the same strata from census or administrative data.
  3. Review the Post-Stratification Weights calculated for each group.
  4. Apply the weights to your survey responses in your analysis software.
  5. Check the Design Effect output to understand how weighting increases effective variance.

How the result changes with Sample % Stratum 1

Sample % Stratum 1Stratum 1 Weight
202.55
301.7
600.85
1000.51

What each input means

Sample % Stratum 1
Percentage of your survey sample that falls in stratum 1 (e.g., females). This is what you observed.
Population % Stratum 1
Known population percentage for stratum 1 from census or other reference data.
Sample % Stratum 2
Percentage of your survey sample in stratum 2 (e.g., males).
Population % Stratum 2
Known population percentage for stratum 2.
Sample % Stratum 3
Percentage of your survey sample in stratum 3. Set to 0 if unused.
Population % Stratum 3
Known population percentage for stratum 3. Set to 0 if unused.
Sample % Stratum 4
Percentage of your survey sample in stratum 4. Set to 0 if unused.
Population % Stratum 4
Known population percentage for stratum 4. Set to 0 if unused.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Sample % Stratum 1 = 40, Population % Stratum 1 = 51, Sample % Stratum 2 = 35, Population % Stratum 2 = 49 = 8 input(s) provided
  2. Calculate Stratum 1 Weight
    Stratum 1 Weight
    1.275 = 1.275
  3. Calculate Stratum 2 Weight
    Stratum 2 Weight
    1.4 = 1.4
  4. Calculate Stratum 3 Weight
    Stratum 3 Weight
    0 = 0

Figures and sources

Engine last updated . Checked against 1 independently-derived test — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Does Stratum 2's data affect Stratum 1's Weight?

No. Stratum 1 Weight is computed purely from Sample % Stratum 1 and Population % Stratum 1 (line 15) — Stratum 2's, Stratum 3's, and Stratum 4's Sample % and Population % inputs never appear in that formula, so changing them leaves Stratum 1 Weight exactly as it was.

Which input moves Stratum 1 Weight more: Sample % or Population %?

Sample % moves it very slightly more — about a 20.2% swing when nudged 10% up and down, versus exactly 20% for Population %. This isn't specific to these numbers: Weight = Population % ÷ Sample %, and because 1 divided by a value is a convex function, an equal percentage change to the denominator (Sample %) always produces a marginally larger swing in the ratio than the same percentage change to the numerator (Population %).

Why do Stratum 3 and Stratum 4 both show a weight of 0 at the default values?

Because their Population % inputs default to 0, and Weight = Population % ÷ Sample % (line 17-18), so with a zero numerator the weight comes out to 0 regardless of what Sample % is set to. This isn't the same as Sample % being irrelevant to those strata — with a nonzero Population %, Sample % would move the weight exactly like it does for Stratum 1 and Stratum 2.

Does a zero-weight stratum drag down the Weighting Efficiency score?

No — the efficiency calculation filters out any stratum whose weight is 0 before computing the coefficient of variation across the remaining weights (line 21), so Stratum 3 and Stratum 4 at their default values are excluded from Weighting Efficiency entirely rather than being treated as an extreme low weight that would drag the score down. Weighting Efficiency itself is 1 divided by Kish's design effect (Kish, 1965, *Survey Sampling*) — the standard survey-statistics measure of how much a weighting scheme inflates variance compared to an unweighted sample of the same size.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Math & Statistics.