Free generator · Runs in your browser

Gear generator Teeth that mesh.

Design involute spur, helical and herringbone gears, ring gears, planetary sets, racks and bevel pairs. Watch them turn at the true ratio, check they clear, fit your motor shaft, and download each gear ready to print.

  • Private by designNothing leaves this device
  • Seven gear typesSpur to planetary and bevel
  • No supportsEvery gear prints flat
  • Ready to sliceEach gear its own object

Drag to rotate · Scroll or pinch to zoom · Arrow keys when focused

Size
—
Filament
—
Parts
—
Fits
—

Start from

Gear set

Type
Teeth
20 °

Meshing gears get opposite hands automatically. Up to 45° prints without supports.

Gears in the train
15
30
30
30
30
30
15
45

At least 10 more than the pinion keeps the tips from clashing.

16
48

Ratio with the ring held: 1 + ring ÷ sun. The planets get (ring − sun) ÷ 2 teeth.

Planets
4.0 mm

The planets turn on pins on the carrier, with 0.3 mm clearance.

4.0 mm
0

3.4 mm holes on the wall, which widens to fit them.

18
20

Long racks can be printed in pieces and placed end to end: every rack starts and ends mid-gap.

6.0 mm
16
32

Shafts meet at 90°. Each gear prints on its flat back.

Mesh and motion

How fast gear 1, the sun or the pinion turns. The table shows every gear’s speed.

Drawn slowly so you can follow it; the speed ratios are true. Bevel gears are drawn side by side.

Teeth

Size by
2.00 mm

Pitch diameter = module × teeth. 1 to 2 mm suits most printed gears; under 0.8 mm needs a fine nozzle.

20 teeth/in

Teeth per inch of pitch diameter. Module = 25.4 ÷ pitch.

Pressure angle
8.0 mm
0.20 mm

Play between meshing teeth on the pitch circle; each gear’s teeth are thinned by half of it. Printed gears usually need 0.1 to 0.3 mm.

0.00

Positive shift thickens small pinions and removes undercut. The centre distance follows.

0.00
Tooth shape details
1.00

Tooth height above the pitch circle, in modules. 1 is standard.

1.25

Depth below the pitch circle, in modules. The difference from the addendum is the tip clearance; 1.25 is standard.

0.30

Tip radius of the virtual cutter, in modules. It rounds the tooth root, which is where teeth break.

0.04

Thins the tooth tips slightly, in modules, so printing errors don’t make the tips catch.

Bore and hub

Shaft sizes are from published drawings; nut sizes from ISO 4032. Measure your own part if unsure.

Shape
5.0 mm
4.5 mm

From the flat to the far side of the shaft. Measure it with calipers.

5.50 mm

The keyway follows DIN 6885-1 for the shaft diameter.

0.20 mm

Added to the shaft size, because holes print small. Check yours with the tolerance test generator.

Other gears and the carrier
5.0 mm
0.0 mm

A raised boss around the bore. 0 for none.

16.0 mm
Set screw with captive nut
Lighten large gears
5

Colours and view

Preview

Downloads are always laid out flat for printing, each gear its own object.

Download

Building the preview…

Print it well

    Everything is built on this device. Nothing you type or upload is sent anywhere.

    Advertisement

    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.

    1. Choose the type: a spur pair or train, a ring gear, a planetary set, a rack and pinion or a bevel pair.
    2. Set the teeth: the ratio is the tooth counts divided; the animation shows it.
    3. Size them: module (or diametral pitch), pressure angle, face width and backlash.
    4. Fit the shaft: pick a motor, bearing or nut preset, or measure your own.
    5. Download: each gear is its own object, laid out on your printer’s plates.

    Reference

    Gear sizes at a glance

    SizeFormulaExample: module 2, 20 teeth
    Pitch diameterm × z40 mm
    Tip diameterm × (z + 2)44 mm
    Root diameterm × (z − 2.5)35 mm
    Base circlepitch diameter × cos α37.59 mm at 20°
    Centre distancem × (z1 + z2) ÷ 240 mm with a 20-tooth mate
    Diametral pitch25.4 ÷ m12.7 teeth per inch
    Planetary ratio1 + ring ÷ sun (ring held)4 : 1 for 16 and 48
    Rack travelπ × pitch diameter per turn125.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

    TypeGood forNotes
    SpurSimple, efficient drivesEasiest to print and check
    HelicalQuieter, smoother runningPush sideways along the shaft
    HerringboneSmooth and self-centringNo sideways push; a ring gear comes in two halves
    Ring gearCompact same-direction drivesThe ring needs about 10 more teeth than the pinion
    PlanetaryHigh ratio in a small round boxTooth counts must meet the assembly conditions
    Rack and pinionTurning into straight motionRacks print flat and join end to end
    BevelTurning a corner at 90°Printed on the flat back, no supports

    Shafts

    Bore presets and where they come from

    PresetSizeSource
    Micro gear motor3 mm D-shaft, 2.5 mm across the flatManufacturer’s dimension drawing
    42 mm stepper motor5 mm D-shaft, 0.5 mm flatManufacturer’s product page
    608 bearing22 mm outside diameterBearing catalogue (8 × 22 × 7 mm)
    Driver bit1/4 inch hex, 6.35 mm across flatsISO 1173 hex shank
    Hex nuts M3 to M85.5, 7, 8, 10 and 13 mm across flatsISO 4032
    Keyed shaftsKey 3 to 6 mm for 10 to 20 mm shaftsDIN 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.

    1. Involute gear profile KHK Gears, Gear Technical Reference
    2. Calculation of gear dimensions KHK Gears, Gear Technical Reference
    3. Gear systems (planetary conditions) KHK Gears, Gear Technical Reference
    4. Gear backlash KHK Gears, Gear Technical Reference
    5. Micro metal gearmotor dimension drawing Pololu
    6. Stepper motor, 42 × 48 mm (shaft dimensions) Pololu
    7. 608 ball bearings, 8 × 22 × 7 mm MISUMI
    8. Screwdriver bit (ISO 1173 hex shanks) Wikipedia
    9. DIN EN ISO 4032 hexagon nuts fasten.it
    10. DIN 6885-1 parallel keys fasten.it
    11. Elephant foot compensation Prusa Research
    12. PETG Prusa Research
    13. Polyamide (nylon) Prusa Research