Tolerance stack-up calculator
A tolerance stack-up adds the dimensions in a chain, across one part or several, to find the gap or interference at the end of it and how far that gap can move. The worst case answers whether it can ever fail, RSS (root sum square) answers how wide the spread really is, and Monte Carlo answers how many assemblies will fall outside your limits.
Type each dimension in the chain with its direction: + if a bigger dimension makes the gap bigger, - if it makes the gap smaller. The calculator opens on the worked example below.
More calculators in the Toolbox
The worked example
A gear and a spacer sit in a housing pocket, held by a washer. The gap left at the end of the pocket is what the stack-up is about.
| Dimension | Direction | As drawn | Mid-tolerance | Half-tolerance h |
|---|---|---|---|---|
| Housing pocket | + | 50 +0.1/0 | 50.050 | 0.050 |
| Spacer | - | 20 ±0.05 | 20.000 | 0.050 |
| Gear | - | 20 ±0.05 | 20.000 | 0.050 |
| Washer | - | 9.8 0/-0.1 | 9.750 | 0.050 |
- Gap at nominal: 50 - 20 - 20 - 9.8 = 0.200
- Gap at mid-tolerance (mean gap): 50.05 - 20 - 20 - 9.75 = 0.300
- Worst case: 0.300 ± 0.200, so 0.100 to 0.500
- RSS: 0.300 ± √(4 × 0.05²) = 0.300 ± 0.100, so 0.200 to 0.400
- Each dimension has the same half-tolerance, so each is 25% of the RSS variance and 25% of the worst case.
The line the calculator prints for it: GAP 0.300 ±0.200 WORST CASE (0.100 TO 0.500), ±0.100 RSS.
Worst case
Gap = Σ(s × m) ± Σh, where s is +1 or -1 for the direction, m is each dimension's mid-tolerance value and h its half-tolerance.
Every dimension sits at the end of its band that hurts the gap most, all at once. If that range is inside the requirement, no set of parts that are in tolerance can fail. In the example the worst case is 0.100 to 0.500: with a smallest acceptable gap of 0, it always fits.
RSS (root sum square)
Gap = Σ(s × m) ± √(Σh²).
RSS assumes every dimension is independent, normally distributed, centred in its band, and that its band is ±3σ (or the level you chose). The result band then holds 99.73% of assemblies (at 3σ). If a process runs off-centre or isn't normal, RSS understates the spread: check the worst case. At ±4σ bands the share is 99.9937%, at ±5σ 99.99994%, and at ±6σ 99.9999998%.
In the example RSS gives ±0.100 against the worst case's ±0.200. With four equal tolerances the RSS band is half as wide, and the more dimensions in the chain, the bigger that difference gets.
Monte Carlo
The calculator builds 100,000 assemblies. Each dimension is drawn at random from its distribution, and the gaps are summed with their directions. A normal row has its mean at mid-tolerance and σ = h / k, where your band is ±kσ, and it is not cut off at the band's ends. A uniform row is equally likely anywhere in its band. The seed is fixed, so the same inputs always give the same answer.
In the example, with every row normal at ±3σ, the gap's standard deviation is 0.0333 (the RSS ±0.100 divided by 3), and about 0.27% of assemblies fall outside 0.200 to 0.400. With every row uniform it is 0.0577 (2 × 0.05 / √3), and about 8.3% fall outside. The distribution matters as much as the tolerance.
A Monte Carlo result is a prediction from the distributions you chose, not a measurement of your process.
Which method to use
- Worst case when one failure is too many (safety, a press fit that must never bind), or the chain has only two or three dimensions.
- RSS for a quick statistical answer on a longer chain, when the processes are centred and capable.
- Monte Carlo when some dimensions are not normal (a uniform or skewed process), when you want parts per million outside a limit, or to check what RSS assumed.
- To decide what to tighten, look at the share of RSS variance: halving the biggest share's tolerance does far more than halving a small one.
How to enter an unequal tolerance
Type the upper and lower deviations as signed numbers, the way they read on the drawing: 50 +0.1/0 is nominal 50, upper +0.1, lower 0; 9.8 0/-0.1 is upper 0, lower -0.1. For an equal tolerance, type the value in the ± box and both are filled in.
Every method works from the middle of each band, not from the nominal: the washer above counts as 9.75 ± 0.05. That is why the gap at mid-tolerance (0.300) differs from the gap at nominal (0.200).
Geometric tolerances in the chain
- Position, regardless of feature size: the feature's axis or centre plane moves ±t/2 along the chain. Enter ±t/2.
- Position at MMC: the zone grows as the feature departs from MMC. For the axis's location, enter ±(t + the feature's size tolerance)/2, which covers it at LMC.
- Profile of a surface, equally disposed: ±t/2. For unequal disposition, use its own offsets.
- Flatness, parallelism and other form or orientation tolerances: don't add them. They sit inside the size or location tolerance already in the chain, so adding them counts twice.
- Datum feature shift is not handled in this version.
Questions
What is the difference between worst case and RSS tolerance stack-up?
Worst case adds every half-tolerance, so it covers every combination of parts in tolerance. RSS adds them as the square root of the sum of squares, which is the spread you expect when the dimensions are independent, normal and centred. RSS is always narrower than the worst case on a chain of two or more.
Which tolerance should I tighten first?
The one with the biggest share of RSS variance. Each share is h² / Σh², so the largest half-tolerance dominates, and tightening a small one barely moves the result.
Does the calculator save my stack-up?
No. Copy link puts the whole stack-up in the address after the #, so the link reopens it. Nothing is stored on our server, and no account or email is needed.
Can I use it in inches?
Yes. Pick in as the unit. The units are a label: type the numbers in the unit you picked. Results print with 4 places in inches and 3 in millimetres, with no leading zero in inches.
Is the Monte Carlo result a yield guarantee?
No. It is a prediction from the distributions you chose, not a measurement of your process. Measure your parts to know your real spread.