The short answer
Cut the threads before heat treat when the finished hardness is still in a range a tap or a thread mill can work reliably, and the thread class can absorb typical movement after a quench. Finish the threads after heat treat when the part will be hard enough that a standard tap is no longer a practical default, when a tight or sealing thread must be held after movement, or when a case-hardening cycle would leave a brittle or off-size thread. A useful middle path is to drill or rough the core hole before heat treat and cut the finished thread after. Name that sequence on the PDF you upload with the STEP through quote-new.php. Do not write “threads after heat treat as required.”
This is a thread-sequence question, not a heat-treat question
This note is about the threads only. Whether the part should be heat treated at all is a separate call — see when to specify heat treat after CNC, and heat treating steel after CNC machining for process, hardness bands, and stock. How the shop forms a thread, tapping versus thread milling, is also a separate note (see thread milling vs tapping for CNC buyers). Designing threads and tapped holes still governs size, engagement, blind-hole depth, and class. The question here is narrower: are those threads cut soft, cut hard, or split across the two.
A quench-and-temper cycle can move holes and shift pitch diameter by a small amount. That movement is typical, not a published constant, and it depends on the grade, the section, and the quench. If the print already asks for a tight thread class, a ground pitch diameter, or a thread that must seal, plan the finishing cut after that movement has happened.
A thread callout without a sequence is a guess. A size and class next to a hardness band does not tell the shop whether to tap soft and hope, or to thread mill after temper.
When cutting the threads first is enough
Moderate hardness and a standard class
Cut the threads before heat treat when the finished hardness stays in a band where a conventional tap or a thread mill is still a normal shop process — often up to around 30–35 HRC, unless you have written a harder value — and the class is a general fit, such as a typical metric 6H or a Unified 2B internal thread. Many fixture parts, covers, and non-sealing fasteners fall here. The shop cuts the thread while the material is still kind to the tool, then heat treats.
Precipitation-hardening stainless before aging
On 17-4PH, it is common to machine and thread in condition A, then age to H900 or H1025 (see 17-4PH H900 vs H1025). Aging usually moves less than a steel quench, so a moderate class on a stable wall can often be cut before aging. If you need a tight class on a thin boss after H900, finish the thread after aging, usually by thread milling.
Prototypes that only need to assemble
On a first article that is only proving envelope and assembly, you can cut threads in the soft condition even if the production revision will be harder or tighter (see prototype vs production CNC quotes). Put the production routing on the revision that will actually be hardened; a soft prototype does not authorize a silent change.
When the finished thread should wait
Hardness where tapping is no longer a default
Finish the threads after heat treat when the specified hardness is high enough that a standard tap is likely to break or wander — often from about the mid-30s HRC upward, and routinely once you are in the 40s HRC, as with many 17-4PH H900 or tool-steel conditions (see tool steel A2, D2 and O1 for CNC fixtures). In that range the shop usually thread mills, single-points, or, on an external thread, hard-turns or grinds the thread. Say the finished thread is cut after heat treat; do not assume a tap is still the method. When should I specify 4140 steel for CNC parts is the companion grade note if 4140 is what you are calling.
Tight classes, sealing threads, and holes that move
Finish or chase the thread after heat treat when you have written a tight class (for example a 4H or 3B fit, or a thread that must seal), when an external thread is also a locating diameter, or when the hole sits in a section that typically moves in quench. Leaving only a core hole, or a rough thread, before heat treat keeps most of the heavy cutting in the soft state and still lets the pitch diameter be established after movement.
Case hardening, carburizing, and nitriding
These are not the same as a through-hardening quench and temper. A carburized case on a finished thread can make crests brittle and can change pitch diameter as the case grows. Typical practice is to mask or copper-plate the thread, or to leave a core hole and cut the thread after — not to guess an oversize. Nitriding usually moves less than a quench; many shafts are finished, including threads, before nitride, but a tight class should still be confirmed after the cycle if the print is unforgiving. Write the actual process name and the thread sequence. Do not write only “harden.”
A useful split: core hole first, thread after
The hybrid sequence is often the most quotable compromise. Drill, and if needed ream, the core hole while the part is soft. Run the heat-treat cycle, including any straighten or stress-relief step you have actually specified. Then thread mill or single-point the finished thread to class. Show the core size as a preparation diameter, not as the finished thread, and show the finished thread as a later operation.
This split also helps when only some holes on the same part are tight. A general cover thread can be cut before heat treat; a sealing or locating thread on the same housing can be finished after. Identify which is which. A blanket “all threads after heat treat” note on a part with many ordinary fasteners mainly adds hard-milling time you may not need.
Special threads: pipe, external, blind, and inserts
External threads on a shaft follow the same hardness and class logic, with one extra option: a thread grind after heat treat, in the same family of decisions as when OD grinding is needed after CNC turning. A wrench flat or a shoulder next to the thread still needs a relief so the tool or wheel can run out (see thread relief and runout notes on turned CNC parts, and wrench-flat notes on CNC turned shafts).
NPT and other taper pipe threads are poor candidates for a “tap soft and hope” approach when the part will be quenched, because a small pitch-diameter shift shows up as a stand-off or a leak path (see NPT vs straight-thread port notes on CNC housings). Prefer to finish pipe threads after heat treat, or use a straight-thread port with a seal if the design allows.
Blind holes add chip packing and tap-break risk once the material is hard. If the thread must be finished after heat treat in a blind hole, thread milling is the usual method, and the hole still needs a usable core diameter plus a drill-point or thread-relief depth (see thread depth callouts on blind tapped holes, blind-hole depth and drill-point notes on CNC RFQs, and thread engagement length notes for CNC).
If the hole will take a helical-wire or solid insert, cut the parent thread in the sequence the hardness requires, then install the insert after heat treat and after any coating (see thread inserts vs tapped holes in aluminum, and helicoil vs tapped holes for CNC aluminum).
Callouts that make the sequence quotable
On the PDF that accompanies the STEP, write a sequence, not a hope:
- Material and condition, plus the heat-treat process and a hardness band if one applies
- Which threads are cut before heat treat, which core holes are only roughed before, and which threads are finished after
- Thread standard, size, class, and depth, including blind-hole allowances
- Method only when it matters: “thread mill after heat treat,” not “tap as required”
- Case-harden or nitride notes, including mask or copper-plate if threads must stay soft or stay to class
- Coating or plating, and whether the thread class applies before or after the finish, with mask or an oversize or undersize allowance if needed (see does plating thickness eat CNC tolerances)
- Inserts installed after heat treat and after coating, if used
- How the thread will be checked (see go/no-go thread inspection notes for CNC lots)
- A drawing PDF that matches the STEP, uploaded together through quote-new.php
What files to send for a CNC quote and the DFM checklist before an online CNC quote still apply. ISO 2768 general tolerances do not cover thread class.
Mistakes that show up at go/no-go
The most common error is a hardness in the 40s HRC next to a tapped-hole note and no sequence, so one shop quotes a soft tap and another quotes a hard thread mill. The second is a tight class specified before quench, with no core-hole preparation and no chase or finish pass. The third is carburizing over a finished thread with no mask, then finding brittle crests or a failed go/no-go gage. The fourth is plating after a finished general-class thread with no mask and no allowance. The fifth is installing an insert before heat treat or before coating. The sixth is changing the production sequence after a soft prototype without a revision. A hardness callout is not a thread process.
A last look at the files
On quote-new.php, check that each of these is visible on the drawing:
- Heat-treat process and hardness band, or a clear “no heat treat”
- Thread sequence: before, after, or core hole before and finish after
- Class, depth, and blind-hole allowances on every specified thread
- Mask, oversize, or “class after coating” if a finish is applied
- The PDF and the STEP agree
What drives CNC machining cost and what affects CNC machining lead time both move when you add a hard thread-mill pass, a thread grind, or a furnace mask, so name those steps on the first RFQ. If the files show the sequence, upload them through quote-new.php and ask for a quote with that thread routing, not as a “cut threads as required” note.
