Every threaded hole starts with two questions: which drill do I use before the tap, and what feed does the tap need? The Drill Feed & RPM Calculator in the Shader7 CNC Machinist hub answers both. It knows the ISO metric coarse pitches, works out the tap drill, syncs the tapping feed to the pitch, and writes a canned-cycle program you can review before it goes to the machine.
Two operations in one app
Choose the Machining Operation first:
- Twist Drilling gives RPM and feed for a drill and lets you choose a drilling cycle.
- Rigid Tapping (G84) gives RPM and a pitch-synchronised feed for a tap, plus the tap drill diameter.
The rest of the form adapts to the choice: the pitch field appears for tapping, and the cycle selector appears for drilling.
The inputs
- Coordinate Plane: G17 (drill along Z), G18 (along Y) or G19 (along X).
- Drill Canned Cycle (drilling only): G83 deep-hole peck, G73 high-speed peck (chip breaker), G81 direct drilling, G82 drilling with dwell, or G86 boring with spindle-stop retract.
- Tool Diameter in mm, with quick presets for Ø3, Ø4, Ø5, Ø6, Ø8, Ø10, Ø12 and Ø16.
- Thread Pitch (tapping): filled in automatically with the coarse pitch for standard sizes. Type a value to use a fine pitch instead.
- Cutting Tool Material: HSS, Cobalt (HSS-Co) or Solid Carbide.
- Workpiece Material: mild carbon steel, alloy/tool steel, stainless steel, aluminium alloy, cast iron, or brass/bronze/copper.
- Hole Target Depth (optional) and Block Thickness.
- Maximum spindle speed (RPM) of your machine.
- Optional Cutting speed (m/min) and Drill feed per revolution (mm/rev) to override the built-in estimates with your tool maker's data.
G-code program options
- Controller style: Fanuc / compatible, which adds M29 before rigid tapping, or Haas, which taps without M29.
- Tool number (used for both T and the H offset) and Work offset (G54 to G59).
- R plane (feed start height, 2 mm by default) and Initial / clearance height (30 mm by default). The clearance height must be above the R plane.
- Return between holes: G98 back to the initial height, which clears clamps, or G99 to the R plane, which is faster.
- Hole positions (X Y): one hole per line, written as
25 15,25, 15orX25 Y15. Every line becomes a hole in the same canned cycle.
Results update automatically as you edit. Copy link to this setup gives you a link that reopens the calculator with the same values, and your last setup is remembered on this device.
Tap drill size and thread pitch
For ISO metric threads, the app uses the common rule:
Tap drill diameter = Nominal diameter − Pitch
This gives roughly 75% thread engagement, which is the usual target for general work. The coarse pitches the app fills in are:
| Thread | Pitch (mm) | Tap drill (mm) |
|---|---|---|
| M3 | 0.5 | 2.5 |
| M4 | 0.7 | 3.3 |
| M5 | 0.8 | 4.2 |
| M6 | 1.0 | 5.0 |
| M8 | 1.25 | 6.75 (6.8 in practice) |
| M10 | 1.5 | 8.5 |
| M12 | 1.75 | 10.25 (10.2 in practice) |
| M14 | 2.0 | 12.0 |
| M16 | 2.0 | 14.0 |
| M20 | 2.5 | 17.5 |
| M24 | 3.0 | 21.0 |
| M30 | 3.5 | 26.5 |
The built-in table runs from M1.6 to M42. For a fine thread such as M10 × 1.25, type 1.25 in the pitch field; the tap drill becomes 8.75 mm.
How RPM and feed are calculated
Spindle speed comes from the cutting speed and diameter:
RPM = (1000 × Vc) / (π × D)
The app shows a range, from 60% to 120% of the calculated RPM, with the standard value in the middle, and caps all values at your machine's maximum RPM. If the cap kicks in, it says so and recalculates the feed.
Drilling feed = RPM × feed per revolution. If you leave feed per revolution empty, the app starts from a diameter-based estimate (0.07 mm/rev up to Ø5, 0.10 up to Ø8, 0.14 up to Ø12, 0.18 up to Ø20 and 0.25 above that) and adjusts it for the workpiece material:
| Material | Feed factor | Peck factor (Q = factor × D) |
|---|---|---|
| Mild steel | 1.0 | 0.75 |
| Alloy steel | 0.85 | 0.6 |
| Stainless | 0.75 | 0.5 |
| Aluminium | 1.25 | 1.0 |
| Cast iron | 1.1 | 1.0 |
| Brass / bronze | 1.1 | 1.0 |
So an 8 mm drill in stainless gets 0.10 × 0.75 = 0.075 mm/rev and pecks of 4 mm, while the same drill in aluminium gets 0.125 mm/rev and pecks of 8 mm. Tougher materials get lighter feeds and shorter pecks.
Tapping feed = RPM × pitch, always. In rigid tapping the spindle and feed axis must stay locked together, so the app rounds the RPM to a whole number first and then multiplies by the pitch. You cannot override the tapping feed; that is deliberate.
Built-in cutting speeds (m/min)
| Material | Drill HSS / HSS-Co / Carbide | Tap HSS / HSS-Co / Carbide |
|---|---|---|
| Mild steel | 22 / 28 / 80 | 6 / 8 / 18 |
| Alloy steel | 18 / 24 / 70 | 5 / 7 / 15 |
| Stainless | 14 / 20 / 60 | 4 / 6 / 12 |
| Aluminium | 60 / 80 / 200 | 10 / 12 / 30 |
| Cast iron | 20 / 26 / 80 | 8 / 10 / 20 |
| Brass / bronze | 45 / 60 / 140 | 12 / 15 / 25 |
These are conservative starting points. Coated carbide drills from a specific maker can often run much faster; enter their cutting speed in the optional field.
Warnings the app gives you
- Peck drilling advised: when the hole depth is three times the drill diameter or more, the app recommends G83 or G73 to clear chips.
- Table collision risk: when the hole depth is equal to or greater than the block thickness, the drill will break through. The app reminds you to put parallels or spacers under the part.
- Spindle limit applied: when the calculated RPM is above your machine's maximum.
The sample program and preview
The app writes a complete sample program from your settings. For an M10 rigid tap on a Fanuc-style control with two holes, it looks like this:
(SHADER7 SPEEDS & FEEDS G-CODE)
(OP: TAP, TOOL DIA: 10.00 mm, 2 HOLES)
G21 G90 G94 G98 G40 G80 G17 G54 (METRIC WORK PLANE)
T01 M06 (SELECT TOOL)
G00 X0.0 Y0.0 S255 M03 (RAPID TO HOLE, SPINDLE ON CW)
G43 H01 Z30.0 M08 (TOOL LENGTH OFFSET, COOLANT ON)
M29 S255 (RIGID SYNC ENABLER)
G84 Z-20.000 R2.0 F382.5 (RIGID TAPPING CYCLE)
X25.0 Y15.0 (HOLE 2)
G80 M09 (CYCLE CANCEL, COOLANT OFF)
G00 Z30.0 M05 (SAFE RETRACT, SPINDLE STOP)
M30 (PROGRAM END)
Choose Haas and the M29 line disappears. Peck cycles add a Q value from the material table above, and G82 adds a one-second dwell (P1000). Check the exact output in the app, since it follows every option you set.
When tapping a blind hole with a target depth, the results also show a Pre-drill Depth (blind): the thread depth plus about four pitches for the tap's chamfer and clearance, plus 0.3 × the drill diameter for the drill point.
The cycle preview animates the spindle through the approach, feed, peck retracts, dwell and retract, so you can see how G83 differs from G73 before running it.
Practical tips
- Spot drill first on anything bigger than a few millimetres or on curved surfaces.
- Drill deeper than the thread. For blind tapped holes, use the app's pre-drill depth, which leaves room for the tap's lead, chips and the drill point.
- Use cobalt or carbide in stainless and keep the feed steady; rubbing work-hardens the material.
- For bolt-hole patterns, get the coordinates from the PCD Generator, then use this calculator for the cutting data.
Worked example: an M10 blind tapped hole in mild steel
- Start with the tap. Choose Rigid Tapping (G84), Tool Diameter 10, Cobalt (HSS-Co), Mild Carbon Steel, Hole Target Depth 20 (the full thread depth) and Block Thickness 40. The app fills in a pitch of 1.5 and shows a tap drill of 8.5 mm. With an HSS-Co tap at 8 m/min, the RPM is about 255 and the feed is 255 × 1.5 = 382.5 mm/min. The Pre-drill Depth (blind) is 20 + 4 × 1.5 + 0.3 × 8.5 = 28.55 mm.
- Then the drill. Switch to Twist Drilling, Tool Diameter 8.5, cycle G83, Hole Target Depth 28.55. With HSS-Co in mild steel (28 m/min), the standard RPM is about 1,049 and the feed is 1,049 × 0.14 ≈ 147 mm/min. Because the depth is more than three times the diameter, the app recommends peck drilling, and the G83 block uses Q6.38 (0.75 × 8.5).
- Add the hole positions in the hole list, use Copy link to this setup to save each setup, and copy both programs to your control.
Troubleshooting drilling and tapping
| Problem | Likely cause | Fix |
|---|---|---|
| Drill squeals or burns | Speed too high or feed too low | Reduce RPM or increase feed per revolution |
| Chips pack in the flutes | Hole too deep for G81 | Use G83 or a smaller peck depth |
| Oversize or bell-mouthed hole | Drill walked on entry | Spot drill first; check runout |
| Tap breaks | Tap drill too small, tap bottoming, or worn tap | Check tap drill size; leave clearance at the bottom; replace the tap |
| Threads strip or are loose | Feed not matching pitch, or tap drill too large | Use the app's synced feed; check the tap drill size |
Frequently asked questions
How does the app choose the thread pitch?
For standard metric sizes it fills in the ISO coarse pitch from its built-in table (M1.6 to M42). Type a different value to use a fine pitch.
What tap drill does it recommend?
Nominal diameter minus pitch, which gives about 75% thread engagement. Round to the nearest drill you have, such as 6.8 mm for M8.
Why can't I change the tapping feed?
In rigid tapping the feed must equal RPM × pitch, or the tap will strip or break. The app rounds the RPM to a whole number and calculates the feed from it.
When should I use G83 instead of G73?
G83 retracts fully out of the hole after each peck, which clears chips best in deep holes. G73 retracts only a little to break the chip, which is faster in shallower holes and free-cutting materials.
Is the calculator metric only?
Yes. Diameters, depths and feeds are in millimetres.
Calculate your drill or tap setup
Pick drilling or rigid tapping, enter the diameter and materials, and get RPM, feed, tap drill size, a canned-cycle program and an animated cycle preview.