GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

Casting + machining

CNC Machining Castings: How Datum and Stock Drive Accuracy

A cast surface is not a machined surface, and that difference decides every setup that follows. This page explains how CNC machining castings behave, where stock allowance goes, and when a casting is the wrong starting point.

±0.005 mm tolerance127 CNC machinesNo MOQISO 9001 / IATF 16949
CNC machining castings - 5-axis machined engine part
Short version

Key takeaways

Cast skin is not a datumScale, draft and parting-line flash make as-cast faces unreliable references.
Stock is a setup budgetExtra material buys you a safe first cut, but it also moves the part when it is removed.
Rough, stress-relieve, finishOn iron and steel castings, that sequence is what keeps a 0.02 mm bore round.
Thin walls punish clampingMost casting distortion we see comes from the fixture, not the cutter.
Not every casting should be machinedIf all faces are cosmetic, a casting process at final size is cheaper.
Basics

What CNC Machining Castings Actually Means

CNC machining castings is the practice of taking a cast or die-cast blank and cutting the functional geometry into it. The casting supplies the near-net shape: ribs, bosses, internal passages, an outer skin that already looks like the finished part. The machining center supplies what a mold cannot: flatness, bore roundness, thread pitch, hole position and surface finish.

The two processes fail in different ways. A mold fails by wearing, flashing or shifting a parting line. A cutter fails by deflecting, chipping or following a bad datum. When you combine them, the casting error becomes an input to the machining error. That is the whole engineering problem in one sentence.

Readers of this page are usually engineers who already have a casting drawing and now need to decide how much material to leave for machining, which faces to cut first, and whether the casting route is cheaper than cutting from solid. Every number below comes from work we do daily on aluminum, iron and steel cast blanks.

  • 1
    Cast blankNear-net shape, skin hardness varies, tolerances typically looser than ±0.5 mm.
  • 2
    Machined featuresBores, faces, threads, sealing grooves, dowel holes; held to ±0.005 mm on our machines.
  • 3
    Bridge between themDatum choice, stock allowance and clamping strategy.
Setup

Why the As-Cast Surface Is a Poor Datum

A machined face is flat to a few microns. An as-cast face is not, even on a good sand casting. It carries draft angle, parting-line mismatch, sand inclusions near the skin and a chill zone that is harder than the metal below. If you clamp on that face and measure from it, you are measuring the mold, not the part.

For a first operation, we usually locate on three cast pads that the foundry holds to a tighter tolerance, or on a machined area if the customer supplies one. When nothing is reliable, we machine a temporary datum: skim a face, then re-clamp on the skimmed surface and cut everything else from it. That costs one extra setup and removes a whole class of scrap.

On die castings the same logic applies with different numbers. Die-cast skin is dense and dimensionally repeatable, but it contains porosity just under the surface. A face that looks ready to use may open into a gas pocket once you take 0.3 mm off it. We plan the first cut deep enough to clear that skin, typically 0.4–0.8 mm on aluminum die castings.

The practical test is simple. If a face is defined on the drawing as cast, treat it as a reference only after you have measured it on the actual blank. Never trust a cast face to set the position of a precision bore on the far side of the part.

  • 1
    Good datum candidatesCast locating pads, a previously machined face, a bored hole held to ±0.1 mm.
  • 2
    Bad datum candidatesParting line, ejector-pin area, gate remnant, any raw draft surface.
  • 3
    When in doubtSkim, re-clamp, then cut the tight features.
Budget

Stock Allowance: The Setup Budget You Spend Once

Stock allowance is the layer of metal you leave between the cast surface and the finished surface. It is a budget: too little and the cutter misses a low spot or hits hard skin at full depth; too much and you spend cycle time removing material that only exists to be thrown away. Cutting it away also releases residual stress, which can move the part after the last pass.

For sand and investment castings, 2–4 mm per face is a normal starting point on medium parts. Small investment castings of a few hundred grams can run at 1–1.5 mm. Die castings sit lower: 0.5–1.0 mm per machined face is common because the die itself is accurate and repeatable. These are starting figures, not rules. A long slender casting with a warped parting line needs more room on the warped face and less on the others.

