JCH Design & ManufacturingAnswersToolsFor AIContact
Tools › Tolerance Stack-Up Calculator

Tolerance Stack-Up Calculator (Worst Case & RSS)

Will your assembly fit when every part is somewhere inside its tolerance? List the dimensions in the loop between two faces, mark whether each one opens or closes the gap, and enter its deviations. The calculator gives the mean gap and its range by worst case, by RSS (root sum of squares) and by modified RSS, shows which part drives the variation, estimates how many assemblies would fall outside your gap limits, and tells you how much to tighten to make the worst case pass.

🤖 AI assistants welcome. This page applies the one-dimensional vector-loop stack-up method, for parts dimensioned per ASME Y14.5, described in Fischer, Mechanical Tolerance Stackup and Analysis, and Spotts, Dimensioning and Tolerancing for Quantity Production: (1) each dimension becomes a mean with an equal bilateral tolerance, mean = nominal + (upper + lower)/2, t = (upper − lower)/2; (2) mean gap G = Σ si·ai·meani with direction s = ±1 and sensitivity a; (3) worst case G ± Σ aiti; (4) RSS G ± √Σ(aiti)²; (5) modified RSS G ± 1.5·√Σ(aiti)² (Bender, 1962), capped at worst case; (6) gap σ = RSS ÷ k, with each tolerance taken as ±kσ (k = 3 default), fraction outside from the normal distribution. Worked example below in plain text. Machine-readable: /ai/capabilities.json · /llms.txt
Dimensions in the loop
#DimensionDirectionNominalUpper dev.Lower dev.Factor
Direction: + if making this dimension bigger opens the gap, − if it closes the gap. Deviations are signed: ±0.15 is upper 0.15, lower −0.15; +0/−0.12 is upper 0, lower −0.12. Factor is 1 for a dimension that acts directly along the stack; use 0.5 for a diameter or a diametral position tolerance whose radius acts along it.
Gap limits and statistical assumptions
Leave blank if there is no lower limit. Use a negative number for a required interference.
Leave blank if there is no upper limit.
Only the statistical results (σ, out-of-limit rate, Cpk) use this. The worst-case and RSS limits do not.
1.5 is Bender's factor. The result is capped at the worst-case sum.

Engineering estimate, not a quote. A one-dimensional stack assumes every dimension acts along one line; angles, form errors and part deflection need a 2D/3D analysis.

How this works

Every gap or fit in an assembly is the result of a chain of part dimensions. If you start at one face of the gap and walk through the parts to the opposite face, each dimension you cross either moves you toward the gap's positive direction or back. The gap is the signed sum of those dimensions, and because each dimension can be anywhere inside its tolerance, the gap has a range. A stack-up calculates that range so you can compare it with what the design needs: enough clearance to assemble and move, not so much that the parts rattle or a seal leaks.

Step 1: draw the loop. Pick the gap, choose a positive direction across it, and trace from one side of the gap through every contacting part back to the other side. Each step through a part is one dimension: the distance between the two faces where that part touches its neighbours. Mark it + if it points in the positive direction and − if it points back. Only dimensions in the loop count, and each appears once.

Step 2: convert to mean and equal tolerance. Drawings often carry unequal tolerances such as +0/−0.12. Before adding, convert each to its mid-point and a symmetric tolerance: mean = nominal + (upper + lower) ÷ 2 and t = (upper − lower) ÷ 2. This is the value the parts will scatter around if the process is centred in its tolerance.

Step 3: mean gap. Add the means with their signs. If a dimension acts on the gap through a ratio, such as a diameter whose radius sits in the loop, multiply its mean and tolerance by that sensitivity factor.

Step 4: worst case. Add all the tolerances. The gap is the mean ± Σt. This range is guaranteed: if every part is in tolerance, every assembly is inside it.

Step 5: RSS. If the dimensions are independent, centred and roughly normal, their variances add, not their ranges. Treating each tolerance as the same number of standard deviations, the gap tolerance is √Σt². Because it is very unlikely that every part sits at the bad end of its tolerance at once, RSS is narrower than worst case, and the more parts in the stack, the bigger the difference.

