Winsorized Mean Calculator

Average data after capping extreme values instead of removing them.

Math and PercentUpdated 2026-11-192 min read
Winsorized Mean Calculator
Numbers separated by commas or spaces.
A 10 percent cap changes the lowest and highest 10 percent of the sorted data.
Winsorized mean
...
Ordinary mean...
Values changed...

What it does

A Winsorized mean limits the effect of extreme values without throwing them away. The smallest and largest observations are replaced by values nearer the middle, and then the usual average is taken over the full set.

This tool sorts the data, caps the chosen share at each end, and reports both the adjusted mean and the ordinary mean. It also counts how many values were changed, so the size of the adjustment is visible.

NIST describes the method as an alternative to the trimmed mean. Trimming deletes tail points; Winsorizing sets them to a boundary value instead. That keeps the sample size intact and preserves some information about how many extremes were present.

The choice of percentage is a judgement. A small cap barely changes the answer, while a large one pulls the result toward the centre and can hide real variation. Report the percentage alongside the number you publish.

How to use

  1. Enter the values separated by commas or spaces.
  2. Choose the share to cap at each tail.
  3. Read the Winsorized mean in the main result.
  4. Compare it with the ordinary mean shown below.
  5. Check how many values were changed.
  6. Try a second cap level to see how stable the centre is.

Formula

Winsorized mean = mean of the data after replacing the k lowest values with sorted[k+1] and the k highest with sorted[n-k], where k = floor(n x p / 100).
n
Number of values supplied.
p
Percentage capped at each tail.
k
Count replaced at each end, rounded down.

The data are sorted before any replacement, so typing order does not matter. A 0 percent cap leaves the ordinary mean unchanged. The count replaced is rounded down, which means small samples are capped by less than the requested percentage. A 90 percent Winsorized mean, for example, caps the bottom and top five percent as described in the NIST documentation.

Worked example

Example: a 10 percent cap on ten values

Values 1, 2, 2, 3, 4, 5, 6, 8, 10, 100 with a 10 percent cap.

  1. Ten values at 10 percent means one value per tail.
  2. The lowest value 1 is replaced by the next value, 2.
  3. The highest value 100 is replaced by the next value down, 10.
  4. The adjusted sum is 52, so the mean is 52 / 10 = 5.2.
  5. The ordinary mean is 141 / 10 = 14.1.
  6. Tool shows 5.2, an ordinary mean of 14.1, and 2 changed.

Reference table

Winsorizing the same ten values at different levels
Cap each tailValues changedWinsorized meanOrdinary mean
0 %014.114.1
10 %25.214.1
20 %44.814.1
30 %64.514.1
40 %84.514.1

Limits

  • The cap level is subjective and changes the answer.
  • Rounding the count down makes small samples cap less than requested.
  • Replacing extremes keeps them in the data, which some analyses may not want.
  • The result still reflects every remaining value.

Common mistakes

  • Dropping extremes instead of replacing them.
  • Capping 10 percent in total rather than from each tail.
  • Choosing a cap so large that all values are replaced.
  • Assuming the result is the same as a trimmed mean.
  • Selecting the cap only after seeing the answer.

Try it yourself

Quick checks. Answers sit tucked under each question.

Ten values with a 10 percent cap: how many are changed?

Two, one at each end.

For the example data, what is the Winsorized mean?

52 / 10 = 5.2.

What does a 0 percent cap give?

The ordinary mean, because nothing changes.

Questions

What is a Winsorized mean?

A mean taken after extreme values are replaced by boundary values.

How is it different from a trimmed mean?

Trimming removes tail points; Winsorizing keeps them at capped values.

What cap level is typical?

Five or ten percent at each tail.

Does the sample size change?

No. Every original position is still averaged.

Does typing order matter?

No. The tool sorts the data first.

Why report the cap percentage?

Because the answer depends on it.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.