Planetary Gears Explained

Published 2026-09-05 · updated 2026-09-25

Editorial: GenerateSTL

A simple planetary set has four working parts: a sun gear, planet gears, a ring gear and a carrier. This guide explains the motion, works a 24/24/72 set at module 2 with three planets, derives the 4:1 reduction with the ring fixed, and follows that set from the builder to an exported ZIP that reopens with every parameter intact. Every dimension below comes from an export that was executed for this article.

GenerateSTL gear generator with the 24/24/72 planetary preset applied, the sun, three planets and the ring in the live viewer and the derived ring teeth 72 and ratio 4.0000:1 in the parameter panel
Open the generator with these settings →The guide describes the example, the generator runs it.

What moves in a planetary gear set

A planet gear does two things at once: it spins on its own axle, and that axle travels around the sun with the carrier. KHK describes the planetary gear as a gear that rotates around a centre which itself revolves around the sun gear.

The sun meshes with every planet through an external mesh. Each planet also meshes with the internal teeth of the ring. The carrier holds the planet axes at a fixed distance from the centre, so it sets the spacing and carries the pin loads, not the tooth form.

Name the fixed member, the input and the output before quoting any ratio. The same gear set behaves differently when those roles change, and tooth counts alone do not tell you the output speed. The rest of this guide uses four symbols: zS for the sun, zP for one planet, zR for the ring and N for the number of planets.

PartMeshes withRole with the ring fixed
SunEvery planet, external teethInput
PlanetSun and ring, one axle eachSpins on its axle while the axle orbits
RingEvery planet, internal teethFixed to the housing
CarrierHolds the planet axesOutput
Measured top view of the exported 24/24/72 set with pitch circles, 48 mm centre distance, 120 degree planet spacing and motion arrows
Top view of the geometry this guide exports: 24-tooth sun, three 24-tooth planets and a 72-tooth ring at module 2. Dashed brass circle: ring pitch circle. The carrier is labelled because it defines the motion, and it is not an exported part.

Work through a 24/24/72 set

The example is a complete recipe the builder accepts: module 2, sun 24 teeth, planet 24 teeth, ring 72 teeth, three planets, 10 mm thick, sun bore 8 mm, planet bore 4 mm, ring wall 4 mm, backlash 0.2 mm and extra root clearance 0 mm. This preset link opens the gear generator with exactly those values.

Module is the tooth size that all three parts share. Sun bore and planet bore are hole diameters, not radii, and a value of 0 produces a solid gear. Ring wall is the radial material thickness outside the internal tooth root, measured from the root rather than from the tooth tip.

Backlash is the play between the flanks of one mesh. Extra root clearance raises the dedendum above the standard 0.25 module clearance. The ring tooth count is not an input here: the builder derives it from the sun and planet counts, so 24 plus twice 24 fixes the ring at 72 teeth.

ParameterValueWhat it controls
Module2 mmTooth size shared by all three parts
Sun teeth24Central external gear
Planet teeth24Each of the three identical planets
Planet count3Evenly spaced at 120 degrees
Thickness10 mmFace width of every gear
Sun bore8 mmCentral hole diameter
Planet bore4 mmAxle hole diameter
Ring wall4 mmRadial material outside the tooth root
Backlash0.2 mmModelled play per mesh
Extra root clearance0 mmAdditional dedendum beyond 0.25 module

Calculate the planetary gear ratio with the ring fixed

With the ring fixed, the sun driving and the carrier as output, the reduction is i = 1 + zR / zS. For 24 and 72 teeth that is 1 + 72 / 24 = 4, so 1000 rpm at the sun becomes 250 rpm at the carrier. KHK states the same relation for its planetary type, including that input and output rotate in the same direction.

The relation describes ideal kinematics. It assumes the ring is really grounded, the carrier is the only output, and nothing else holds the carrier back. Friction, backlash, elastic wind-up and the mounting structure change the delivered behaviour, so a 4:1 result is a speed relation and not a torque rating.

Other fixed members need their own expression. The same 24/72 set gives 1 + zS / zR = 4/3 with the sun fixed, and -zR / zS = -3 with the carrier fixed. The negative sign means that input and output turn in opposite directions. The fundamental planetary relation is often called the Willis equation.

