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

Get Instant Quote

Engineering explainer

Magnesium Aluminum Alloy Motor Casing: How the Two Metals Behave on a CNC

This page is for engineers and buyers who need a motor housing that is light, stiff and cool-running, and who have to decide between magnesium and aluminum before the first toolpath is posted. It covers alloy grades, chip behavior, thermal limits, wall thickness and the 5-axis workholding that keeps a thin casing round. Read it and you will know which metal fits your duty cycle, and where each one stops working.

±0.005 mm tolerance16 five-axis centersAZ31B / AZ91D / 6061-T6100% inspection
Magnesium aluminum alloy motor casing machined on a CNC
Quick answer

Key takeaways

Density gap is the whole argumentMagnesium is about 35% lighter than aluminum at the same volume.
Heat decides more than weightMagnesium loses stiffness above roughly 120 °C; aluminum holds on.
Thin walls need 5-axisOne setup with a rotary table beats three refixtures on a 1.5 mm wall.
Chips are the real hazardMagnesium fines ignite; aluminum swarf does not.
Mechanism

Why magnesium aluminum alloy motor casing weight matters at all

A motor casing does three jobs at once. It holds the stator and rotor gap, it pulls heat out of the windings, and it carries the mount loads into the frame. Mass enters the picture because the casing sits at the end of a moment arm. Every gram removed from the housing also lets the bracket, the shaft and the bearing seats shrink, so a 35% density cut on the housing often turns into a 15–20% cut on the whole drive unit.

Magnesium sits at 1.74 g/cm³. Aluminum 6061 sits at 2.70 g/cm³. On a housing with 380 cm³ of material, that is roughly 660 g versus 1,025 g before any pocketing. On a drone arm or a handheld tool, that difference is the design. On a 400 mm industrial pump motor bolted to a concrete pad, it is noise.

The trade is stiffness. Magnesium alloys have a lower elastic modulus, around 45 GPa against 69 GPa for aluminum. A magnesium casing has to be thicker or more heavily ribbed to hit the same deflection target. That eats back some of the weight saving, and it changes the machining strategy because thick ribs and thin webs appear in the same part.

So the question is never whether magnesium is lighter. It is lighter. The question is whether your stiffness target, your temperature ceiling and your production volume let you use it.

  • 1
    Weight-driven designsHandheld tools, drone and eVTOL drives, robotics joints, portable pumps.
  • 2
    Stiffness-driven designsLarge frames, precision spindles, anything where deflection sets the air gap.
  • 3
    Heat-driven designsHigh duty-cycle motors where the casing is part of the thermal path.
Alloy selection

Picking the grade: AZ31B, AZ91D, 6061-T6 or ADC12

Magnesium AZ31B is wrought. It machines cleanly, takes a good finish and welds. Use it for prototype casings and low-volume housings where you are milling from plate. Magnesium AZ91D is a casting alloy with better castability and higher strength, but it is more brittle and more reactive in chip form. Most production magnesium motor housings start as an AZ91D die casting and are then finish-machined on the bearing bores, the stator seat and the mounting faces.

On the aluminum side, 6061-T6 is the default for billet housings. It is weldable, anodizes well and holds ±0.005 mm without drama. 7075 gives higher strength but poorer corrosion behavior and a higher price. ADC12 is the die-casting grade that most automotive and industrial motor housings actually use, because it fills thin walls at 2–3 mm and takes a machined finish on the critical seats.

The decision tree is short. If the housing comes from a mold, you are choosing between AZ91D and ADC12. If it comes from a billet, you are choosing between AZ31B and 6061-T6. Mixing the two, such as a magnesium body with aluminum inserts, is common and brings its own problem: galvanic corrosion at the joint.

