---
title: "The Z-Axis Plunge Crash: The G-Code Mistake Behind It"
description: "A Z-axis plunge crash usually comes from a rapid into the part, a wrong tool length offset, or a missing retract. Here are the code mistakes behind it, for learners."
url: https://gcodepractice.com/journal/z-axis-plunge-crash-g-code-mistake/
canonical: https://gcodepractice.com/journal/z-axis-plunge-crash-g-code-mistake/
author: "Lawrence Arya"
authorUrl: https://www.linkedin.com/in/vibecoding/
published: 2026-06-02
updated: 2026-06-02
category: "Guides"
tags: ["z-axis", "crash", "safety basics", "g-code"]
lang: en
---

# The Z-Axis Plunge Crash: The G-Code Mistake Behind It

> **TL;DR** A Z-axis plunge crash usually traces to one of a few code mistakes: a G00 rapid commanded down into the part instead of a controlled G01 feed, a wrong or missing tool length offset (G43) so Z goes too deep, or a missing retract before a rapid move. Z is unforgiving because it drives the tool into the work. This is an educational overview, not operating or safety advice.

This is an educational explanation of the code mistakes behind a Z-axis plunge crash. It is not operating or safety instructions for your machine. Work under your instructor or employer and follow the machine manual.

Z-plunge crashes feel especially alarming because the tool drives straight down into the part, fast, with nowhere to go. The causes, though, are a small and understandable set of code mistakes.

## The usual code mistakes

- **A rapid down into the part.** A `G00` to a Z below the surface moves at full speed into the material. Cutting plunges should use a controlled `G01` feed. See [G00 vs G01](/journal/g00-vs-g01/).
- **A wrong or missing tool length offset.** `G43` applies the tool's length so Z stops at the right height. If the offset is wrong or not active, Z goes too deep.
- **No retract before a rapid.** If Z is left low and the next line rapids in X or Y, the tool drags or slams into the part or a clamp.
- **Absolute vs incremental confusion.** A `G91` left active turns an intended absolute Z into an incremental plunge. See [G90 vs G91](/journal/g90-vs-g91-crash-prevention/).

## At a glance

| Mistake | What happens in Z | The concept to learn |
| --- | --- | --- |
| `G00` plunge into stock | Rapid straight into the part | `G00` vs `G01` for plunges |
| Wrong tool length offset | Z stops too low | `G43` tool length compensation |
| No retract before rapid | Tool drags across the part | Safe-Z and clearance moves |
| `G91` left active | Z move stacks incrementally | `G90` vs `G91` modal state |

## Why recall helps here too

Every mistake above is a code or concept you can know cold: when to feed instead of rapid, what `G43` does, and how modal state carries forward. A beginner fluent in the [common G-codes](/journal/common-g-codes-for-cnc-beginners/) and the [modal behavior](/journal/modal-vs-non-modal-g-codes/) is far less likely to misread a Z move, which is part of why [how to safely test a program](/journal/how-to-safely-test-a-g-code-program-without-crashing/) starts with reading it. Recall does not replace careful checking on the machine, but it removes the confusion that causes the mistake. Build it with [beginner CNC code practice](/journal/beginner-cnc-code-practice/).

## Bottom line

A Z-plunge crash is usually a rapid where a feed belonged, a wrong tool length offset, or a missing retract. Learn the codes behind each, verify offsets, retract Z before rapids, and always work under supervision and your machine manual.

## Sources

- [LinuxCNC G-code reference (G0, G1, G43)](https://linuxcnc.org/docs/html/gcode/g-code.html)
- [Wikipedia: G-code](https://en.wikipedia.org/wiki/G-code)
- [CNCCookbook: G-code and M-code cheat sheet](https://www.cnccookbook.com/g-code-m-code-cnc-list-cheat-sheet/)

## Frequently asked questions

### Why do Z-axis plunge crashes happen?
Usually a rapid (`G00`) commanded downward into the part instead of a controlled feed, a wrong or missing tool length offset so Z goes deeper than intended, or a move that did not retract Z to a safe height first. Z drives straight into the work, so these mistakes are unforgiving.

### Should you ever plunge in Z with G00?
Rapiding down to a safe clearance height above the part is normal; rapiding down into or near the material is where crashes happen. Cutting plunges use a controlled feed (`G01`), not a rapid. Always follow your machine manual and shop procedure.

### How do I avoid Z plunge mistakes as a beginner?
Understand the codes (`G00` vs `G01`, tool length offset `G43`), verify offsets, and retract Z before rapids, under supervision. A practice tool like G-Code Sprint helps you recall what these codes do, but it is not a controller or a safety system.

*G-Code Sprint is a study and practice tool only. It is not a CNC simulator, machine controller, or safety authority. Always follow your instructor, employer, machine manual, and shop safety procedures.*

---

Source: https://gcodepractice.com/journal/z-axis-plunge-crash-g-code-mistake/
Author: Lawrence Arya — https://www.linkedin.com/in/vibecoding/
