Open FlatCad

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

TermFormulaFor 24 teeth, module 2
Pitch diametermodule × teeth48 mm
Outside (tip) diametermodule × (teeth + 2)52 mm
Root diametermodule × (teeth − 2.5)43 mm
Base circlepitch diameter × cos(pressure angle)45.1 mm at 20°
Centre distance of a pairmodule × (teeth 1 + teeth 2) ÷ 236 mm with a 12-tooth gear
Ratioteeth 1 ÷ teeth 22 : 1

Tips for laser-cut gears

What each setting does

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):

Teeth14.5°20°25°
60.56 mm0.40 mm0.22 mm
80.64 mm0.48 mm0.30 mm
120.73 mm0.56 mm0.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.

Open FlatCad, free, no signup

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.