Planetary Gear Generator (STL)
Pick the sun and planet tooth counts, the number of planets and the module. The tool works out the ring gear, checks that the planets fit and space evenly, shows the ratio for each fixed member, and gives you watertight STL or 3MF files for the sun, planets, ring and carrier.
How to make a 3D printable planetary gearbox
- 1
Set the teeth
Sun and planet teeth set the ring (sun + 2 × planet) and the ratio. With the ring held, 18 sun and 18 planet teeth give 4:1.
- 2
Pick the planet count
Sun teeth + ring teeth must divide by the number of planets so they space evenly. If not, the tool suggests the nearest counts that work.
- 3
Size and fit
Module sets the tooth size for every gear. Add backlash for printing, a shaft hole in the sun, and pin holes for the planets.
- 4
Download and print
One STL per part (print the planet as many times as you have planets) or a 3MF with every part laid out flat.
Need more than a gearbox?
Turn a photo or text into a printable 3D model with AI, with an STL download. The AI generators use credits; this gearbox tool does not.
More free tools: Gear generator · 3D print cost calculator · STL viewer
Planetary gear formulas
These are the rules and ratios the generator uses, with a worked example: an 18-tooth sun, 18-tooth planets, a 54-tooth ring and 3 planets at module 1.25. Every gear, including the ring's inside teeth, has true involute flanks, so the parts roll smoothly together.
| Ring teeth | R = S + 2P (18 + 2 × 18 = 54) |
|---|---|
| Ring held (most common) | ratio = 1 + R / S (1 + 54 / 18 = 4 : 1, sun in, carrier out, same direction) |
| Sun held | ratio = R / (R + S) (54 / 72 = 0.75 : 1, carrier in, ring out, a little faster) |
| Carrier held | ratio = −R / S (-3 : 1, sun in, ring out, reversed: a plain gear train) |
| Equal spacing | (S + R) / N must be a whole number (72 / 3 = 24) |
| Planets must not touch | 2a × sin(180° / N) > planet tip diameter (a = sun-planet centre distance) |
| Centre distance a | a = m × (S + P) / 2 (module 1.25: 22.5 mm from the sun to each planet pin) |
| Pitch diameters | sun S × m, planet P × m, ring R × m (22.5, 22.5 and 67.5 mm at module 1.25) |
Tips for 3D printing a planetary gearbox
Common starting points for an FDM printer with a 0.4 mm nozzle; your printer may need small changes.
| Module vs nozzle | Module 1 or more prints cleanly with a 0.4 mm nozzle; module 1.25 to 2 is sturdier. The ring's inside teeth are the hardest part to print, so do not go below 1 on FDM. |
|---|---|
| Backlash | Start at 0.2 mm. A planetary set has two meshes per planet, so it binds sooner than a gear pair. If it is stiff, raise it to 0.25 to 0.3 mm. |
| Orientation | Print every part flat on the bed. The 3MF is already laid out that way. |
| Walls and infill | 4 or more walls so the teeth are solid plastic; 30 to 50% infill for the rest. |
| Pins | Use 3 mm steel pins, bolts or printed pegs through the carrier. The planet hole is the pin size plus the allowance, so the planets spin freely. |
| Elephant foot | A flared first layer makes the ring's inside teeth rub. Turn on elephant-foot compensation or chamfer the first layer. |
| Material | PLA is fine for demos and light loads. PETG or nylon last longer in a gearbox that runs often. |