How to Machine Heads on CNC: A Shop-Floor Procedure
Cylinder heads are thin-wall castings with long bore-to-bore distances and a lot of heat history. If you searched how to machine heads cnc forums, most threads give opinions instead of a sequence. This page gives the order of operations, datums, clamping, cutting data and inspection checks that keep the deck flat and the cam bores aligned. Written for engineers and machinists who have to hold the print on a real part.

Key takeaways
Why cylinder heads are a different job
A cylinder head is not a solid block that happens to have holes in it. It is a casting with a combustion chamber roof on one side, a valvetrain cavity on the other, and water jackets running between them. Wall sections of 4–6 mm are normal. That means the part is compliant: clamp it hard in the wrong place and it moves, cut it, release the clamps, and it springs back to a shape you did not machine.
The second problem is heat history. Heads are cast, quenched, sometimes heat treated, and often run hot in service before a rebuild. Every one of those steps leaves residual stress. When you remove material from the deck, the balance changes and the part wants to bow. The thicker the cut, the more it moves, and the movement does not happen instantly. It happens over the next few hours or the next few passes.
The third problem is the datum chain. The deck, the cam bore, the valve guide bores and the manifold faces all relate to each other, and the print usually ties them to one or two datums. If you pick a different zero than the drawing does, every feature you cut is offset by the same amount, and the error only shows up when someone tries to install a cam or bolt on an intake.
This is why how to machine heads cnc forums threads fill up with disagreement. Two machinists can use the same feeds and speeds and get different flatness results, because the fixture and the datum choice dominate the outcome far more than the cutting data does.
- 1Thin walls4–6 mm sections deflect under clamp load.
- 2Residual stressCasting and heat treat leave the part wanting to move.
- 3Datum chainDeck, cam bore and guides are tied together on the print.
Choosing datums and workholding
Start from the print, not from the part. Find which faces the drawing calls out as datums and use those for your zero. On most heads this means the deck for Z and either the cam bore or two dowel holes for X and Y. If the print is from an OEM and gives a datum target system, follow it. If the print is a reverse-engineered drawing, agree with the customer on the datum scheme before you cut metal, because that decision is expensive to reverse.
For the first operation, support the part on the deck with three or four adjustable stands and clamp on the pan rail or the exhaust flange bolt bosses. Do not clamp on the valve cover rail. That rail is thin, it is far from the support points, and it will pull the part into a twist. Use a torque wrench on the clamps and record the value. A typical number for a 500 mm head is 15–25 N·m per clamp, applied in a cross pattern.
For the second operation, flip the part and locate on the features you just machined. If the deck is your Z datum, indicate it in and record the runout. Anything above 0.02 mm across the length should be corrected before you cut, not compensated for in the program.
On a 5-axis machine, you can often reach the deck, the cam tunnel and the manifold faces in one setup using a Ø400 mm rotary table. That removes one flip and one re-datum, which is the single biggest accuracy gain available on this part family. If the head is longer than 500 mm, check the travel on the machine before you plan the setup; the 750 × 1,150 × 550 mm envelope covers most inline six heads, and 4,000 mm travel covers large industrial castings.
- 1Z datumDeck face, indicated within 0.02 mm.
- 2X/Y datumCam bore or two dowel holes, per print.
- 3Clamp pointsPan rail or exhaust bosses. Never the valve cover rail.
Feeds, speeds and tool choice
Aluminium heads cut easily but they are gummy, and a sharp edge matters more than a high spindle speed. Use a face mill with a positive rake and a polished flute. 2,500–4,000 rpm with 0.15–0.25 mm per tooth keeps the chip thick enough to carry heat away. If the chip comes off as dust, you are rubbing, not cutting, and you will get a smeared deck that leaks.
Cast iron is the opposite problem. It is abrasive and it breaks into dust that gets into everything. Run 800–1,200 rpm, 0.1–0.2 mm per tooth, and keep air blast on the cut to clear the dust. Do not use a lot of flood coolant on a roughing pass, because the thermal shock on a thin section helps nothing. Coolant is fine on the finish pass when the depth is small.
For cam tunnel boring, use a single-point boring head and take the cut in two passes with a spring pass at the end. Boring bars deflect, so keep the overhang short and use the largest bar that fits. If the tunnel is longer than 400 mm, expect to indicate the bar at both ends and re-check after the first pass.
Tool wear is the quiet failure mode on heads. A dull face mill raises cutting temperature and pushes the part around instead of cutting it. Change inserts on a schedule, not on a feeling. On a production run of 10,000+ parts, log insert life per head and replace at 80% of the recorded average, not at failure.
- 1Aluminium2,500–4,000 rpm, 0.15–0.25 mm/tooth, 1.5–2.5 mm DOC.
- 2Cast iron800–1,200 rpm, 0.1–0.2 mm/tooth, 1.0–1.5 mm DOC, air blast.
- 3Cam tunnelTwo passes plus spring pass, short boring bar overhang.
Common failures and what causes them
Deck flatness out of spec after unclamping is almost always a clamping or stress problem, not a machine problem. Check the clamp points first, then check how much material you removed in the finish pass. A 0.8 mm finish cut on a thin head will bow the part no matter how good the machine is, because the stress release happens after the cut.
Cam bore out of round usually comes from boring bar deflection or from the part moving between the rough and finish pass. If the roundness error follows the bar, shorten the overhang. If it follows the clamp pattern, your fixture is pulling the head. Measure the bore with the part clamped and again after release; the difference tells you which one it is.
Surface finish that looks smeared instead of cut points to feed per tooth that is too low or an insert that has lost its edge. Raise the feed per tooth before you raise the spindle speed. A light, fast cut on aluminium usually beats a slow, heavy one.
Guide bore position drift across a batch is a thermal issue. The machine grows as it runs, especially on a long unattended cycle. Reference the datum at the start of every part, not once per shift. On a 4,000 mm machine the growth is small but it is not zero, and it accumulates over a batch.
- 1Deck bowsClamp points or too much finish stock.
- 2Cam bore ovalBar overhang or part movement between passes.
- 3Smeared finishFeed per tooth too low or worn insert.
Step by step: how to machine heads on CNC
Sequence matters more than cutting data on this part family. Follow the order below and re-check datums between operations.
- 11. Clean and inspect the castingBead blast or wash the head and remove all gasket residue. Inspect for cracks around the valve seats and between the seats and the plug hole. A crack that opens after the first cut wastes the whole setup. Mark any repair welds on the traveler.
- 22. Set the part on adjustable standsSupport on the deck with three or four stands. Indicate the deck along its length and across its width. Aim for under 0.02 mm total before clamping. Shim the stands, do not chase it with clamp pressure.
- 33. Clamp and record torqueClamp on the pan rail or exhaust bosses, cross pattern, 15–25 N·m per clamp. Write the value on the setup sheet. Re-indicate the deck after clamping; if it moved more than 0.03 mm, your clamp points are wrong.
- 44. Rough the deck, cam tunnel and manifold facesLeave 0.3–0.5 mm on all faces for finishing. For aluminium heads use a 50–63 mm face mill, 2,500–4,000 rpm, 0.15–0.25 mm per tooth feed, 1.5–2.5 mm depth of cut. For cast iron drop to 800–1,200 rpm and 1.0–1.5 mm depth. Air blast or through-spindle coolant; flood coolant on a thin casting can shock it.
- 55. Let the part restUnclamp, or at least release most of the clamp load, and let the head sit for 30–60 minutes. This is where casting stress shows up. Measure the deck again. The number you get here tells you how much material to leave for the finish pass.
- 66. Finish the cam tunnel firstBore or line-bore the cam tunnel to size before the deck. Use a boring head with a 0.05 mm adjustment increment and take two spring passes. Target roundness under 0.01 mm. Cam bore straightness drives valvetrain life more than deck flatness does.
- 77. Finish the deck to the cam boreSet Z from the cam bore centerline, not from the rough deck. Finish cut depth 0.2–0.4 mm. For a sealing surface target Ra 0.8–1.6 μm; below Ra 0.8 μm can prevent the gasket from biting. Check flatness in six places with a straight edge and feeler gauge, or on a CMM.
- 88. Deburr, wash and inspectBreak all edges, remove chips from the water jackets, and wash the part. Inspect 100% before it leaves the machine. Record deck flatness, cam bore roundness and guide bore position on the inspection report.
Which setup and process fits your head
Use this to pick a route before you quote. The right answer depends on the head size, the material and how many you need.
| Case | Best setup | Cutting notes | Inspection focus |
|---|---|---|---|
| Single prototype, aluminium | 3-axis, deck down | 2,500–4,000 rpm, 0.15–0.25 mm/tooth | Deck flatness, cam bore roundness |
| Batch of 50, aluminium | 4-axis with tombstone | Rough and finish in separate ops | Position repeatability across parts |
| Inline six, cast iron | 5-axis, Ø400 mm table | 800–1,200 rpm, air blast | Cam bore straightness over 400 mm+ |
| Large industrial casting | 5-axis, 4,000 mm travel | 1.0–1.5 mm DOC roughing | Datum repeatability, thermal drift |
| Weld-repaired head | 3-axis, extra stand support | Light roughing, 0.3 mm stock | Crack growth after first cut |
| High-volume 10,000+ run | Dedicated fixture, mill-turn | Scheduled insert changes | 100% inspection before shipment |
The short version
Cam bore first, deck second, and measure with the part still clamped. Get that order right and the feeds and speeds become a detail you can tune.
Questions engineers ask next
How much material should I leave for the finish cut on a deck?
Leave 0.3–0.5 mm after roughing, then let the part rest before the finish pass. If the head is weld repaired or has a lot of heat history, go to the top of that range.
The finish cut itself should be 0.2–0.4 mm. Deeper than that and you are removing enough material to release new stress during the cut, which shows up as flatness error after unclamping.
Can I machine the deck and cam bore in one setup?
Yes, on a 5-axis machine with a rotary table, and it is usually the better choice. One setup means one datum, so the deck-to-cam-bore relationship is set by the machine, not by your flip accuracy.
The limit is travel. Check the part envelope against the machine before you plan the setup. Heads above 750 mm generally need a larger envelope or a dedicated fixture.
What flatness can I realistically hold on a thin aluminium head?
With a good fixture and a light finish pass, 0.02–0.03 mm across a 500 mm deck is achievable and repeatable. Tighter than that is possible but it depends on the casting, and it depends on how long you let the part rest.
Our general machining tolerance is ±0.005 mm on features we control, but deck flatness on a thin casting is a different number. Agree on the flatness spec before the job starts.
Why does my surface finish fail the gasket spec?
Most often the finish is too smooth, not too rough. A gasket needs some texture to bite. Target Ra 0.8–1.6 μm for a sealing deck; going below Ra 0.8 μm can cause leaks.
The other cause is smearing from too low a feed per tooth. That produces a finish that measures smooth but has no structure, and it fails in service.
How do I handle a batch where the first part is good and later parts drift?
Reference your datum at the start of every part. Thermal growth on the machine is the usual cause and it accumulates over a long unattended cycle.
Also log insert life per head and change at 80% of the recorded average. A dull face mill pushes the part instead of cutting it, and the drift looks like a machine problem when it is a tool problem.
Do you machine cylinder heads at GreatLight?
Yes. We run 16 simultaneous 5-axis centers, 12 four-axis mills, 27 three-axis machines and 16 mill-turn centers, with a maximum processing size of 4,000 mm. That covers automotive and engine hardware work as well as larger industrial castings.
Uploads are secure and confidential, and an NDA is available on request. Quotation and free DFM analysis come back within 12 hours.
Send us the head and the print
Upload your 3D model and drawing. We review the datum scheme, the fixture and the flatness spec, then quote within 12 hours.
12-hour quoteFree DFM analysis100% inspectionNDA on request