// Decision Reference · Process Order · Steel Parts

Heat Treatment Before or After Machining?

The default for hard, accurate steel parts is neither "before" nor "after" — it is both: rough machine, harden, then finish grind the critical features. Below roughly 35 HRC there is a cheaper route with zero quench risk: machine pre-hardened bar directly. This page gives the decision table, the distortion and growth values per process, and the grinding allowances we actually plan with.

Compiled by the EKINSUN engineering team from shop planning values for steel parts. Movement is geometry- and quench-dependent — treat the figures as planning ranges, not guarantees. Last reviewed 18 Aug 2026.

The Four Routes — and When Each One Wins

Heat treatment and machining are not a yes/no pair but an ordering problem. Every hard steel part we quote takes one of four routes, and the choice is driven by two numbers: the final hardness, and the tightest tolerance that must survive to the finished part.

RouteSequenceBest forTolerance outcome
A — no heat treatmentMachine finishedParts that don't need hardness: brackets, spacers, housingsFull machining tolerance, e.g. ±0.01 mm where specified
B — pre-hardened stockBuy 42CrMo4/4140 at 28–35 HRC → machine finishedShafts, pins, bolts needing strength without extreme surface hardnessFull machining tolerance, zero quench distortion — our default for strong shafts
C — harden betweenRough machine (+ grind stock) → through-harden or carburize → finish grindHRC 40+ parts with tight fits: arbors, bearing journals, wear partsGround features hold ±0.01 mm after hardening; unground features carry quench movement
D — nitride lastMachine completely finished → gas nitrideWear surfaces on finished precision parts, thin parts that would warp in a quenchGrowth ~10–30 µm per surface, no quench distortion, no machining afterwards

Why route B exists: a great deal of "hardened shaft" work does not actually need HRC 55 — it needs a shaft that will not bend or wear quickly, which 42CrMo4 at 28–35 HRC already delivers. Machining that bar directly skips the quench, the distortion, the straightening and the grinding, and the tolerance you order is the tolerance you get. When a buyer's drawing says "hardened" with no number, this is the first question we ask.

Hardness vs Machinability — Where Cutting Stops and Grinding Starts

HardnessCan it be machined?ProcessPractical notes
< 30 HRCYes — freelyNormal turning and millingAnnealed or normalized steel; full feature freedom
28 – 35 HRCYes — daily workTurning/milling of pre-hardened bar42CrMo4/4140 pre-hard; slightly lower speeds, normal tolerances
35 – 45 HRCYes — selectivelyHard turning/milling, CBN or coated carbideFeature-by-feature decision; threads by thread milling
45 – 65 HRCNot economicallyGrinding (or EDM for forms)This is grind territory — plan grind stock before hardening

What Each Process Does to Dimensions

The reason ordering matters at all is that hardening moves metal. Planning values we use — geometry, section changes and quench severity swing them, which is exactly why tight features are ground after, not gambled through:

ProcessTemperatureTypical dimensional effectMachining consequence
Through hardening + oil quench~830–860 °C0.1–0.3% movement; slender shafts can bow visiblyLeave grind stock; straightening is a rework, not a fix — a straightened shaft holds stress
Carburizing (case hardening)900–950 °CLargest movement of the common processes + surface growthGrind stock on all precision features; case depth specified together with stock
Induction hardeningLocal, surface onlyLocalized; least global movement of the quench processesGood for one journal or tooth flank on an otherwise soft part (typical on C45)
Gas nitriding500–530 °CGrowth ~10–30 µm per treated surface, no quenchFinish-last process — never machine after nitriding, any cut removes the case
Stress relieving550–650 °CNegligible size change; releases locked-in stressBetween rough and finish machining on parts that must stay flat or round
Precipitation (17-4PH → H900)~480 °CPredictable shrink ≈ 0.05%, very low distortionMachine near-final, age, then final-cut critical features — the stainless route to HRC 40+

Grinding Allowances We Leave Before Hardening

