Techniquecore
Tolerance stack-up analysis
Also called tolerance analysis, worst-case and RSS tolerance analysis.
Computes the variation of an assembly dimension from the tolerances of the parts, by the worst case sum or by the root sum of squares.
Tolerance stack-up analysis computes how much a dimension of an assembly, such as a gap or a clearance, can vary when each part is made within its own tolerance. Each part dimension is a nominal value plus or minus a tolerance, and the assembly dimension is a function of them, most often a signed sum along a chain of dimensions. The worst case method adds the tolerances: it gives the exact range of a linear sum when every part is anywhere inside its tolerance, so the assembly always works if the parts are in tolerance. The root sum of squares (RSS) method adds the squares of the tolerances and takes the root: it gives the spread of the sum when the part errors are independent random variables, and it is much smaller than the worst case for long chains. RSS is right only under its assumptions: independent errors, centered on the nominal, with a known spread per tolerance, usually a normal distribution with the tolerance at three standard deviations. When those fail, or the function is not linear, Monte Carlo simulation of the assembly is the usual check. This page is about mechanical tolerances of parts. It is not the timing or the process variation analysis of chip design.
In plain words
A shaft goes into a housing, with three spacers on it. Each piece is made a little too long or a little too short, within a tolerance printed on its drawing. Will there always be a gap at the end, or can the pieces jam?
The safe answer adds up all the tolerances, as if every piece came out at its worst at the same time. If the gap is still positive, it always fits. This is the worst case method.
But pieces are rarely all at their worst together. If the errors are random and independent, they partly cancel. Then the spread of the total grows like the square root of the sum of the squares of the tolerances, not like their sum. This is the RSS method. It lets you use looser and cheaper tolerances, but a small fraction of assemblies can then fail.
When it applies
- An assembly requirement is a function of part dimensions, such as a gap, a clearance, an overlap or a position.
- Each has a nominal value and a tolerance : an accepted part has (symmetric tolerances; an asymmetric one is turned into a symmetric one about its middle).
- The question is the range of (worst case), or the fraction of assemblies outside a limit (statistical), or the inverse: tolerances that keep within a limit at the least cost (tolerance allocation).
- For the RSS method, the are independent random variables with means and known standard deviations , often .
The template
Step 1: the chain. Write as a function of the part dimensions. For a one-dimensional chain of dimensions, with for a dimension that increases the gap and for one that decreases it. For a nonlinear , linearize at the nominal: , and .
Step 2: the nominal. (or ).
Step 3: the worst case.
Why it is exact for a linear . Each term ranges over independently of the others, since the box of allowed is a product. The sum of independent ranges is the sum of the intervals, and both ends are reached at corners of the box, where each is at the end that pushes the same way. This is interval arithmetic on a sum, which is exact because each variable appears once.
Step 4: the statistical sum. If the are independent with standard deviations , then by the additivity of variance for independent variables,
This is exact for a linear and needs no assumption on the shape of the distributions. With , the RSS tolerance is
If every is normal, is normal, and holds of assemblies. If the are not normal, the central limit theorem makes close to normal for many terms of similar size. That is an approximation, and it is weakest in the tails, which are what a failure rate measures.
Step 5: compare and decide. Always , by the inequalities between the 1-norm and the 2-norm of the vector . Use the worst case when every assembly must work or when is small, and the statistical sum when a small, stated fraction of failures is acceptable and the assumptions hold. A bound that needs no distribution comes from the Chebyshev inequality: when the errors are centered.
Step 6: if the assumptions fail, simulate. Draw each from its distribution with a fixed seed, compute , and count the failures. With samples, the estimate of a failure rate has standard error , so a rate of needs many millions of samples to estimate well.
Classic examples
A linear stack. A housing of length holds three parts , and in a row. The end gap is .
| method | tolerance on | range of | can ? |
|---|---|---|---|
| nominal | |||
| worst case | yes | ||
| RSS | with probability |
The worst case range was checked at all corners of the tolerance box. Under the RSS model, , the nominal gap is standard deviations above , and a normal is negative with probability . A Monte Carlo run with normal errors (, seed 2026, ) saw negative gap, a rate of , which agrees but is far too few events to estimate the rate. Without the normal assumption, the Chebyshev bound only gives .
The same stack with uniform errors. If each part is spread uniformly over its whole tolerance, , so . The normal approximation then gives , while a Monte Carlo run (seed 2026, ) gives . The sum of four uniforms has lighter tails than a normal, and the approximation is off by a factor of about in the tail. These are runs on one toy input, not data from a factory.
Allocation. Five parts of equal tolerance in a chain must keep within . The worst case allows , and RSS allows , more than twice as loose.
Variations
- Estimated mean shift. Real processes are not centered on the nominal. Greenwood and Chase (1987) add a fraction of each tolerance in the worst case way and the rest statistically, . With all it is RSS, and with all it is the worst case.
- Inflated RSS. A factor larger than on is used in industry to cover the gap between the model and real processes.
- Nonlinear functions. The linearization of Step 1 with the same sums, or Monte Carlo on itself.
- Two and three dimensions. Clearances that depend on angles and positions, as in the fit of features, are modeled as a vector loop of dimensions and angles, which is nonlinear.
- Allocation. The inverse problem: choose the to minimize a cost that falls as tolerances loosen, subject to or . With costs and the worst case constraint, the Lagrange condition gives for .
Pitfalls
- The worst case is not at a corner for a nonlinear . Take with and radians. The four corners give , but the true range is , with the maximum at inside the box. Linearization at is worse: there, so the angle seems to add no variation at all. When is not monotone in each variable, find its range by optimization over the box, which is easy when is a convex function or its negative.
- Correlated errors. Two dimensions machined in one setup, or from one fixture, can err together. RSS assumes independence and then underestimates the spread. With correlations , .
- Few terms. With two or three terms the central limit theorem does not help, and the shape of each distribution matters. The uniform example above shows a factor of in the tail with four terms.
- The three-sigma rule is a model. says that the process spread fills the tolerance at three standard deviations. A process with a better or a worse capability changes every statistical number.
- Signs in the chain. A dimension counted with the wrong sign, or counted twice, gives a wrong answer that no statistics repairs. Draw the chain as a loop of arrows first.
- Tail estimates from simulation. Rare failures need many samples. A run with no failures does not show that the rate is .
Exercises
- Three parts with tolerances each form a chain. Give and . Answer: and .
- Prove , and say when each side is an equality. Hint: square the left side, and use the Cauchy-Schwarz inequality on the right. Equality on the left holds when at most one term is nonzero, and on the right when all the are equal.
- In the linear stack above, how large can the tolerance of be, with the others fixed, so that the worst case gap is never negative? Answer: .
- For parts with equal tolerance and an assembly limit , show that RSS allows times the tolerance that the worst case allows.
- For above, find the range of by hand, and explain why a check of the corners of the box misses the maximum.
References
- Kenneth W. Chase and Alan R. Parkinson, A survey of research in the application of tolerance analysis to the design of mechanical assemblies, Research in Engineering Design 3(1), 1991, 23 to 37, the worst case and the statistical models of a stack, the linearization of nonlinear assembly functions, Monte Carlo simulation, and tolerance allocation
- W. H. Greenwood and K. W. Chase, A new tolerance analysis method for designers and manufacturers, Journal of Engineering for Industry 109(2), 1987, 112 to 116, the estimated mean shift model, between the worst case and the root sum of squares
- K. W. Chase and W. H. Greenwood, Design issues in mechanical tolerance analysis, Manufacturing Review 1(1), 1988, 50 to 59, the assumptions of the statistical models (independence, distribution, mean shift) and the choice between the worst case and the statistical sum
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag PFFNK7 Edit this page History Report an error Markdown