Blog Machines

How a planetary gearbox works: 20:1 in two stages

By Max Buining, who builds extrudo · 6 min read

Open a servo gearhead, a cordless drill or an automatic gearbox and you find the same trick: gears inside gears. It packs a big reduction into a short, round housing, and the input and the output sit on the same line.

Here's how it works, with the numbers from a two-stage gearhead an AI built in SOLIDWORKS.

The 20:1 gearhead in SOLIDWORKS, cut open so both stages show. Only the input shaft is driven. The gear mates move everything else.

Four parts

  • The sun gear sits in the middle, on the input shaft.
  • The planet gears mesh with the sun all around it. This gearhead has three in its first stage and four in its second.
  • The ring gear has its teeth on the inside and meshes with the planets from the outside. Here it's cut into the housing, so it never moves.
  • The carrier holds the pins the planets turn on. That's the output.

Hold any one of the three main parts still and the other two become input and output. A reducer like this holds the ring, drives the sun and takes the power off the carrier, which turns slower and in the same direction.

sun, drivencarrier, outputring, heldStage 1 · 5:118-tooth sun, three 27-tooth planets, 72-tooth ringStage 2 · 4:118-tooth sun, four 18-tooth planets, 54-tooth ring
Both stages, front view, pitch circles to scale. The sun is driven, the ring is held, and the carrier takes the planets round.

How to calculate the ratio

With the ring held, the sun driving and the carrier as the output:

Ratio = 1 + ring teeth / sun teeth

Here's where the "1 +" comes from. Sit on the carrier and watch. For every turn the carrier makes, the ring seems to go once around you the other way. Through the planets, that turns the sun 72 / 18 = 4 times relative to you. Add the one turn you made yourself, and the sun has turned 5 times for every turn of the carrier.

Stage 1Stage 2
Module1.52
Sun / planet / ring teeth18 / 27 / 7218 / 18 / 54
Planets34
Ratio, 1 + ring / sun1 + 72/18 = 51 + 54/18 = 4

The carrier of stage 1 carries the sun of stage 2, so the stages multiply: 5 x 4 = 20.

The two rules that pick the tooth counts

You can't build a 5:1 stage from any numbers you like. Two rules decide it.

  1. The planets have to fit between the sun and the ring. For gears of one module: ring = sun + 2 x planet. Here 72 = 18 + 2 x 27, and 54 = 18 + 2 x 18.
  2. Evenly spaced planets all have to mesh. (Sun + ring) / number of planets must be a whole number: 90 / 3 = 30 and 72 / 4 = 18. If it isn't, the last planet's teeth land on a tooth of the sun instead of a gap.

The brief asked for two stages and 20:1 for a 130 mm frame servo motor, and named no gears. The AI picked the tooth counts, the modules and the number of planets itself, and checked both rules before anything went into SOLIDWORKS.

Which way everything turns

The planets are the part people get wrong. They orbit forwards with the carrier, but they spin backwards on their own pins, because they're rolling along a ring that stands still.

Turning the input through the gear mates, SOLIDWORKS measured this, for every turn of the input shaft:

  • Stage 1 carrier: 1/5 of a turn forwards.
  • Stage 1 planets: 1/3 of a turn backwards.
  • Stage 2 planets: 1/10 of a turn backwards.
  • Output flange: 1/20 of a turn forwards.

The planet numbers follow from one more formula: planet speed = carrier speed x (1 - ring teeth / planet teeth). For stage 1 that's 1/5 x (1 - 72/27) = -1/3, the same as SOLIDWORKS measured.

Why engineers use them

  • The load is shared. Three or four planets carry the torque at once, so a planetary stage carries more torque than a single pair of gears of the same size.
  • Input and output are on one axis. That suits a servo motor, a wheel hub or a drill, where everything is round.
  • The housing stays short. Two stages give 20:1 here in a body 126 mm across.

The price is more parts and tighter tolerances. The planets have to share the load evenly, and on a servo every bit of play between the teeth shows up at the output.

What the AI built

An AI agent built this on the same SOLIDWORKS tools extrudo runs on, from a prompt and a written spec. Everything in the gearhead is a real part with its own file: the motor adapter, the housing with both ring gears inside, the input shaft with the first sun cut into it, both carriers, seven planets on pins and needle rollers, a 6007 ball bearing at the input, two angular contact bearings back to back at the output, a shaft seal and a clamping hub for a 24 mm motor shaft.

Every tooth flank is a true involute. In a script, before the build, the drawn flanks stayed within 0.61 micrometres of the exact curve. Each tooth is a few hundredths of a millimetre thinner than nominal, so the gears have the backlash a real gearbox needs.

  • 16 part files, 32 components and 50 mates, 9 of them gear mates.
  • 367 steps, 0 failed.
  • A full output turn plus a little more: 7,358 degrees in, 367.9 out, one twentieth.
  • 71 interference checks over that turn, and no two gear teeth touched.
The real build: 16 parts, then the assembly, about 52 times faster than it ran.

It's on the machines page next to a V8 and a rotor head, and the use cases show the brief it started from.

FAQ

How do you calculate the gear ratio of a planetary gearbox?

With the ring gear held, the sun as input and the carrier as output, the ratio is 1 + ring teeth / sun teeth. An 18-tooth sun in a 72-tooth ring gives 5:1. Stages in a row multiply, so 5:1 and 4:1 make 20:1.

What are the parts of a planetary gearbox?

A sun gear in the middle, planet gears around it, a ring gear with internal teeth around them, and a carrier that holds the planet pins. In a typical reducer the ring is fixed, the sun is the input and the carrier is the output.

How many planets does a planetary gear set need?

Usually three or more, so the load is shared and the sun is held in the middle by the planets. The count has to divide (sun teeth + ring teeth) exactly, or the planets can't be spaced evenly and still mesh.

What is the difference between a planetary gearbox and a spur gearbox?

A spur gearbox passes the power from one shaft to a parallel one through gear pairs. A planetary gearbox keeps input and output on one axis and shares the load over several planets, so it's more compact for the same torque.

Can you model a planetary gearbox in SOLIDWORKS?

Yes. With gear mates between the planets and the sun and ring, SOLIDWORKS turns the whole gear train from the input shaft, and an interference check shows whether any teeth collide. It doesn't calculate tooth stresses: that takes a simulation or a gear rating calculation.

Keep reading

Get started

Build with us.

Windows, with your own SOLIDWORKS licence. The free build needs only your email.