The method
How to design gears that mesh
Pick a type and the tooth counts, set the module and face width, then add a bore that fits your shaft. The generator cuts every tooth the way a gear-cutting machine does, by rolling a virtual rack around the blank, so the flanks are true involutes, the roots are filleted and small pinions show real undercut. It then turns the set through a full tooth and checks no tooth touches another.
- Choose the type: a spur pair or train, a ring gear, a planetary set, a rack and pinion or a bevel pair.
- Set the teeth: the ratio is the tooth counts divided; the animation shows it.
- Size them: module (or diametral pitch), pressure angle, face width and backlash.
- Fit the shaft: pick a motor, bearing or nut preset, or measure your own.
- Download: each gear is its own object, laid out on your printer’s plates.
Reference
Gear sizes at a glance
| Size | Formula | Example: module 2, 20 teeth |
|---|---|---|
| Pitch diameter | m × z | 40 mm |
| Tip diameter | m × (z + 2) | 44 mm |
| Root diameter | m × (z − 2.5) | 35 mm |
| Base circle | pitch diameter × cos α | 37.59 mm at 20° |
| Centre distance | m × (z1 + z2) ÷ 2 | 40 mm with a 20-tooth mate |
| Diametral pitch | 25.4 ÷ m | 12.7 teeth per inch |
| Planetary ratio | 1 + ring ÷ sun (ring held) | 4 : 1 for 16 and 48 |
| Rack travel | π × pitch diameter per turn | 125.7 mm |
Helical gears use the transverse module, m ÷ cos β, for their diameters. Profile shift moves the centre distance; the generator solves the working pressure angle for you.
Types
Which gear type to use
| Type | Good for | Notes |
|---|---|---|
| Spur | Simple, efficient drives | Easiest to print and check |
| Helical | Quieter, smoother running | Push sideways along the shaft |
| Herringbone | Smooth and self-centring | No sideways push; a ring gear comes in two halves |
| Ring gear | Compact same-direction drives | The ring needs about 10 more teeth than the pinion |
| Planetary | High ratio in a small round box | Tooth counts must meet the assembly conditions |
| Rack and pinion | Turning into straight motion | Racks print flat and join end to end |
| Bevel | Turning a corner at 90° | Printed on the flat back, no supports |
Shafts
Bore presets and where they come from
| Preset | Size | Source |
|---|---|---|
| Micro gear motor | 3 mm D-shaft, 2.5 mm across the flat | Manufacturer’s dimension drawing |
| 42 mm stepper motor | 5 mm D-shaft, 0.5 mm flat | Manufacturer’s product page |
| 608 bearing | 22 mm outside diameter | Bearing catalogue (8 × 22 × 7 mm) |
| Driver bit | 1/4 inch hex, 6.35 mm across flats | ISO 1173 hex shank |
| Hex nuts M3 to M8 | 5.5, 7, 8, 10 and 13 mm across flats | ISO 4032 |
| Keyed shafts | Key 3 to 6 mm for 10 to 20 mm shafts | DIN 6885-1 parallel keys |
Motors vary between makers. Measure your shaft with calipers, and set a custom size if it differs.
Printing
Printing gears that run smoothly
- Print flat on the face: every layer then holds whole teeth.
- No supports: straight, helical (up to 45°) and herringbone teeth, racks and bevel gears all print without them.
- Elephant foot: a squashed first layer jams gears; turn on your slicer’s compensation.
- Backlash: start at 0.2 mm. If a pair binds, add 0.05 to 0.1 mm; if it rattles, take some away.
- Material: PLA suits light duty. PETG is tougher and less brittle; nylon is tougher again but must be dried and is harder to print.
- Set screws: drop the nut into the slot in the hub before you fit the gear.
Questions, answered
Is it free to use?
Yes. No account, no watermark, no limits.
Will it fit my printer?
Choose your printer below the preview. Every gear, ring and rack is laid out on its plates, over several plates if needed.
Can I sell gears I print?
The designs you make are yours. The tooth shapes come from standard textbook geometry anyone may use. We make no claims about strength or fitness for a particular use, so test parts for your load.
Why do my small pinions look thin at the root?
That is undercut: with few teeth, the cutter removes part of the flank. The generator warns you and suggests a profile shift that removes it.
Why won’t my planetary set build evenly?
Planets only fit evenly spaced when (sun + ring) ÷ planets is a whole number. The generator spaces them unevenly so they still mesh, and suggests the nearest tooth counts that work.
Sources
Print advice is a starting point drawn from these references, checked on 2026-11-10. Community posts are one maker's experience, not a specification.
- Involute gear profile KHK Gears, Gear Technical Reference
- Calculation of gear dimensions KHK Gears, Gear Technical Reference
- Gear systems (planetary conditions) KHK Gears, Gear Technical Reference
- Gear backlash KHK Gears, Gear Technical Reference
- Micro metal gearmotor dimension drawing Pololu
- Stepper motor, 42 × 48 mm (shaft dimensions) Pololu
- 608 ball bearings, 8 × 22 × 7 mm MISUMI
- Screwdriver bit (ISO 1173 hex shanks) Wikipedia
- DIN EN ISO 4032 hexagon nuts fasten.it
- DIN 6885-1 parallel keys fasten.it
- Elephant foot compensation Prusa Research
- PETG Prusa Research
- Polyamide (nylon) Prusa Research