Quick answer
For a standard spur gear, pitch diameter = teeth × module, outside diameter = (teeth + 2) × module and root diameter = (teeth − 2.5) × module. A module 2, 20-tooth gear is 40.000 mm at the pitch circle, 44.000 mm outside and 35.000 mm at the root, and runs with a 40-tooth gear at 60.000 mm centres. In inch gears, module = 25.4 ÷ diametral pitch: a 16 DP, 24-tooth gear is 1.500" pitch and 1.625" outside diameter.
Tables of common values
Module 2, 20° spur gears with no profile shift or backlash (mm)
| Teeth | Pitch diameter | Outside diameter | Root diameter | Span (W) | Undercut |
|---|---|---|---|---|---|
| 12 | 24.000 | 28.000 | 19.000 | 9.193 over 2 teeth | yes |
| 15 | 30.000 | 34.000 | 25.000 | 9.277 over 2 teeth | yes |
| 17 | 34.000 | 38.000 | 29.000 | 9.333 over 2 teeth | yes |
| 18 | 36.000 | 40.000 | 31.000 | 15.265 over 3 teeth | no |
| 20 | 40.000 | 44.000 | 35.000 | 15.321 over 3 teeth | no |
| 24 | 48.000 | 52.000 | 43.000 | 15.433 over 3 teeth | no |
| 25 | 50.000 | 54.000 | 45.000 | 15.461 over 3 teeth | no |
| 30 | 60.000 | 64.000 | 55.000 | 21.505 over 4 teeth | no |
| 40 | 80.000 | 84.000 | 75.000 | 27.690 over 5 teeth | no |
| 50 | 100.000 | 104.000 | 95.000 | 33.874 over 6 teeth | no |
| 60 | 120.000 | 124.000 | 115.000 | 40.058 over 7 teeth | no |
Diametral pitch to module
| Diametral pitch | Module | Circular pitch |
|---|---|---|
| 4 | 6.3500 | 0.7854 in |
| 6 | 4.2333 | 0.5236 in |
| 8 | 3.1750 | 0.3927 in |
| 10 | 2.5400 | 0.3142 in |
| 12 | 2.1167 | 0.2618 in |
| 16 | 1.5875 | 0.1963 in |
| 20 | 1.2700 | 0.1571 in |
| 24 | 1.0583 | 0.1309 in |
| 32 | 0.7937 | 0.0982 in |
| 48 | 0.5292 | 0.0654 in |
Source: Gear geometry to ISO 21771 with the ISO 53 basic rack (addendum 1.00 m, dedendum 1.25 m); span measurement formula from KHK's gear technical reference (section 5). Reviewed . Use the calculator below for any other size.
How the Gear Generator Works
The tool cuts the gear the way a hob or rack cutter does. It moves the standard cutter profile (straight flanks with a rounded tip) past the gear blank while the blank turns, and keeps the shape the cutter leaves behind. That gives the true involute flank, the trochoidal root fillet and, on small gears, the undercut, rather than a drawing made of guessed arcs.
The cutter is the ISO 53 basic rack: addendum 1.00 m, dedendum 1.25 m and a 0.38 m tip radius (smaller when it will not fit, for example at 25°). The flanks and fillets are then fitted with arcs within 0.001 mm for DXF and SVG, and with B-splines within 0.0005 mm for the STEP solid.
The Method
Module, Diametral Pitch and Pressure Angle
Module (metric) is the pitch diameter in mm divided by the teeth. Diametral pitch (inch) is the other way up: teeth per inch of pitch diameter. They convert with module = 25.4 ÷ DP, so DP 16 is module 1.5875 and module 2 is DP 12.7. Gears only mesh if their module (or DP) and pressure angle match.
Pressure angle is the slope of the flank at the pitch circle. 20° is the modern standard. 14.5° is found on older inch machines and change gears: quieter, but undercut starts below about 32 teeth. 25° makes stronger, stubbier teeth for heavy duty.
Profile shift moves the cutter away from (+) or towards (−) the gear centre while keeping the same pitch circle. A positive shift stops undercut on small pinions and makes the teeth thicker at the root but more pointed at the tip; the tool warns when the tip gets thin. It also lets you hit an odd centre distance.
How to Measure a Gear
- Span (base tangent length, W): a disc micrometer across k teeth. It does not depend on the tip diameter or on run-out, so it is the easiest check of tooth thickness. On a helical gear the face must be wider than W sin βb plus about 3 mm.
- Over pins or balls (M): two pins (spur) or balls (helical) in opposite tooth spaces and a micrometer over them. The "ideal" size touches the flank near the pitch circle; use the nearest pin you own and type it in, and the tool recalculates M.
- Chordal thickness: a gear tooth vernier set to the chordal height from the tip. It depends on the tip diameter being right, so it is the least accurate of the three.
Worked Examples
- Pitch diameter 2 × 20 = 40.000 mm, tip 44.000 mm, root 35.000 mm, base 37.588 mm. No undercut: the involute starts at 37.640 mm.
- Centre distance (20 + 40) × 2 ÷ 2 = 60.000 mm; contact ratio 1.635.
- Each gear is thinned 0.05 mm for the 0.1 mm backlash. Span over 3 teeth: W = 15.274 mm (15.321 mm with no backlash). Over two 3.449 mm pins: M = 44.642 mm.
- The 10 mm bore gets a DIN 6885 3 × 3 key, hub groove depth t2 = 1.4 mm (bore + t2 = 11.4 mm).
- Transverse module 1.5875 ÷ cos 20° = 1.6894 mm, so the pitch diameter is 1.5963 in (40.545 mm) and the tip 1.7213 in.
- Centre distance 2.3944 in. Contact ratio 1.536 plus overlap 0.871 = 2.407, which is why helical gears run quietly.
- Lead 13.778 in; over the 1/2" face each tooth twists 13.06°. The mating 48-tooth gear is left hand.
- Span over 4 teeth: W = 0.6691 in (it needs 0.333 in of face, so it fits). Over two 2.710 mm (0.1067 in) balls: M = 1.7377 in.
Tips for Using the Results
- 3D printing: printed teeth come out slightly fat. Add backlash (try a few tenths of a millimetre on module 1 to 2, then test-print one tooth pair), print the gear flat, and use STL. Positive profile shift on small pinions gives stronger roots.
- CNC, laser and waterjet: use the DXF, which holds true arcs within 0.001 mm of the generated profile. A cutter cannot get into a root fillet smaller than its radius; check the root radius against your end mill or kerf.
- Hobbing or shaping: cut to the span or over-pins size, not to the drawing. Those two numbers already include the backlash thinning.
- STEP vs STL: STEP is an exact solid (planes, arcs as true circles, flanks as B-spline surfaces) that CAD and CAM can edit, dimension and machine. STL is a triangle mesh: fine for slicers, poor for CAM. For helical gears both are twisted correctly.
- Mating: tick a mating gear to see contact ratio, interference and clearance before you cut. Keep the contact ratio over 1.2.
Frequently Asked Questions
Limits: external gears are generated with the ISO 53 rack (hob); internal gears are drawn with true involute flanks but a sharp root corner, because their fillet depends on the shaper cutter used. The pair checks assume the gears are mounted at the calculated centre distance and do not cover strength or tooth loads. Keyway sizes follow DIN 6885-1 and ANSI B17.1 (square keys) nominal values without fit tolerances; check them against your key. Formulas: ISO 21771 and the KHK Gear Technical Reference.
Open-source credits: the gear engine is written in Rust and runs as WebAssembly. The STEP solid is built with truck (truck-modeling, truck-topology) and written by truck-stepio (Apache-2.0, RICOS); caps are triangulated with earcutr (ISC); serde and serde_json (MIT/Apache-2.0); wasm-bindgen (MIT/Apache-2.0); 3D preview by three.js (MIT).