Trimmed Mean Calculator workspace
- Input observations
- 5
- Used in result
- 3 / 5
- Method
- 1 removed from each tail (20% per tail; 2 total)
Step-by-step calculation
- 1
Sort the 5 observations from smallest to largest: 1, 2, 3, 4, 100.
- 2
Use k = floor(n × p / 100) = floor(5 × 20 / 100) = 1 observations from each tail.
- 3
Remove the 1 smallest and 1 largest observations, leaving 3 values with sum 9.
- 4
Divide the retained sum by the retained count: x̄ₜ = 9 / 3 = 3.
Inspect sorted observations5 rows
| # | Original | Used value / group size | Contribution / status |
|---|---|---|---|
| 1 | 1 | — | Trimmed low |
| 2 | 2 | 2 | Kept |
| 3 | 3 | 3 | Kept |
| 4 | 4 | 4 | Kept |
| 5 | 100 | — | Trimmed high |
A clearer way to calculate a robust mean
Tail percentage
Specify the percentage removed from each end of the sorted data.
Transparent rounding
The count per tail is k = floor(n × p / 100), shown in the steps.
Keep the sample visible
A sorted table marks every observation as low-tail, retained, or high-tail.
What is a trimmed mean calculator?
A trimmed mean is an arithmetic average calculated after removing a specified number or proportion of the smallest and largest observations. Trimming reduces the influence of extreme tail values while making clear which data were excluded.
Important terms
- Trim percentage p
- The percentage removed independently from the lower and upper tails.
- Order statistic x₍ᵢ₎
- The ith observation after the values are sorted from low to high.
- Trim count k
- The whole number of observations removed from each tail under this calculator's floor convention.
- Retained sample
- The n − 2k observations included in the trimmed average.
When this method is useful
- Summarize data when a few extreme values should have less influence.
- Compare a robust location estimate with the ordinary arithmetic mean.
- Analyze measurements where tail observations are valid but atypical.
- Teach how sorting and tail trimming change the observations included in an average.
Formula and variables
- n
- number of observations
- p
- percentage trimmed from each tail
- k
- whole observations removed from each tail
- x₍ᵢ₎
- ith sorted observation
Sort the observations, calculate k using the stated floor convention, discard k values at each end, then average the remaining n − 2k values. The floor convention is explicit because finite samples cannot remove fractional observations.
Domain note: Enter 1–50 finite values and a per-tail percentage from 0 through 50. The percentage is converted to k = floor(n × p / 100); the tool rejects settings that leave no observations.
How to use this calculator
- 1
Sort the input values in ascending order.
- 2
Calculate the per-tail count k = floor(n × p / 100).
- 3
Remove the k smallest and k largest values.
- 4
Sum and divide the remaining n − 2k observations.
Step-by-step examples
Example 1
Problem: Find the 20% trimmed mean of 1, 2, 3, 4, and 100.
Substitution: k = floor(5 × 20 / 100) = 1; retain 2, 3, 4; (2 + 3 + 4) / 3
Result: 3
The smallest and largest observations are excluded, leaving a retained mean of 3.
Example 2
Problem: Find the 10% trimmed mean of 1 through 10.
Substitution: k = floor(10 × 10 / 100) = 1; retain 2 through 9; 44 / 8
Result: 5.5
One value from each tail is removed.
Example 3
Problem: Use a 0% trim on 2, 4, 6.
Substitution: (2 + 4 + 6) / 3
Result: 4
With no tail removal, the trimmed mean is the ordinary mean.
Rules, edge cases, and related ideas
Sort before trimming
Tail status depends on rank, not on the original order of the observations.
Removal is symmetric here
The calculator removes the same integer count from the lower and upper tails.
Not outlier deletion
Trimming is a chosen summary rule; it does not establish that a removed observation is erroneous.
Edge cases and limitations
- At 0%, no observations are removed and the result is the arithmetic mean.
- Tied values may appear in both retained and trimmed positions; the calculator uses stable sorted positions.
- Percentages are per tail, so 20% means a nominal 40% total before finite-sample rounding.
- A high percentage that leaves no retained observations is rejected.
How this differs from a related concept
The ordinary mean uses every value. The trimmed mean discards a selected number from both tails. The Winsorized mean retains the same number of rows but replaces tail values with boundary values.
Understand the result
A trimmed mean is less affected by sufficiently extreme values than the ordinary mean because those tail observations do not enter the sum. It is not automatically better: the trim percentage should be chosen for a defensible reason and reported alongside the result. Different software can use percentile interpolation or rounding conventions, so check the stated finite-sample rule when comparing results.
Common mistakes
- Interpreting 20% as 20% total rather than 20% from each tail.
- Removing a fractional observation without stating a rounding method.
- Using trimming to discard data simply because they look inconvenient.
- Comparing trimmed means calculated under different rounding conventions.
Frequently asked questions
What is a trimmed mean?
It is the arithmetic mean after removing a chosen number or percentage of the smallest and largest observations.
How is the number removed determined?
This calculator uses k = floor(n × p / 100) for each tail, where p is the entered per-tail percentage.
Does 20% trim remove 20% total?
No. The entered percentage applies to each tail, so 20% is applied to the low and high ends separately before rounding to whole observations.
Can trimmed means be negative?
Yes. The data may include negative, zero, fractional, and repeated finite values.
Is a trimmed mean the same as a median?
No. A trimmed mean averages the values left after tail removal; a median is determined by the central rank or ranks.