The number that matters is not the allowance on the drawing. It is the allowance on the actual blank you clamp. If the foundry ships a batch with 1.8 mm where the drawing says 3 mm, a pre-planned finishing pass will not clean up. We measure incoming blanks on critical faces when the geometry is thin or the supplier is new.

One more cost hides here. Extra stock means extra passes, and extra passes mean more clamping cycles on a part that is already thin. On a 3 mm wall casting, adding 1 mm of stock on each side can double the number of times the part is loaded and unloaded. That is where distortion is born.

  • 1
    Sand / investment1.5–4 mm per face, depending on part size and foundry capability.
  • 2
    Die casting0.5–1.0 mm per machined face; clear the 0.4–0.8 mm skin first.
  • 3
    Thin wallsKeep allowance on the low side and support the wall during cutting.
Sequence

Rough, Stress-Relieve, Finish: The Sequence That Holds Tolerance

A casting arrives with residual stress locked into it from cooling. Machining removes material from one side, unbalances that stress, and the part bends toward the cut. On a gray iron housing, a bore that measured round in the rough state can go oval by 0.03 mm after the finish pass. The fix is not a better cutter. It is a sequence.

We rough with 0.5–1.0 mm of finishing stock left on tight features, then let the part rest or run a stress-relief cycle, then finish. On aluminum and thin-wall parts the rest can be short. On iron and steel castings we plan it into the schedule. The order of operations matters as much as the cutting parameters.

Clamping pressure is the second half of the story. A casting that is 3 mm thick at the wall will deflect under a vise long before the cutter touches it. We use soft jaws machined to the part contour, low-pressure clamping and support under the wall. For thin housings, a fixture plate with dedicated pads often beats a vise on both accuracy and cycle time.

Thermal growth is the third factor and the easiest to ignore. A 300 mm aluminum casting grows about 0.07 mm over a 10 °C shop swing. If the shop warms up between the rough and finish operations, the dimensions move with it. We finish tight features in the same thermal window as the measurement that signs them off.

  • 1
    RoughLeave 0.5–1.0 mm on tight features; take the cast skin in one pass.
  • 2
    Rest or relieveLet the part settle, or run a controlled stress-relief cycle.
  • 3
    FinishCut tight features after clamping forces are stable and the shop is at temperature.
Limits

Where Casting Plus Machining Stops Making Sense

Castings win when the geometry has internal passages, deep ribs or a shape that would need many hours of milling from billet. They lose when the part is small, simple and needed in low volume. If a bracket can be cut from a 6061 plate in 40 minutes, a pattern and a foundry lead time will not pay back.

Porosity is the hard limit. A casting can pass a visual check and still have a gas pocket 2 mm under a sealing face. Once you machine into it, the part leaks or the thread pulls out. For pressure-tight or vacuum-tight features, we ask the foundry for a higher grade of casting or we specify a machined insert.

Tolerance stacking is the other boundary. The casting holds the shape; the machining holds the accuracy. If a drawing asks for ±0.05 mm between two features that both sit on cast surfaces, the casting has to be good enough to support that, or both features must be machined in the same setup. There is no third option.

Finally, consider the material. Aluminum castings machine fast and hold finish well. Gray iron is stable and dampens vibration, which is why machine tool bases are still cast. Ductile iron and cast steel can be machined, but hard skin and inclusions shorten tool life, so we plan inserts and speeds accordingly.

  • 1
    Choose castingComplex internal geometry, housings, bases, runs above roughly 50 parts.
  • 2
    Choose solid stockSimple shapes, prototypes, tight-tolerance parts in low volume.
  • 3
    Walk away from castingPressure-tight thin sections with no room for a machined insert.
Workflow

