BuildCAD AI

Gear generator and simulator

Set the module, the teeth on each gear, the face width, the backlash, the pressure angle, the bores and an optional hub, and watch the pair mesh on a test stand with a pin through each bore. The gears are built with exact involute teeth on our CAD engine, placed at the right centre distance and turned with every pose checked for collisions; the ratio, centre distance and output speed update as you go.

  • Free, no account to download
  • STL, 3MF, STEP, DXF and SVG
  • Motion checked for collisions

Parameters

Loading the sliders...

Ask the designer to change it

Sliders and downloads are free. The AI designer uses credits; new accounts start with free ones.

Download STL or 3MF for your slicer, STEP to keep editing in Fusion, Onshape or FreeCAD, or the tooth profile as DXF or SVG for a laser cutter or CNC. Free, and no account is needed to download.

How to choose the module, the teeth and the backlash

Module: the size of the teeth

The module (m) is the pitch diameter divided by the number of teeth, in millimetres. It sets the size of every tooth, and both gears of a pair must share it. On a 0.4 mm nozzle, 1.5 mm is a good default: the tip of each tooth is wide enough for two perimeter lines. Go down to 1.0 mm only for light loads such as a clock or a dial, and up to 2 or 2.5 mm for gears that carry real torque.

Teeth and ratio

The ratio is the teeth of the driven gear over the teeth of the driving gear. A 12 tooth pinion driving a 36 tooth wheel gives 3:1: the wheel turns three times slower, three times stronger, and the other way round. Keep the smaller gear at 17 teeth or more at a 20 degree pressure angle to avoid undercut (teeth thinned at the root); 12 to 14 teeth work with a profile shift. The generator reports undercut when the pinion is too small.

Backlash: the play between the teeth

Printed teeth come out within about 0.15 mm of the model, so a gear pair with zero backlash binds. The generator starts at 0.25 mm of total play, which suits most printers; a tuned printer runs 0.15 mm, an older printer or PETG 0.3 mm, and planetary sets up to 0.5 mm. Too much backlash makes the output wobble when you reverse.

Face width and bores

A face width of about 8 x module (6 to 12 x m) is a good balance of strength and print time: 12 mm for module 1.5 (the generator starts at 6 mm for a quick test print). For the bore, a smooth printed hole on a smooth shaft slips and creeps under load; use a D or hex shaft with 0.2 mm of clearance, or a heat-set insert with a set screw. A bore too big for its gear is reduced to leave a rim, and the generator says so.

Module and tooth size reference

Standard involute spur gears, 20 degree pressure angle: tooth height 2.25 x m, tooth thickness pi x m / 2, pitch diameter m x z.
ModuleTooth heightTooth thickness (pitch line)Pitch diameter, 20 teethGood for
0.8 mm1.80 mm1.26 mm16 mmSmall dials and models, 0.25 mm nozzle
1 mm2.25 mm1.57 mm20 mmLight duty: clocks, toys, fidgets
1.25 mm2.81 mm1.96 mm25 mmCompact gearboxes and planetary sets
1.5 mm3.38 mm2.36 mm30 mmThe default on a 0.4 mm nozzle
2 mm4.50 mm3.14 mm40 mmGearboxes that carry load
2.5 mm5.63 mm3.93 mm50 mmHigh torque, large printed gears

Printing gears

  • Print gears lying flat, with 5 or more walls so the teeth are solid plastic.
  • PETG wears less than PLA in gears that run for a long time.
  • Chamfer the bottom edge by about 0.5 mm so elephant foot does not lock the teeth.
  • Check the pair on the bench before building a whole gearbox around it.
Clearance per side (radial), 0.4 mm nozzle, 0.2 mm layers, PLA or PETG. Print the tolerance test to replace the defaults with your printer's numbers.
FeatureStart withRangeNotes
Gear backlashcentre distance + 0.15 mm+0.10 to +0.30Planetary sets often need 0.3 to 0.5 mm
Gear bore on a D or hex shaft+0.2 mm+0.15 to +0.3No press fit on a smooth printed bore: it creeps
Metal pin, slip / turninghole = pin + 0.4 / + 0.5 mm+0.3 to +0.6Small holes need the most correction
608 bearing pocket (22 mm)22.15 mm22.1 to 22.3Axis vertical, with an entry chamfer
First layer (elephant foot)0.5 mm x 45 deg chamfer0.3 to 1.0 mmOn the bottom edges of both mating parts; never start a moving gap on layer 1

Spur gear formulas

pitch diameter d = m x zoutside diameter = m x (z + 2)root diameter = m x (z - 2.5)centre distance a = m x (z1 + z2) / 2ratio = z2 / z1

Example: module 1.5, 12 and 36 teeth. Pitch diameters 18 and 54 mm, centre distance 1.5 x 48 / 2 = 36 mm, ratio 3:1. The generator places the gears at this distance plus the backlash and phases the teeth so they mesh at rest.

What the motion check does

Most gear tools animate a pair by multiplying the ratio; nothing checks that the teeth actually clear each other while they turn. Here the real solids are turned through a full cycle on our CAD engine and the distance between them is measured at every pose. The line under Play gives the smallest clearance found and where; when teeth touch, it says at which angle, and the gears turn red there. The evidence also lists the centre distance, the ratio from the teeth and the contact ratio (above 1.2 means a tooth pair is always in contact).

FAQ

Questions about the gear generator

What module should I use for 3D printed gears?

1.5 mm is a good default on a 0.4 mm nozzle. Go down to 1.0 mm only for light loads; below that the teeth are too thin for two perimeter lines. Use 2 to 2.5 mm for gears that carry real torque. Both gears of a pair must have the same module and pressure angle. The generator starts at 1.5 mm and goes from 0.5 to 4 mm.

How much backlash do printed gears need?

Plan on 0.10 to 0.30 mm of total play. Printed teeth come out within about 0.15 mm of the model, so 0.15 mm works for PLA or PETG on a tuned printer and 0.25 mm (where the generator starts) on most others. Planetary sets and gears that run in a housing often need 0.3 to 0.5 mm.

How many teeth can the smallest gear have?

At a 20 degree pressure angle, 17 teeth avoid undercut. With a profile shift you can go down to about 12 teeth. The generator reports undercut when the pinion has too few teeth.

How do I calculate the centre distance and the gear ratio?

Centre distance = module x (teeth 1 + teeth 2) / 2, plus a little extra if you add backlash by moving the gears apart. The ratio is teeth of the driven gear / teeth of the driving gear: a 12 tooth pinion driving a 36 tooth wheel gives 3:1, and the wheel turns the other way.

Can I export the gear profile as DXF or SVG?

Yes. Next to STL, 3MF and STEP, the download menu has the tooth profile of each gear as DXF (for laser cutters, CNC and CAD sketches) and SVG, at the size and tooth count on screen.

How fast does the output gear turn?

Output speed = input speed x driving teeth / driven teeth. A 12 tooth pinion at 60 rpm drives a 36 tooth wheel at 20 rpm, in the opposite direction. The simulator shows the output speed for the input speed you type.

Is the gear generator free?

Yes. The sliders, the motion check and the STL, 3MF and STEP downloads are free and need no account. Saving the gears to your designs needs a free account, and asking the AI designer to change them uses credits.

Can I open the gears in Fusion 360, Onshape or FreeCAD?

Yes. The STEP download is an exact solid model, not a mesh, so it opens as editable bodies in Fusion 360, Onshape, SolidWorks and FreeCAD.