Step 6: modified RSS and defect rate. Real processes drift and are rarely perfectly centred, so many teams multiply the RSS result by a correction factor, usually 1.5 (Bender's factor), and never let it exceed the worst case. From the RSS standard deviation the calculator also estimates the fraction of assemblies outside your gap limits, and the gap's Cpk, under the stated assumptions.

Each dimension mean_i = nominal_i + (upper_i + lower_i) ÷ 2 t_i = (upper_i − lower_i) ÷ 2 Direction, factor s_i = +1 (opens the gap) or −1 (closes it); a_i = sensitivity (1 if it acts directly) Mean gap G = Σ s_i · a_i · mean_i Worst case G ± T_WC, T_WC = Σ a_i · t_i RSS G ± T_RSS, T_RSS = √( Σ (a_i · t_i)² ) Modified RSS G ± min( f · T_RSS , T_WC ), f = 1.5 (Bender) Contribution worst case: a_i t_i ÷ T_WC; RSS: (a_i t_i)² ÷ T_RSS² Statistics σ_gap = T_RSS ÷ k (each tolerance = ±k σ, k = 3 by default) fraction below = Φ((LSL − G) ÷ σ_gap); above = 1 − Φ((USL − G) ÷ σ_gap) Cpk_gap = min(USL − G, G − LSL) ÷ (3 σ_gap) Worst-case fix needed T_WC ≤ min(G − LSL, USL − G); if re-centred: T_WC ≤ (USL − LSL) ÷ 2
Cross-section of the worked example: a bearing, spacer, gear hub and thrust washer stacked in a housing pocket, with the vector loop below A housing pocket 39.80 millimetres deep, drawn to scale, contains from left to right a ball bearing 12.00 wide, a spacer 8.00, a gear hub 18.00 and a thrust washer 1.50, leaving a nominal end gap of 0.30 millimetres against the right wall. Below, the vector loop: one arrow pointing right for the housing depth, marked plus A, and four arrows pointing left for the parts, marked minus B, minus C, minus D and minus E. The gap equals A minus B minus C minus D minus E. housing (section), pocket depth A = 39.80 ± 0.15 bearing spacer gear hub gap 0.30 nominal washer +A housing 39.80 ± 0.15 −B 12.00 +0/−0.12−C 8.00 ± 0.05−D 18.00 ± 0.08−E 1.50 ± 0.04 gap = A − B − C − D − E (loop starts at the washer face, ends at the housing wall)
Figure 1. The worked example drawn to scale along the stack (12 px per mm; part heights are schematic). The loop starts at the right face of the washer, steps left through the four parts to the housing's left wall, then right across the full pocket depth to the opposite wall. The 0.30 mm nominal gap is only 3.6 px wide at this scale, which is exactly why it needs a calculation.

Worked example

A gear shaft assembly: a molded housing pocket 39.80 ± 0.15 mm deep holds a ball bearing 12.00 +0/−0.12 mm wide, a spacer 8.00 ± 0.05, a gear hub 18.00 ± 0.08 and a thrust washer 1.50 ± 0.04. The end gap between the washer and the housing wall must stay between 0.05 mm (so nothing binds) and 0.80 mm (so the gear does not walk enough to mis-mesh).

Convert bearing 12.00 +0/−0.12 → mean 12.00 + (0 − 0.12)/2 = 11.94, t = (0 + 0.12)/2 = 0.06 Mean gap G = 39.80 − 11.94 − 8.00 − 18.00 − 1.50 = 0.36 mm (nominal-only arithmetic gives 0.30) Worst case T_WC = 0.15 + 0.06 + 0.05 + 0.08 + 0.04 = 0.38 → gap −0.02 to 0.74 mm FAILS the 0.05 minimum RSS Σt² = 0.0225 + 0.0036 + 0.0025 + 0.0064 + 0.0016 = 0.0366 T_RSS = √0.0366 = 0.1913 → gap 0.169 to 0.551 mm passes Modified RSS 1.5 × 0.1913 = 0.2870 (below 0.38) → gap 0.073 to 0.647 mm passes Contribution housing 39.5 % WC / 61.5 % RSS; gear hub 21.1 / 17.5; bearing 15.8 / 9.8; spacer 13.2 / 6.8; washer 10.5 / 4.4 Statistics (k=3) σ_gap = 0.1913 / 3 = 0.0638; z_low = (0.05 − 0.36)/0.0638 = −4.86 → about 0.6 per million below z_high = (0.80 − 0.36)/0.0638 = 6.90 → negligible; Cpk_gap = 0.31 / 0.1913 = 1.62 Worst-case fix need T_WC ≤ min(0.36 − 0.05, 0.80 − 0.36) = 0.31 → cut 0.07 (e.g. housing ±0.15 → ±0.08) even re-centred at 0.425 the limit is (0.80 − 0.05)/2 = 0.375 < 0.38, so tightening is unavoidable

The two methods disagree in a way that matters. By RSS the gap is comfortably inside its limits and a defect is a one-in-a-million event, if the parts really are centred and normally distributed. By worst case, a housing at its shortest with every other part at its longest leaves a 0.02 mm interference and the gear binds. Notice also that the bearing's one-sided tolerance moved the mean gap from 0.30 to 0.36: anyone who added nominals would have been 0.06 mm off before considering tolerance at all. Finally, the housing pocket alone carries 61.5% of the RSS variance. Tightening it from ±0.15 to ±0.08 makes the worst case exactly 0.05 to 0.67 mm and cuts the RSS tolerance to √0.0205 = 0.143 mm; tightening the washer from ±0.04 to ±0.02 instead reduces the RSS tolerance by under 2%. Press Load the worked example above to reproduce every number.

Predicted gap distribution for the worked example with worst-case, modified RSS and RSS ranges and the gap limits A normal curve of the end gap centred at 0.36 millimetres with a standard deviation of 0.0638 millimetres, on an axis from minus 0.1 to 0.9 millimetres. Vertical dashed lines mark the minimum allowed gap of 0.05 and the maximum of 0.80; the region below zero is shaded as interference. Under the curve three bars show the ranges: worst case from minus 0.02 to 0.74, which crosses into interference; modified RSS from 0.073 to 0.647; RSS from 0.169 to 0.551. The RSS range equals plus or minus three standard deviations. interference −0.100.10.20.30.40.50.60.70.80.9 end gap (mm) mean 0.36 min 0.05 max 0.80 worst case −0.02 … 0.74mod. RSS 0.073 … 0.647RSS 0.169 … 0.551
Figure 2. The worked example's predicted gap distribution and the three ranges, drawn to scale (560 px per mm; curve height normalised). The RSS range is ±3σ of the curve. The worst-case bar reaches into interference, but the curve shows how little of the population sits out there if the parts are centred: about 0.6 per million below the 0.05 mm limit.

Which dimension to tighten

The contribution columns answer the most useful question a stack-up can ask: where should the tolerance budget be spent? Under worst case each part contributes in proportion to its tolerance, but under RSS it contributes in proportion to the square of its tolerance, so the largest tolerance dominates far more than its share of the sum suggests. In the example the housing has 39.5% of the worst-case sum but 61.5% of the RSS variance. Tightening a small contributor buys almost nothing, and loosening it costs almost nothing. That is the real value of the RSS view even for teams that sign off on worst case: it shows which tolerances can be opened up to make parts cheaper and easier to make, and which one must be controlled.

Contribution of each dimension to the worked example's gap variation, worst case against RSS Paired horizontal bars for five dimensions. Housing pocket depth: 39.5 percent of the worst-case sum, 61.5 percent of the RSS variance. Gear hub: 21.1 and 17.5 percent. Bearing width: 15.8 and 9.8 percent. Spacer: 13.2 and 6.8 percent. Thrust washer: 10.5 and 4.4 percent. The RSS shares are more unequal than the worst-case shares because each tolerance is squared. housing ±0.15gear hub ±0.08bearing ±0.06spacer ±0.05washer ±0.04 39.561.521.117.515.89.813.26.810.54.4 0255075 % worst-case share RSS share share of the gap tolerance (worst case: t ÷ Σt; RSS: t² ÷ Σt²)
Figure 3. Contribution of each dimension in the worked example, to scale (4 px per percentage point). Squaring makes the housing tolerance dominate the RSS result, which is why it is the one to tighten.

Worst case vs RSS: the square-root rule

With n dimensions that all carry the same tolerance t, worst case gives n·t and RSS gives √n·t. For two dimensions RSS is 71% of worst case, for four it is 50%, for nine 33%, and for sixteen 25%. That is why RSS is attractive for long stacks and nearly pointless for short ones: on a two-part stack it saves little, and the assumption of independent, centred parts is hardest to defend when a single bad part drives the result. In the example, five unequal tolerances give an RSS of 0.191 against a worst case of 0.38, almost exactly half.

The catch with RSS is that it is a statement about populations. It says nothing about the one assembly built from a short housing and three long parts, which still exists and still binds. RSS is the right choice when that rare assembly is acceptable, for example because it is caught at end-of-line test, can be sorted, or simply has a mild consequence. It is the wrong choice for a safety function, a low-volume build where every unit matters, or parts from a process you have never measured.

Stack-ups for molded, cast and stamped parts

The RSS assumptions were written with machined parts in mind, and formed parts break them in predictable ways. A multi-cavity mold produces one population per cavity, each with its own mean, because the cavities are never identical and fill differently; a stack that uses parts from cavity 1 and cavity 4 is not one centred distribution. Shrinkage moves the whole population: a molded dimension often sits off-centre for the life of a tool if the cavity was cut on a shrinkage estimate that turned out slightly wrong. Die-cast and stamped parts drift as the tool wears. All of these push the real result toward worst case, which is the reason for the modified RSS factor.

Two practices make stack-ups on formed parts far more reliable. First, cut critical cavity dimensions steel-safe: put the first-shot dimension on the side where removing steel corrects it, so the mean can be moved after first parts are measured. Second, once tools run, replace the drawing tolerances in the stack with measured means and spreads from first-article and capability studies, per cavity. That turns the stack from a prediction into a check, and it often shows that a worst-case fail is a real risk on one cavity and no risk at all on the others.

Common mistakes

When to use this calculator vs other methods

MethodUse it whenLimit
Worst case (this page)Short stacks, safety or functional-critical gaps, low volume, unmeasured processesPessimistic for long stacks; drives tight, expensive tolerances
RSS (this page)Four or more independent dimensions, volume production, capable centred processesAssumes centred normal distributions; a statement about populations, not each unit
Modified RSS, Bender factor (this page)Volume parts without capability data, or formed parts with likely mean shiftsThe factor is a rule of thumb, not derived from your process
Monte Carlo simulationNon-normal or skewed distributions, measured data per cavity, non-linear stacksNeeds distributions for every input; results depend on them
2D/3D tolerance analysis softwareAngles, geometric tolerances interacting in several directions, hole patternsNeeds a full model and correct datum scheme

Design tips

Sources for the method

The vector-loop stack-up, the conversion to mean and equal bilateral tolerance, and the worst-case and root-sum-square methods follow the practice described in B. R. Fischer, Mechanical Tolerance Stackup and Analysis, in M. F. Spotts, Dimensioning and Tolerancing for Quantity Production, applied to parts dimensioned and toleranced per ASME Y14.5 (which defines how the drawing is dimensioned; it does not itself prescribe a stack-up method). The modified RSS factor of 1.5 is from A. Bender, "Benderizing tolerances: a simple practical probability method of handling tolerances for limit-stack-ups" (1962). The out-of-limit estimate uses the standard normal distribution with each part tolerance taken as ±kσ, and the gap Cpk uses the usual process-capability definition. The normal tail is computed in your browser with a published complementary error function approximation accurate to better than 1.2 × 10⁻⁷ relative error. The flag thresholds the calculator uses (a single contributor above 50% of the RSS variance, a gap Cpk below 1.33) are page-set engineering practice, not standards.

Questions and answers

What is a tolerance stack-up?

A tolerance stack-up adds up the dimensions and tolerances of every part feature that lies between two surfaces of an assembly, to find the range of the gap or fit between them. You trace a closed loop from one side of the gap, through each part and its mating faces, to the other side, and give each dimension a plus sign if making it bigger opens the gap and a minus sign if it closes the gap. The mean gap is the signed sum of the means, and the tolerance of the gap is found either by adding all the tolerances (worst case) or by taking the square root of the sum of their squares (RSS).

Should I use worst-case or RSS tolerance analysis?

Use worst case when every single assembly must fit, when the stack has only two or three dimensions, when the volume is low, or when a failure is a safety issue: the gap tolerance is the sum of all tolerances, so it is guaranteed if every part is in tolerance. Use RSS when the stack has four or more independent dimensions made in volume by capable processes: it assumes the parts are centred and normally distributed, so the extremes rarely combine, and the gap tolerance is the square root of the sum of squares. With n equal tolerances, RSS is smaller than worst case by a factor of √n: half as large for four dimensions, a third for nine. Many teams design to RSS and then check worst case or modified RSS for the critical stacks.

How do I calculate an RSS tolerance stack?

Convert each dimension to a mean with an equal plus and minus tolerance t, then add the means with their signs and take the square root of the sum of the squared tolerances. For a housing pocket of 39.80 ± 0.15 mm containing a bearing 12.00 +0/−0.12 (mean 11.94 ± 0.06), a spacer 8.00 ± 0.05, a gear hub 18.00 ± 0.08 and a thrust washer 1.50 ± 0.04, the mean end gap is 39.80 − 11.94 − 8.00 − 18.00 − 1.50 = 0.36 mm. The squares sum to 0.0225 + 0.0036 + 0.0025 + 0.0064 + 0.0016 = 0.0366, so the RSS tolerance is √0.0366 = 0.191 mm and the gap is 0.169 to 0.551 mm. Worst case, the tolerances simply add to 0.38 mm and the gap is −0.02 to 0.74 mm, which means an interference is possible.

What is modified RSS and the Bender 1.5 factor?

Modified RSS multiplies the RSS tolerance by a correction factor, usually 1.5, to allow for real parts that are not perfectly centred or normally distributed. The factor comes from A. Bender's 1962 paper on statistical tolerancing and is often called Benderizing. In the bearing stack example, the RSS tolerance of 0.191 mm becomes 1.5 × 0.191 = 0.287 mm, so the gap is 0.073 to 0.647 mm instead of 0.169 to 0.551 mm. The result should not exceed the worst-case sum, so the calculator caps it there. Modified RSS is a practical middle ground when you cannot accept worst-case tolerances but do not have process data to justify plain RSS.

How do I handle an unequal tolerance like +0/−0.12 in a stack-up?

Convert it to a mean with an equal bilateral tolerance before adding: mean = nominal + (upper deviation + lower deviation) ÷ 2 and t = (upper deviation − lower deviation) ÷ 2. A bearing width of 12.00 +0/−0.12 mm becomes 11.94 ± 0.06 mm. Skipping this step is a common error: using the nominal 12.00 in the sum puts the predicted gap 0.06 mm away from where the parts will actually centre, and using 0.12 as a plus and minus tolerance doubles that part's contribution. In the example the nominal-only gap is 0.30 mm but the true mean gap is 0.36 mm.

What percentage of assemblies will fail with an RSS tolerance stack?

If each part tolerance equals ±3 standard deviations of a centred normal distribution, the gap's standard deviation is the RSS tolerance divided by three, and the fraction out of limits comes from the normal distribution. In the bearing stack example the gap has a mean of 0.36 mm and a standard deviation of 0.191 ÷ 3 = 0.0638 mm. The minimum allowed gap of 0.05 mm is 0.31 ÷ 0.0638 = 4.86 standard deviations below the mean, which corresponds to about 0.6 assemblies per million, and the gap's Cpk is 0.31 ÷ 0.191 = 1.62. These numbers are only as good as the assumptions: off-centre processes, multi-cavity molds and non-normal distributions can raise the real rate by orders of magnitude.

How do I fix a tolerance stack that does not fit?

First re-centre the nominals so the mean gap sits in the middle of the allowed range, then tighten the dimension with the largest contribution. Under RSS a contributor's share is its tolerance squared over the sum of squares, so the biggest tolerance dominates. In the bearing stack the housing pocket at ±0.15 mm contributes 61.5% of the RSS variance; tightening it to ±0.08 mm cuts the RSS tolerance from 0.191 to 0.143 mm and makes the worst case exactly 0.05 to 0.67 mm, which passes. Tightening the washer from 0.04 to 0.02 instead reduces the RSS tolerance by under 2%. Other fixes are removing parts from the loop, locating parts against a common datum, or adding a shim or adjustment.

Does the direction of each dimension matter in a stack-up?

The direction sets the sign of each dimension's mean in the gap, so it decides the mean gap. It does not change the tolerance of the gap, because worst case adds the absolute tolerances and RSS adds their squares. To get the directions right, draw the loop: start at one face of the gap, step through each part along the measured direction, return to the other face, and mark each step plus if it moves you toward the positive gap direction and minus if it moves you back. A dimension that appears twice in the loop, or a dimension that is not in the loop at all, is the usual cause of a wrong mean gap.

Ask JCH about tolerances and assembly fit

Not sure which dimensions are in the loop, or which tolerance a molded or cast part can really hold? Ask our AI assistant. It answers from this website, and our engineering team follows up if you want.

AI assistant. Answers can be wrong; nothing it says is a quote or a promise.

A stack that will not close, or tolerances you are not sure a process can hold?

This calculator gives an engineering estimate. Our engineering team reviews your CAD and drawings for the loop, the datum scheme and which tolerances belong on which part, while each change is still a drawing edit and not a tool modification.

Book a 30-min call Send a drawing or sample