G-code reference

G00: Rapid positioning

G00 is rapid positioning. Moves to a point at full rapid speed, not cutting. It is modal, so it stays active on the following lines until another code from the same group replaces it.

What G00 does

G00 moves the axes to the commanded point as fast as the machine allows. It is for getting into position, never for cutting: no F word applies, and on many machines the axes do not move in a straight line, so the path between points is not guaranteed. Keep the tool clear of the part and fixtures on every G00 move.

TypeG-code
MachineMill and lathe
GroupMotion
ModalYes: stays active until replaced by another code from the same group

G00 example

G00 X50. Y25. Z5.

Rapid to X50 Y25, 5 mm above the part.

WordWhat it means here
G00Rapid positioning
X50.X axis target (on a lathe, the diameter)
Y25.Y axis target
Z5.Z axis target or depth

Codes people confuse with G00

CodeWhat it does instead
G01 Linear interpolation (feed move). Cuts in a straight line at the programmed feed rate F.

Memory hook: Zero, like zero cutting: G00 never touches the part.

Other codes in the motion group

Only one code from a modal group is active at a time. Programming any of these replaces G00.

  • G01 Linear interpolation (feed move)
  • G02 Circular interpolation, clockwise
  • G03 Circular interpolation, counterclockwise
  • G32 Thread cutting (single pass)

Meanings follow the common Fanuc-style standard that Haas, Okuma (EIA mode), Mitsubishi, LinuxCNC and most other controls share for this code. Options and parameters change details from machine to machine, so check the manual for your control.

Quick check: G00

  1. What does G00 do? (Mill and lathe)

  2. Which code: Moves to a point at full rapid speed, not cutting.(Mill and lathe)

  3. What does G01 do? (Mill and lathe)

Show the answers
  1. Moves to a point at full rapid speed, not cutting.
  2. G00
  3. Cuts in a straight line at the programmed feed rate F.

Drill this code with the rest of the core set

More practice hubs

Frequently asked questions

What does G00 mean in CNC programming?
Rapid positioning. Moves to a point at full rapid speed, not cutting.
Is G00 modal?
Yes. G00 belongs to the motion group and stays active until another code from that group is programmed.
What is the difference between G00 and G01?
G00 (rapid positioning): moves to a point at full rapid speed, not cutting. G01 (linear interpolation (feed move)): cuts in a straight line at the programmed feed rate F. A way to remember it: zero, like zero cutting: G00 never touches the part.

G-Code Sprint is an educational practice tool only. It is not a CNC simulator, machine controller, safety manual, or replacement for instruction. Always follow your instructor, employer, machine manual, and shop procedures.

Free preview · no card Try G-Code Sprint