Die Casting Design Guide: Materials, Defects, Tolerances and CNC Finishing

Engineering Drawing

How to Prepare Engineering Drawings for CNC Machining

2026-06-09
Engineering Drawing

How to Prepare Engineering Drawings for CNC Machining

2026-06-09
Die casting design guide

Die Casting Design Guide: Materials, Defects, Tolerances and CNC Finishing

Die casting is a high-volume metal forming process for producing complex aluminum, zinc and magnesium alloy parts with good surface quality and repeatable dimensions. This guide explains material choices, design rules, common defects, tolerance planning, CNC post-machining and inspection points for custom die casting parts.

Zinc aluminum die casting fixture accessory with machined features
Die casting is often combined with CNC machining to control critical holes, threads, sealing faces and assembly dimensions.

What Is Die Casting?

Die casting is a manufacturing process in which molten metal is injected into a steel mold, called a die, under pressure. After the metal solidifies, the die opens and the casting is ejected. The process is suitable for parts that need complex geometry, thin walls, consistent shape and high production volume.

Compared with CNC machining from solid billet, die casting can reduce material waste and cycle time for complex shapes. Compared with sand casting, it usually provides better surface finish and more consistent dimensional repeatability. However, die casting requires tooling investment, careful part design and defect control. Critical dimensions may still need CNC machining after casting.

A strong die casting design starts with the end function of the part: load, sealing, assembly, surface appearance, machining allowance, corrosion resistance and inspection requirements.
Aluminum die casting CNC processing auto and motor part
Aluminum die casting is widely used for housings, brackets, covers and automotive components.
Zinc aluminum die casting fixture accessory component
Zinc and aluminum die cast parts can include bosses, ribs, pockets and machined mounting features.
Die casting and CNC machined metal component for industrial use
Cast geometry often needs CNC finishing for precision holes, flatness and sealing interfaces.
Casting part with machined surfaces and complex geometry
Parting line, gate position and machining allowance should be considered early in design.
Die cast metal part for machining and finishing
Secondary operations may include drilling, tapping, milling, deburring, polishing or plating.
Die cast metal part for machining and finishing
Secondary operations may include drilling, tapping, milling, deburring, polishing or plating.

Die Casting Materials and Alloy Selection

Material selection affects strength, weight, surface finish, corrosion resistance, thermal behavior, tooling life and machining cost. The most common die casting materials are aluminum, zinc and magnesium alloys. Copper alloys can also be cast, but they require higher temperatures and are less common in high-pressure die casting for general industrial parts.

Material familyCommon grades / examplesMain advantagesCommon applicationsDesign notes
Aluminum die castingA380, ADC12, AlSi9Cu3, AlSi10Mg-type alloysLightweight, good strength-to-weight ratio, good thermal conductivity, corrosion resistanceHousings, brackets, motor parts, heat sink bodies, pump bodies, coversGood for larger parts; critical holes and sealing faces often need CNC machining
Zinc die castingZamak 3, Zamak 5, ZA alloysExcellent castability, high detail, good surface finish, good dimensional stabilitySmall hardware, connectors, locks, gears, fittings, decorative partsExcellent for thin walls and fine detail; heavier than aluminum
Magnesium die castingAZ91D and related alloysVery lightweight, good strength-to-weight ratio, good damping behaviorElectronics housings, lightweight brackets, handheld productsRequires strict process control and corrosion protection planning
Brass / copper alloy castingSelected brass and bronze alloysWear resistance, conductivity, corrosion resistance and decorative colorValve parts, marine hardware, bushings, fittingsUsually more expensive and may use different casting routes

For most industrial die cast parts, aluminum is chosen when weight and heat transfer matter. Zinc is chosen when small details, thin walls and smooth surface quality matter. Magnesium is selected when weight reduction is the main driver. The final choice should also consider finishing, corrosion exposure, operating temperature and required machining tolerance.

Die Casting Design Rules for Reliable Parts