We machine magnesium AZ31B and AZ91D, and aluminum 6061, 6061-T6, 2024, 5052, 5083, 6063, 6082, 7075 and ADC12. Grades outside that list get quoted case by case.

  • 1
    AZ31BWrought plate, best machinability, good for prototypes and small runs.
  • 2
    AZ91DDie casting alloy, higher strength, brittle chips, needs chip control.
  • 3
    6061-T6Billet default, stable, anodizes cleanly, easy to hold tolerance.
  • 4
    ADC12Aluminum die casting grade, thin walls, machined on critical faces.
Cutting behavior

How each metal behaves when the cutter touches it

Magnesium cuts fast and it cuts dry or near-dry. Specific cutting energy is low, so spindle load stays modest even at high feed. The chips are discontinuous and light. That is good for evacuation and bad for fire, because fine magnesium dust ignites at a low ignition temperature and burns hot. We run magnesium with high-volume air blast, no water-based flood coolant, and a dedicated chip collection path. Never let magnesium fines sit in a tray overnight.

Aluminum is the opposite kind of easy. It is gummy at low speed, so it wants surface speed and sharp geometry. Built-up edge is the usual cause of a torn finish on a 6061 bearing bore. Keep the tool sharp, run carbide with a polished flute, and use coolant or a heavy air-oil mist. Aluminum chips are heavy enough to evacuate with normal augers.

Thermal expansion drives the tolerance plan for both. Aluminum expands at roughly 23 × 10⁻⁶ per °C, magnesium at about 26 × 10⁻⁶ per °C. A 150 mm bearing bore measured hot can read 0.04 mm off after it cools. On a motor casing, where the stator seat sets the air gap, that is the difference between a quiet motor and a noisy one.

So we rough, let the part rest, then finish. On a thin casing the rest can be most of a shift.

  • 1
    MagnesiumDry or air-blast, high feed, strict chip control, no standing fines.
  • 2
    AluminumSharp polished carbide, coolant or mist, watch built-up edge.
  • 3
    BothRough, stabilize, then finish the bore and the mounting faces.
Fixturing

Wall thickness, 5-axis workholding and the roundness problem

A motor casing is a tube with features on both ends and often on the side. Once you thin the wall to 1.5–2.5 mm, clamping force starts to deform it. A three-jaw chuck on a thin magnesium tube will squeeze it oval, and the bore will spring back out of round after unclamping. That is the most common failure we see on incoming drawings.

The practical answer is 5-axis with a rotary table and low-pressure workholding. We use the Ø400 mm rotary table so the part can be indexed to five faces without a refixture, and we hold on internal bosses or a sacrificial web rather than on the finished outer wall. One setup also keeps the bearing bore, the stator seat and the mounting face in the same datum chain, which is what controls the air gap.

Ribs are the other constraint. Thin, tall ribs chatter. We rough them with a smaller radial engagement and leave 0.3–0.5 mm for a light finishing pass at reduced feed. Ribs also trap chips, so the program needs to clear them before the finish pass, not after.

For a 4,000 mm envelope, we can machine large housings on the long-travel machines. For compact casings, the 500 × 500 × 450 mm and 500 × 310 × 200 mm travels cover most motor sizes with room for the fixture.

  • 1
    Hold on bosses, not wallsClamp on internal features or a sacrificial web.
  • 2
    One 5-axis setupKeeps bore, stator seat and mounting face in one datum chain.
  • 3
    Rough, rest, finishLeave 0.3–0.5 mm and let the part cool before finishing.
Boundaries

When magnesium is the wrong answer

Magnesium is the wrong answer when the casing is part of the heat path. Its thermal conductivity is roughly half that of aluminum, so a magnesium housing runs the windings hotter for the same load. If your motor is already near its insulation limit, switching the housing to magnesium makes that worse, not better.

It is also the wrong answer above about 120 °C in continuous service. Magnesium alloys lose creep resistance quickly, and a bearing bore that creeps under load loses its fit. For a high-temperature or high-duty-cycle motor, aluminum wins on that single criterion.

