
Compensating for Dimensional Changes Before and After Heat Treatment
Dimensional changes before and after heat treatment must be compensated for in advance during the CNC machining stage, rather than trying to salvage the part after heat treatment. The common practice is to reserve deformation allowance based on the material and type of heat treatment, first performing rough machining with machining allowance left, and then after heat treatment, carrying out semi-finishing and finishing to final dimensions. If buyers can provide the heat treatment process and target hardness when requesting a quote, the machining shop can arrange the corresponding compensation strategy and inspection checkpoints in the process, avoiding scrap due to finished dimensions exceeding drawing tolerances.
Key Takeaways
Heat treatment deformation must be pre-compensated during CNC machining
Dimensional changes must be pre-compensated during the CNC machining stage rather than salvaged after heat treatment; the common practice is to reserve deformation allowance, followed by semi-finishing and finishing to final size after roughing.
Deformation originates from thermal stress and phase transformation stress
Heating and cooling of metal generate thermal stress and phase transformation stress, leading to microstructural changes and volume changes; processes such as carburizing, nitriding, and quenching form hardness gradients and residual stresses.
Three compensation strategies each suit different scenarios
The machining allowance reservation method carries the lowest risk; the pre-deformation method suits batch parts with stable deformation patterns; the sequential machining method inspects and feeds back compensation amounts at each stage.
Providing complete heat treatment information during RFQ reduces scrap costs
Buyers should provide information such as process type, target hardness, hardened layer depth, and critical dimensional tolerances. The more complete the information, the clearer the compensation strategy, and the lower the rework and scrap costs.
Why Does Heat Treatment Cause Dimensional Changes?
The root cause of dimensional changes from heat treatment is the thermal stress and phase transformation stress generated in metal during heating and cooling, leading to microstructural changes and volume contraction or expansion. Processes such as carburizing, nitriding, and quenching create different hardness gradients and residual stress distributions between the surface and core of the part. These stresses are gradually released during subsequent machining or even during static storage, causing dimensions that were originally within tolerance to shift. For thin parts, long parts, or parts with asymmetric shapes, this deformation is often not uniform and may be accompanied by warping, twisting, and localized contraction. When evaluating a CNC shop's heat treatment compensation capability, buyers should pay special attention to whether the shop understands the deformation tendencies of different materials under different heat treatment processes, rather than only checking whether the final shipped dimensions are acceptable.

What Are Common Dimensional Compensation Strategies?
Common dimensional compensation strategies can be divided into three types: the machining allowance method, the pre-deformation method, and the sequential machining method. The machining allowance method involves machining the part close to final dimensions before heat treatment but leaving an allowance of 0.1 to 0.3 mm per side, then performing finish machining to final dimensions after heat treatment. This is the most common and lowest-risk approach. The pre-deformation method involves deliberately offsetting dimensions in the opposite direction of the expected deformation during machining, based on the deformation direction of the heat treatment. It is suitable for batch parts with stable deformation patterns. The sequential machining method splits machining into four stages: rough machining, heat treatment, semi-finishing, and finishing, with dimensional inspection after each stage and feedback of the compensation amount to the next stage. Buyers should discuss with the CNC shop which strategy or combination to adopt, based on the part's precision requirements, batch size, and material characteristics.
Six Capabilities a CNC Shop Should Have for Heat Treatment Compensation
Material Deformation Database
Organize historical deformation amount and direction data for materials such as aluminum alloy, stainless steel, carbon steel, brass, and copper, along with corresponding heat treatment types, as a basis for reserving machining allowance.
Sequential Machining Process Planning
Ability to separate rough machining and post-heat-treatment finishing operations at the programming stage, with correct machining allowance and datum transfer reserved.
In-Process Dimensional Inspection
Set up inspection checkpoints before and after heat treatment, using CMM or dedicated gauges to compare actual deformation and dynamically adjust compensation values for subsequent machining.
Process Integration with Heat Treatment Suppliers
Ability to clearly agree on process parameters, fixturing methods, and furnace discharge conditions with external heat treatment suppliers, avoiding loss of deformation control due to inconsistent heat treatment conditions.
Deformation Simulation and Experience-Based Interpretation
Ability to interpret deformation patterns after heat treatment, determining from measurement data whether it is uniform contraction, warping, or twisting, and adopting corresponding machining strategies.
Deformation Verification in Trial Production
Before mass production, run a complete heat treatment cycle on trial parts, measure actual deformation, and feed the data back into the compensation parameters for mass production.
How do different materials differ in their tendency to deform during heat treatment?
Different materials vary greatly in their tendency to deform during heat treatment, which is why compensation strategies must be adjusted according to the material. Aluminum alloys generally exhibit relatively small deformation after solution treatment and aging, but thin sheet parts may still require straightening due to warping. Stainless steel, after quenching, has low thermal conductivity and a deep hardened layer, making the direction of deformation difficult to predict; common issues include loss of roundness in circular parts and bending in elongated parts. Carbon steel after carburizing and quenching shows a large difference in hardness between the surface and core, typically resulting in the greatest deformation, especially for thin gears and thin shaft-type parts. Brass and copper are generally not subjected to hardening heat treatment, but the slight dimensional changes after annealing and the springback during subsequent machining still need to be considered. If buyers can specify the material grade and heat treatment specification on the drawing, the CNC machining supplier can estimate the deformation based on the material characteristics and reserve appropriate allowances.
Heat Treatment Compensation Machining Process
- 1
Roughing with allowance
Reserve deformation allowance based on material and heat treatment type, first rough machining while retaining machining allowance, machining the part close to final dimensions but retaining 0.1 to 0.3 mm allowance per side.
- 2
Heat treatment process
Perform carburizing, nitriding, quenching, or other heat treatment according to agreed process parameters; thermal stress and phase transformation stress are generated during the process, causing dimensional changes and deformation.
- 3
Semi-finishing
After heat treatment, perform semi-finishing and set inspection checkpoints before and after heat treatment, using a CMM or dedicated gauges to compare actual deformation and dynamically adjust compensation values for subsequent machining.
- 4
Finishing to final size
Perform finishing to final size, determine whether deformation is uniform shrinkage, warping, or twisting based on measurement data, and adopt corresponding machining strategies so that finished dimensions meet drawing tolerances.

