Master CNC
Blog · 4 min read · 26 Oct 2026

G04 dwell: seconds or revolutions

G04 makes the axes stop for a set time while the spindle keeps turning. It is used at the bottom of a groove, a spot face or a counterbore so the tool cleans up a full turn, and to give a spindle or coolant time to reach full speed.

The format on Fanuc

G04 X1.5  (1.5 seconds)
G04 U1.5  (1.5 seconds, lathe)
G04 P1500  (1500 ms = 1.5 seconds)
  • X and U take a decimal point: seconds.
  • P takes no decimal point: milliseconds (P1500 = 1.5 s).
  • G04 works only in its own block and is not modal.

Some controls can be set by parameter to dwell in spindle revolutions while in feed per revolution mode. If a dwell takes much longer or shorter than expected, check that parameter and your manual.

G04 X0.5 dwells 0.5 seconds; one turn at 600 RPM takes 0.1 seconds
Dwell long enough for one or two full turns.

How long should the dwell be?

The goal is usually one to two full spindle turns, so every point of the surface is cleaned once:

time for one turn (s) = 60 ÷ RPM

600 RPM  → 0.1 s per turn
200 RPM  → 0.3 s per turn

Two turns at 600 RPM: G04 X0.2. Longer dwells only rub the edge, heat the part and wear the tool.

Typical uses

(groove bottom on a lathe)
G01 X34. F0.05
G04 X0.2
G00 X42.

(spot face / counterbore on a mill: G82 has its own P dwell)
G82 X20. Y20. Z-5. R2. P200 F100.

In drilling cycles such as G82 the P word is the dwell at the bottom, in milliseconds. See drilling cycles.

Common mistakes

  1. G04 P1.5: with a decimal, P may be read in different units or give an alarm. Use P1500 or X1.5.
  2. G04 X1500: without a decimal point, some controls read X1500 as 1500 seconds (or 1.5 s, depending on a parameter). Always write the decimal point with X.
  3. Very long dwells "to be safe": burnished, hardened surfaces and worn tools.
  4. Putting G04 on the same line as a move.

Okuma OSP and Haas use G04 too, but the address letters can differ. Check your manual and test a new dwell in single block.

Try it in Master CNC

Calculators, process sheet to program, simulation, codes and lessons. Free to start, no sign-in, on phone and laptop.

Open the app