---
title: "Spur Gear Generator — Involute Gears by Module & Teeth (STL / STEP) | Forgent3D"
description: "Generate involute spur gears online: module, tooth count, pressure angle, face width and bore (round or hex). True involute profile, free STL / STEP export."
url: https://www.forgent3d.com/en/generators/spur-gear-generator
---

[Home](https://www.forgent3d.com/en) [3D print generators](https://www.forgent3d.com/en/generators) Spur Gear Generator

# 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 →](https://app.forgent3d.com/g/spur-gear?lang=en) [Edit with AI](https://app.forgent3d.com/g/spur-gear?lang=en&intent=edit)

## 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](https://app.forgent3d.com/g/spur-gear/thumb)

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

- Real involute flanks — pairs with matching module mesh correctly
- 20° or 25° pressure angle, 8 to 120 teeth
- Round or hex bore for shafts and standard hardware
- Matching rack: the gear rack generator uses the same tooth form

## Parameters you can tune

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

| Parameter | Default | Range | What it does |
| --- | --- | --- | --- |
| Module MODULE | 2 mm | 1 – 5 | Tooth size; mating gears must share it. |
| Number of teeth TEETH | 20 | 8 – 120 | Pitch diameter = module × teeth. |
| Pressure angle PRESSURE\_ANGLE | 20 ° | 20 / 25 | 20° standard; 25° for stubbier, stronger teeth. |
| Face width FACE\_WIDTH | 10 mm | 3 – 40 | Gear thickness along the axis. |
| Bore style BORE\_STYLE | circular | none / circular / hex | Center hole: round shaft or hex socket. |
| Bore size BORE\_D | 8 mm | 2 – 30 | Shaft 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](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.

| Module | Teeth | Pitch Ø | Outside Ø | Root Ø |  |
| --- | --- | --- | --- | --- | --- |
| 1 | 20 | 20 | 22 | 17.5 | [Open →](?MODULE=1&TEETH=20#use-here) |
| 1 | 40 | 40 | 42 | 37.5 | [Open →](?MODULE=1&TEETH=40#use-here) |
| 1.5 | 20 | 30 | 33 | 26.25 | [Open →](?MODULE=1.5&TEETH=20#use-here) |
| 1.5 | 40 | 60 | 63 | 56.25 | [Open →](?MODULE=1.5&TEETH=40#use-here) |
| 2 | 15 | 30 | 34 | 25 | [Open →](?MODULE=2&TEETH=15#use-here) |
| 2 | 30 | 60 | 64 | 55 | [Open →](?MODULE=2&TEETH=30#use-here) |
| 2.5 | 20 | 50 | 55 | 43.75 | [Open →](?MODULE=2.5&TEETH=20#use-here) |
| 3 | 20 | 60 | 66 | 52.5 | [Open →](?MODULE=3&TEETH=20#use-here) |

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

- Every tooth flank is one smooth surface: the exact involute, swept through the face width. The default 20-tooth gear exports as 83 faces — 40 flanks, 41 cylindrical faces (tip lands, root fillets, bore) and 2 flat faces — with no facets anywhere.
- The teeth are what a hob would cut: an ISO 53 profile-A rack rolled around the blank, so the root keeps the fillet of the rack tip, and pinions under about 17 teeth (at 20°) come out undercut, as real cut pinions do.
- Checked against a simulated hob cut: flank shape, tooth thickness and span measurement agree to within a micrometre.

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 generator | Typical online STL generator | Vendor CAD library |
| --- | --- | --- | --- |
| Any size within the range | Yes | Yes | Catalog sizes only |
| STEP with exact surfaces | Yes | Usually an STL mesh only | Yes |
| Changes the sliders don't cover | “AI edit” on the page | No | No |
| Account needed to download | No | Usually no | Often |

## Let AI change it

### Put the numbers in the link

Every parameter is a link parameter; the link below opens the example part. ChatGPT, Claude or any assistant can write one like it from the parameter list (names, units, ranges) at: [parameter list (JSON)](https://app.forgent3d.com/api/generators/spur-gear)

Example: [https://www.forgent3d.com/en/generators/spur-gear-generator?MODULE=1.5&TEETH=40&BORE\_D=6](https://www.forgent3d.com/en/generators/spur-gear-generator?MODULE=1.5&TEETH=40&BORE_D=6)

### 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 →](https://app.forgent3d.com/g/spur-gear?lang=en&intent=edit)

### 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 →](https://app.forgent3d.com/g/spur-gear?lang=en&intent=ai)

## 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

[Gear Rack Generator](https://www.forgent3d.com/en/generators/gear-rack-generator) [Helical Gear Generator](https://www.forgent3d.com/en/generators/helical-gear-generator) [Bevel Gear Generator](https://www.forgent3d.com/en/generators/bevel-gear-generator) [Washer & Spacer Generator](https://www.forgent3d.com/en/generators/washer-spacer-generator) [3D print generators →](https://www.forgent3d.com/en/generators)

Already have your own .scad file? [Convert OpenSCAD to STEP →](https://www.forgent3d.com/en/openscad-to-step) · [Preview it in the browser →](https://www.forgent3d.com/en/openscad-viewer) · [Have an STL? Convert it to STEP →](https://www.forgent3d.com/en/stl-to-step)
