NEMA 17 planetary gearbox design
A planetary stage is the usual way to give a NEMA 17 stepper more torque and finer steps while keeping the output on the motor's axis. The motor drives the sun, the ring is the housing, and the carrier is the output. This page covers choosing the ratio, working out the output torque, finding tooth counts that fit around the motor, and mounting the gearbox, with a calculator that searches the sets for you.
Find a gearbox for your motor
† Sun or planets under 17 teeth: apply profile shift in GearStudio (one click) to avoid undercut.
| Sun / planet / ring | Ratio | Housing Ø (mm) | Output (N·m) |
|---|---|---|---|
| 12 / 18 / 48 † | 5.0000 | 56.5 | 2.02 |
| 11 / 16 / 43 † | 4.9091 | 51.5 | 1.99 |
| 10 / 14 / 38 † | 4.8000 | 46.5 | 1.94 |
| 13 / 17 / 47 † | 4.6154 | 55.5 | 1.87 |
| 10 / 17 / 44 † | 5.4000 | 52.5 | 2.19 |
| 11 / 19 / 49 † | 5.4545 | 57.5 | 2.21 |
| 12 / 15 / 42 † | 4.5000 | 50.5 | 1.82 |
| 15 / 18 / 51 † | 4.4000 | 59.5 | 1.78 |
12 / 18 / 48: 27.5 N on the busiest planet's teeth, 0.360° of output per full step, and 2.3 mm of sun around the 5 mm shaft.
Ring fixed, sun on the motor shaft, carrier as the output. Every set assembles with evenly spaced planets, keeps its sun's tooth roots at least 1 mm clear of a 5 mm bore, and opens in GearStudio when you click it. Housing Ø is the ring's root diameter plus the wall on each side.
NEMA 17 mounting dimensions
NEMA 17 fixes the faceplate, not the motor's length or torque, so any NEMA 17 bolts to the same gearbox:
| Feature | Size |
|---|---|
| Faceplate | 42.3 mm square |
| Mounting holes | M3, on a 31 mm square |
| Centring boss (pilot) | 22 mm diameter, about 2 mm proud |
| Shaft | 5 mm, usually with a D flat at 4.5 mm |
| Step angle | 1.8° (200 steps per revolution) on most motors |
Give the gearbox's motor plate a 22 mm recess for the boss, so the sun runs concentric with the ring, and four clearance holes on the 31 mm square. Check your motor's datasheet for shaft length; 20 to 24 mm is common.
What gear ratio should a NEMA 17 planetary gearbox have?
With the ring fixed, the ratio is 1 + Zr / Zs. Three things pull the choice in different directions:
- Torque rises with the ratio.
- Speed falls with it. Steppers lose torque quickly above a few hundred rpm, so a high ratio can leave the output too slow.
- Resolution improves with it: each full step moves the output 1.8° / R, so 5:1 gives 0.36°.
A single stage is practical from about 3:1 to 7:1, and 5:1 is the usual choice. Higher ratios need a small sun and big planets, and the housing grows fast; past that, use two stages (see below).
How much torque does a NEMA 17 gearbox output?
where η is the gearbox efficiency: about 0.95 to 0.97 per stage for metal gears, and roughly 0.85 to 0.9 for a greased printed stage. NEMA 17 motors vary mainly with body length:
| Body length | Typical holding torque |
|---|---|
| About 34 mm | 0.2 to 0.3 N·m |
| About 40 mm | 0.4 to 0.45 N·m |
| About 48 mm | 0.5 to 0.6 N·m |
| About 60 mm | 0.65 to 0.75 N·m |
These are typical figures; use your motor's datasheet. Holding torque is the stationary maximum, and running torque falls with speed, so for a motor that turns quickly enter the torque from its torque–speed curve. A 0.45 N·m motor through 5:1 at 90% gives 0.45 × 5 × 0.9 ≈ 2.0 N·m.
Each planet carries part of the sun's torque. The tooth force on the busiest planet is Ft = Tmotor / (N · rsun) · Kγ, where rsun is the sun's pitch radius and Kγ (1.10 for three planets) allows for uneven sharing. For 12 / 18 / 48 at module 1 that is 27.5 N per mesh, a modest load for 10 mm wide PLA or PETG teeth. The torque guide and stress guide take this further.
Tooth counts that fit around the motor
The gearbox only looks right if it is not much wider than the motor. The housing diameter is set by the ring, and the ring by the ratio and the sun:
Without profile shift the sun needs 17 teeth or more at 20° to avoid undercut, which makes every ring large. Allowing profile shift lets the sun drop to 10 to 12 teeth and shrinks the gearbox by a quarter or more. The sun still has to fit the 5 mm shaft: at module 1, a 10-tooth sun leaves 1.25 mm of plastic around the bore.
Smallest exact sets at module 1 with three planets and a 3 mm wall:
| Ratio | No profile shift | With profile shift |
|---|---|---|
| 4 : 1 | 18 / 18 / 54, 62.5 mm | 12 / 12 / 36, 44.5 mm |
| 5 : 1 | 18 / 27 / 72, 80.5 mm | 12 / 18 / 48, 56.5 mm |
| 6 : 1 | 18 / 36 / 90, 98.5 mm | 10 / 20 / 50, 58.5 mm |
| 7 : 1 | 18 / 45 / 108, 116.5 mm | 12 / 30 / 72, 80.5 mm |
Module scales everything: 12 / 18 / 48 is a 46.4 mm housing at module 0.8 and 69.1 mm at module 1.25. On an FDM printer with a 0.4 mm nozzle, module 1 is a good balance; at module 0.5, a resin print of 18 / 27 / 72 fits within 43.3 mm, about the motor's own width. See 3D printing planetary gears for module, backlash and material choices.
Mounting the gearbox
- Sun: give it a D-shaped bore (5 mm, 4.5 mm across the flat) so it cannot slip, plus about 0.1 to 0.2 mm on FDM prints, which print holes undersize. GearStudio cuts round, D, double-D and hex bores.
- Ring: make it part of the housing, bolted to the motor plate on the 31 mm square, with the 22 mm recess locating it on the motor's boss.
- Carrier: run the planets on pins (3 mm steel dowels or M3 bolts are common) and support the output on a bearing, so a side load on the output does not push the planets out of mesh. GearStudio's STL export can include carrier plates with the pin holes placed.
- Lubricate with PTFE or silicone grease; it cuts both noise and wear on printed teeth.
How much backlash does a 3D-printed NEMA 17 gearbox have?
With the motor holding its position, the carrier can still rock by the play in both meshes. Its angular play is about
where j is the play in each mesh and a = m · (Zs + Zp) / 2 is the planet orbit radius. For 12 / 18 / 48 at module 1 (a = 15 mm) with 0.25 mm per mesh, typical for FDM, that is about 0.017 rad, roughly 1°, more than the 0.36° output step. So a printed gearbox multiplies torque well but does not make positioning more precise.
To reduce it, print in resin (about 0.1 mm per mesh), use a larger module or set so the orbit radius grows, or preload the output with a spring or a constant load in one direction. Microstepping does not help, since the play is in the gears.
Higher ratios: two stages
Stack two stages: the first carrier drives the second sun, and the two ratios multiply. Two 5:1 stages of 12 / 18 / 48 give 25:1 in the same 56.5 mm diameter, and the housing only gets longer. The second stage carries the first stage's output torque, so make it wider or use a larger module if the first stage's teeth are already working hard.
Open a set in GearStudio to see it mesh, add the D bore and carrier, and export STL for printing or STEP for CAD.
Open the 5:1 set