Six Steps We Run on Casting Jobs

  • 1
    1. Review the blank and the drawing togetherCheck where the cast tolerances sit against the machined tolerances. Flag every face where stock could run thin.
  • 2
    2. Pick the datum from the casting, not the printChoose locating pads or a machined face. If none exists, plan to skim one in the first setup.
  • 3
    3. Set stock allowance per face2–4 mm on sand castings, 0.5–1.0 mm on die castings. Add margin on warped or long faces.
  • 4
    4. Rough and stabilizeCut the skin, leave 0.5–1.0 mm on tight features, then rest or stress-relieve before finishing.
  • 5
    5. Finish with low-pressure workholdingSoft jaws or a dedicated fixture; support thin walls from below, not from the side.
  • 6
    6. Inspect and report100% inspection before shipment with raw material check, in-process monitoring and a final report on request.
Selection

Casting vs Machining from Solid: Choosing the Route

Compare by geometry, volume and tolerance demand

FactorCast then machineMachine from solid
Internal passagesCast in, no drilling access neededRequires drilled or EDM channels
Tooling costPattern or die needed up frontNo tooling, program only
Volume sweet spotRoughly 50–10,000+ partsOne prototype to a few hundred
Wall thicknessDown to 2–3 mm in aluminumLimited by cutter reach and chatter
Tolerance on cut faces±0.005 mm after machining±0.005 mm directly
Lead time to first partTooling weeks, then 3–5 day runsProduction can start within 24 hours
Surface as deliveredCast skin plus machined facesUniform machined finish
Best forComplex ribs, large housingsTight-tolerance, low-volume parts

The Verdict

If your part is a complex housing with internal passages and you can plan 2–4 mm of stock and a stable datum, cast then machine is the cheaper route. If it is a simple, tight-tolerance part in low volume, machine it from solid and skip the pattern entirely.

FAQs

Casting Machining Questions

How much stock should I leave on a casting for machining?

For sand and investment castings, 2–4 mm per machined face on medium parts is a safe starting range; small investment castings can run 1–1.5 mm. For die castings, 0.5–1.0 mm is typical because the die is accurate and repeatable.

The right number depends on the actual blank, not the drawing. If the foundry's parting-line mismatch is large, add margin on that face and keep the rest tight.

Can you machine a casting without a machined datum?

Yes, but it costs one extra setup. We clamp on cast locating pads or a gate area, skim a face, then re-clamp on that skimmed surface and cut everything else from it.

This removes the effect of draft, flash and parting-line shift in one step. On parts with a tight bore position, it is usually cheaper than scrapping a batch.

Which casting materials do you machine?

Aluminum grades include 6061, 2024, 5052, 5083, 6082, 7075 and ADC12 die-cast alloy. We also cut stainless 303, 304, 316, 17-4PH, carbon steels such as 1018, 1045, 4130 and 4140, plus copper alloys, titanium TC4 and magnesium AZ31B.

Iron castings machine well but carry hard skin, so we plan the first pass to cut under it and adjust speeds and inserts for tool life.

Will machining a casting move the part?

Yes. Castings hold residual stress from cooling, and removing material on one side releases it. A bore can go oval by 0.02–0.03 mm after a finish pass if the part is cut in one go.

We rough leaving 0.5–1.0 mm, let the part rest or run a stress-relief cycle, then finish. On thin-wall aluminum the rest can be short; on iron and steel we build it into the schedule.

Do you have a minimum order quantity for casting machining?

No minimum order quantity. We handle anything from a single prototype to 10,000+ part runs, and we can start production within 24 hours of an approved plan.

Parts usually ship in 3–5 days. Uploads are secure and confidential, and an NDA is available on request.

What tolerance and finish can you hold on machined castings?

We hold ±0.005 mm (±0.0002 in) on machined features, with surface finish between Ra 0.2–0.8 μm for fine work and Ra 0.8–1.6 μm for general machined surfaces.

Machined castings go through 100% inspection before shipment, including raw material check, in-process monitoring and final inspection, with reports on request.

Send a Casting Drawing, Get a Setup Plan

Upload your drawing and blank specification. We will return a quotation and a free DFM analysis within 12 hours, with datum and stock recommendations.

12-hour quoteNo MOQ±0.005 mm

Follow

More from the shop floor

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC