NEMA motor spacer: print a spacer plate for NEMA 14, 17, 23
A NEMA motor spacer for your stepper
A NEMA motor spacer is a flat plate that sits between a stepper motor and the frame it is bolted to. It moves the motor away from its mount by a few millimeters, so a coupler, pulley or gear lines up with whatever it has to drive. Printers, CNC routers, camera sliders and home-built machines all use NEMA stepper motors, and sooner or later one of them needs to sit a little higher, lower or farther back than the bracket allows. This generator makes that plate for NEMA 14, NEMA 17 and NEMA 23 motors, with the four bolt holes in the right places and a center cutout for the round pilot ring on the motor face.
Browse the examples to see the range, for instance the 10 mm NEMA 17 spacer, the thin 2 mm NEMA 17 shim or the 8 mm NEMA 23 spacer. Each one opens in the editor with a click.
How the generator works
Everything runs in your browser. Nothing is uploaded, and the whole design lives in the link you get from “Share”. You choose the motor size, set the thickness, adjust the holes and download an STL or a 3MF file. The spacer is one part in one color, so any printer can print it. The color you pick only changes the preview and the color stored in the 3MF.
The editor has two sections:
- Motor and spacer: “Motor size”, “Side slot” and “Thickness”.
- Holes: “Bolts”, “Center cutout” and “Clearance”.
The preview updates while you change a value. If a combination does not work, the generator corrects it and says why. More on that below.
NEMA sizes at a glance
NEMA is a family of standard frame sizes. The number is the flange width in tenths of an inch, so a NEMA 17 has a flange of about 1.7 inches, or 42 mm. These are the values the generator uses:
| Motor | Flange | Hole spacing | Standard bolt | Standard center cutout | Shaft |
|---|---|---|---|---|---|
| NEMA 14 | 35 mm | 26 mm | M3 | Ø 22 mm | 5 mm |
| NEMA 17 | 42 mm | 31 mm | M3 | Ø 22 mm | 5 mm |
| NEMA 23 | 56 mm | 47.14 mm | M5 | Ø 38.1 mm | 6.35 mm |
The spacer has the shape of the flange: a square with its four corners cut off at 45°, 3.5 mm along each edge. The holes sit on the square pattern of the motor, and the center cutout leaves room for the pilot ring. The shaft diameters in the table are only for reference, because the shaft passes through the cutout and never touches the plate.
Designing the spacer
Motor size and thickness
“Motor size” sets flange, hole pattern and defaults at once: NEMA 14, NEMA 17 or NEMA 23. “Thickness” is how far the plate moves the motor, from 1 to 40 mm in steps of 0.5 mm. The default is 8 mm.
Thin plates of 1 to 3 mm work as shims. They fine-tune the position of a pulley, so that the belt runs straight, or the gap between a drive gear and its idler. Plates of 5 to 12 mm lift the motor over a bracket edge or give a coupler room to move. Anything from about 20 mm is a standoff: a block that carries the motor off a wall, held by long bolts or threaded rod.
Bolts and clearance
“Bolts” sets the size of the four holes. “Standard for the motor” is M3 for NEMA 14 and NEMA 17 and M5 for NEMA 23. You can also choose M2.5, M3, M4 or M5, for example when your mount or motor uses a non-standard screw. The holes stay on the motor’s hole pattern, only their diameter changes.
“Clearance” is added to the radius of every hole, from 0 to 0.4 mm in steps of 0.05 mm. The default of 0.1 mm makes an M3 hole 3.2 mm wide, which suits most well-tuned printers. Holes print smaller than drawn on almost every machine, so if your bolts do not slide in, raise the clearance. The NEMA 17 spacer with 0.25 mm clearance is a good starting point for printers with undersized holes.
Center cutout
“Center cutout” is the diameter of the hole in the middle, for the pilot ring that rises from the motor face around the shaft. With the value 0 the generator uses the standard of the motor: 22 mm for NEMA 14 and NEMA 17 and 38.1 mm for NEMA 23. The clearance is added on top, so a NEMA 17 plate has a 22.2 mm hole by default.
A different value makes sense in two cases. If your motor has a larger or smaller ring, enter its measured diameter. If you want a coupler or a pulley to dip into the plate, make the cutout wider: the NEMA 17 spacer with a 30 mm cutout leaves room for a coupler up to 29 mm across. The smallest value besides 0 is 6 mm, and the largest is 50 mm.
Side slot
“Side slot” opens the center cutout to one side. The slot is as wide as the cutout and runs from the shaft out through the edge, so the spacer can slide in from the side after you have loosened the four bolts. Without the slot you get a closed ring that you can only fit when the motor is off. The slot is on by default.
Keep in mind that the slot only saves you from pulling things off the shaft. You still need longer bolts, and anything on the shaft must be narrower than the slot, which is 22.2 mm wide with the standard NEMA 17 values.
What the generator corrects
Two combinations are impossible, so the generator fixes them and shows a notice:
- If the center cutout would cut into the bolt holes or the edge, it is made smaller. The notice says “The center cutout would cut into the bolt holes or the edge, so it was made smaller” and names the largest possible diameter. The plate always keeps at least 1.2 mm of material around the holes.
- If the slot would leave less than 0.8 mm of material next to the bolt holes, it is left out. This happens with NEMA 14 and its standard cutout, where the slot would leave only 0.3 mm. A NEMA 14 spacer is therefore a closed ring, like the 6 mm NEMA 14 spacer. On NEMA 17 the wall next to the slot is 2.8 mm and on NEMA 23 it is 1.8 mm, so both keep the slot.
Printing the spacer
The plate lies flat on the bed, so all holes print vertically and come out round. No supports are needed: PrusaSlicer found no reason for automatic supports in any of the 13 examples. Print numbers for PrusaSlicer on a Prusa MINI with the 0.20 mm SPEED profile and Prusament PLA:
| Example | Weight | Print time |
|---|---|---|
| NEMA 14, 6 mm | 3.5 g | 12 min |
| NEMA 17, 2 mm shim | 3.26 g | 9 min |
| NEMA 17, 10 mm, slotted | 6.13 g | 19 min |
| NEMA 17, 18 mm, slotted | 9.65 g | 30 min |
| NEMA 17, 30 mm standoff | 17.38 g | 50 min |
| NEMA 23, 8 mm, slotted | 6.95 g | 19 min |
| NEMA 23, 15 mm, closed | 14.15 g | 36 min |
A few tips:
- Material: use PETG, ASA or ABS. A stepper motor that holds a load gets warm, and PLA softens at around 55–60 °C, which can let the plate creep under the bolts over time.
- Walls and infill: four perimeters and 30–50 % infill give a stiff plate. The plate is loaded by the bolts pressing the flanges together, and the layers lie parallel to the flanges, which suits that load.
- Layer height: 0.2 mm is fine. The plate does not need fine layers.
- Elephant foot: if the bottom layers squeeze the holes, raise “Clearance” a little before you print again.
Test the first plate with a thin version, such as the 2 mm shim, if you want to check the fit cheaply before printing a thick one.
Mounting tips
- Bolt length: take the length of the old bolt and add the thickness of the plate. Check the datasheet for the depth of the thread in the motor face. Many NEMA 17 motors allow only a few millimeters of engagement, and a bolt that bottoms out can press on the windings or the face.
- Washers: put a washer under each bolt head when the head rests on the printed plate, because a bare head sinks into the plastic if you tighten it hard.
- Pilot ring: the ring on the motor face is about 2 mm tall on most NEMA 17 motors. A thicker spacer takes the ring completely, so the spacer’s cutout centers the motor and the hole in your mount should be at least as wide as the cutout.
- Check before you commit: measure the flange, the hole spacing and the ring with calipers. Motors differ by a few tenths of a millimeter, and many NEMA 17 motors are 42.3 mm wide. We have not test-printed these parts ourselves, so treat the first print as a fit check.
Use cases
- Z axis of a 3D printer: a spacer lifts the motor so the coupler and the leadscrew line up.
- Belt alignment: a thin shim moves the motor pulley into the plane of the belt. Combine it with a GT2 timing pulley in the size you need.
- Extruder: a NEMA 14 shim adjusts the distance between the drive gear and the filament path.
- CNC and plotters: NEMA 23 spacers set the motor height on a router or a linear axis.
- Shaft couplers: a wide cutout lets a coupler dip into the plate. The shaft coupler generator makes a matching part.
- Standoffs: a tall block carries a motor away from a wall or a panel.
Origin and license
The plate outline with its 3.5 mm corner chamfers, the center cutout, the side slot and the four bolt holes with clearance come from the OpenSCAD model Customizable Motor Spacer (NEMA17 & NEMA23) by PhilKloppers on Printables, licensed under CC BY 4.0. This generator ports that design to run in the browser and changes it: the slot always opens through the edge, an oversized cutout is made smaller, and the choice of the motor sets the bolts and the cutout. New are NEMA 14, the bolts M2.5 and M4, and a thickness range of 1–40 mm. NEMA sizes are standard designations, and printer and slicer names on this page only describe what the numbers refer to. More about the licenses of this site is on the license page.
Ready to print? Open the generator and start with the 10 mm NEMA 17 spacer.
All parameters
The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Motor and spacer | |||
| Thickness | 8 mm | 1 – 40 mm | How far the spacer moves the motor away from its mount. |
| Holes | |||
| Center cutout | 0 mm | 0 – 50 mm | Diameter of the hole for the pilot ring around the shaft; 0 = the motor’s standard (22 mm, NEMA 23: 38.1 mm). |
| Clearance | 0.1 mm | 0 – 0.4 mm | Added to the radius of every hole, to make up for holes printing smaller than drawn. |
Frequently asked questions
Do I need supports?
No. The spacer is a flat plate that lies on the bed with every hole standing vertically. A PrusaSlicer check of all 13 examples found no need for automatic supports.
Which bolts do I need?
The standard is M3 for NEMA 14 and NEMA 17 and M5 for NEMA 23. Because the spacer lifts the motor, every bolt must be longer by the thickness of the plate. Check the datasheet for how deep the thread in the motor face is, so a long bolt does not bottom out.
When do I want the side slot?
Use it when you want to push the spacer in from the side over the shaft instead of pulling the whole motor off. Anything on the shaft must be narrower than the slot, which is as wide as the center cutout. Without the slot you get a closed ring.
Which material should I use?
PETG, ASA or ABS. Stepper motors get warm, often above 50 °C, and PLA starts to soften at around 55–60 °C. PLA is fine for a short test or a cool motor at low current.
Will it fit my motor exactly?
The flange, hole spacing and pilot follow the usual NEMA sizes, but real motors vary by a few tenths of a millimeter and we have not test-printed these parts. Measure your motor with calipers, then adjust “Center cutout” and “Clearance” if needed.
Origin & license
- Customizable Motor Spacer (NEMA17 & NEMA23) by PhilKloppers · CC BY 4.0 · code ported – Ported: flange-sized plate with 3.5 mm corner chamfers, center cutout, side slot and four bolt holes, each with clearance. Adapted: the slot always opens through the edge, oversized cutouts are reduced. New: NEMA 14, M2.5 and M4.