Good die casting design reduces porosity, shrinkage, flash, tool wear and machining problems. Many casting defects are influenced by geometry: sudden wall thickness changes, sharp internal corners, isolated heavy sections, poor draft and difficult metal flow paths. A manufacturable design makes it easier for molten metal to fill, solidify and eject cleanly.

1

Use uniform walls

Keep wall thickness as consistent as possible to reduce shrinkage, sink marks and porosity.

2

Add draft

Draft angle helps the casting release from the die without drag marks or ejection damage.

3

Round corners

Fillets improve metal flow, reduce stress concentration and extend die life.

4

Plan machining

Leave stock on critical faces, holes and datum surfaces that will be CNC finished.

Design featureRecommended approachWhy it matters
Wall thicknessUse consistent thickness; avoid isolated heavy massesReduces shrinkage, porosity and uneven cooling
RibsUse ribs instead of making walls too thickImproves stiffness while controlling weight and cooling behavior
BossesConnect bosses with ribs and avoid thick isolated cylindersPrevents sink, shrinkage and weak areas around screw bosses
Fillets and radiiAdd generous internal radii where possibleImproves flow and reduces stress concentration
Draft angleAdd draft on walls parallel to mold opening directionHelps ejection and reduces scuffing or drag marks
Parting linePlace it away from sealing, cosmetic or precision machining areasControls flash, mismatch and finishing work
Ejector pinsAllow non-critical areas for ejection marksPrevents visible marks on cosmetic or sealing surfaces
CNC stock allowanceAdd machining allowance on critical datum surfaces and boresEnsures enough material remains for accurate finishing

Ribs, Bosses, Holes and Threads

Ribs and bosses are useful in die casting, but they need careful proportions. A rib that is too thick can create sink and local porosity. A boss that is too tall or isolated may fill poorly or crack under fastener load. For threaded holes, many designs cast a pilot hole and then drill or tap after casting. This provides better thread quality and more reliable assembly.

Ribs

Use ribs to improve stiffness without adding heavy wall sections. Keep rib thickness lower than adjacent wall thickness where possible.

Bosses

Support bosses with ribs and avoid sudden thickness changes around screw towers or inserts.

Threads

Machine or tap critical threads after casting when strength, fit and repeatability matter.

Common Die Casting Defects and How to Reduce Them

Die casting defects can come from part design, alloy choice, mold temperature, injection speed, venting, lubrication, die wear and post-processing. A good supplier reviews both part geometry and process parameters. For critical applications, defect control should be discussed before tooling starts.

DefectWhat it looks likeCommon causesPrevention / control
PorositySmall internal or surface voidsGas entrapment, turbulent flow, poor venting, shrinkageImprove gate/vent design, control injection parameters, avoid thick sections, use vacuum support if needed
Cold shut / cold flowVisible line where metal fronts fail to fuseLow temperature, poor flow, long fill path, thin wallImprove metal temperature, gate location, wall thickness and flow path
FlashThin extra metal at parting line or ejector areasDie wear, high pressure, poor clamping, parting line mismatchMaintain tooling, control pressure, improve die fit and trim flash after casting
ShrinkageDepression, void or weak section near heavy massUneven cooling or thick isolated geometryUse uniform wall thickness, ribs and better thermal balance
BlisteringRaised surface bubbles after heating or finishingTrapped gas expanding during heat or coating processControl porosity, avoid high-temperature treatment when alloy/process is unsuitable
CracksVisible fracture or weak areaSharp corners, ejection stress, hot tearing, poor geometryAdd radii, improve ejection design, control cooling and reduce stress concentration
Surface stainsColor marks or irregular appearanceLubricant, oxidation, handling, poor cleaningImprove cleaning, surface preparation and finishing control

Die Casting Tolerances and CNC Post-Machining

Die casting can produce repeatable shapes, but casting tolerances are usually not the same as precision CNC machining tolerances. Large dimensions, thin walls, parting line features, draft surfaces and as-cast holes will have broader variation than reamed, milled or turned features. When a feature must seal, locate, rotate or carry a bearing, it is often best to cast near-net shape and finish the critical area by CNC machining.