Corrosion is the third boundary. Bare magnesium needs a coating, and it reacts badly with steel and stainless fasteners in a wet or salt environment. If the housing lives outdoors or near a wash-down area, the joint design has to isolate the magnesium from the steel, or you should go back to aluminum.

And if the part is a one-off bracket-shaped housing with no weight target, none of this matters. Choose 6061-T6, skip the coating argument, and spend the time on the bore.

  • 1
    Choose magnesiumWeight-critical, moderate temperature, dry environment.
  • 2
    Choose aluminumHeat-critical, hot duty cycle, wet or corrosive environment.
  • 3
    Either worksLow volume, no weight target, ambient conditions.
Side by side

Magnesium vs aluminum for a machined motor casing

Values are typical for AZ31B / AZ91D and 6061-T6 / ADC12.

PropertyMagnesium (AZ31B / AZ91D)Aluminum (6061-T6 / ADC12)What it changes
Density1.74 g/cm³2.70 g/cm³Housing mass and bracket loads
Elastic modulusAbout 45 GPaAbout 69 GPaWall thickness needed for stiffness
Thermal conductivityAbout 80 W/m·KAbout 167 W/m·KHow fast winding heat leaves
Safe service ceilingRoughly 120 °CRoughly 200 °CDuty cycle and insulation class
Machining speedVery high, dry cuttingHigh, needs sharp toolsCycle time and coolant plan
Chip fire riskHigh for finesLowShop safety and chip handling
CorrosionNeeds coating, galvanic riskAnodize or conversion coatCoating spec and joint design
Typical sourcingDie casting plus finish machiningBillet or die castingTooling cost and lead time

The call

If weight drives the design and the motor stays under about 120 °C, machine the casing in magnesium AZ31B or AZ91D and coat it. If the casing carries heat or sees a hot, wet duty cycle, use aluminum 6061-T6 or ADC12 and hold the bore to ±0.005 mm. Do not pick magnesium for a thermal job.

FAQs

Questions engineers ask before releasing the drawing

Can you machine a magnesium motor casing from a die casting?

Yes. We machine AZ91D and other magnesium castings on the bearing bores, stator seat, mounting faces and any tapped holes, using the casting as the datum where possible.

Cast skins and parting lines are removed first, then the bore is finished in a separate pass so the casting can relax between operations.

What wall thickness can you hold on a magnesium housing?

Down to about 1.5 mm on a supported wall, provided the fixture holds on internal bosses rather than the outer surface.

Below 1.2 mm the part deflects under normal cutting forces and the roundness of the bore starts to move with clamping pressure.

Does a magnesium casing need a coating?

Yes, for anything outside a dry, controlled environment. Bare magnesium corrodes quickly, and it is galvanically active against steel and stainless fasteners.

Common choices are a conversion coating plus paint, or an anodized-type finish. We finish magnesium and aluminum in-house and can quote the coating with the machining.

How do you machine the stator seat without distorting the bore?

We leave 0.3–0.5 mm on the bore, let the part reach shop temperature, then take a light finishing pass at reduced feed with the part still on the same 5-axis setup.

The stator seat and the bearing bore are cut in the same datum chain so the air gap stays concentric.

What tolerance can you hold on a motor casing?

We hold ±0.005 mm ( ±0.0002 in ) on critical diameters and seats, with surface finish between Ra 0.8 and Ra 1.6 μm on machined bores.

Every part is inspected before shipment, and inspection reports are available on request.

Is there a minimum order quantity for a magnesium or aluminum casing?

No minimum. We run from one prototype to 10,000+ part production, and the same 5-axis setup is used for both so the prototype matches the production part.

Uploads are kept confidential and an NDA is available on request.

Send the drawing and the duty cycle

Tell us the alloy you are considering, the expected winding temperature and the wall thickness, and we will come back with a DFM note and a quote within 12 hours. If the alloy is wrong for the job, we will say so before we cut metal.

12-hour quoteFree DFM analysis100% inspectionNDA on request

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