CNC Machining Cavity Guide
Cavities and deep pockets are where a clean CNC program goes wrong. This guide explains how tool rigidity, chip evacuation and wall stiffness set the real limits, and what to change in the CAD model before you cut metal.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
What a cavity is in CNC terms
In CNC work, a cavity is any negative volume cut into a solid block: a pocket, a bore, a slot, a channel or an enclosed mould impression. The tool has to enter from outside the part, remove material it cannot see, and then leave. That single constraint explains almost every cavity problem we see on the shop floor.
A cavity is not defined by its shape but by its access. A 60 mm wide, 15 mm deep pocket is easy. The same width at 90 mm deep is a different job, because the tool that fits inside is long and narrow, and long narrow tools deflect.
The cavity also decides the machining sequence. Roughing clears volume, semi-finishing controls the remaining stock, and finishing follows the walls. Get the stock allowance wrong on the first pass and no finishing strategy will recover the tolerance.
- 1Open cavityTool reaches the floor from three or more sides
- 2Semi-enclosedOne wall limits entry; reachable with 4-axis indexing
- 3Closed cavityAccess from one direction only; defines tool length
Why depth-to-diameter ratio decides the cut
The working limit of any cavity tool is its length-to-diameter ratio. A carbide end mill at 3×D is stiff. At 6×D it starts to sing. Beyond 10×D the tool bends under normal cutting force and the wall you cut is no longer where the program says it is.
Deflection scales with the cube of the overhang. Doubling tool length does not double the error; it multiplies it by roughly eight. That is why a cavity 80 mm deep is not simply "more passes" than one 40 mm deep. It is a different process with lower feed, lighter radial engagement and more passes.
Heat matters too. Inside a cavity the chips cannot leave, so they recut. Recutting raises edge temperature, dulls the coating and changes the effective tool diameter within a single operation. We plan air blast or through-spindle coolant before we plan the finishing pass.
- 13×DFull-depth roughing is realistic
- 26×DReduce radial engagement, keep axial depth moderate
- 310×D+Step down, expect multiple passes, verify with a test cut
Corner radii, floor radii and draft
A cavity machined with a square internal corner is not machinable with a rotating tool. The cutter leaves its own radius. If the drawing calls for a 2 mm corner and the smallest tool that reaches the depth is 6 mm, the corner stays at 3 mm unless we add a separate operation.
Floor fillets help more than most designers expect. A fillet between wall and floor spreads stress and lets a larger, stiffer tool run the finishing pass. A sharp internal corner forces the smallest tool in the shop into the hardest place in the part.
Draft on vertical walls is usually unnecessary for machined cavities, unlike moulds. But a 0.5° to 1° wall taper does reduce rubbing on the flank, especially in stainless and titanium where the material springs back against the cutter.
- 1Corner radiusSet it at or above the largest tool that can reach the floor
- 2Floor filletR2–R5 spreads load and stiffens the cut
- 3Wall taper0.5°–1° reduces flank rub in gummy alloys
Holding the part while the cavity is cut
A cavity removes material from the middle of a part. That shifts the neutral axis and weakens the very section the vise is gripping. On thin-walled housings we often see the part move between roughing and finishing, not because the program changed but because the stiffness did.
The usual fix is to leave a sacrificial web or leave the part on a plate until the cavity is finished, then cut it free in a second setup. Vise jaws on the outside of a box section will not hold it flat once 60 percent of the internal material is gone.
For long cavities we sometimes use low-melt fixturing compound or a vacuum plate. Both add setup time. Both are cheaper than scrapping a part that has 20 hours of machining in it.
- 1Leave stock on the floor0.3–0.5 mm keeps the section stiff during roughing
- 2Machine in two setupsCavity first, then free the part and finish the outside
- 3Document the sequenceReordering setups is the most common cause of scrap
What 5-axis changes in cavity work
A 3-axis machine reaches a cavity from one direction. A 5-axis machine tilts the tool so the cutter engages the wall at its strongest point and the shank clears the pocket rim. The same cavity can be cut with a shorter tool, which is the same as saying it can be cut with a stiffer one.
Tilting also helps chip evacuation. When the tool axis is angled, gravity and coolant push chips out of the pocket instead of letting them pool around the cutter. In aluminium that difference shows up as better surface finish on the floor.
The trade-off is programming and setup time. Five-axis toolpaths need collision checking and a verified post-processor. For a shallow cavity with generous radii, 3-axis is faster and cheaper. We use 5-axis when reach, not complexity, is the limiting factor. Our shop runs 16 simultaneous 5-axis machining centers alongside 27 three-axis machines, and the choice is made per part, not per customer.
- 1ReachTilting shortens effective tool length
- 2Chip flowAngled axis drains pockets better
- 3CostUse 3-axis when the cavity is open and shallow
How material changes the cavity cut
Aluminium 6061 and 7075 cut fast and clear chips easily, which makes them forgiving in deep pockets. Titanium TC4 (Ti-6Al-4V) is the opposite. It conducts heat poorly, so the edge stays hot, and it springs back against the tool. Cavity depth limits tighten considerably.
Stainless 316 and 17-4PH work-harden at the surface. A tool that rubs instead of cutting will make the next pass harder. We keep radial engagement high enough to stay in the cut instead of burnishing the wall.
Plastics behave differently again. POM and PEEK machine cleanly but expand with heat, so a deep cavity can close up on the tool. We take lighter passes and allow the part to cool between roughing and finishing.
- 1AluminiumFast, forgiving, good chip clearance
- 2TitaniumReduce depth, expect tool wear
- 3StainlessAvoid rubbing; keep the edge engaged
- 4PlasticsControl heat, allow cooling between passes
Checking a cavity you cannot see
A cavity is the hardest feature on a part to measure. Calipers reach the rim, not the middle. The floor of a 70 mm deep pocket is checked with a probe, a deep bore gauge or a CMM with a long stylus that adds its own deflection.
We inspect cavities against the drawing at the section where they matter. Wall thickness is checked from the outside, floor thickness with an ultrasonic gauge on some parts, and the profile with a CMM or a shadowgraph for small features.
Any measurement inside a deep pocket carries more uncertainty than one on an open face. That uncertainty belongs in the tolerance discussion, not in a last-minute argument after the parts ship.
- 1CMM probingReliable but slow in deep pockets
- 2Ultrasonic gaugeFor floor and wall thickness
- 3Optical comparisonFor small profiles and radii
Cavity features and how they machine
Use this as a first-pass screen before you commit to a design.
| Feature | Typical limit | What to change |
|---|---|---|
| Pocket depth / width | 4:1 on 3-axis | Widen or split the pocket |
| Internal corner | Largest tool radius | Add corner relief or EDM |
| Wall thickness | 1.0 mm and above | Add ribs or support the wall |
| Floor radius | R2–R5 preferred | Remove sharp internal corners |
| Surface finish | Ra 0.8–1.6 μm as standard | Specify Ra 0.2–0.8 μm only if needed |
| Tolerance | ±0.005 mm achievable | Loosen where the function allows |
When to redesign, when to machine as drawn
If the pocket is deeper than 4× its width and the corners are sharp, redesign it: widen the pocket, add corner relief or a floor fillet. If the cavity is open, under 3×D and has R3 corners or larger, machine it as drawn; a 5-axis setup will hold ±0.005 mm without extra cost.
Cavity questions we get weekly
What depth-to-width ratio can you machine?
It depends on the tool, not on the machine. A cavity up to about 4:1 depth-to-width is routine on 3-axis. Beyond that we switch to longer reach tools, reduce radial engagement and often move to a 5-axis setup so the shank clears the rim.
Send the model and we will tell you which ratio your part falls into before quoting. The DFM analysis comes back with the quote, usually within 12 hours.
Do I need to add draft to a machined cavity?
No, not for function. Machined cavities do not need draft the way moulds do. A small wall taper of 0.5° to 1° can help in stainless and titanium because it reduces flank rubbing, but it is a process choice rather than a drawing requirement.
Can you hold ±0.005 mm inside a deep pocket?
Yes, when the tool can reach the feature with enough rigidity and the part is fixtured so it does not move between roughing and finishing. Deep pockets with thin walls are the exception, because the wall deflects under cutting force.
In those cases we either adjust the process or tell you which dimension is realistic. We inspect 100 percent of parts before shipment and can supply reports on request.
How do you stop chatter in a cavity?
Shorten the tool, reduce radial engagement, and change the spindle speed rather than only slowing the feed. Chatter is a stiffness problem first and a speed problem second. A tuned toolpath with variable pitch or a different flute count often removes it without touching the geometry.
What surface finish should I specify inside a cavity?
Ra 0.8–1.6 μm is our standard machined finish and is enough for most sealing, locating and fluid-handling surfaces. Ra 0.2–0.8 μm is available when a seal or a sliding fit demands it, but it adds a finishing pass and cost. Specify the coarsest finish that still works.
Can a cavity be split into two parts and assembled?
Often yes, and it is cheaper than machining one deep closed pocket. Splitting the cavity lets each half be cut from an open direction with a short, stiff tool, then joined by dowels, bolts or bonding. It costs an extra setup and a joint, but it removes the deep-reach problem entirely.
Send the model, get a cavity verdict
Upload your part and we will return a quote plus a free DFM analysis within 12 hours, including depth-to-diameter limits and any geometry worth changing before the first cut.
12-hour quoteFree DFM analysis100% inspectionNDA on request