For another tooth count or a different fixed member, the planetary gear ratio calculator keeps the operating case attached to its answer.

Fixed memberInput to outputRelationThis set, 24 and 72 teeth
RingSun to carrier1 + zR / zS4, same direction
SunRing to carrier1 + zS / zR4/3, about 1.3333, same direction
CarrierSun to ring-zR / zS-3, opposite directions

Check the planetary layout and tooth geometry

Three conditions must hold before three equally spaced planets can be assembled, and they are necessary rather than sufficient. This set passes all three: 72 = 24 + 2 x 24, (24 + 72) / 3 = 32, and 24 + 2 = 26 stays below 48 x sin 60 degrees = 41.569. The KHK internal gear catalogue states them as the gear tooth conditions for planetary gear mechanisms.

The conditions produce the dimensions. Pitch centre distance is m x (zS + zP) / 2 = 2 x (24 + 24) / 2 = 48 mm, measured as 48.0 mm in the export. Neighbouring planet axes sit 2 x 48 x sin 60 degrees = 83.138 mm apart. With a planet tip diameter of 52 mm, the tip circles keep 31.138 mm of space between them.

The same conditions show what changes with four planets: (24 + 72) / 4 = 24 is still a whole number, neighbouring axes move to 2 x 48 x sin 45 degrees = 67.882 mm, and the tip circles keep 15.882 mm between them. A four-planet request with the same tooth counts returned a valid archive in the export run behind this article.

Arithmetic alone does not prove interference-free contact. KHK asks designers to check involute, trochoid and trimming interference for internal gears. Two analytic criteria hold here: 72 teeth is above the 34-tooth validity limit for a standard 20 degree internal gear, and the 72 - 24 = 48 tooth difference is larger than the 9-tooth limit for trochoid interference.

KHK's gear dimension reference gives both criteria. Published interference tables remain product specific: the 2025 KHK catalogue lists at least 21 mating pinion teeth for its 60-tooth stock internal gear, and it has no 72-tooth row. Treat such values as a pattern to check, not as a number that transfers to another profile. Tooth counts are also bounded by the builder itself: planet gears need at least 22 teeth in this version, and a rejected preset leaves the gear type that was already selected in place instead of showing an unsupported set.

The builder runs its own checks on spacing, neighbouring planet clearance, external undercut, base tangent limits, contact ratio, ring wall, bore walls, flank thickness and the backlash and clearance limits. Those checks describe geometry. They do not describe a printed mechanism.

ConditionRequiredThis set
Ring tooth countzR = zS + 2 x zP72 = 24 + 2 x 24
Equal spacing(zS + zR) / N is a whole number(24 + 72) / 3 = 32
Planet clearancezP + 2 < (zS + zP) x sin(180 / N)26 < 41.569
Pitch centre distancem x (zS + zP) / 248 mm
Neighbouring axes2 x a x sin(180 / N)83.138 mm
Internal gear fitzR > 34 and zR - zP > 972 > 34 and 48 > 9

Generate, export and reopen the set

The export behind this article was executed against the current API: one request, one file named planetary-set-m2-s24-p24-n3-generatestl.com.zip, five STL files, a recipe and a readme. The download contains nothing else.

Reopening that archive returned all thirteen recipe fields unchanged: gear type, module, pressure angle, sun teeth, planet teeth, planet count, thickness, sun bore, planet bore, ring wall, backlash, radial clearance and display selection.

The five gears carry individual print coordinates with their base at z = 0, so each part can be sliced as it arrives. The recipe file adds the assembly data: role, index, position and rotation in radians for every part.

Every component also carries the recipe in its 80 byte STL header. Uploading one planet file therefore restores the complete set, which matters when a single part is reprinted or shared on its own. Each export additionally carries the GenerateSTL topology signature, so a component holds 18 facets more than the raw mesh.

