I see this problem in our shop regularly. A client's part comes out of heat treatment looking fine. Then we put it on the CNC, and it warps. Or worse—it comes off the machine dimensionally perfect, then distorts after heat treatment. The sequence matters, and getting it wrong costs real money.
Here's the straightforward version. Heat treatment changes the internal stress state of metal. CNC machining removes material, which redistributes those stresses. If you don't plan the order, the part moves on you.
When you quench a steel part, the structure changes. Martensite formation expands the material. That creates internal stresses. Then your CNC removes material—one side, then another—and the stress balance shifts. The part bends or twists.
Think of it like this. Imagine a stressed metal part as a loaded spring. The spring holds its shape until you cut into it. The moment you remove a section, the balance changes. That's exactly what happens during post-heat-treatment machining.
I had a client who skipped stress relief on a 4140 steel bracket. The part measured perfect on the CMM after roughing. Then he sent it for heat treat. When it came back for finishing, it was 0.12mm out of flat. We fixed it, but the extra work ate his margin.
Here's the sequence I recommend to clients. It's standard practice in our facility and it works.
Step one: rough machine the part. Remove the bulk of the material. Leave 0.5mm to 1.5mm of stock. This gets the part close to final shape without creating the final stress profile.
Step two: heat treatment. Quench, temper, age harden—whatever the material needs. The part will distort slightly because stresses from rough machining and the heat treatment itself interact.
Step three: finish machine. Now you clean up to final dimensions. The stock left from roughing is enough to correct any heat treat distortion. Final tolerances are held on stable material.
I tell clients: always leave enough finish stock. Too little, and the distortion won't clean up. Too much, and you're cutting through hardened material longer than needed. The sweet spot depends on material and part geometry.
Stress relief annealing. This is a low-temperature heat treatment between roughing and finishing. It relaxes internal stresses without changing hardness. I use it for complex parts or thin-walled components. It adds a day to lead time but prevents scrap.
Adjust cutting parameters. Hardened material needs different feeds and speeds. Reduced DOC, climb milling, proper chip thinning. I've seen operators run post-heat-treat parts at the same parameters as annealed material. That causes chatter, heat buildup, and more distortion.
Better fixturing. Support the part to resist distortion forces. For thin sections, add support under the workpiece. Vacuum chucks work well for flat parts. For irregular shapes, custom soft jaws or conformable fixturing.
Match the heat treatment to the final requirement, not just the material spec.
Quench and temper for high strength and toughness. Common for structural parts. The quench causes the most distortion—oil quenching distorts less than water, and vacuum or gas quenching distorts least.
Annealing for soft, machinable material. Do this before any machining, especially on complex parts. It equalizes the structure and removes prior stresses.
Case hardening for wear-resistant surfaces with a tough core. The case depth is shallow, so distortion is minimal. Good for gears and shafts where surface hardness matters but core toughness is needed.
Skipping rough machining. Going straight to finish cuts before heat treatment wastes time and risks distortion during final machining.
Assuming all materials behave the same. Aluminum 6061 behaves differently from 7075, which behaves differently from any steel. Get material-specific guidance from your heat treater.
Skipping inspection between steps. Measure after roughing, after heat treatment, and after finishing. Catching a shift early saves the part. I check critical features with a CMM at every stage.
Send your CAD files to chen@aoomtech.com for a quote within 24 hours.