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 / ringRatioHousing Ø (mm)Output (N·m)
12 / 18 / 48 †5.000056.52.02
11 / 16 / 43 †4.909151.51.99
10 / 14 / 38 †4.800046.51.94
13 / 17 / 47 †4.615455.51.87
10 / 17 / 44 †5.400052.52.19
11 / 19 / 49 †5.454557.52.21
12 / 15 / 42 †4.500050.51.82
15 / 18 / 51 †4.400059.51.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:

FeatureSize
Faceplate42.3 mm square
Mounting holesM3, on a 31 mm square
Centring boss (pilot)22 mm diameter, about 2 mm proud
Shaft5 mm, usually with a D flat at 4.5 mm
Step angle1.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:

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?

Tout = Tmotor · R · η

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 lengthTypical holding torque
About 34 mm0.2 to 0.3 N·m
About 40 mm0.4 to 0.45 N·m
About 48 mm0.5 to 0.6 N·m
About 60 mm0.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:

Housing Ø = m · (Zr + 2.5) + 2 · wall

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:

RatioNo profile shiftWith profile shift
4 : 118 / 18 / 54, 62.5 mm12 / 12 / 36, 44.5 mm
5 : 118 / 27 / 72, 80.5 mm12 / 18 / 48, 56.5 mm
6 : 118 / 36 / 90, 98.5 mm10 / 20 / 50, 58.5 mm
7 : 118 / 45 / 108, 116.5 mm12 / 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

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

θ ≈ (jsun–planet + jplanet–ring) / (2 · a)

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.

Profile shift is one click. Open any † set and GearStudio flags the undercut on the sun or planets and offers the shift that removes it.

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

Related guides

3D printing planetary gearsModule, backlash and print settings. Planetary gear torqueOutput torque and planet loads. Tooth counts for a ratioSun, planet and ring for a target ratio.