Shenzhen Alu Rapid Prototype Precision Co., Ltd.
Industry News
- Home
- News
- Die Casting Machining Allowance Guide: Datums, Tolerances, Porosity Risk and Inspection
Die Casting Machining Allowance Guide: Datums, Tolerances, Porosity Risk and Inspection
Die casting can create complex metal parts close to final shape, but many functional features still need CNC machining. Bearing bores, sealing faces, threaded holes, valve passages, connector locations and precision mounting pads often require tolerances or finishes that the as-cast process cannot reliably hold. The success of these secondary operations depends on decisions made before the die is built.
If machining allowance is too small, casting variation can leave uncut areas. If it is too large, machining time, distortion and the risk of opening internal porosity increase. A poor datum strategy can make individually correct features fail in assembly. An inspection plan that ignores the difference between as-cast and machined geometry can create arguments without identifying the real process problem.
This guide explains how to design and control machining allowance for aluminum, zinc and magnesium die castings. It covers datum selection, stock distribution, tolerance allocation, fixture design, porosity exposure, machining sequence, tool access, inspection and the information buyers should include in an RFQ.
Quick Answer: How Much Machining Allowance Does a Die Casting Need?
There is no universal machining allowance for every die casting. The required stock depends on part size, alloy, casting process, die construction, draft, local thermal behavior, dimensional capability, datum scheme, fixture repeatability and the final machined tolerance.
The correct approach is to begin with the required finished feature, estimate the full as-cast positional and form variation relative to the chosen casting datums, then add enough stock to guarantee cleanup without removing unnecessary material. Use local allowances rather than scaling the whole model. Critical areas should be confirmed through casting simulation, tool design review, first-off measurement and machining trials.
For many features, a supplier may propose stock measured in tenths of a millimeter or more, but any generic value is only a starting point. A large sealing face, deep bore and small spotface do not share the same risk. The approved drawing and casting model should show where material is intentionally added and which dimensions apply before and after machining.
Why Die Cast Parts Need Secondary Machining
High-pressure die casting produces good repeatability, thin walls and detailed geometry, but it is not a precision substitute for every machining operation. Casting dimensions are influenced by die temperature, alloy shrinkage, fill pattern, ejection, cooling, trimming, die wear and part geometry.
Secondary machining is commonly used to create:
Accurate bearing and bushing bores.
Flat sealing surfaces with controlled finish.
Threaded holes and precision dowel holes.
Connector and shaft locations.
O-ring or gasket grooves.
Valve and fluid passages.
Mating pads with controlled position or parallelism.
Surfaces that need the casting skin removed.
Machining should be limited to features that need it. Converting every surface to a machined surface increases cycle time and cost, while also removing the dense outer skin that often has lower porosity than the casting interior.
Understand the Three Models
A well-controlled project often needs three related geometric definitions.
Finished-part model
This is the geometry delivered to the customer after machining, finishing and other secondary operations. Functional tolerances normally apply to this condition.
Casting model
The casting model includes draft, machining stock, radii, gate remnants, overflow connections and other geometry needed to make the raw casting. It may intentionally differ from the finished model.
Tooling model
The die cavity includes process compensation such as shrink allowance, tool construction details and steel-safe adjustments. This is normally controlled by the die-casting supplier or toolmaker.
Confusing these models causes expensive mistakes. If a machinist programs from the nominal finished model without understanding the casting stock, a cutter may miss material or remove too much. If a buyer inspects a raw casting against finished dimensions, intentional allowance may appear nonconforming.
Every model should have a revision and clear ownership. Changes to the finished design must be evaluated in the casting model and tool before release.
What Machining Allowance Must Cover
Machining stock must cover more than average shrinkage. It needs to accommodate the worst credible combination of variation that could prevent cleanup.
Sources include:
Local casting shrinkage.
Die thermal expansion.
Part warpage after ejection.
Draft and parting-line mismatch.
Ejector distortion.
Trimming deformation.
Die insert location and wear.
Variation in fixture location.
Clamping deflection.
Casting datum surface variation.
Tool runout and machining variation.
A nominal 0.5 mm stock does not guarantee 0.5 mm everywhere. If the raw surface is bowed, shifted or tilted relative to the machined datum, one area may have excess material while another has almost none.
Use a Cleanup Analysis
A cleanup analysis evaluates whether the cutter will contact the entire required surface under the expected casting and setup variation. It is especially important for broad faces, circular bores, thin flanges and features positioned far from the locating datums.
For a face, the analysis should consider raw surface location, flatness, tilt and fixture seating. For a bore, consider cast-core position, diameter, roundness and the finished bore axis. For a pattern of holes, consider the relationship between the rough casting datums and the finished coordinate system.
The goal is not simply to ensure that metal exists. The remaining wall thickness must also be acceptable after machining. A bore that cleans up on one side but leaves a dangerously thin wall on the other is not a good result.
Digital tolerance analysis can help, but first casting trials remain important. Measure actual raw castings, map stock distribution and verify the machine setup before approving production.
Avoid One Global Allowance
Scaling an entire CAD model outward may seem simple, but it creates unnecessary material and does not represent how machining works. Machining allowance should be added only in the direction and location where the cutter needs stock.
Examples:
A sealing face needs stock normal to the face.
A bore needs radial stock on its internal surface.
A spotface needs axial stock around a fastener hole.
A side pad may need stock in one direction but not around its perimeter.
A groove may be fully machined from solid local material rather than cast near final shape.
Local definition also makes inspection clearer. The drawing can distinguish raw casting dimensions from final machined dimensions without hidden scale assumptions.
Select Stable Casting Datums
The first machining setup must locate an irregular raw casting. Good casting datums are accessible, repeatable, stable and linked to important finished features.
Useful datum candidates include:
Broad as-cast pads designed for location.
Three separated points that define a primary plane.
Two features that control rotation.
A final feature that sets the remaining direction.
Robust cast bosses or edges away from flash and ejector marks.
Avoid relying on unstable regions such as thin walls, trimmed gates, parting-line flash, deep texture or areas affected by ejector distortion. A nominally flat cast face may rock if its high points vary from part to part.
The fixture should follow a controlled locating principle, often a 3-2-1 arrangement. Three primary contacts establish a plane, two secondary contacts control a second direction and one tertiary contact completes location. Additional supports may resist machining forces but should not overconstrain a warped casting.
Relate Casting Datums to Finished Datums
The part drawing usually defines finished functional datums. The machining fixture needs a strategy for creating those datums from the raw casting.
A common sequence is:
Locate the raw casting on designated casting pads.
Machine the primary finished datum and selected related features.
Refixture from the new machined datum.
Complete critical bores, holes and sealing faces in a stable coordinate system.
This separates uncertain raw geometry from precise finished relationships. Machining too many critical features directly from rough surfaces in independent setups can accumulate positional error.
When a cast feature must remain in a tight relationship with a machined feature, the datum transfer needs particular attention. The tolerance should reflect casting capability, not only CNC capability.
Design Datum Pads Into the Casting
Dedicated locating pads can make fixturing faster and more repeatable. These pads should be large enough for stable contact, positioned to resist machining loads and arranged so that flash or ejector marks do not interfere.
Temporary pads may be removed later, but permanent hidden pads are often simpler. If a pad is not part of the functional design, identify it as a manufacturing feature in the casting model and approval records.
Consider the trim and finishing sequence. A locating pad that is accessible on the raw casting may become damaged during shot blasting or deburring. A fixture point should remain consistent until its role is complete.
Allocate Tolerances Between Casting and Machining
A tight machined dimension can still depend on a less precise cast relationship. Separate dimensions into categories.
Fully machined relationship
Two features created in the same setup can often hold a close relationship, subject to tool and machine capability.
Machined-to-machined across setups
This relationship includes fixture repeatability and datum transfer. Use common datums and minimize unnecessary refixturing.
Machined-to-cast relationship
This includes casting variation and may require a wider tolerance. A ±0.05 mm machined hole position does not make its distance to an as-cast outer wall ±0.05 mm.
Cast-to-cast relationship
Capability depends on the die, part geometry and process. Apply appropriate casting standards and supplier data rather than CNC default tolerances.
The drawing should not place tight title-block tolerances on every as-cast feature. Identify critical characteristics and allow realistic limits elsewhere.
Use GD&T to Express Function
Geometric dimensioning and tolerancing can describe how machined and cast features must work together. It is often clearer than many coordinate dimensions.
Common controls include:
Flatness of sealing faces.
Perpendicularity of bores to mounting planes.
Position of threaded or dowel holes.
Profile of cast surfaces relative to functional datums.
Runout of rotating features.
Parallelism between mounting pads.
Choose datums that reflect assembly and inspection. A datum reference frame based on inaccessible or flexible surfaces may be theoretically valid but impractical to manufacture.
For cast profiles, consider whether the requirement applies to the entire surface or only a local interface envelope. Profile tolerances that are unnecessarily tight across a large cosmetic surface can increase tooling and inspection cost.
Plan Machining Before the Die Is Released
Machining should be reviewed during die design, not after the first castings arrive. The team needs to confirm tool access, fixture access, chip evacuation, clamp locations and the relationship between gates, ejectors and finished surfaces.
Early review can prevent:
A rib blocking a drill or end mill.
A clamp covering the feature being machined.
A gate remnant interfering with fixture seating.
An ejector pin mark on a datum pad.
A deep hole with no chip exit.
A cutter path that opens a thin wall.
A parting line running through a sealing face.
An inaccessible inspection feature.
Machining engineers should review the casting model and tooling proposal. Their feedback may change local stock, boss size, draft or datum-pad location before steel is cut.
Design for Tool Access
Every machined feature needs clearance for the cutter, holder and spindle. A hole may be visible in CAD but unreachable with a rigid tool because of a nearby wall. Deep recesses require long tools that deflect and reduce accuracy.
Provide space around spotfaces, bores and sealing lands. Avoid placing precision threads at the bottom of narrow pockets. If side drilling is necessary, consider whether a multi-axis machine, angle head or additional setup is justified.
Tool access also affects inspection. A bore that cannot accept a gauge or probe may need a different measurement method. Add inspection access during design when the characteristic is important.
Control Clamping Force and Distortion
Die castings often combine thin walls, ribs and open frames. Excessive clamp force can distort the part during machining. The feature measures correctly while clamped but moves after release.
Fixture design should place clamps near supports and direct force through stiff regions. Use sufficient contacts to resist cutting load without forcing the part into an unnatural shape. Hydraulic or pneumatic clamps should have controlled pressure.
Thin parts may need low-force machining, sharp tools and balanced stock removal. Measure critical geometry after unclamping. If the part needs to be constrained in final assembly, define whether inspection should simulate that condition.
Plan the Machining Sequence
A good sequence creates stable datums early and delays sensitive finishing until stress and stock have been reduced.
A typical approach may include:
Clean and inspect the raw casting.
Remove gate and trim interference.
Locate on cast datum pads.
Machine the primary datum face.
Machine secondary datums or locating bores.
Refixture from machined datums.
Rough critical features.
Machine passages, threads and secondary faces.
Finish precision bores and sealing faces.
Deburr, clean and inspect.
The actual sequence depends on geometry and coating. Some features are best machined before finishing; others may need a final cut afterward to expose bare metal or protect tolerance.
Decide Which Holes Should Be Cast or Machined
Casting a pilot hole saves material and machining time, but its size and position must leave enough stock for drilling, boring or reaming. A pilot that wanders too far may not clean up or may push the final hole toward a thin wall.
Small precision holes are often machined from solid material. Larger bores can use cast cores with radial stock. Blind holes need chip and coolant planning. Intersecting passages need burr removal and verification.
For threads, machining is common where strength and accuracy matter. A cast pilot should be large enough to reduce tool load but small enough to guarantee complete thread form. Threaded inserts may be preferred when repeated assembly, wear or repairability is important.
Protect Sealing Faces
Pressure-tight housings, pumps, valves and electronics enclosures often use machined sealing faces. Their function depends on flatness, finish, groove geometry and the absence of leak paths.
The design should identify:
Gasket or seal type.
Required surface finish.
Flatness and parallelism.
Groove dimensions and corner radii.
Fastener pattern and clamp load.
Maximum permitted surface porosity.
Leak-test pressure, medium and acceptance rate.
Avoid placing ejector pins, gates or heavy section transitions near sealing lands. Machining can reveal subsurface porosity, so a visually smooth face does not guarantee pressure tightness.
Understand Porosity Exposure During Machining
The outer skin of a die casting cools quickly against the die and is often denser than the interior. Machining removes this skin and can expose gas or shrinkage porosity.
Porosity risk increases near:
Thick bosses and wall intersections.
Last-to-solidify regions.
Areas with turbulent flow or trapped air.
Large stock removal zones.
Gate and overflow transitions.
Deep bores through heavy sections.
This is another reason not to specify excessive machining allowance. Removing more metal can enter a less dense region without improving function.
If a machined area must be pressure-tight or highly cosmetic, communicate it during gate, vent and thermal design. The supplier may adjust fill direction, overflow placement, vacuum assistance, local cooling or stock distribution.
Define Porosity Acceptance by Function
“No porosity” is usually not a practical universal requirement for high-pressure die castings. Acceptance should relate pore size, location, density and connectivity to the part function.
Different zones may need different rules:
A sealing land may prohibit surface-breaking pores above a defined size.
A structural boss may use radiographic acceptance criteria.
A hidden cosmetic surface may allow small isolated pores.
A fluid housing may require a leak test rather than visual acceptance alone.
A threaded feature may limit pores that interrupt thread engagement.
Use marked zones or drawing notes. Agree on inspection magnification, lighting and measurement method. A pore that appears large in a macro photograph may be acceptable in scale, while a tiny connected pore can still create a leak path.
Select the Right Porosity Inspection Method
No single method detects every defect.
Visual inspection
Useful for surface-breaking pores after machining. Results depend on cleaning, lighting, magnification and acceptance standards.
X-ray radiography
Useful for internal porosity and shrinkage patterns. Two-dimensional projection can hide overlap and has sensitivity limits based on section thickness and orientation.
Computed tomography
CT provides three-dimensional detail and can map pore size and location. It is valuable for development and failure analysis but may be too expensive for routine high-volume inspection.
Metallographic sectioning
Destructive sectioning shows local microstructure and pore morphology. It is useful for process qualification and root-cause analysis but samples only the cut location.
Leak testing
Pressure-decay, flow, bubble or helium methods identify connected leak paths under specified conditions. Leak testing verifies function, not total internal porosity.
Dye penetrant
Penetrant can reveal surface-breaking discontinuities on suitable clean surfaces. It does not show sealed internal pores.
Choose methods based on failure mode. A structural criterion and a pressure-tightness criterion may require different tests.
Use Vacuum Impregnation Carefully
Vacuum impregnation can seal connected microporosity with a resin. It is common for pressure-tight castings and may be applied before or after machining depending on the process.
Impregnation is not a substitute for controlling severe casting defects. Define whether it is permitted, required or prohibited. Consider fluid compatibility, temperature, cleanliness and downstream coatings.
If impregnation is part of the approved process, include it in the route and validation. Leak-test results should reflect the delivered condition. Do not treat an impregnated acceptable part as identical to an untreated acceptable part unless the specification allows both.
Account for Surface Finishing
Powder coating, painting, conversion coating, plating and anodizing affect dimensions and process order. Coatings may build up in holes and on sealing surfaces. Pre-treatment and bake cycles can reveal porosity or change part geometry.
Define masked areas and finished dimensions clearly. Options include:
Machine before coating and mask precision features.
Coat first, then machine selected surfaces to bare metal.
Machine before and after coating for different features.
Plug threads and bores during finishing.
When a coating is part of a tight fit, state whether the tolerance applies before or after finishing. Include coating thickness in the fit analysis.
Die cast aluminum alloys do not always anodize with the same appearance as wrought aluminum. If cosmetic color is critical, review alloy and finish capability early.
Deburr Without Damaging Functional Edges
Machining and drilling can leave burrs, especially at cross holes and thin edges. Deburring is necessary, but uncontrolled hand work can round sealing edges, change chamfers or damage threads.
Specify important edge conditions. Use defined chamfers or radii where possible instead of “break all edges” on critical interfaces. Internal passage burrs may require brushes, abrasive flow, thermal deburring or specialized tools.
Cleanliness should be part of the plan for hydraulic, pneumatic and electronics housings. Chips trapped in blind passages can cause field failures even when dimensions are correct.
Validate the First Machining Setup
The first machining trial should confirm more than final dimensions. Review raw stock distribution, fixture seating, clamp force, tool access, cycle time, burrs and porosity exposure.
Useful trial records include:
Raw casting measurements.
Photographs or scan of stock condition.
Fixture contact map.
Machining program and tool list revision.
In-process inspection results.
Final dimensional report.
Uncut-area and wall-thickness review.
Surface porosity findings.
Cycle time and tool-life observations.
If stock is consistently excessive or uneven, correct the casting tool rather than accepting permanent machining waste. If cleanup is marginal, investigate the datum, die condition and casting process before simply increasing allowance everywhere.
Measure Raw and Finished Parts Separately
Raw casting inspection helps determine whether a final machining issue began in casting or machining. Finished inspection confirms the delivered requirements.
For raw castings, measure:
Datum pads and fixture contacts.
Stock on critical faces and bores.
Parting-line mismatch.
Warpage and key cast profiles.
Trim condition.
Features affecting wall thickness.
For finished parts, measure:
Functional datum relationships.
Bore size, position and geometry.
Sealing-face flatness and finish.
Thread and insert condition.
Wall thickness after machining.
Critical cast-to-machined relationships.
Keep the two data sets linked by serial or lot identification during development.
CMM Inspection of Die Cast Parts
A coordinate measuring machine can measure complex profiles and machined relationships, but the setup must match the drawing datum scheme. Flexible or warped parts need an agreed restraint method.
For as-cast profile inspection, define whether the alignment is datum-based or best-fit. Best-fit can hide a functional shift by distributing error around the model. Datum alignment better represents assembly when the datums are correct.
Use appropriate probe size and point density. A few points may miss local waviness, while excessive scanning adds time without improving the decision. Report the alignment method and any filtering used.
Build a Control Plan for Production
After approval, convert development learning into production controls. The control plan can include:
Raw casting datum and stock checks.
Fixture verification and cleaning frequency.
Tool-life limits and offset control.
In-process probing or gauging.
Critical final dimensions.
Leak testing where required.
Porosity sampling or radiography.
Surface-finish inspection.
Thread and cleanliness verification.
Reaction plan for out-of-control results.
Not every characteristic needs 100% CMM inspection. Use process capability, risk and measurement cost to select sensible controls. Go/no-go gauges, air gauges, probes and functional fixtures may provide faster production feedback.
Common Machining-Allowance Problems
Uncut areas on a sealing face
The raw face is warped, shifted or short of stock relative to the fixture datum. Review stock map, casting datums and die condition.
Bore cleans up on one side only
The cast core is offset or the machining axis is poorly related to raw location. Increase local radial stock only after evaluating wall thickness and datum strategy.
Wall becomes too thin after machining
The rough feature and finished feature are misaligned or tolerance stack-up was ignored. Add a wall-thickness requirement and improve positional control.
Part springs after unclamping
Clamp force or stock removal distorted a thin structure. Support near clamps, reduce force and use a balanced machining sequence.
Porosity appears after a deeper cut
Machining entered a less dense region. Reduce unnecessary stock removal and improve local casting fill, venting and solidification.
Tight machined feature is misplaced relative to casting
The CNC operation is accurate, but the casting datum relationship is not. Widen the cast-to-machined tolerance or redesign the locating scheme.
Coating blocks holes or changes fits
The tolerance did not specify pre- or post-finish condition. Add masking, plugging or post-coat machining and account for thickness.
Inspection results disagree
Supplier and customer use different datums, alignment, restraint or temperature. Agree on the measurement method and verify the gauge system.
Die Casting Machining Allowance Checklist
Design data
Finished, casting and tooling models are distinguished.
All files have controlled revisions.
Machined surfaces are clearly identified.
Allowance is local and directional.
Critical wall thickness after machining is defined.
Coating condition is included in dimensions.
Datums and fixtures
Casting datum pads are stable and accessible.
Gates, flash and ejector marks do not affect locating.
Finished datums are created in a logical sequence.
Clamps act near supports and stiff regions.
Tool and inspection access is available.
The fixture does not force the part into shape.
Casting and machining risk
Cleanup analysis covers variation and warpage.
Stock is sufficient without being excessive.
Porosity-sensitive areas are marked.
Sealing faces and leak paths are reviewed.
Holes, bores and threads have a clear cast-or-machine strategy.
Deburring and cleanliness are planned.
Inspection
Raw and finished requirements are separated.
Datum alignment and restraint are documented.
CMM or gauge methods match the tolerance.
Leak-test conditions are specified.
Porosity acceptance is zoned by function.
First machining trials include stock mapping.
What to Include in a Die Casting RFQ
Send the supplier a complete manufacturing package rather than only a finished 3D model:
Finished-part STEP file and controlled drawing.
Annual and batch quantity.
Alloy and any material standard.
Critical tolerances and datum scheme.
Marked machined surfaces.
Surface finish and coating requirements.
Sealing, pressure and leak-rate requirements.
Minimum wall thickness after machining.
Porosity acceptance by zone.
Thread, insert and torque requirements.
Required inspection reports and certificates.
Packaging and cleanliness needs.
Mating-part or assembly information.
Ask for a DFM review covering casting layout, machining stock, fixture strategy and inspection. The quotation should state what is included: tool, casting, trimming, CNC operations, impregnation, coating, testing and reporting.
Frequently Asked Questions
Can a die casting hold CNC tolerances?
Machined features on a die casting can hold close tolerances when the fixture, datum transfer, machine and process are capable. Relationships from a machined feature to an as-cast surface still include casting variation and usually need wider limits.
Should machining allowance be added to every surface?
No. Add local stock only where machining is required. Global oversizing increases material, cycle time, distortion risk and porosity exposure.
Why does a machined surface sometimes have an uncut patch?
The raw casting may be warped, shifted or tilted relative to the machining datum, or the allowance may be insufficient. Investigate the stock distribution and fixture before increasing allowance.
Why can machining expose porosity?
The die-cooled outer skin is often denser than the interior. Removing material can reveal internal gas or shrinkage pores, especially in thick or poorly vented regions.
Is vacuum impregnation acceptable?
It can be an approved method for sealing connected microporosity in pressure-tight castings. The drawing or specification should state whether impregnation is allowed and the delivered part should pass the required leak test.
Should holes be cast before drilling?
Large bores often benefit from a cast pilot with enough radial stock for cleanup. Small, precise or position-critical holes may be machined from solid local material. The best choice depends on size, depth, wall thickness and volume.
How should die cast parts be located for machining?
Use stable, intentional casting datum pads or robust features, then create finished datums early. Avoid flash, thin walls, ejector marks and unstable cosmetic surfaces.
Can a CMM use best-fit alignment for cast surfaces?
Best-fit is useful for process analysis, but it can hide functional shifts. Use the drawing datum scheme for acceptance unless another alignment method is explicitly agreed.
When should machining occur relative to coating?
It depends on whether surfaces need coating and whether coating thickness affects fit. Define masking and final dimensional condition. Some faces are machined after coating to expose bare, accurate metal.
How can machining cost be reduced?
Machine only functional features, use common datums, reduce setups, provide tool access, cast practical pilots, avoid unnecessary tight tolerances and design gauges for high-volume checks.
Final Recommendations
Successful machining of die cast parts begins before the die is built. Separate the finished, casting and tooling models. Add local allowance based on cleanup risk rather than a single global number. Design stable casting datums, transfer to finished datums in a logical sequence and allocate tolerances according to whether relationships are machined-to-machined, machined-to-cast or cast-to-cast.
Review tool access, clamping, machining order, coating and inspection as one process. Pay special attention to sealing faces and thick sections where machining can expose porosity. Define porosity acceptance by function and use leak testing, radiography, CT or sectioning according to the actual failure risk.
First casting and machining trials should map stock, verify wall thickness and confirm fixture behavior. Converting this data into a production control plan reduces scrap, cycle time and disputes while delivering parts that assemble correctly.
Explore Die Casting Services, review CNC Machining Services, or request a quote with your CAD model, drawing, alloy, annual quantity, machined features, tolerance, finish and inspection requirements.