How to 3D Print Gears That Mesh: Spur, Worm, Bevel and Planetary
Teeth, module and the right hole for your motor: how to design spur, helical, worm, bevel and planetary gears that mesh on the first print, and the settings that make them work.

Gears are one of the most useful things you can make on a 3D printer: a gearbox for an RC car, a drive for a robot, a slow turntable, a replacement for a broken gear in a mixer or a toy. They are also easy to get wrong. Teeth that are a little too tight, a hole that does not fit the motor shaft, or two gears with different tooth sizes, and nothing turns.
This guide shows you how to design and print gears that mesh on the first try: the two numbers that matter, which type of gear to choose, the right hole for common motors, and the print settings that work.
Try the toolGear GeneratorSpur, helical, bevel, worm, rack and planetary gears, full differentials and motor reduction gearboxes, with the hole your shaft needs, as STL.The two numbers that matter: teeth and module
Every gear in the Gear Generator is set by two numbers.
- Teeth (z): how many teeth the gear has.
- Module (m): the size of each tooth, in millimetres. It is the pitch diameter divided by the number of teeth.
Two gears only mesh if they have the same module (and the same pressure angle, which is 20° unless you change it). The number of teeth can be anything.
From these two numbers you get every size you need:
| Size | Formula | 20 teeth, module 1.5 |
|---|---|---|
| Pitch diameter | m × z | 30 mm |
| Outer diameter | m × (z + 2) | 33 mm |
| Centre distance to a 34-tooth gear | m × (z1 + z2) ÷ 2 | 40.5 mm |
| Gear ratio | z2 ÷ z1 | 1.7 : 1 |
You do not have to work these out: the generator shows them all, and writes them in the README with your files. If you only know how big the gear must be, set the outer diameter instead of the module and the tool works out the rest.

Which gear do you need?
| Gear | Use it for | Good to know |
|---|---|---|
| Spur | Most jobs: two parallel shafts | The simplest and easiest to print |
| Helical | Quieter, smoother drives | Angled teeth; the two gears have opposite hands |
| Herringbone | Strong, quiet drives that print well | Two helices in a V: no sideways push, no supports |
| Ring (internal) | Teeth on the inside, for compact drives | Used inside planetary gearboxes |
| Rack and pinion | Turning into straight-line movement | Steering, sliding doors, camera sliders |
| Bevel | Shafts at an angle (usually 90°) | Hand drills, differentials, corner drives |
| Worm and wheel | A big reduction in one step | Usually cannot be turned backwards: it holds its position |
| Planetary | A big reduction in a small, round gearbox | Sun, planets, ring and a carrier |

