Template · Engineering

Tolerance stack-up analysis (worst case and RSS)

Worst-case and root-sum-square tolerance analysis for a chain of up to 15 dimensions, with pass or fail.

Create an account

Downloads are included in the $19.85 yearly membership. Sign in

XLSXCSVODSXMLNumbers
Tolerance stack-up analysis (worst case and RSS)
Example data — replace the blue input cells with your own.
Gap specification
Gap nameClearance, bracket to housingGap = Σ direction × dimension. Direction +1 adds a dimension to the gap; −1 subtracts it.
Lower limit of gap (mm)0.20Tolerances are entered as positive numbers: plus and minus from the nominal.
Upper limit of gap (mm)1.20
Dimensions (up to 15 rows; leave unused rows empty)
#DimensionDirection (+1 or −1)Nominal (mm)Plus tolerance (mm)Minus tolerance (mm)Mean shift (mm)Half tolerance (mm)Mean (mm)Minimum (mm)Maximum (mm)Worst-case low (mm)
1Housing pocket depth130.000.060.060.0000.06030.00029.94030.06029.940
2Boss height on housing13.500.050.050.0000.0503.5003.4503.5503.450
3Bracket flange thickness-16.000.050.050.0000.0506.0005.9506.050-6.050
4Mounting plate thickness-14.000.030.030.0000.0304.0003.9704.030-4.030
5Gasket, compressed thickness-11.500.040.040.0000.0401.5001.4601.540-1.540

Showing the first 16 of 30 rows and 12 of 16 columns. Cells with formulas show the formula on hover.

What does this template do?

This workbook adds up a chain of up to 15 dimensions and tests the resulting gap against its limits. It uses two methods. Worst case assumes every tolerance is at its limit at the same time. Root sum square (RSS) treats the dimensions as independent and combines their spread statistically. The example is a clearance between a bracket and a housing, built from nine dimensions.

Each dimension has a direction of +1 or −1, a nominal value and plus and minus tolerances. Asymmetric tolerances are handled by shifting the mean of the dimension and keeping its half width, so the worst-case and RSS results still follow the tolerance band.

The Results tab shows the nominal and mean gap, the worst-case and RSS ranges, the margins to each limit, a pass or fail for each method, and each dimension's share of the variance. The largest contributor is named, so you know which tolerance to tighten first.

Use it to compare tolerance schemes early in design. The RSS result is a statistical estimate that depends on the assumptions in the Notes tab, so it does not guarantee a yield.

What’s inside

  • Up to 15 dimensions, each with direction +1 or −1
  • Asymmetric tolerances handled by mean shift: (plus − minus) ÷ 2
  • Worst case from the sum of low and high contributions for each dimension
  • RSS half width = √ΣT² and share of variance = T² ÷ ΣT² for each dimension
  • Pass or fail for both methods, with margins and the largest contributor

Which tabs does the workbook have?

TabWhat it holds
DimensionsGap limits and the dimension table: direction, nominal, tolerances, mean shift, limits and worst-case contributions.
ResultsWorst-case and RSS ranges, margins, pass or fail, contribution by dimension, and the largest contributor.
NotesWhat the workbook does, how to use it, the method, the assumptions and the professional-verification note.

What formulas does this template use?

This template holds 252 formulas in 403 cells across 3 tabs, so 63% of its cells calculate. They use 10 distinct functions; the longest formula is 118 characters and 83 of them read from another tab.

FunctionUsesWhat it does
IF260one result when a test is true, another when false
RANK15position of a value in a list
SUM5adds numbers
AND3true when every test is true
MAX2largest value
COUNTA1counts non-empty cells
INDEX1value at a position in a range
MATCH1position of a value in a range
SQRT1square root
SUMPRODUCT1multiplies matching entries, then adds them

Counted from the workbook itself. Only functions that Excel, LibreOffice Calc, Google Sheets and Apple Numbers evaluate the same way are used, so the formulas survive every download format.

How do you use it?

  1. On the Dimensions tab, enter the gap name and its lower and upper limits.
  2. List each dimension with direction +1 if it adds to the gap, or −1 if it subtracts.
  3. Enter the nominal and the positive plus and minus tolerances in millimetres.
  4. Read the worst-case and RSS results and their margins on the Results tab.
  5. Use the contribution table to find the dimension that dominates and tighten it first.

What is it good for?

  • Checking a clearance or interference fit in an assembly
  • Comparing worst-case and RSS tolerance schemes early in design
  • Finding which tolerance drives the variation in a stack
  • Teaching the difference between worst-case and statistical tolerancing

Questions about this sheet

What does direction mean?

A dimension with direction +1 adds to the gap. Use −1 for a dimension that subtracts from it. The sign convention must match the loop you draw.

How are asymmetric tolerances treated?

The mean of the dimension moves by half the difference between the plus and minus tolerances. The half width stays the same, so the worst-case and RSS limits still bracket the dimension.

Is the RSS result a guarantee?

No. RSS assumes independent dimensions with normal distributions and a centred process. It estimates the ±3σ spread, and real processes can break those assumptions.

Does it handle parallel or angular chains?

No. It handles one linear chain. Geometric tolerances such as position and runout need a separate analysis.