Workjigs
Language: English
Search
Tools / Mechanical design

Tolerance stack up calculator: worst case, RSS, Monte Carlo

Enter the loop dimensions and the gap limits to compare worst case vs RSS and run a Monte Carlo tolerance analysis, then see which dimension to tighten.

What the tool does

Spreadsheet stacks lose signs, mix up upper and lower limits and hide the statistical assumptions. The tool keeps each link's direction and limits and shows every method side by side.

How to use it

  1. Enter the dimensions of the loop in order, + where they add to the gap and − where they subtract.
  2. Set the limits on the result, for example a lower limit of 0 for a gap.
  3. Choose distributions, Cp and mean shifts where you know them, and run Monte Carlo.
  4. Read the contributions, change tolerances, and export the report.

What is built in

The formulas only. ISO 286 limits are computed from the published formulas for IT grades and fundamental deviations; interference shafts use the formulas printed in ISO/R 286 (1962) table 4 and in textbook tables. The standard's own tables are copyrighted and round some values, so the tool labels its fit limits as approximations and takes the exact values if you enter them. The position helper uses the common reading of ASME Y14.5 and ISO 1101 for one feature with a cylindrical zone; no text of these standards is reproduced.

How it was checked

Before every release the engine is run on published examples: housing 25 ± 0.10, shaft 18 ± 0.08 and spacer 6.5 ± 0.05 give a gap of 0.27 to 0.73 worst case and ± 0.137 RSS with contributions 43.5 / 34.8 / 21.7 % and 52.9 / 33.9 / 13.2 % (turn2engineering); three links of ± 0.05 give ± 0.15 and ± 0.0866; three sheets of 0.075 ± 0.005 against 0.225 ± 0.009 keep 99.8 % centred and about 70 % with a 1.5σ shift (Five Flute); 25 H7/g6 gives a hole of 25.000 to 25.021, a shaft of 24.980 to 24.993 and a clearance of 0.007 to 0.041 mm. Monte Carlo is checked against the analytical σ.

Fits, 2D loops and position: 25 H7/u6 gives an interference of 0.027 to 0.061 mm as published, and the formula ranges for p6 and s6 at 25 mm contain the published +22 and +35 µm. A 2D loop along one axis reproduces the gap example above. Legs 2 and 1 give 2.236 at 26.6°, as in Fischer's Mechanical Tolerance Stackup and Analysis. By hand: 100 ± 0.1 and 50 ± 0.1 at a right angle give 111.803 with ± 0.134 worst case and ± 0.100 RSS; a hole on a radius 50 ± 0.02 at 30° ± 0.05° gives x 43.301 with ± 0.0391 and ± 0.0279. Monte Carlo on the exact loop agrees with the linear σ within 1 % and shows the cosine bias of an angle tolerance. Position: (25, 40) measured at (25.03, 40.04) is Ø0.100, and a hole of 10.000 to 10.200 measured at 10.120 with Ø0.18 at MMC is allowed Ø0.300 (turn2engineering); dx = dy = 0.1 is Ø0.2828 and uses 94.3 % of Ø0.1 plus a bonus of 0.2 (RivCut); a ± 0.5 square needs Ø1.414 (Fischer). A shared feature added and subtracted cancels, and a correlation of 0.5 between two equal links raises σ by √1.5, both checked by hand and by Monte Carlo with a fixed seed.

Limits

The 2D loop is an open chain of vectors with absolute angles; it does not solve closed loops with kinematic unknowns (such as a roller that finds its own contact point), and 3D is not modelled. Worst case and RSS in the 2D loop are linear, so with large angle tolerances use the Monte Carlo result. Angle tolerances are normal with the tolerance as 3σ. The direction result jumps near ±180°. Correlation in the 1D chain uses a Gaussian copula for uniform and triangular links and does not change the worst case. Fits cover H holes only; for p, r and s up to 50 mm, t up to 24 mm, v up to 14 mm and y up to 18 mm you enter the table values; computed interference shafts can differ from the current tables by a few µm. The position helper covers a single feature against its true position: datum feature shift, hole patterns, projected zones, composite frames and profile are not handled. Inch fits (ANSI B4.1), thermal expansion and selective assembly are not included.

Last checked 2026-10-23

Checked against published examples

Worked examples from public sources, entered into this tool. The same values are checked automatically before every release.

SourceQuantityPublishedThis toolDifference
Tolerance Stack Up Analysis: Methods, Formulas & ExampleGmax0.73 mm0.73 mm0 %
tRSS0.137 mm0.1375 mm0.36 %
Dimensioning and Tolerancing Handbook, Chapter 14, Minimum-Cost Tolerance Allocation, Table 14-2TSUM0.0245 in0.0245 in0 %
Tolerance Stack-Up Analysis: When Worst-Case vs RSS Actually MattersRSS0.0077 in0.00762 in1.04 %
True Position Calculator (turn2engineering), MMCØ (MMC)0.3 mm0.3 mm0 %
True Position Calculator (RivCut)TP0.2828 mm0.2828 mm0 %
Tolerance stack up calculator: worst case, RSS, Monte Carlo · Sample gap
Embed this tool

Copy this code to put the tool on your own website, free of charge. Keep the Workjigs link. The tool runs in the visitor's browser, and files are not uploaded.

Workjigs