A planetary set with a 12-tooth sun and 12-tooth planets needs a 36-tooth ring. With the ring held still, the sun drives the carrier at 4 : 1. The generator works out the ring for you and makes the sun, the planets, the ring and a carrier with printed pins for the planets.
The right hole for your motor or shaft
A gear that slips on its shaft is useless, so pick the hole from the list of common motors and shafts. The tool adds a print clearance (0.2 mm by default) so the gear slides on without a hammer.
- BO / TT yellow motor (the motors in most Indian robot and RC kits): double D, 5.5 mm across the round, 3.7 mm across the flats
- N20 motor: D shaft, 3 mm with a 2.5 mm flat
- NEMA 17 stepper: D shaft, 5 mm with a 4.5 mm flat
- Round shafts: 5 mm, 8 mm (also a 608 bearing's inner hole) or the 22 mm outside of a 608 bearing
- Screws: M3 or M4, for a gear that turns on a screw
- 1/4" hex shafts, plus square, triangle, keyway and spline holes for your own builds
Add a hub to give a set screw something to bite on, and lightening holes on big gears to save filament and print time.
Worm gears: a big reduction in one step
A worm is a screw that turns a gear. With a single-start worm, every turn of the worm moves the wheel by one tooth, so a 34-tooth wheel gives 34 : 1 in one step. That is why worm drives are used in slow, strong mechanisms: a turntable, a winch, a lifting arm.

Because the angle of the worm's thread is shallow, the wheel usually cannot turn the worm backwards. The mechanism holds its position when the motor stops, without a brake.
Bevel gears: turning a corner
Bevel gears are cones with teeth. They connect two shafts at an angle, almost always 90°. The generator gives each gear the right cone angle for the pair, so a 16-tooth and a 24-tooth bevel (1.5 : 1) meet exactly on their tips.

Print settings that work
| Setting | Value |
|---|---|
| Filament | PETG or nylon for gears that work hard; PLA for light loads and models |
| Walls | 4 (so the teeth are solid plastic) |
| Infill | 40% or more |
| Layer height | 0.12–0.2 mm (finer for small teeth) |
| Orientation | Flat on the bed, as in the files. No supports. |
| First layer | Turn on elephant's foot compensation in your slicer |
If the gears are too tight or too loose
The teeth are true involutes, and the tool leaves 0.15 mm of backlash (a small gap between the teeth) by default, which suits most well-tuned FDM printers.
- Too tight or noisy: raise the backlash to 0.2–0.25 mm and print again. Check the elephant's foot first.
- Too loose or wobbly: lower it to 0.1 mm, and check the centre distance in your build matches the one in the README.
- The gear does not fit the shaft: raise the hole clearance (0.2 mm by default) a little, or lower it for a press fit.
- Teeth wear quickly: switch to PETG or nylon, add walls, and use a bigger module.
Ideas: what to make
- RC cars and robots: a reduction for a BO motor, a steering rack and pinion, a differential with bevel gears
- Kinetic art: a planetary set with a crank, gears that turn a display, a gear clock
- Repairs: a replacement for a broken gear in a mixer, a printer or a toy (measure the teeth and the outer diameter, and the tool works out the module)
- Workshop: a winch or a lifting arm with a worm drive, a slow turntable for photos
Questions
Is it free? Designing and previewing is free, with no account. The STL download costs a few credits per design; new accounts get welcome credits, and you can download your design again any time from your account. Every download comes with a commercial license, so you can sell what you print.
Do I need to know gear maths? No. Pick the type, the teeth and the hole; the tool sizes the second gear, works out the centre distance and the ratio, and shows the pair assembled in 3D so you can see them mesh before you print.
Can I print bolts and nuts for my gearbox too? Yes: the free Nuts & Bolts Generator makes metric bolts and nuts with real threads. And the free print cost calculator tells you what each part costs to print.
Ready? Open the Gear Generator, pick a gear, and turn the pair in the 3D preview before you print a single tooth. Questions? Email hello@themdcreations.com or DM us on Instagram at @mdcreationsbymanoj.
Sources and further reading
- Involute gear (Wikipedia)en.wikipedia.org
- Gear: module and pitch (Wikipedia)en.wikipedia.org
Linked from
- What's New on MD Creations Labs: November 2026News · 3 min read
- How to 3D Print an RC Differential and Reduction GearboxGuides · 8 min read
Keep reading
How to 3D Print Nuts and Bolts That Screw TogetherPrintable bolts, nuts and washers with real metric threads: which size and head to pick, how to set the thread clearance so they screw together, and the print settings for strong, smooth threads.Manoj Kumar · 21 November 2026
25 3D Printing Project Ideas: Useful Things to Make, Gift and Sell25 3D printing project ideas, from lamps and personalised gifts to gears, molds and festival decor: what to make, a tip for each, and the tool that turns the idea into a file in minutes.Manoj Kumar · 23 November 2026
What's New on MD Creations Labs: November 2026Everything new on MD Creations Labs in November: one credit balance and plans, the Gear Generator with RC differentials and gearboxes, Mold Maker, Nuts & Bolts, 50+ personalised models, autosave, share links and WhatsApp support.Manoj Kumar · 29 November 2026

