Spur gear generator
Generate an involute spur gear, or a meshing pair, as a DXF or SVG for a laser cutter, CNC router or 3D printer. Type the number of teeth and the module; the generator draws exact involute teeth with your bore and backlash, and shows the centre distance and ratio.
Gear settings
Gear terms in one table
| Term | Formula | For 24 teeth, module 2 |
|---|---|---|
| Pitch diameter | module × teeth | 48 mm |
| Outside (tip) diameter | module × (teeth + 2) | 52 mm |
| Root diameter | module × (teeth − 2.5) | 43 mm |
| Base circle | pitch diameter × cos(pressure angle) | 45.1 mm at 20° |
| Centre distance of a pair | module × (teeth 1 + teeth 2) ÷ 2 | 36 mm with a 12-tooth gear |
| Ratio | teeth 1 ÷ teeth 2 | 2 : 1 |
Tips for laser-cut gears
- Use module 1.5 or more in 3 mm plywood or acrylic: smaller teeth char and break.
- Stack two or three gears glued together for a wider face if the gear carries real load.
- Drill the bore exactly: cut it 0.1–0.2 mm under and ream it, or set the kerf with kerf offset in FlatCad.
- Check the mesh by cutting a pair from card first: it costs nothing and shows tight spots.
What each setting does
- Module is the tooth size. The circular pitch, one tooth plus one gap measured along the pitch circle, is π × module: 6.28 mm at module 2, 4.71 mm at module 1.5. Each tooth is 2.25 × module deep from tip to root, so module 2 teeth are 4.5 mm deep.
- Pressure angle is the angle the tooth faces push along. 20° is the modern standard and what most bought gears use. 14.5° is the older standard, still found on old machines and some kits: the teeth are slimmer at the root and have wider tips. 25° gives stubbier, stronger roots but narrower, pointier tips. Two gears only mesh if both module and pressure angle match.
- Bore is a plain circle at the centre. It must stay under 90% of the root diameter or you get The bore of gear 1 is bigger than its root circle; for a gear that carries load, leave at least two modules of material between the bore and the roots.
Backlash, worked through
The generator thins every tooth at the pitch circle by half the backlash you type. Two meshing gears each lose that half, so the play between them adds up to exactly the number in the box. With module 2 and 0.1 mm, an ideal tooth would be 3.142 mm thick at the pitch circle (half of 6.283 mm); the drawn tooth is 3.092 mm, on both gears.
A laser takes away more. The beam removes about half the kerf on each side of the line, so each tooth comes out one full kerf thinner than drawn. With a 0.15 mm kerf a laser-cut pair gains roughly 0.3 mm of play on top of the typed backlash, which is why 0 to 0.1 mm is plenty there. For a tight mesh, offset the outline outward by half the kerf in FlatCad (kerf offset).
The axle holes matter just as much. Moving the centres apart by Δ adds about 2 × Δ × tan(pressure angle) of backlash: holes 0.1 mm too far apart add 0.07 mm at 20°, while holes 0.1 mm too close make the same pair bind. If in doubt, err wide.
Small gears and pointed teeth
The involute only exists outside the base circle. When the root circle is smaller, the generator joins the involute to the root with a straight radial flank: at 20° that is every gear under 42 teeth (14.5°: under 79, 25°: under 27). This is not the undercut a gear hob would cut below about 17 teeth at 20°, so very small pinions run a little tighter near the root than a bought gear.
Fewer teeth and a higher pressure angle both narrow the flat top of each tooth. The generator's own geometry at module 1 with 0.1 mm backlash gives these tip widths (they grow roughly in step with the module):
| Teeth | 14.5° | 20° | 25° |
|---|---|---|---|
| 6 | 0.56 mm | 0.40 mm | 0.22 mm |
| 8 | 0.64 mm | 0.48 mm | 0.30 mm |
| 12 | 0.73 mm | 0.56 mm | 0.38 mm |
A tip narrower than your kerf burns to a point, and once the tip has no width left at all the generator stops with With this backlash the teeth come to a point: lower it. Lower the backlash, go to 20°, or use more teeth.
Worked example: a 3 : 1 reduction in 3 mm plywood
A small motor with a 5 mm shaft has to turn a drum on an 8 mm axle three times slower. At module 1.5, type 36 teeth with an 8 mm bore and a second gear of 12 teeth with a 5 mm bore. The status line reports pitch diameters of 54 and 18 mm, outside diameters of 57 and 21 mm, a centre distance of 1.5 × (36 + 12) ÷ 2 = 36 mm and a ratio of 3 : 1. The 12-tooth root circle is 14.25 mm, so the 5 mm bore leaves a 4.6 mm rim. Tick Lay the gears apart (it leaves 3 mm between the tip circles) to cut both from one strip, then cut the frame with its axle holes 36 mm apart.
Printed gears and what this tool does not make
For a 3D print, download the DXF and give it a thickness (the face width, often 6–10 mm) in DXF to STL. Turn on your slicer's elephant-foot compensation, or the squashed first layer will bind the mesh. For gears that print already assembled, see the print-in-place gear bearing.
Helical, bevel, worm and internal ring gears, racks and profile-shifted teeth are outside what this generator draws: use a full CAD gear tool for those.
Building a gearbox or a toy? The box generator makes the case, and FlatCad draws the axle holes to exact positions.
Questions
What is the module?
The size of the teeth: pitch diameter divided by the number of teeth. Gears only mesh when they have the same module and pressure angle. For a gear in diametral pitch (DP), the module is 25.4 ÷ DP; a 20 DP gear is module 1.27.
How far apart do I put two gears?
The centre distance is the module × (teeth of gear 1 + teeth of gear 2) ÷ 2. The generator shows it and places the second gear there, already meshing.
How much backlash should I add?
For laser-cut wood or acrylic, 0 to 0.1 mm: the kerf already makes every tooth about one kerf width thinner. For 3D-printed gears start around 0.2–0.3 mm. Half the backlash is taken off each gear's teeth, so a meshing pair has the full amount between them.
Why do gears with few teeth look odd?
Below about 17 teeth at 20°, a cutter would undercut the tooth roots. This generator draws a straight radial flank below the base circle instead, which cuts cleanly on a laser and meshes fine for light-duty use.
Can I add spokes or a hub?
Press Open in FlatCad: the gear opens as an editable drawing where you can add holes, spokes, a keyway or a D-flat with the drawing tools, then export a DXF.
Is the tooth profile a true involute?
Yes. Each flank follows the involute of the base circle, sampled finely enough that the DXF is within a few microns of the exact curve. The tips and roots are exact circular arcs in the SVG.