Tapping & Thread Milling
Tapping cuts internal threads with a tap. This page covers rigid tapping with G84, how to calculate the feed, choosing the right tap drill size, blind-hole considerations, and when thread milling is the better choice.
Concept
Tapping is the process of cutting internal threads using a threaded tool called a tap. On a CNC mill, rigid tapping (G84) synchronizes spindle rotation with Z feed so the tap follows the thread pitch exactly: every spindle revolution advances the tap by exactly one pitch. The spindle reverses at the bottom and retracts, still synchronized, so the tap backs out cleanly.
Thread milling is an alternative: a rotating single-profile thread mill tool follows a helical path around a pre-drilled bore. The tool circularly interpolates in XY while simultaneously moving in Z, cutting the thread in one or more helical passes. Thread mills are more expensive and more complex to program, but they offer flexibility: one tool can cut many thread sizes, and they work well on large or non-ferrous parts.
Why It Matters
Tapping errors are expensive. If the feed does not match the pitch exactly, the threads are stripped or deformed. If the tap drill is too small, the tap binds and breaks in the hole — broken taps are notoriously hard to remove. If you tap a blind hole too deep, the tap hits the bottom and snaps. Getting the tap drill size, feed, and depth right the first time matters.
How It Works
G84 Rigid Tapping Cycle
G84 works like other canned cycles: rapid to R plane, feed to Z depth, then retract. The difference is that during G84, the spindle turns clockwise (M03) on the way in, then automatically reverses (M04) on the way out. The Z feed is locked to spindle RPM by the controller — but the programmer must set F correctly.
The critical formula:
F = pitch (mm/rev) × spindle speed (RPM)
For M10×1.5 at S500: F = 1.5 × 500 = 750 mm/min. At S1000: F = 1.5 × 1000 = 1500 mm/min. The feed is not arbitrary — it must equal the pitch multiplied by RPM, or the thread pitch is wrong.
| Parameter | Meaning | Example (M10×1.5) |
|---|---|---|
| R | Start plane above stock | R5. (classroom value; verify per machine) |
| Z | Tap-tip endpoint (this example uses tip as tool-length reference) | Z-18. (full thread 15 is separate) |
| S | Spindle speed | S500 |
| F | Feed = pitch × S | F750 |
Tap Drill Size
Before tapping, you drill a pilot hole. The tap drill is not the same as the thread major diameter — it is smaller, leaving material for the tap to cut. The general rule for metric threads:
Tap drill diameter = major diameter − pitch
| Thread | Pitch | Tap Drill |
|---|---|---|
| M6×1.0 | 1.0 | 5.0 mm |
| M8×1.25 | 1.25 | 6.75 mm (use 6.8 mm) |
| M10×1.5 | 1.5 | 8.5 mm |
| M12×1.75 | 1.75 | 10.25 mm (rough estimate; confirm with tool data) |
This is a rough starting estimate for cutting taps; actual tap-drill size depends on tool data, material, and required thread engagement. Consult the tap manufacturer's chart.
Blind Hole vs Through Hole
Through holes are simpler: the tap exits the part, but you still need lead/chamfer runout space below the exit and clearance below the hole. Blind holes (holes that do not go through) require planning: the tap cannot reach the bottom, and the chip evacuation space matters. Use a bottoming tap (short chamfer) for near-full depth in blind holes. A taper/starting tap has a long chamfer and leaves several incomplete threads at the bottom. Program the tap Z depth slightly shallower than the drill depth to avoid bottoming out.
Thread Milling vs Tapping
| Factor | Rigid Tapping | Thread Milling |
|---|---|---|
| Cost | Cheap taps | Expensive tools |
| Programming | One G84 line | Helical interpolation code |
| Large threads | Large taps, high torque | Better: smaller tool, less force |
| Material flexibility | One tap per size/pitch | One tool cuts many sizes |
| Blind holes | Risk of breaking tap | Safer: less force, controlled depth |
| Machine requirement | Rigid tapping or tension holder | 3-axis interpolated mill |
Example
Entry preconditions (teaching model): tool length H02/H03 calibrated, initial Z50 path and XY traverse clearance verified, G54 selected, coolant available. The program below follows that order.
Worked example: One M10×1.5 blind tapped hole, 15 mm deep, in aluminum. Step 1: drill Ø8.5 pilot hole to Z-23.55 (drill-tip reference); the full-diameter cylinder ends at Z-21 and the 118° tip extends to Z-23.55. Step 2: tap to Z-18 so the tap tip reaches the bottom of the 15 mm full thread (assumes c=3 mm from tip to full teeth).
O0034 (TAPPING EXAMPLE)
G21 G17 G90 G94 G40 G80
G54
T02 M06 (O8.5 DRILL)
S1500 M03
G00 G43 H02 Z50. M08
G00 X10. Y10.
G98 G83 R2. Z-23.55 Q3. F120.
G80
G00 Z50.
M09
M05
T03 M06 (M10x1.5 TAP)
S500 M03
G00 G43 H03 Z50. M08
G00 X10. Y10.
G98 G84 R5. Z-18. F750.
G80
G00 Z50.
M09
M05
M30
Key points: Programmed drill depth Z-23.55 places the drill tip; full-diameter cylinder reaches Z-21, tap tip stops at Z-18. R5 is a classroom choice for approach/retract; confirm it against the machine's sync and clearance. F750 = 1.5 pitch × 500 RPM under G94.
Common Mistakes
- Feed not tied to pitch — F must = P × S. A wrong feed strips the thread pitch. Calculate it every time.
- Wrong tap drill size — too small and the tap binds; too large and the thread is weak. Use tap drill = major − pitch.
- Tapping a blind hole too deep — the tap hits bottom. Plan the depth chain: full thread, tap tip, bore bottom, and drill tip.
- Using a taper tap in a blind hole — the long chamfer leaves incomplete threads. Use a bottoming tap.
- No coolant — tapping generates heat; use cutting fluid or tap-specific coolant.
Practice
1. M8×1.25 at S600. What is the G84 feed?
Ans
F = 1.25 × 600 = 750 mm/min.
2. What tap drill for M12×1.75?
Ans
12 − 1.75 = 10.25 mm. Use a 10.2 mm or 10.5 mm drill depending on available stock.
3. When would you choose thread milling over rigid tapping?
Ans
For large threads, blind holes where tap breakage risk is high, non-ferrous materials (aluminum, plastic), or when one tool must cut multiple thread sizes on the same machine.
4. Why is R5 used for tapping instead of R2?
Ans
R5 in this example is a classroom choice; the actual R depends on the machine's synchronized approach and the setup clearance, not a universal rule.
Pre-Drill and Spot Drill
Before the O8.5 drill, a spot drill or center drill starts the hole on surface so the drill does not walk. That start hole is separate from the tap drill and not counted in the thread depth chain.
When to Ream Before Tapping
High-precision tapped holes sometimes ream the tap drill first to control diameter and finish. The reamed diameter feeds back into the thread-engagement calculation; do not assume the rough drill diameter governs.
Tapping Torque and Machine Limits
Large taps need spindle torque; small machines may stall. Rigid tapping depends on encoder feedback and a tuned spindle. A tapping head or tension-compression holder can absorb minor sync error but does not change the F = pitch × S rule.
Inspection After Tapping
GO plug gauge should enter by hand; NO-GO acceptance follows the drawing. Chips left in the hole can falsely reject a good thread, so clean the hole before gauging. Do not force the plug gauge.
Through Hole vs Blind Hole Setup
A through hole lets chips fall out the back. A blind hole traps chips; peck drilling before tapping, through-coolant where possible, and controlled depth all matter. Blind holes also need bottom thickness so the tap or drill does not break through into a cavity.
Tap Chamfer Types
A set tap (bottoming) has a short chamfer and reaches near the bottom but needs several turns to start cutting. A plug tap has a longer chamfer but leaves incomplete threads. Choose by the hole and thread length; do not assume one tap fits all blind holes.
Thread Milling Numeric Example
Target M10×1.5 internal thread in a Ø8.5 bore. Use a thread mill with effective cutting diameter Ø6. The tool center must orbit at radius (10/2 − 6/2) = 2 mm from the hole axis. One orbit raises Z by 1.5 mm (one lead). Programmed F is the tool-center feed along that orbit, set from feed per tooth and spindle speed around the tool's own axis; it is not S×pitch.
Thread Milling Direction
Climb vs conventional for the helical orbit changes tool wear and finish. Pick the direction per tooling guidance; reversing the orbit by accident can produce a left-hand thread on a right-hand part.
Program Safety Around Tapping
Do not start the next XY move while the tap is still in the hole. G80 cancels the cycle; after cancellation, retract Z explicitly to a safe plane before tool change. Coolant and spindle stop follow the same order.
Thread Depth and Engagement
Engagement length in steel threads is often 1 to 1.5 times the nominal diameter for steel, longer for aluminum. The example's 15 mm full thread is chosen as a classroom value; real depth follows the drawing and material.
Why Rigid Tapping Needs a Tuned Spindle
G84 assumes the spindle accelerates, reverses, and decelerates in sync with Z. On an older or uncalibrated machine, a tension-compression tap holder absorbs small error. The F = pitch × S rule still applies; the holder only cushions mis-sync.
Coolant in Tapping
Tapping in blind holes traps chips and heat. Use tapping fluid or through-coolant when possible. Dry tapping in stainless or titanium quickly wears the tap.
Tap Size Selection
A standard hand tap set has taper, plug, and bottoming chamfers. A machine spiral-flute or spiral-point tap is designed for the through or blind hole type. Match the tap style to the hole, not just the thread size.
Left-Hand Threads
On a Haas mill, left-hand rigid tapping uses G74 reverse tapping, not swapping M03/M04 in front of G84. G84 and G74 manage their own spindle direction. F = pitch × S under G94 still holds; for a left-hand hole, program G74 at the same XY with the same F. Confirm direction against the drawing.
When to Use a Tap Chuck with Tension and Compression
Even rigid tapping benefits from a floating holder on small or deep holes. It absorbs minor length mismatch between programmed Z and actual spindle position. The holder does not remove the need for correct F.
Program Order for Drill then Tap
Drilling first removes bulk chips; tapping follows with the same XY position. Work coordinate, tool length offsets, and R plane are set per tool. Use G80 and retract Z between tools.
When a Tap Breaks
A broken tap in a blind hole is costly. EDM tap extraction, careful manual removal, and part scrap are the options. Prevention: correct starting hole, correct F, correct speed, good chips, and good coolant.
Program a Test Hole First
On a new material or setup, run one scrap hole with the drill and tap. Verify depth, pitch, and gauge before running the whole batch. Rigid tapping surprises are expensive.
Thread Milling Advantages Recap
Thread milling leaves no broken-tap risk, handles large holes, and can cut both internal and external threads. The tradeoff is CAM or helical math.
Depth Chain Summary Table
Full thread 15 mm; tap tip to Z−18 (c=3 classroom); full-diameter bore to Z−21; O8.5 118° drill tip to Z−23.55. These are geometry assumptions; chip space and bottom thickness follow the part.
Why Tap Drill Size Is Not a Single Number
Engagement, material, thread class, and tap type all change the starting hole. The major-minus-pitch rule is a starting point; the final size is a tooling and process decision.
Sources
Cutting Tap vs Forming Tap
A cutting tap removes chips; a forming tap displaces material, produces no chips, and needs a larger starting hole. This page's example uses a cutting tap. Do not apply the major-minus-pitch starting-hole estimate to a forming tap; use the forming tap manufacturer's data.
R Plane and Initial Plane for Tapping
The R plane is chosen per machine cycle and clearance. R5 in this example is a classroom value; verify actual approach and retract space. G98 retracts to the initial plane.
Thread Milling Feed and Path
On a thread mill, one circular orbit in XY with one lead of Z makes the thread. The tool center follows a circle set by the tool and part geometry, not the tap drill radius. Programmed F is the feed along that helical path, not S×pitch.