True position calculator: formula, worked example and instant check
Calculate
Nothing you type is sent anywhere: the maths runs in your browser. The comparison is exact decimal arithmetic, so a feature exactly on the limit passes.
Formula
The factor 2 is there because the tolerance in the frame is the diameter of a cylinder, while sqrt(dx^2 + dy^2) is the radial distance of the axis from its true place.
Worked example
True position X 25.00, Y 40.00; measured 25.10 and 40.10; position tolerance 0.30.
- dx = 25.10 - 25.00 = 0.10, dy = 40.10 - 40.00 = 0.10.
- r = sqrt(0.10^2 + 0.10^2) = 0.1414.
- Position error = 2 x 0.1414 = 0.2828.
- 0.2828 is not more than 0.30, so it is in tolerance, with 0.0172 to spare.
Bonus tolerance
If the frame carries an M (maximum material condition) the allowed zone grows as the feature moves away from its worst-case size. For a hole at MMC size 8.00 measured at 8.10, the bonus is 0.10, so 0.30 becomes 0.40 when the tolerance is 0.30. With L (least material), the bonus is measured from the least-material size instead. See material condition modifiers.
What it does not do
- It does not calculate with datum shift or composite frames.
- It checks one feature at a time and two axes (X and Y).
- It does not read your drawing: take the true values from the basic dimensions.
Common mistakes
- Comparing r, not 2r, with the tolerance.
- Forgetting the bonus, or applying it in the wrong direction.
- Using the coordinates from the wrong datum frame.
What the diagram shows
The dashed lines cross at the true position, which comes from the boxed dimensions. The circle is the tolerance zone, a cylinder seen end-on, with a diameter equal to the tolerance. The red line is the radial distance r from the true position to the measured axis. The feature passes while its axis lies inside the circle, which means while twice r is not more than the tolerance.
Worked example on the sample hole pattern
The sample part's four-hole callout is 4X diameter 9.0 plus or minus 0.1 THRU, with demonstration result 9.05. Suppose a drawing also gave those holes a position tolerance of 0.30 at MMC. The smallest allowed hole is 8.9, so 8.9 is the MMC size. The measured size is 9.05, so the bonus is 9.05 minus 8.9, which is 0.15. The allowed position error becomes 0.30 plus 0.15, which is 0.45.
| Case | Position error | Allowed | Verdict |
|---|---|---|---|
| Axis 0.10 right and 0.10 up, no modifier | 0.2828 | 0.30 | In tolerance |
| Same axis, tolerance 0.25, no modifier | 0.2828 | 0.25 | Out of tolerance by 0.0328 |
| Same axis, tolerance 0.25 at MMC, hole 9.05 | 0.2828 | 0.25 plus 0.15 = 0.40 | In tolerance |
The second row is why the modifier matters: the same position error fails without it and passes with it. The tolerance and hole sizes here are an illustration on the sample's hole callout: the sample drawing itself carries no position frame.
Diameter or radial values
Be clear which you are comparing. The tolerance in a position frame is a diameter, the width of the zone. The distance from the true position to the measured axis, r, is a radius. Position error is the diameter of the smallest zone that would contain the axis: twice r. A CMM report may print either, so check the column heading. If it prints a radial deviation, double it before comparing with the tolerance. If you only have coordinate deviations dx and dy, compute r first, then double it.
Common entry errors
- Typing the measured coordinates from one datum and the true values from another. The two must use the same origin.
- Entering the tolerance as a radius. Enter the number printed in the frame, which is the diameter.
- Forgetting that the diameter sign matters: a position frame without it describes a pair of parallel planes in one direction, and this calculator does not cover that case.
- Using the hole size at the wrong end: a hole's MMC size is its smallest, a pin's is its largest. Pick the feature type correctly.
- Entering a comma decimal: the calculator accepts it, but mixed separators in one field are rejected.
- Rounding the measured values first. Enter them as read, and let the exact arithmetic do the work.
What to put in the report
Record the frame text as the requirement, the position error as the result and the allowed value, including any bonus, in the notes. The verdict is in tolerance when the error is not more than the allowed value. This tool's report keeps the verdict in words so it survives a greyscale print.
- How do you calculate true position?
- Position error = 2 x sqrt(dx^2 + dy^2), compared with the tolerance plus any bonus.
- Is the tolerance a radius or a diameter?
- A diameter, which is why the error is doubled.
- What is true position?
- True position is the exact theoretical location of a feature, set by basic dimensions. A position tolerance gives a zone around it, normally a cylinder, inside which the feature's axis must lie. The calculator compares the measured axis with that zone.
- Is the position tolerance a radius or a diameter?
- A diameter. The number in the frame is the width of the cylindrical zone, which is why the position error is twice the radial distance from the true position to the measured axis, and why the formula contains a factor of two.
- What does bonus tolerance mean?
- When a position frame carries the MMC modifier, the zone grows by the amount the feature's size departs from its worst-case size. A hole above its smallest size, or a pin below its largest, earns bonus, and the allowed position error is the tolerance plus that bonus.
- Does the calculator send my numbers anywhere?
- No. The arithmetic runs in your browser, nothing is posted, and the comparison uses exact decimals so a value exactly on the limit passes.