Tolerance Stack-Up Calculator
Operator: Abdulla Al Fahad. How tools are built and checked
When four parts line up in a row and the gap at the end has to stay between 2.30 and 2.80 mm, worst case says what is possible and RSS says what is likely, and the two can disagree by a factor of two. This calculator stacks a one-dimensional chain of links by worst case, RSS, RSS inflated by a factor you choose, and a Monte Carlo simulation, and tells you which links to tighten first.
Each link has a nominal size, a plus and a minus tolerance (they may differ), a direction, a distribution and an optional mean shift. The gap limits turn the statistics into a percentage of assemblies that fall outside.
Key features
- Unequal tolerances, links that add to or subtract from the gap, and normal (set by Cp), uniform or triangular distributions
- Worst case, RSS, modified RSS with a Bender-style factor (1.5 by default) and a distribution-based mean plus or minus 3 sigma
- Monte Carlo of 1,000 to 3,000,000 trials with a seed, a histogram, percent out of limits and percentiles
- Pareto of each link's share of the variance, and a what-if table that tightens the top three by 25 %
How each method treats unequal tolerances, distributions and mean shift, and what a 1D chain cannot show
A link's mean is the middle of its tolerance band, so a link of 28.00 with +0.10 and -0.30 is treated as 27.90 +/- 0.20, plus any mean shift. The shift is a fraction of the half tolerance in the link's own direction. A normal link has sigma = (plus + minus) / (6 Cp), so Cp 1 puts the tolerance limits at 3 sigma; a uniform link has sigma = half tolerance over the square root of 3, and a triangular one over the square root of 6.
How it works
Worst case adds the extremes of every link in the direction it pushes the gap. RSS takes the square root of the sum of the squared half tolerances around the mean gap, whatever the distributions. The distribution-based line uses the sum of the actual sigmas and a plus or minus 3 sigma range, and the ppm estimate treats the gap as normal with that sigma.
The Monte Carlo draws each link from its distribution with a seeded generator and adds them with their directions, so it reports the real count outside the limits, including any skew from non-normal links.
When to use it
- A designer of a bearing housing shows that worst case misses the gap requirement while statistics pass, and decides whether to tighten the bore.
- A supplier quality engineer feeds measured Cp values into the normal links to see what a capable process buys.
- A team compares the effect of widening one tolerance in the what-if table before accepting a cheaper machining step.
Inputs
- Enter the links, the gap limits and the inflation factor.
- Read the four methods and the share of each link.
- Run the Monte Carlo and check the percentage out of limits.
- Download the workbook, the report or the CSV.
Worked example
Housing bore depth 28.00 +/-0.15 (normal), bearing width 8.00 +0/-0.12 (normal, subtracts), spacer 6.50 +/-0.05 (uniform, subtracts), gear hub 11.00 +/-0.10 (normal, subtracts); gap limits 2.30 and 2.80
Method: all four, then Monte Carlo with 200,000 trials and seed 2026Gap limits by method (nominal gap 2.50, mean gap 2.56)
Worst case 2.200 to 2.920
RSS +/-0.1965: 2.364 to 2.756; inflated x1.5: 2.265 to 2.855
Sigma 0.0696 mm, 376 ppm out of limits if normal
Monte Carlo: 0.034 % out of limits (15 below, 53 above); shares of variance 51.6, 8.3, 17.2 and 22.9 %Limits
The chain is one-dimensional. Angles, tilts, form errors and geometric zones such as position or perpendicularity are not modelled.
RSS and the sigma-based figures assume the links vary independently of each other.
The ppm figure is a normal-distribution estimate. With a few uniform links it can be far from the Monte Carlo count in the tails.
All links must use one unit; a mixture of millimetres and inches gives nonsense without warning.
- To see what a capability programme is worth, set Cp to 1.33 only on the links the supplier controls and compare the ppm and RSS figures with the all-Cp-1 run.
- Use the mean shift to model tool wear, which pushes a dimension toward one limit rather than leaving it centred; a shift of 0.5 moves the mean halfway to the plus limit.
Common errors and how to fix them
- Link 3: the tolerance band has zero width.
- Give at least one of plus and minus a value above zero.
- Link 2: Cp must be between 0.2 and 5.
- Cp is the process capability of that link; use 1 if you have none.
Best practices
- Enter measured Cp values where you have them; a Cp of 1 for every link is a placeholder, not a capability study.
- Report the method with the number: a worst-case gap and an RSS gap answer different questions.
Choosing between the methods
Worst case guarantees every assembly fits and is the right choice when a failure is expensive or the lot size is small. RSS accepts that all links are rarely extreme together and is reasonable for many links with similar tolerances. The inflation factor of 1.5, from Bender's work on statistical tolerancing, recognises that processes drift and widens the RSS band accordingly.
Monte Carlo is the only method here that shows the shape and the tail. Use it when links have different distributions, when means are shifted, or when a few links dominate and the sum is not close to normal.
A note on the Cp convention
Cp is taken as the tolerance width over six sigma, so a link with Cp 1.33 has sigma smaller by a quarter than Cp 1 would give, and contributes about 56 % of the variance at the same tolerance. Entering a Cp below 1 tells the calculator that the process does not hold its own tolerance.
Frequently asked questions
Why is the Monte Carlo result slightly different each time I change the seed?
It is a sample. With 200,000 trials the count outside the limits (68 of them here) has a sampling error of about 12 % of itself; raise the trials, or compare the percentage with the normal-gap estimate, which has no sampling error.
What spread does a link get from its Cp?
A normal link's standard deviation is its full tolerance band divided by 6 x Cp, so Cp = 1 puts the tolerance limits at plus and minus three sigma and Cp = 1.33 at four. A uniform link uses half the band over the square root of 3 and a triangular link over the square root of 6, and Cp is ignored for both. Values from 0.2 to 5 are accepted; 0.2 describes a process five times wider than its tolerance.
Can I tighten a tolerance and see the result?
The what-if table shows the effect of tightening the three largest contributors by 25 % one at a time. Edit the link and the results update.