Skip to content
Alu CNC Parts

Guides / Design

Cutting a Box Out of a Block: What the Design Must Allow

November 21, 2026 by The Alu CNC Parts editorial desk / how this is checked

Milled metal housing with thin walls, an internal pocket and side holes, shown on a light grey background
Photo: Mastars, Unsplash License, via Unsplash

A machined enclosure is the choice for prototypes, small runs and housings that need a clean, rigid look. It avoids tooling and gives the designer freedom, and it gives the shop a set of problems that start with how thin the walls can be.

Diagram: Machined Aluminum Enclosure From Billet: Walls, Pockets, Seals

Why billet

Machined enclosures compete with sheet metal, extrusion and die casting. Billet wins when:

  • Quantities are small, from 1 to a few hundred.
  • The geometry has pockets, bosses and ribs that sheet metal cannot make.
  • Tolerances on mounting features are tight.
  • The look matters, with crisp edges and no draft.
  • The design is still changing, so tooling would be wasted.

At volume, die casting or extrusion takes over. See CNC machining versus die casting for where the crossover usually sits.

Material

6061-T6 or T651 plate is the default. It machines well, anodizes well and is easy to buy. For large flat covers where flatness matters, cast tooling plate such as MIC-6 stays flat after machining but has lower strength and a softer look. MIC-6 versus 6061 plate explains the difference. For marine or washdown enclosures, 5052 or 5083 plate gives better corrosion resistance. See marine aluminum.

The stock must be at least as large as the box outline plus a clamping margin. Thick plate for a deep box wastes material, so shops sometimes use two parts, a body and a lid, each cut from a thinner plate.

Wall thickness

Wall thickness sets stiffness, weight, cost and the risk of chatter.

Box size Typical wall Minimum with care Risk below minimum
Up to 80 mm 1.5 mm 1.0 mm Chatter, bending
80 to 150 mm 2.0 mm 1.5 mm Chatter, warp
150 to 300 mm 3.0 mm 2.0 mm Warp, flex
Above 300 mm 4.0 mm and up 3.0 mm Warp

Thin walls are the most expensive feature. The shop must use light cuts, short tools and fixtures that support the wall. Thin wall aluminum machining lists the limits. Ribs and corner bosses add stiffness without raising wall thickness across the whole box.

Wall thickness tolerance is usually ±0.1 mm for general work. Tighter than that adds cost, since the wall bends away from the cutter and moves again when unclamped.

Pocket depth and corner radius

Inside corners are cut by a round tool, so they have a radius. The rule of thumb is a radius of at least one third of the pocket depth. A 30 mm deep pocket then needs a corner radius of about 10 mm. A smaller radius needs a small tool, which is long and thin and chatters.

Pocket depth Suggested minimum corner radius Notes
10 mm 3 mm Standard end mill
20 mm 6 mm Standard end mill
30 mm 10 mm Longer tool, slower feed
40 mm and above 13 mm and above Long reach tool, risk of chatter

If the box needs sharp inside corners for a mating part, a relief corner or a relief notch lets the part fit in a round-cornered pocket. Floors need a small floor radius too, often 0.5 to 1.0 mm, from the tool corner.

Seals and grooves

A box with an IP rating needs a seal. For a machined enclosure, the common choice is an O-ring in a groove cut into the lid or the body.

Key points:

  1. Groove size follows the O-ring standard for the cord diameter. The groove depth sets compression, usually 15 to 25 percent for a static face seal.
  2. Groove surface finish is usually Ra 1.6 um or better on the groove walls and floor, and the sealing face is Ra 1.6 um to Ra 0.8 um.
  3. Flatness of the sealing faces is the main factor in leakage. A flatness of 0.1 mm over the whole lid is common and tighter values cost money.
  4. Groove corners need a radius, usually 0.2 to 0.4 mm, to avoid cutting the seal.
  5. Burrs inside the groove cut the O-ring. A burr-free groove is a written requirement.

The Ra guide shows what each finish costs, and the tolerance guide covers the dimensions that need control.

Lid, screws and bosses

Screw bosses are cut in the corners or along the walls. A boss needs a wall thick enough for the thread. A thread in a thin wall pulls out, so use bosses of at least 5 to 6 mm in diameter for M3, with a thread depth of 1.5 times the screw diameter. Thread inserts add strength for repeated assembly, see threads in aluminum.

The lid is usually a flat plate. Flat plates warp when machined on one side, so shops use stress relieved plate and machine both sides. See why aluminum parts warp.

