Spur gear generator with a true involute profile

Set module, tooth count, pressure angle, face width and bore — the generator computes a proper involute tooth profile, not a cosmetic approximation, so printed pairs actually mesh. Because the result is parametric CAD, hubs, keyways and lightening holes are one agent edit away.

Open the generator →Edit with AI

Use it right here

The real generator runs in your browser: set the parameters, then download STEP or STL. Nothing to install, no sign-up.

Spur Gear Generator

The first open downloads the CAD engine (about 20 MB).

Parameters you can tune

Each parameter below rebuilds real geometry on every change — this is parametric CAD, not a scaled mesh.

ParameterDefaultRangeWhat it does
ModuleMODULE2 mm1 – 5Tooth size; mating gears must share it.
Number of teethTEETH208 – 120Pitch diameter = module × teeth.
Pressure anglePRESSURE_ANGLE20 °20 / 2520° standard; 25° for stubbier, stronger teeth.
Face widthFACE_WIDTH10 mm3 – 40Gear thickness along the axis.
Bore styleBORE_STYLEcircularnone / circular / hexCenter hole: round shaft or hex socket.
Bore sizeBORE_D8 mm2 – 30Shaft diameter, or hex across-flats.

Every parameter can go in the page's link, so one link opens exactly the part you want. Example (Module 1.5, 40 teeth, 6 mm bore):https://www.forgent3d.com/en/generators/spur-gear-generator?MODULE=1.5&TEETH=40&BORE_D=6

Common sizes

Pitch diameter = module × teeth, outside diameter = module × (teeth + 2), root diameter = module × (teeth − 2.5). Each row opens the generator on that gear.

ModuleTeethPitch ØOutside ØRoot Ø
120202217.5Open →
140404237.5Open →
1.520303326.25Open →
1.540606356.25Open →
215303425Open →
230606455Open →
2.520505543.75Open →
320606652.5Open →

Two gears mesh at center distance = module × (teeth₁ + teeth₂) / 2: module 2 with 15 and 30 teeth gives 45 mm.

What's in the STEP file

STEP AP214 in millimetres, exact B-rep — it opens directly in SolidWorks, Fusion, FreeCAD, Onshape or Inventor, and goes straight into a CNC quote form. STL for the slicer is one click too.

How it compares

This generatorTypical online STL generatorVendor CAD library
Any size within the rangeYesYesCatalog sizes only
STEP with exact surfacesYesUsually an STL mesh onlyYes
Changes the sliders don't cover“AI edit” on the pageNoNo
Account needed to downloadNoUsually noOften

Let AI change it

Edit with AI on the page

Press “AI edit” in the generator and say what to change — a keyway, holes, a different shape. The AI edits the part's model.py and it rebuilds in your browser, with undo. A few edits a day are free without signing in; to keep the result or go further, copy it into your models and continue with the AI agent.

Edit with AI →

Keep going in your workspace

For bigger changes, several rounds, or a part you want to keep: copy it into your models (free account). The Forgent3D AI agent reads the model.py, edits it, rebuilds it and checks the result itself.

Copy and continue with the AI agent →

How it works

  1. 1.Open the generator — the model builds right in your browser, nothing to install.
  2. 2.Tune dimensions and options in the parameter panel; the geometry rebuilds live in 3D.
  3. 3.Export STL / STEP for printing — or ask the AI agent for features beyond the sliders.

FAQ

Which module works for FDM printing?

With a 0.4 mm nozzle, stay at module 1 or above; module 1.5–2 is the sweet spot for strong, quiet printed gears. Below module 1 the tooth flanks lose their involute shape to the nozzle radius.

How do I make two gears that mesh?

Generate both with the same module and pressure angle, any tooth counts you like. Center distance = module × (teeth₁ + teeth₂) / 2. Add 0.1–0.2 mm to that distance for printed backlash.

What material and settings for printed gears?

PETG for general use, nylon for high wear. Print flat, 100% infill or at least 5 perimeters so the teeth are solid, 0.15 mm layers keep flanks smooth.

How do I get a STEP file of a spur gear with module 2 and 30 teeth?

Put the numbers in the link: https://www.forgent3d.com/en/generators/spur-gear-generator?MODULE=2&TEETH=30 opens the generator on exactly that gear. Check it in 3D, then download STEP (or STL). It is free, needs no account, and the file opens directly in SolidWorks, Fusion, FreeCAD or Inventor.

Can it add a keyway, a hub or a set-screw hole?

Not with a slider — with a sentence. Press “AI edit” in the generator and say “add a 3 mm keyway, 1.4 mm deep”: the AI edits the gear’s own model.py (the keyway’s width and depth can become new parameters), the part rebuilds in your browser and exports as usual. A few edits a day are free without signing in.

Can I sell prints made with these generators?

Yes. Models you generate and the STL / STEP files you export are yours: print them, sell the prints, or use them in a product. No attribution to Forgent3D is required.

More generators

Already have your own .scad file? Convert OpenSCAD to STEP → · Preview it in the browser →