Tolerance

공차

The allowed range a part's dimension can drift from its nominal value on a drawing — too tight and cost climbs, too loose and mating parts don't fit.

Also known as: Dimensional tolerance치수공차
···
html
<div class="tol-wrap">
  <svg viewBox="0 0 160 100" class="tol-svg">
    <rect class="tol-hole" x="50" y="20" width="60" height="60" rx="4"/>
    <rect class="tol-band-hole" x="47" y="17" width="66" height="66" rx="5"/>
    <rect class="tol-pin" x="58" y="28" width="44" height="44" rx="3"/>
    <line class="tol-dim" x1="50" y1="14" x2="110" y2="14"/>
    <text class="tol-label" x="80" y="10" text-anchor="middle">⌀20 ±0.05</text>
  </svg>
  <span class="tol-cap"></span>
</div>
css
.tol-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5em;width:100%;height:100%;padding:clamp(8px,3vmin,16px)}
.tol-svg{width:min(80%,280px);height:auto}
.tol-hole{fill:var(--surface);stroke:var(--fg);stroke-width:1.6}
.tol-band-hole{fill:none;stroke:var(--muted);stroke-width:.8;stroke-dasharray:2 2}
.tol-pin{fill:var(--accent);fill-opacity:.55;stroke:var(--fg);stroke-width:1.3;transform-box:fill-box;transform-origin:50% 50%;animation:tol-fit 3s ease-in-out infinite}
.tol-dim{stroke:var(--muted);stroke-width:.7}
.tol-label{font-size:8px;fill:var(--muted)}
.tol-cap{font-size:clamp(8px,2.2vmin,11px);color:var(--muted)}
@keyframes tol-fit{0%,15%{transform:scale(0.92)}45%,55%{transform:scale(1.06)}85%,100%{transform:scale(0.92)}}
js
const cap = document.querySelector('.tol-cap');
const labels = ['snug fit — mid tolerance', 'tight fit — max pin, min hole', 'loose fit — min pin, max hole'];
let i = 0;
cap.textContent = labels[0];
setInterval(() => { i = (i + 1) % labels.length; cap.textContent = labels[i]; }, 1000);

No manufacturing process ever produces a dimension exactly as drawn — injection molding shrinks by a slightly different amount lot to lot as it cools, machining tools wear, assembly jigs sit a hair off position. So a drawing always carries both a nominal value and an allowed deviation, written like "⌀20 ±0.05" — meaning the part passes anywhere from 19.95 to 20.05mm.

Tighten the tolerance (say, ±0.01) and mating parts fit precisely with no play, but the process and inspection needed to hit that get sharply more expensive. Loosen it (say, ±0.2) and manufacturing gets easy and cheap, but stacking several such parts together compounds their individual tolerances — "tolerance stack-up" — and the final assembly risks being loose or simply not fitting. In practice, only the dimensions that functionally need precision get a tight tolerance; everything else gets as loose a tolerance as the design can tolerate, to protect cost.

In fit terms, the worst-case (tightest) combination is the smallest hole paired with the largest pin; the loosest combination is the largest hole with the smallest pin. A designer has to verify the part still works at both extremes — tolerance design isn't drawing one number, it's designing the whole range that number allows.

When to use

When designing two mating parts (a hole and a pin, a threaded fit), or reviewing a dimensional chain across several stacked parts.