Tolerance and Acceptable Ranges Written as Inequalities
Turn a target and tolerance into an absolute value inequality, convert ranges both ways and see how errors add up.
Key takeaways
- A symmetric tolerance t around a target c is written |x - c| ≤ t.
- The same condition as a chain is c - t ≤ x ≤ c + t.
- From a range, the target is the midpoint of the ends and the tolerance is half the width.
- A percent tolerance must be turned into an amount in the same units before you use it.
- When parts are added or subtracted, their worst-case tolerances add.
A target value with an allowed error translates into one compact inequality: |x - target| ≤ tolerance. It says that the distance between the actual value x and the target may be no larger than the tolerance.
So a rod specified as 120 millimeters, give or take 0.5, is acceptable when |L - 120| ≤ 0.5, which means 119.5 ≤ L ≤ 120.5. Once you can switch between these two forms, you can handle percentages, uneven limits and stacked parts with the same algebra.
The three parts of a specification
A target (also called the nominal value) is the size you aim for. The tolerance is the largest departure that is still accepted. The acceptable range is the set of values that pass, running from the lower limit to the upper limit.
Real parts, doses of ink and bags of flour are never exact, so a specification says how inexact they may be. The specification itself comes from drawings, standards or regulations. For actual work, follow the official document and the guidance of qualified people. The numbers below are practice examples.
The notation 120 ± 0.5 is read "120 plus or minus 0.5." It names the whole range, not only the two values 119.5 and 120.5.
From target and tolerance to a range
The absolute value |L - 120| measures how far L is from 120 on the number line, as in absolute value as distance. Requiring that distance to be at most 0.5 unfolds like this:
|L - 120| ≤ 0.5
-0.5 ≤ L - 120 ≤ 0.5
119.5 ≤ L ≤ 120.5 add 120 to all three parts The symbol ≤ means that a rod measuring exactly 120.5 passes. If a specification said the error must be less than 0.5, you would use <, and both limits would fail.
The expression L - 120 is the signed error: positive when the rod is long and negative when it is short. The absolute value discards the direction, because this specification treats both the same way.
From a range back to one inequality
Suppose a thickness must lie from 2.35 to 2.65 millimeters. Find the middle and the half-width.
target = (2.35 + 2.65) ÷ 2 = 2.50
tolerance = (2.65 - 2.35) ÷ 2 = 0.15
condition: |h - 2.50| ≤ 0.15 Check by testing an end: |2.35 - 2.50| = 0.15, which is allowed. A thickness of 2.70 gives 0.20, which is too large.
Judging a single measurement
To decide whether one measured value passes, you do not need to solve anything. Compute its distance from the target and compare that number with the tolerance.
For the rod with |L - 120| ≤ 0.5, here are four hypothetical measurements.
| Length L | Signed error L - 120 | Distance | Verdict |
|---|---|---|---|
| 119.7 | -0.3 | 0.3 | passes |
| 120.5 | 0.5 | 0.5 | passes, on the limit |
| 120.6 | 0.6 | 0.6 | fails, too long |
| 119.4 | -0.6 | 0.6 | fails, too short |
The signed error is worth recording even though the verdict uses only the distance. If a run of parts all show errors near +0.4, they pass, yet the process is aimed too high. Errors that scatter on both sides of zero suggest a different situation. The absolute value answers "is it acceptable," and the sign helps answer "which way should we adjust."
Percent tolerances
Some specifications give the tolerance as a percentage of the target. A common electronics example is a resistor labeled 470 ohms with a tolerance of 5 percent.
tolerance = 0.05 × 470 = 23.5
|R - 470| ≤ 23.5
446.5 ≤ R ≤ 493.5 Convert the percent first. Writing |R - 470| ≤ 0.05 would demand a precision hundreds of times tighter than intended.
You can also keep the condition relative: |R - 470|/470 ≤ 0.05. The left side is the relative error, which has no units. Because 470 is positive, multiplying both sides by it keeps the symbol and returns the first form.
A percentage means different amounts for different targets. Five percent of 20 is 1, while 5 percent of 2,000 is 100.
Uneven limits
Not every tolerance is symmetric. Say a shaft diameter is specified as 25 millimeters, with +0.3 and -0.1 allowed. The range is 24.9 ≤ d ≤ 25.3.
The nominal value 25 is not the middle of that range, so |d - 25| ≤ something will not describe it. Use the midpoint instead.
midpoint = (24.9 + 25.3) ÷ 2 = 25.1
half-width = (25.3 - 24.9) ÷ 2 = 0.2
|d - 25.1| ≤ 0.2 Any single closed range from a to b can be written as |x - (a + b)/2| ≤ (b - a)/2. One-sided requirements, such as "at least 8," are not of this type, since they have no second end. They are ordinary inequalities, covered in at least and at most problems.
Describing the rejects
The failing values are the opposite condition. If acceptance is |L - 120| ≤ 0.5, then rejection is |L - 120| > 0.5.
L - 120 < -0.5 or L - 120 > 0.5
L < 119.5 or L > 120.5 Notice the word or. A rejected rod is too short or too long, and it cannot be both. Acceptance was a single segment, and rejection is two rays. The two patterns are compared in the less than and greater than patterns.
When tolerances stack
Say you stack three spacers, each 10 ± 0.1 millimeters. The total T is smallest when all three are small and largest when all three are large.
3 × 9.9 ≤ T ≤ 3 × 10.1
29.7 ≤ T ≤ 30.3
|T - 30| ≤ 0.3 The tolerances added. They also add when you subtract. Say a hole has a diameter from 20.00 to 20.05 and a pin from 19.95 to 19.98. The clearance is the hole minus the pin.
smallest = 20.00 - 19.98 = 0.02 small hole, large pin
largest = 20.05 - 19.95 = 0.10 large hole, small pin
0.02 ≤ clearance ≤ 0.10 The clearance has a width of 0.08, which equals the hole's width of 0.05 plus the pin's width of 0.03. This is a worst-case calculation. Engineers also use statistical methods that assume extremes rarely coincide, which rest on further assumptions.
Allowing for measurement error
A measuring tool has its own uncertainty. Say the rod must satisfy |L - 120| ≤ 0.5, and your gauge reading m may differ from the true length by up to 0.05. To be certain the true length passes, the reading needs a margin:
|m - 120| ≤ 0.45 The reason is that distances can add: |L - 120| ≤ |L - m| + |m - 120| ≤ 0.05 + 0.45 = 0.5. This is the triangle inequality at work.
Rounding creates a range too. A length reported as 12 centimeters, rounded to the nearest centimeter with halves rounding up, satisfies 11.5 ≤ x < 12.5.
Tolerances through a formula
Sometimes the limit is stated for one quantity and you control another. Say an oven should be within 9 degrees Fahrenheit of 350, and you want the matching Celsius range, using F = 1.8C + 32.
|1.8C + 32 - 350| ≤ 9
|1.8C - 318| ≤ 9
1.8 × |C - 176.67| ≤ 9 approximately
|C - 176.67| ≤ 5 So C runs from about 171.7 to about 181.7. The target converts with the full formula, including the 32. The tolerance is a difference of temperatures, so it is only divided by 1.8.
Comparing two specifications
Algebra also lets you ask whether meeting one requirement guarantees another. Suppose a supplier promises parts with |L - 120.2| ≤ 0.2, and you need |L - 120| ≤ 0.5.
Convert both to ranges. The promise is 120.0 ≤ L ≤ 120.4. The requirement is 119.5 ≤ L ≤ 120.5. The promised range sits entirely inside the required one, so every promised part is acceptable.
A promise of |L - 120.2| ≤ 0.4 gives 119.8 ≤ L ≤ 120.6. Most of those parts would pass, but a part of length 120.55 meets the promise and fails your need. One counterexample is enough to show that the guarantee does not hold.
The test can be written in one line. For targets c and d with tolerances s and t, the first range lies inside the second exactly when |c - d| + s ≤ t. In the first case, 0.2 + 0.2 = 0.4 ≤ 0.5. In the second, 0.2 + 0.4 = 0.6, which exceeds 0.5.
Tolerance as a share of a count
Tolerances also appear where nothing is manufactured. Say a club treasurer allows the cash box to differ from the written record by no more than $2. If the record shows $148, the counted amount c passes when |c - 148| ≤ 2, so from $146 through $150.
Or say a survey team wants two independent counts of the same shelf to differ by at most 3 items. Here neither count is the target. The condition is |a - b| ≤ 3, which treats the two counts equally. If a = 40, then b may run from 37 through 43, and because counts are whole numbers, there are seven allowed values.
Notice that this kind of tolerance does not chain. Counts of 40 and 43 agree, and so do 43 and 46, but 40 and 46 differ by 6. "Close enough" is not a transitive relation, unlike equality.
Common mistakes
- Swapping target and tolerance. In |x - 0.5| ≤ 120, the roles are reversed.
- Using the nominal value as the center of an uneven range. Compute the midpoint.
- Leaving a percent as a decimal amount. Multiply it by the target.
- Cancelling tolerances when subtracting parts. The widths add.
- Mixing units. Put target, tolerance and measurement in the same unit first.
Common questions
Can a tolerance be zero or negative?
A tolerance of zero allows only the exact target. A negative one would allow nothing, because a distance cannot be negative.
Which symbol should I use if the wording says "within"?
"Within 2 units" is normally read as ≤ 2, including the limit. If a real specification matters, check how it defines the boundary.
How do I check a batch of measurements?
Compute |x - c| for each and compare it with t. The largest of those distances decides whether the whole batch passes.