01Machining usually just reveals the problem
When a die casting runs into trouble on a CNC machine, people usually blame the machine shop first: wrong tool, too much feed, a poor fixture, or an operator who cut too deep. Sometimes it really is a machining problem — but many recurring defects start much earlier: in metal flow, solidification, venting, die temperature or part design. CNC simply opens up the inside of the casting; it does not create those defects.
That matters for engineering and purchasing alike. If there is interconnected shrinkage porosity in the casting under a machined face, the supplier can hold every machined dimension and the part will still fail. Conversely, a casting with acceptable, non-critical internal porosity can be machined economically, as long as the process, the stock and the inspection plan are designed around it.
The real question is: can the supplier control the casting well enough for the specified machining to run consistently?
02Die casting is near net shape, not defect-free material
High-pressure die casting forces molten metal into a steel die. It makes thin-walled, complex parts at high productivity, but it carries an inherent risk of entrapped gas and local solidification defects. Better gating and venting and flow simulation reduce that risk, but rarely remove it entirely.
Demanding the elimination of every casting defect is neither realistic nor economic. Acceptance criteria should be tied to the part’s function, not to an unenforceable “zero defects”. Alloy choice is part of the decision too: the alloy that machines best is not necessarily the best choice for a pressure-tight part.
03The dense skin has to be part of the machining plan
The outer layer next to the die wall solidifies first. According to NADCA, die casting forms a dense, fine-grained layer about 0.015–0.020 in (0.38–0.50 mm) deep, while porosity concentrates in the less dense zone at the centre of the wall. Once secondary machining cuts deeper than about 0.020 in (0.50 mm), the chance of exposing internal porosity rises sharply.
This is why casting quality directly affects machining performance. Material is not removed evenly: the tool may pass through sound skin and then into a zone with gas or shrinkage porosity, which leads to:
- Pinholes and open pores on a milled sealing face
- Torn edges or chatter as the tool crosses a void
- Leaks through drilled or tapped bosses
- Interrupted datum faces and unstable clamping
- Lower thread pull-out strength
- Cosmetic defects after anodising, painting or plating
NADCA (2024) recommends a normal minimum machining stock of 0.010 in (0.25 mm); the actual stock should take casting and machining variation, parting-line tolerance, flatness and the datum strategy into account. The datum should run through the whole process, ideally locating on points in the same die half as the features being machined.
04Gas porosity and shrinkage porosity behave differently
| Feature | Gas porosity | Shrinkage porosity |
|---|---|---|
| Appearance | Fairly round, scattered | Irregular in shape, interconnected |
| Size | Usually < 1 mm (single pores < 2 mm) | Varies widely; can join into networks |
| Risk | Limited effect on strength; may not leak | When cut by drilling, boring or milling, readily forms a leak path |
← Swipe sideways for all columns →
This difference has to be written into the inspection plan: visual inspection of the as-cast surface does not prove that the machined pressure boundary is sound. Depending on the risk, the options include sectioning or simulated machining, X-ray, ultrasonic testing, penetrant testing (for surface-breaking defects) and pressure testing. The inspection method, acceptance level and reference radiographs or sectioned samples all need to be agreed in advance.
05Failures often surface several operations later
A casting may pass visual inspection, trimming and as-cast dimensional checks, and then fail once CNC has cut through the dense skin. By then the batch has already absorbed the full cost of casting, shipping, setup, tooling and machining. Buyers should treat this as a supply-chain problem: the losses include scrap, rework, failed leak tests, sorting, line stoppages and expedited replacement. That is why post-cast machining has to be planned early in the design — it directly shapes the die design and the final machining cost.
06Pressure-tight parts call for a different conversation
Pressure tightness depends on product design, die design, alloy and process, and may need dedicated testing or impregnation. A pressure-tightness requirement is a departure from normal production practice, so it must be agreed before production starts.
Don’t just write “no leaks” on the drawing and leave the supplier to guess. Specify the medium, test pressure, hold time, temperature, fixturing, allowable leak rate, sampling plan, and whether testing happens before or after machining. A casting can pass before machining and fail afterwards, because the tool has cut into a connected network of pores.
07The best machining process starts at the die design review
Machined areas need to be marked early so that gates, overflows, venting, chills and process settings can be arranged around them to minimise porosity. A supplier that truly understands both casting and machining may move a gate, add a core, change a local section or put the locators in the same die half as the machined features. That may add a little to the tooling cost, but it usually saves far more in repeated machining and scrap.
08Not just porosity: distorted blanks and clamping springback
As mentioned above, interrupted datum faces make clamping unstable. In our experience, another common type of problem also starts on the casting side:
- Blanks arrive at the machine already stressed and distorted: uneven walls, unbalanced ejection and uneven cooling can all distort a blank before it is machined — machining only makes it visible. To diagnose it, measure the blank’s form and position deviation first; if it exceeds what the machining stock can absorb, go back to the die and the casting process (add ejector pins, balance ejection forces, adjust cooling) instead of continuing to change machine settings.
- Thin walls spring back after clamping: the part measures good on the machine, then the dimension springs back when the fixture is released. This is not the operator’s fault; the part’s stiffness and the clamping method don’t match. The fix is dedicated soft jaws, vacuum chucks or multi-point support fixtures that spread the clamping force onto sections strong enough to take it.
09Five common misconceptions
Misconception 1: treating the casting drawing and the machining drawing as separate documents. The die caster needs to know which faces will be milled, how deep holes will be drilled and which bosses will be tapped. If the machining plan only appears after the die is built, the porosity may sit exactly where the tool has to go.
Misconception 2: writing “zero porosity” with no functional limits. Zero porosity can’t be measured and isn’t economic. Define the critical zones, maximum pore size, spacing, density or leak performance — “maximum pore size, minimum spacing, maximum number per unit area” is something that can actually be enforced.
Misconception 3: covering casting variation with extra machining stock. More stock can cut away the dense skin and expose the porous core. Large variation has to be solved with die control, datums, process capability and casting tolerances.
Misconception 4: inspecting only as-cast parts. The risk lies in machining, so inspection has to reproduce that risk: section along the machined areas, simulate the machining, and use non-destructive testing on the relevant zones. Checking unrelated surfaces is weak evidence.
Misconception 5: blaming the cutting parameters every time a tool breaks or a hole goes bad. Speeds and feeds matter, but repeated chipping, sudden tool wear or leaks concentrated on one feature may point to variation in the casting. Before changing the program, check wall thickness, porosity, hardness and batch history.
10How we work
An experienced supplier treats casting and CNC as one manufacturing system, not two unrelated operations, and links part design, die design, casting control, machining fixtures, inspection and change management before production starts. Our usual measures are:
- One shared drawing: critical machined faces, holes, threads, sealing faces and datums are marked, and wall thickness, bosses, ribs, core geometry, die opening direction and machining access are reviewed together. Cores and stepped cores can reduce finishing stock, heavy sections and porosity.
- Fill and thermal analysis: where the risk justifies it, flow simulation is used to choose gates, overflows, venting, cooling and shot settings, so that residual porosity stays away from the critical machined areas.
- Validation on a representative pilot batch: as-cast dimensions, simulated or actual machining, surface inspection, thread checks, leak testing and capability data on critical features. Different gauges may be needed before and after machining; variable gauges record process data and CPK.
- Change control: alloy source, remelt practice, die temperature, gate repairs, fixtures, tool geometry and machining depth can all change the result, so the control plan states which changes require revalidation.
11Our case: a twin throttle body
On a motorcycle twin throttle body we make, the two throttle bores must be within ±0.02 mm on diameter, and the two bores on the same part may differ by no more than 0.02 mm. We met two typical machining problems during development:
- Problem 1: with the two bores machined in two setups, the diameter difference reached 0.05 mm — datum-transfer error from the second setup, plus tool wear accumulating between the two operations. Fix: bore both in one setup, sharing one set of tool offsets.
- Problem 2: the 3 mm-wall intake tract deflected elastically under normal clamping force — it measured good while clamped, but the bore sprang back by more than 0.03 mm when released. Fix: dedicated soft jaws with controlled clamping force, measuring clamped and released to compare the springback; the intake tract’s parting line was kept off the sealing band, and the whole flange face is formed in one die half.
Result: the diameter difference between the two bores holds within 0.02 mm, first-pass yield on the leak test is ≥ 98%, and the critical dimensions run at CPK ≥ 1.33.
1210 questions a buyer should ask
Before awarding a die casting plus CNC machining project, ask:
- Which machined areas are porosity-critical, and how have they been accounted for in the die?
- What is the maximum stock removed from each critical face, and does it fit the expected depth of the dense skin?
- Which type of porosity is being controlled: dispersed gas porosity, shrinkage porosity, or both?
- What are the acceptance limits for each zone: pore size, spacing, number, density or leak rate?
- Can you provide sectioned samples, simulated machining results or reference radiographs for approval?
- Are improved venting, overflow design, local cooling or gate changes needed?
- What is inspected before machining, and what after?
- How are the datums and fixtures designed to prevent tolerance stack-up and unstable clamping?
- What evidence shows the casting process can meet the CNC hole, flatness, thread and leak-tightness requirements?
- Which process changes trigger customer notification and requalification?
These questions separate a supplier who “quotes a casting price” from one who “takes responsibility for how the finished part performs”. Machining exposes casting problems; the fix has to go back to the casting.
SOURCES AND NOTE
- [1]North American Die Casting Association (NADCA). NADCA Product Specification Standards for Die Castings: Aluminum, Aluminum-MMC, Copper, Magnesium, Zinc and ZA Alloys, 12th edition, revised for 2024. Key sections: Tooling for Die Casting and Porosity Control, pp. 2-13 to 2-15; Secondary Machining Preplanning, pp. 2-14 to 2-15; Machining Stock Allowance S/P-4A-13-24, p. 4A-34; Quality Assurance, including Porosity and Pressure-Tight Castings, pp. 7-12 to 7-16; Pressure Tightness G-6-1-24, p. 6-3.
- [2]North American Die Casting Association. 2021 NADCA Aluminum Die Casting Alloys (2021). Used as a supporting reference for alloy selection and the relationship between alloy properties, pressure tightness, and machining performance.
- [3]North American Die Casting Association (NADCA). Product Design for Die Casting: In Recyclable Aluminum, Magnesium, Zinc and ZA Alloys, 7th edition, 2015. Sections: Pressure Tightness, pp. 11-13; Skin Effect and Porosity, pp. 16-17; Machining, pp. 63-64.
This is a technical introduction and design guide, drawing on the sources listed above and on Jinxiong's many years of production practice. It is for reference only and is not a commitment for any specific project. For a specific project, the technical agreement between both parties governs.
RELATED
No phone. No drawings. See your cost in 30 seconds.
Enter a few basic parameters and the tool breaks the piece cost down into material, casting machine time, CNC machining, surface finishing, and QC and packing, with estimated tiered prices for different production volumes. For a formal quotation, upload your drawing: we respond within 24 hours and send a complete quotation, including the tooling plan, within 1–3 working days.
Keep reading
- TOLERANCESDie Casting Tolerance vs CNC Machining Tolerance: How They Differ, How They Stack Up, and When Machining PaysHow do die casting and CNC tolerances differ? How do dimensional variations stack up, layer by layer? Which dimensions are worth paying to machine? This article answers those questions, with a real case of ours.
- MACHININGWhich Features of a Die-Cast Part Should Be CNC Machined? A Practical Design GuideWhich features of a part should come straight out of the die, and which should go to CNC? How should engineers and buyers trade off tolerance, tooling, porosity risk and total cost? This article sets out a practical way to decide.
- DEFECTSPorosity in Die Casting: What Causes It, Why It Shows Up After Machining, and How Suppliers Control ItWhy does porosity in a die casting only appear after CNC machining? How does it lead to leaks and returns? How do surface sink marks differ from internal shrinkage porosity? This article works through the causes, the machining and the controls one by one.