Trunnion Offset Calculator

4TH & 5TH AXIS
New X Offset After Tilt
New Z Offset After Tilt
Rotation about Y: X’ = X·cosθ + Z·sinθ, Z’ = -X·sinθ + Z·cosθ. Use to compensate work offsets when the trunnion tilts.

Why trunnion offset compensation matters

A part mounted off-center on a trunnion table does not stay in the same X and Z position once the table tilts, since it is physically swinging through an arc around the trunnion's center of rotation. Programs that assume the part offset stays fixed through a tilt move will cut in the wrong place unless that swing is accounted for.

How the numbers are calculated

This is a standard rotation about the Y axis applied to the part offset from the trunnion center. New X offset equals the original X times the cosine of the tilt angle plus the original Z times the sine of the tilt angle, and new Z offset equals the original X times the sine of the tilt angle minus the original Z times the cosine of the tilt angle.

Practical tips

Measure the part offset from the true mechanical center of the trunnion's rotation, not from an approximate table center, since even a small error there gets amplified once the table tilts to larger angles. Most modern controls with proper tilted-plane or TCP support handle this automatically, but understanding the underlying math is essential when troubleshooting a position error on an older machine or a manually programmed tilt move.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.