File in the ZIPBytesSHA256 prefixContent
sun.stl156578478c41d5c2f9324-tooth sun, tip diameter 52.0 mm, bore diameter 8.0 mm
planet-1.stl15657846ebdea930e6524-tooth planet, tip diameter 52.0 mm, bore diameter 4.0 mm
planet-2.stl1565784f212e5ea7d16Same geometry as planet-1.stl, separate archive entry
planet-3.stl15657841cf71441207aSame geometry as planet-1.stl, separate archive entry
ring.stl23049849805ac37e16a72-tooth internal ring, outer diameter 157.0 mm
recipe.json868af0493b812efParameters, derived values and part transforms
README.txt373d4a5887ab11fUnits, assembly note and stated limits
README.txt in the exported archive
GenerateSTL planetary gear set. Units: millimeters.
Each STL uses individual print coordinates with its base at z=0.
Print the sun, ring and 3 planet copies. Assemble axially.
Modeled tangential backlash per mesh: 0.2 mm.
recipe.json supplies assembly positions and rotations in radians.
Carrier, bearings and shafts are not included. No physical print or load validation.

What the exported files measure

The numbers below come from the exported vertex data, not from the input form. Teeth were counted from the top face profile of each mesh, holes from the smallest radius, and the volumes cross-check the two bore diameters: the planet carries 377 mm3 more material than the sun, which matches a bore difference of pi x (4 squared - 2 squared) x 10 mm.

Every part starts at z = 0 and ends at 10 mm, so the exported orientation already matches a print bed. No edge in any of the five meshes is used by more than two facets, and every signed volume is positive. Digital validity of this kind is a statement about the files, not about a printed part.

Measurement from the exportSunPlanetRing
Teeth counted from geometry242472
Tip or outer diameter52.0 mm52.0 mm157.0 mm
Bore radius4.0 mm2.0 mmno bore
Smallest radius in the mesh4.0 mm2.0 mm70.0 mm, internal tooth tip
Height, z from 0 to 1010.0 mm10.0 mm10.0 mm
Non-manifold edges000
Triangles including the signature313143131446098
Signed volume17144.4 mm317521.4 mm329975.2 mm3

What the STL set does not include

The download contains gears only. A working mechanism also needs a carrier with planet pins, shaft support, a ring mount that takes the reaction torque and a housing. None of that is generated or tested in this workflow, and the readme states the same limit inside every archive.

No part of this process is a print or load test. Prusa's modelling guidance treats orientation and clearance as printer and material dependent, with no single universal value. Its 0.2 mm machine accuracy and its initial value of about 0.3 mm for movable parts are starting points for a calibration print, not a backlash specification for this gear set.

Backlash and root clearance are easy to misread. Backlash is the play between the flanks of a meshed pair, and the 0.2 mm above is modelled as tangential clearance per mesh. Each planet has two meshes, one with the sun and one with the ring, and the train accumulates play across them.

A standard full depth profile uses a 1.00 module addendum and a 1.25 module dedendum, which leaves 0.25 module of clearance. KHK describes that clearance as the gap that lets the two gears mesh without interference. Extra root clearance increases the dedendum; it does not create a root fillet.

When an assembly jams, separate the causes: a wrong tooth phase, flank interference, axis positions outside tolerance or a printing defect. When the output speed looks wrong, check which member is really fixed and whether the output is read from the carrier instead of a planet spinning on its axle. The 3D printed gears guide adds a repeatable fit test for printed pairs, and the gear module guide explains the tooth size that all three parts share.

Frequently asked questions

What does the carrier do?

The carrier holds the planet axes at the centre distance and keeps the three planets evenly spaced. With the ring fixed it is the output member, so it also carries the pin loads and the reaction of the output torque. It is not part of the exported ZIP and has to be designed separately.

Why does a 24/72 set give 4:1 with the ring fixed?

Because the reduction follows i = 1 + zR / zS while the ring is fixed and the sun drives. With 72 ring teeth and 24 sun teeth that is 1 + 3 = 4, so 1000 rpm at the sun becomes 250 rpm at the carrier in the same direction. The relation only holds while the ring is really grounded.

Are tooth-count equations enough to approve a design?

No. The three tooth-count conditions only show that three planets can be spaced equally. KHK asks for involute, trochoid and trimming interference checks on top of them, and print fit, axis positions and the carrier stay separate. This guide measured a valid export, not a working mechanism.

Does the export include the carrier and a complete gearbox?

No. The ZIP contains the sun, three planets and the ring as STL files plus recipe.json and README.txt. Carrier, shafts, bearings and housing are named as not included in the readme, and no print or load validation is claimed for the set.

Related generators