Dimensional Tolerance Stack-Up & Fit Calculator
Build a signed stack-up from drawing dimensions and asymmetric tolerances. Compare the guaranteed gap range with the assembly fit band, then inspect the statistical result under independently uniform dimensions and see which terms account for the spread.
Compare a dimension chain with your fit band
Add or subtract measured dimensions to see how part tolerances combine at an assembly gap.
Signed dimensions
Enter deviation magnitudes. Add dimensions that open the gap and subtract those that close it.
Gap and fit results
Nominal 0.15 mm · worst case -0.05 mm to 0.35 mm
Modeled mean 0.15 mm
Below band
12.5%
In band
75%
Above band
12.5%
Modeled chances assume independent, uniform dimensions within each entered range.
Gap distribution and worst-case span
The line gives the modeled chance the gap is at or below each value. The gold zone is the permitted fit band.
- Cumulative model
- Worst-case span
- Open circle · nominal gap
Review signed dimensions and exact worksheet
| Dimension | Minimum | Maximum | Variance share |
|---|---|---|---|
| Opening | 10.1 mm | 10.3 mm | 50% |
| Insert | -10.1 mm | -9.9 mm | 50% |
| Shim | -0.05 mm | -0.05 mm | 0% |
How to use this calculator
- Enter the inclusive minimum and maximum assembly gap in millimeters. Negative values can represent interference.
- Name each component in the dimension chain. Select Add for dimensions that increase the gap and Subtract for those that reduce it.
- Enter each nominal dimension and the nonnegative lower and upper deviation magnitudes. Give a fixed dimension zero deviations.
- Compare the worst-case window, modeled below-band and above-band chances, and the cumulative gap plot.
- Open the ledger to inspect each signed range and modeled variance share. Copy or download the exact worksheet.
The Formula
The mathematical logic powering this calculation is:
Write the signed one-dimensional gap as G = Σ sᵢ dᵢ, where each sign is +1 for an opening contribution or −1 for a closing contribution. A component with nominal N, lower deviation m and upper deviation p has physical range [N − m, N + p]. A subtracting component contributes [−(N + p), −(N − m)]. Add the signed low endpoints and the signed high endpoints separately to find worst-case bounds.
Compare that closed worst-case interval with the entered inclusive fit band. Complete containment means every combination of the entered bounds fits the stated model. If the two intervals are disjoint, the gap cannot pass. A point or edge in an otherwise continuous gap range is possible mathematically but carries zero probability.
For the separate probability model, each non-fixed dimension is assumed independent and uniform within its entered bounds. A fixed dimension shifts the result without adding uncertainty. Reflect subtraction and write G = a + Σ Uᵢ, with a equal to the worst-case low endpoint and each Uᵢ uniform from 0 to its positive width wᵢ. The exact cumulative probability F(x) is the sum over all subsets S of (−1) raised to |S| times max(0, x − a − Σⱼ∈S wⱼ) raised to n, divided by n! × product of wᵢ. This follows by applying inclusion and exclusion to the volume of a simplex clipped to the box.
For a continuous gap, the fraction below the lower fit limit L is F(L), above the upper limit H is 1 − F(H), and in band is F(H) − F(L). When all dimensions are fixed, the single gap carries all the probability. An exact match to either inclusive limit counts in band. Each width contributes wᵢ²/12 to variance, so the variance share uses wᵢ² divided by all squared widths. The modeled mean is the midpoint of the worst-case range.
Enter two to six dimensions in millimeters. Nominal values and deviation magnitudes are 0–10,000 mm with up to eight decimal places. A physical dimension cannot go below zero. The fit limits accept −120,000 through +120,000 mm. Exact fraction arithmetic retains narrow nonzero tails and all range endpoints. The SVG joins exact probability samples and breakpoints. A chart's rendered scale rounds for reading.
This worksheet analyzes only the entered axial chain. Actual part distributions, shared fixtures, time drift, selective assembly, correlated dimensions and geometric controls can change observed outcomes. The uniform fit probability is a model output. It does not estimate production yield from inspection data or establish adequate clearance.Worked Example
If you input:
- Opening: Add 10.2 mm with ±0.1 mm.
- Insert: Subtract 10 mm with ±0.1 mm.
- Shim: Subtract a fixed 0.05 mm.
- Accepted gap: 0.05 to 0.25 mm inclusive.
Result:
Nominal gap is 0.15 mm and worst-case gap spans −0.05 to 0.35 mm. Under independent uniform variation, 75% fits, 12.5% is below and 12.5% is above.
Frequently Asked Questions
Why can modeled fit be high when worst-case fit fails?
Worst-case analysis checks every allowed value combination. Statistical fit weights each combination using the stated uniform assumptions.
Does a negative nominal gap invalidate the stack?
No. A negative result describes interference under the entered sign convention. Physical component dimensions must stay nonnegative.
How do I enter asymmetric tolerance?
For 10.0 mm with −0.1 mm and +0.2 mm, enter nominal 10, lower deviation 0.1 and upper deviation 0.2.
How does the model handle a fixed shim?
Give it zero deviations. Its signed nominal value shifts the gap without changing the variance.
Can I interpret the fit probability as production yield?
Use it only under the stated independence and uniform range assumptions. Production yield depends on actual distributions, shared sources of variation and inspection measurements.
What do variance shares tell me?
They show how the entered widths contribute to the model's total variance. The largest share identifies the entered width with the most influence on spread under these assumptions.
Similar Calculators
Thermal Expansion & Clearance Calculator
Calculate linear thermal expansion for an opening and insert. Plot clearance over temperature and find where a limit or zero gap occurs.
Uncertainty Propagation Calculator
Propagate independent measurement uncertainties through sums, products and ratios. Compare contributions, expanded uncertainty and input improvement scenarios.
True Position & Bonus Tolerance Calculator
Calculate true position error from nominal and measured XY centers. Compare circular holes and pins at RFS or MMC, plot the tolerance zone and export CSV.
O-Ring Squeeze & Gland Fill Calculator
Compare two static O-ring cavity tolerance ranges. Check minimum and maximum squeeze, gland fill, and dimensional bounds using your entered targets.
Countersink Calculator & Flush-Seat Tolerance
Calculate countersink depth and opening from measured pilot and head sizes. Check protrusion, recess and straight bore land across the full tolerance range.