Route C only works if the rough-machined part carries enough stock for grinding to clean up the quench movement — and, on carburized parts, not so much that grinding removes the case:

Planning values — long slender parts get more, because bow consumes allowance
FeatureAllowanceNote
Diameters ≤ Ø250.2–0.3 mm on ØJournals, pins, arbor seats
Diameters Ø25–800.3–0.4 mm on Ø
Diameters > Ø800.4–0.5 mm on Ø
Bores0.3–0.5 mm on ØInternal grinding is slower — stock kept tight
Faces0.15–0.25 mm per sideShoulders and thrust faces
Carburized featuresStock ≤ ~⅓ of case depthGrind more and the hard case is gone — case depth and stock are specified as a pair

Threads and Hardening

Threads concentrate every problem on this page: they are precise, they cannot be ground economically in small quantities, and they sit at the surface where hardness lives. The working rules: final hardness under ~38 HRC — cut the thread before hardening, it survives with minor growth; above that — thread-mill in pre-hardened material or grind the thread after hardening. And one geometry rule that outranks hardness: a full-depth thread running against a hard shoulder is a thread-milling job, because a die or single-point pass cannot finish the final turns to the shoulder. For non-standard pitches and oversize threads this is daily work in our custom fastener program.

Material Notes — What Can and Cannot Be Hardened

EKINSUN LTD is a custom parts manufacturer in Guangdong, China; heat treatment runs in qualified partner facilities and the machining schedule is planned around it. The material families behave very differently:

  • 42CrMo4 / 4140 — the workhorse. Through-hardens to HRC 50+, or bought pre-hardened at 28–35 HRC and machined directly (route B). Our carbon and alloy steel page covers the grades.
  • C45 / 1045 — induction-hardens well on single surfaces; through-hardening is shallow. The economical choice when one journal needs wear resistance.
  • 16MnCr5 / 8620 — carburizing grades: soft tough core, HRC 58+ case. Route C with case depth stated.
  • 304 / 316 stainlesscannot be hardened by heat treatment at all. Austenitic steels only work-harden slightly. A "hardened 304" callout means the material must change: 17-4PH ages to ~HRC 40–44 with ≈0.05% predictable shrink, 440C quench-hardens to HRC 58+. We flag the substitution on the quote.
  • 6061-T6 / 7075-T6 aluminium — already at final temper as supplied; machining does not change it and no post-machining hardening is needed. Welding or annealing destroys the temper — that is a design constraint, not a heat-treatment order.

What a Hardness Callout Cannot Say — and What We Quote Instead

SituationIn the HRC callout?How EKINSUN handles it
Final hardness of the partYes — that is all it saysRoute chosen from hardness + tightest tolerance; route stated on the quote
Which dimensions apply before vs after treatmentNo — and quench moves themQuote states that toleranced features are finished after hardening (route C) or that route B/D makes the question moot
Who owns distortionNoGrind stock planned by the table above; bow on slender parts priced as grinding, not "straightening for free"
Case depth vs grinding stockNo — two callouts that fight each otherSpecified as a pair on carburized parts so the case survives grinding
An impossible pairing (e.g. hardened 304)The callout can demand it; metallurgy refusesMaterial substitution (17-4PH / 440C) proposed on the quote, never silently machined
A worn hardened part to copy, no drawingSample tells hardness only if testedReverse engineering with hardness test; wear zones dimensioned from the unworn geometry

Common Mistakes With Heat Treatment and Machining Order

  • Hardening a finished precision part. A part machined to ±0.01 mm and then quenched comes back moved by ten times that. Tight features need grind stock and a second operation — or route B so the quench never happens.
  • Specifying HRC 58–62 plus ±0.01 mm with no grinding plan. The pairing is achievable only as machine → harden → grind. If the quote you received doesn't mention grinding, the tolerance will not survive.
  • Calling for hardened 304. Austenitic stainless cannot quench-harden. The fix is a material change (17-4PH, 440C), not a hotter furnace.
  • Machining after nitriding. The case is tens of microns deep — any post-nitride cut removes it. Nitriding is the last operation by definition.
  • Treating straightening as a repair. A shaft that bowed in the quench and was pressed straight carries locked-in stress and can move again in service. Bent once usually means bends again — the honest fixes are more grind stock, a stiffer route, or pre-hardened bar.
  • Grinding through the case. Generous grind stock feels safe but on carburized parts the stock comes out of the case depth. The two numbers must be specified together.