Feature typeTypical tolerance strategyRecommended methodDesign note
General outside shapeUse normal die casting toleranceAs-cast plus trimming/deburringAllow draft, parting line and reasonable dimensional variation
Mounting faceTighter flatness or position requiredCNC milling after castingAdd machining allowance and define datum surface
Bearing borePrecise diameter, roundness and locationDrill, bore, ream or CNC finishSpecify fit, surface finish and inspection method
Threaded holeReliable thread engagementCast pilot then drill/tapDefine thread depth and whether insert is needed
Sealing grooveControlled depth, width and surface finishCNC machiningSpecify Ra value and tolerance after finishing
Cosmetic surfaceAppearance and surface grade matterControlled die surface, polishing, blasting or coatingDiscuss parting line, ejector marks and gate removal early

For die cast parts, separate the drawing into as-cast features and machined features. This helps the supplier quote tooling, casting, CNC machining and inspection correctly.

Surface Finishing for Die Cast Parts

Surface finishing depends on the alloy and the part function. Aluminum die castings may be shot blasted, polished, powder coated, painted, chromate converted or anodized in limited cases. Zinc die castings are often plated or painted for appearance and corrosion resistance. Magnesium usually needs protective finishing because corrosion risk is higher.

FinishBest useImportant consideration
Shot blasting / tumblingUniform matte surface and burr reductionMay slightly soften edges or change appearance
Powder coatingDurable colored protective finishMask precision holes, threads and sealing faces if needed
PaintingCosmetic finish and corrosion protectionSurface preparation and porosity control affect appearance
PlatingZinc die cast decorative or corrosion-resistant surfacesPorosity and surface preparation affect adhesion and appearance
Conversion coatingAluminum corrosion protection and paint baseUsually thinner than paint or powder coating
CNC machining finishFunctional surfaces, datum pads and boresSpecify roughness and whether finish applies after coating

Inspection and Quality Control for Die Castings

Inspection should match the risk of the part. A simple cosmetic housing may need visual inspection, basic dimensions and coating checks. A functional die cast component may need CMM inspection, leak testing, thread gauges, surface roughness checks, plating thickness measurement or porosity evaluation. For new tooling, first article inspection is important before mass production.

  • Check raw casting appearance, flash, cracks, cold shut and visible porosity.
  • Verify critical dimensions after CNC machining, not only after casting.
  • Use thread gauges and plug gauges for functional holes.
  • Check flatness, position and perpendicularity on machined datum features.
  • Confirm coating thickness or finish quality when appearance or corrosion resistance matters.
  • For sealing parts, define leak test pressure, sealing surface finish and acceptable porosity level.

FAQ: Die Casting Design, Materials and Tolerances

What materials are most common for die casting?

Aluminum and zinc alloys are the most common. Aluminum is used for lightweight structural and thermal parts, while zinc is selected for small detailed parts with excellent surface finish and dimensional stability.

Can die cast parts be CNC machined?

Yes. CNC machining is often used after die casting for precise holes, threads, bearing bores, sealing grooves, flat mounting faces and datum surfaces.

What are the most common die casting defects?

Common defects include porosity, cold shut, flash, shrinkage, blistering, cracks and surface stains. Many defects can be reduced by better wall thickness, gate design, venting, process control and secondary finishing.

Are die casting tolerances as tight as CNC machining tolerances?

No. As-cast dimensions usually have broader tolerances than CNC machined features. Critical interfaces should be machined after casting and inspected according to the drawing.

How should I design a part for die casting?

Use uniform wall thickness, add draft, round internal corners, avoid isolated heavy sections, support bosses with ribs and define which surfaces need CNC machining or cosmetic finishing.

Need die casting and CNC finishing support?

Send your 2D drawing, 3D model, material target, surface finish, annual quantity and critical tolerance requirements. Milemetal can review die casting feasibility, machining allowance, defect risk and inspection strategy before production.

Get Die Casting Support