Inch system. Work out the final program Z (tip target) for a G81 drilling cycle — what to take into account so the hole reaches full diameter at the depth you want.
Z, then retract — no peck, no dwell. Best for shallow holes where chip packing isn't a concern. The whole question with G81 is "what is the right final Z?", which is what this page works out.Z = −(depth + tip length) for a blind hole, or Z = −(thickness + tip length + breakthrough) for a through hole.tan(90° − angle/2) × (D / 2). For a 135° point that's ≈ 0.207 × D; for the common 118° point ≈ 0.300 × D; for a 90° spot drill ≈ 0.500 × D. A flat-bottom tool (180°) has zero tip length.G81 line defines the cycle once — final depth Z, retract plane R, and feed F. Every X Y line after it repeats the cycle at a new hole, until G80 cancels it. The Z on that line is exactly what this calculator sizes.
(--- setup ---) G00 G90 G17 G20 G40 G49 G80 M05 T01 M06 (load drill) G90 G54 S3056 M03 (spindle on) G00 X0.0 Y0.0 G43 H01 Z1.0 M08 G00 Z.1 (--- G81 drill cycle ---) G81 G99 Z-.5751 R.050 F24.45 (feed to final Z) X1.0 Y0.0 (cycle repeats at hole 2) X2.0 Y0.0 (... hole 3) G80 (cancel canned cycle) (--- clean up ---) G00 Z.1 M09 G28 G91 Z0. M05 G90 M30
Program Z = −(depth + tip length), plus material thickness & breakthrough for through holes. Verify Z against your post-processor and tooling before running.