Gear Generator (STL)
Pick the number of teeth and the module (tooth size), add a mating gear to set the ratio, and choose the shaft hole. The preview turns the pair at the real ratio, the table shows every diameter and the centre distance, and you download a watertight STL or 3MF ready to slice.
How to make a 3D printable gear
- 1
Set the teeth and size
Teeth count plus module in mm (or diametral pitch in inches). Both gears in a pair must use the same module and pressure angle.
- 2
Add the mating gear
Its teeth set the ratio: 20 and 40 teeth give 2:1. Mount the shafts at the centre distance shown.
- 3
Fit the shaft
Round, D-flat, keyway or hex hole, plus an optional hub. Printed holes come out small, so keep the 0.2 mm allowance.
- 4
Download and print
STL for each gear or one 3MF with both. Print each gear flat on the bed with 4 or more walls.
Need more than a gear?
Turn a photo or text into a printable 3D model with AI, with an STL download. The AI generators use credits; this gear tool does not.
More free tools: 3D print cost calculator · STL viewer
Gear formulas (module system)
These are the standard involute gear formulas the generator uses, with a worked example for 20 teeth at module 2 and a 20° pressure angle. The tooth flanks are true involutes from the base circle, with a rounded root fillet.
| Pitch diameter d | d = z × m (20 × 2 = 40 mm) |
|---|---|
| Outside diameter da | da = d + 2m (44 mm) |
| Root diameter df | df = d − 2.5m (35 mm, root clearance 0.25m) |
| Base circle db | db = d × cos(pressure angle) (37.588 mm at 20°); the involute flank starts here |
| Circular pitch p | p = π × m (6.283 mm tooth to tooth along the pitch circle) |
| Centre distance a | a = m × (z1 + z2) / 2 (20 + 40 teeth: 60 mm) |
| Gear ratio | z2 / z1 (40 / 20 = 2 : 1; the big gear turns at half the speed with twice the torque) |
| Diametral pitch | m = 25.4 / DP (DP 12 = module 2.117 mm) |
Tips for 3D printing gears
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.5 to 2 is sturdier. Below about 0.8, use a 0.2 mm nozzle or a resin printer. |
|---|---|
| Orientation | Print each gear flat on the bed so the teeth are built from the side. Teeth printed standing up snap along the layer lines. |
| Layer height | 0.12 to 0.2 mm. Thinner layers give smoother flanks and quieter running. |
| Walls and infill | 4 to 6 walls so the teeth are solid plastic, then 40 to 60% infill for the body. |
| Material | PLA is stiff and accurate for light loads. PETG is tougher and less brittle. Nylon wears best for gears that run a lot. |
| Fit | Check the first print on its shafts. If it binds, add 0.05 to 0.1 mm of backlash; if a hole is tight, raise the allowance. |
| Elephant foot | A flared first layer makes the teeth rub. Turn on elephant-foot compensation or add a small chamfer by sanding. |