Drawing says "hardened" — with or without the details? Send it as it is. We come back in 12 hours with the route (pre-hard bar, harden-and-grind, or nitride-last), the grind allowances, and the price — from 1 piece. If the callout can't work as written, the quote says so and proposes the fix. Get a quote.

Heat Treatment & Machining FAQ

Both, usually. The standard route for hard, accurate parts is rough machine → harden → finish grind the critical features. Machining entirely before hardening only works if the part can tolerate quench distortion; machining entirely after only works below about HRC 38–45. For many shafts the better answer is a third route: pre-hardened 42CrMo4/4140 at 28–35 HRC, machined directly to final size with no quench step and no distortion risk.

Typical planning values: oil-quench through hardening moves dimensions by 0.1–0.3% and can bow slender shafts visibly; carburizing at 900–950 °C causes the largest movement; induction hardening is localized and moves the part least of the quench processes; gas nitriding at 500–530 °C grows each treated surface by roughly 10–30 µm with no other movement; stress relieving changes size negligibly. Exact movement depends on geometry, section changes and quench — which is why features toleranced tighter than about ±0.05 mm are ground after hardening rather than trusted to survive it.

Yes — pre-hardened 42CrMo4/4140 at 28–35 HRC is machined directly to finished size in our daily work, and up to about HRC 38 is routine with the right inserts. From HRC 38–45, hard turning of selected features with CBN tooling is possible; above HRC 45 the practical finishing process is grinding. This is why the quote states the route, not just the part: hardness decides which machines touch it and in which order.

No. 304 and 316 are austenitic stainless steels — they do not respond to quench hardening at all and can only gain hardness slightly through cold work. If a drawing calls for a hardened stainless part, the material has to change: 17-4PH precipitation-hardening stainless reaches around HRC 40–44 at the H900 condition with a predictable ~0.05% shrink and very low distortion, and 440C martensitic stainless quench-hardens to HRC 58+. EKINSUN flags this substitution on the quote instead of silently machining 304.

If the final hardness stays below about HRC 38, threads are cut before hardening and survive it with minor growth. Above that, the honest options are thread milling in pre-hardened material, or grinding the thread after hardening. A full-depth thread running to a hard shoulder is a thread-milling job by geometry — a die or single-point pass cannot finish the last turns against the shoulder.

Planning values on diameter: 0.2–0.3 mm up to Ø25, 0.3–0.4 mm for Ø25–80, 0.4–0.5 mm above Ø80; bores get 0.3–0.5 mm and faces 0.15–0.25 mm per side. Long slender shafts get more, because bow consumes allowance. On carburized parts the allowance is also capped from above — grind off too much and the case itself is removed, so case depth is specified together with the grinding stock.

Slightly and predictably: gas nitriding at 500–530 °C grows each treated surface by roughly 10–30 µm, and because there is no quench, the part does not distort the way through-hardened parts do. That makes nitriding the finish-last process: the part is machined completely, nitrided, and not machined again — any cut after nitriding removes the hard case.

Yes, but only by the grind route: rough machine, harden to HRC 58–62, then finish grind the ±0.01 mm features. No part holds ±0.01 mm through a quench. The drawing should state that final dimensions apply after heat treatment, and EKINSUN quotes it as machine–harden–grind with the ground features listed — MOQ 1, CMM report available.

Need the Part, Not Just the Route?

Hardened shafts, pins, arbors and wear parts — machined, treated and ground in the right order, from 1 piece. Quote in 12 hours.

Get a Quote →