EMI and grounding

An aluminum enclosure shields electronics from radio noise, but only if the seams conduct. Anodize is an insulator, so a lid that sits on an anodized lip does not make electrical contact.

The common solutions are:

  • Mask the seam faces during anodizing, and finish them with chem film. See anodize masking.
  • Use a conductive gasket that bridges the seam.
  • Use chem film on the whole box instead of anodizing, which keeps the box conductive. See chem film versus anodize.

State the requirement on the drawing, for example “surfaces A and B conductive, chem film”.

Need a quote for a part like this? Get a quote

Ingress rating and what the seal can claim

A drawing that says “IP67” asks for dust-tight and temporary immersion protection, and that is a test result for the finished assembly, not a feature of a single part. The machined parts contribute the sealing faces, the groove and the screw pattern. The seal, the cable glands, the connectors and the closure torque do the rest. A shop that machines the box cannot guarantee the rating, and it should not be asked to. What the drawing can fix is the geometry that makes the rating possible: groove depth and width, face flatness, surface finish and burr-free edges. The rating is then confirmed on the assembly by the party that tests it.

Screws, torque and lid distortion

A lid held by four screws at the corners bows between them under load, and the seal leaks in the middle of each side. Spacing the screws closer, about 40 to 60 mm apart on a small lid, keeps the sealing line even. A thicker lid, a rib or a stiffer boss pattern does the same job. For a lid that must stay flat after assembly, the thickness should be at least 4 mm on a 100 mm box, more on a larger one. The screw torque should be stated in the assembly notes so the compression of the O-ring is predictable.

A short example

A battery enclosure of 120 by 80 by 40 mm has 2 mm walls, four corner bosses for M3 inserts, an O-ring groove in the rim and a flat lid. The shop cuts the body from a 6061-T651 block in two setups: the outside and the inside pocket from one side, then the rim and groove from the other. The lid is cut from 6 mm plate, flipped and finished on both faces to keep it flat. Both parts are bead blasted, masked on the seam faces and anodized black, with chem film on the masked areas. The groove walls carry a burr-free requirement, and the first article is checked for groove size, rim flatness at 0.1 mm and the continuity of the seam surfaces before the lot goes ahead.

Finish

Most machined enclosures are bead blasted and anodized, since the combination hides tool marks and gives a durable surface. Bead blasting before anodizing explains the grades. Laser marking for logos and labels follows anodizing, see laser engraving on anodized aluminum.

Cost drivers

The main cost items in a machined enclosure are:

  1. Machine time, which grows with the volume of material removed. A box that removes 90 percent of the block spends most of its time making chips.
  2. Number of setups, since the box is cut from at least two sides.
  3. Thin walls and deep pockets, which slow the cutter.
  4. Finish, including blasting, masking and anodizing.
  5. Quantity, which spreads programming and fixture time.

Reducing pocket depth, using a larger corner radius and choosing a wall of 2 mm instead of 1 mm can cut the cycle time by a large share. See aluminum machining cost.

Checklist before you request quotes

  • Overall dimensions, wall thickness and pocket depths stated.
  • Inside corner radii chosen with the depth rule.
  • O-ring groove dimensions, finish and flatness stated.
  • Screw bosses and threads defined, with inserts if needed.
  • Conductive seam faces marked, with the finish named.
  • Finish and colour stated, with cosmetic faces marked.
  • Quantity given, with a note on the expected growth.

Send the drawing through the RFQ form. You get one itemised quote, and replies come within 24 business hours.

Sources

Figures in this guide are checked against the following. Published values are typical ranges for test material, not a guarantee for your part.

Frequently asked questions

What wall thickness is practical for a machined enclosure?

For small enclosures up to about 150 mm, walls of 1.5 to 2.5 mm are common and 1.0 mm is possible with care. Larger boxes need thicker walls, since thin tall walls chatter and flex. Thin walls cost more because feeds are slower and parts can warp.

How deep can a pocket be?

A common limit is about 4 times the tool diameter, with up to 6 to 8 times possible using long tools and slow feeds. Deeper pockets need larger corner radii and often a second setup from the other side.

Does anodize affect EMI shielding?

Yes. Anodize is an electrical insulator, so a seam between lid and body that must be conductive needs a masked or chem film surface. Without it, the enclosure leaks radio noise at the joint.

Need a quote for a part like this?

Send the drawing or photos. We reply within 24 business hours with one itemised quote for the finished parts.

Get a quote

Keep reading

Send RFQ