What heat treatment-related information should buyers provide when requesting a quote?
Buyers should provide complete heat treatment-related information during the quotation stage; otherwise, the CNC machining supplier can only estimate based on general experience, which may lead to dimensional non-conformities during mass production. The information to provide includes: the type of heat treatment process (carburizing, nitriding, quenching, tempering, solution treatment and aging, etc.), the target hardness range or case depth, whether there are subsequent machining operations after heat treatment, the critical dimensions and tolerance requirements of the part, and any limitations on fixturing and datum surfaces. For thin parts, asymmetric parts, or parts with a high length-to-diameter ratio, buyers should proactively remind the CNC machining supplier of the deformation risk and ask whether the supplier recommends reserving a straightening allowance before heat treatment or using a split-process machining approach. The more complete the information, the clearer the compensation strategy in the quotation, and the lower the subsequent rework and scrap costs.
How can buyers assess whether a CNC machining supplier has sufficient heat treatment compensation capability?
The sufficiency of a CNC machining supplier's heat treatment compensation capability can be assessed from three aspects. The first is process planning capability: ask the supplier how they would split the machining operations and reserve allowances when receiving a drawing that includes a heat treatment process. If the answer is vague or merely states 'machine after heat treatment,' it indicates a lack of a systematic compensation strategy. The second is inspection and feedback mechanisms: determine whether the supplier sets up inspection checkpoints before and after heat treatment and can adjust subsequent machining parameters based on actual deformation, rather than relying solely on fixed allowances. The third is the trial production verification process: a mature CNC machining supplier will require trial production and deformation measurement before mass production, then feed the results back into the mass production parameters. Buyers can also ask the supplier to provide past machining records for similar materials and heat treatments as a basis for evaluation. Yuan Shun Li has the capability to arrange split-process machining and in-process inspection across processes such as CNC turning, milling, mill-turn, and Swiss-type lathe, and can plan corresponding compensation strategies based on material and heat treatment specifications. However, the actual deformation and compensation parameters must still be confirmed through trial production results for each batch of parts.
FAQ
Why must dimensional changes before and after heat treatment be compensated during the CNC machining stage?
Because dimensional changes caused by heat treatment must be pre-compensated during the CNC machining stage rather than salvaged after heat treatment. The common practice is to reserve deformation allowance based on the material and heat treatment type, first rough machining while retaining machining allowance, then perform semi-finishing and finishing to final size after heat treatment, avoiding scrap due to finished dimensions exceeding drawing tolerances.
Why does heat treatment cause dimensional changes?
The root cause of dimensional changes from heat treatment is that metal generates thermal stress and phase transformation stress during heating and cooling, leading to microstructural changes and volume contraction or expansion. Processes such as carburizing, nitriding, and quenching create different hardness gradients and residual stress distributions between the surface and core of the part. These stresses gradually release during subsequent machining or idle periods, causing dimensions that were within tolerance to shift.
What are the common dimensional compensation strategies?
Common dimensional compensation strategies can be divided into three types: the machining allowance reservation method, the pre-deformation method, and the sequential machining method. The machining allowance reservation method retains 0.1 to 0.3 mm allowance per side before heat treatment, then finish machining to final size after heat treatment; it is the most common and lowest-risk approach. The pre-deformation method suits batch parts with stable deformation patterns. The sequential machining method splits machining into four stages: roughing, heat treatment, semi-finishing, and finishing, with dimensional inspection and compensation feedback after each stage.
How do heat treatment deformation tendencies differ among materials?
Aluminum alloys exhibit relatively small deformation after solution treatment and aging, but thin plates may still require straightening due to warping. Stainless steel, due to low thermal conductivity and deep hardened layers after quenching, commonly shows out-of-roundness in round parts and bending in long parts. Carbon steel after carburizing and quenching has large hardness differences between surface and core, typically resulting in the largest deformation. Brass and copper generally do not undergo hardening heat treatment, but dimensional micro-changes and elastic recovery after annealing still need to be considered.
What heat treatment information should be provided during RFQ?
You should provide the heat treatment process type (carburizing, nitriding, quenching, tempering, solution treatment and aging, etc.), target hardness range or hardened layer depth, whether subsequent machining is required after heat treatment, critical dimensions and tolerance requirements of the part, and limitations on fixturing and datum surfaces. For thin parts, asymmetric parts, or parts with a high length-to-diameter ratio, proactively remind the CNC shop of deformation risks and ask whether reserving straightening allowance or adopting sequential machining is recommended.
Provide Heat Treatment Specifications for an Accurate Compensated Quote
If your parts require heat treatment and tight tolerances, please include the heat treatment process, target hardness, and critical dimensional tolerances in your inquiry so Yuan Shun Li can plan the sequence of operations and compensation strategy for you.