Draw and calculate a spur gear (module and teeth)
A metric spur gear is defined by two values: the module m (tooth size) and the number of teeth z. From these you can work out the pitch diameter, outside diameter, root diameter, tooth depth, and the centre distance between a pair of meshing gears. This guide gives the formulas, a worked m = 2, z = 20 example, and how to draw the gear reference circles in DXCAD2D Online.
Module and spur-gear formulas
The module is the ratio m = d ⁄ z (pitch diameter per tooth), in millimetres. A standard tooth rises one module above the pitch circle (addendum) and goes 1.25 modules below it (dedendum). The standard pressure angle is 20°.
| To find | Formula | m=2 z=20 |
|---|---|---|
| Pitch diameter d | d = m · z | 40.00 mm |
| Outside (tip) dia dₐ | dₐ = m · (z + 2) | 44.00 mm |
| Root dia d_f | d_f = m · (z − 2.5) | 35.00 mm |
| Addendum | hₐ = m | 2.00 mm |
| Dedendum | h_f = 1.25 · m | 2.50 mm |
| Whole depth | h = 2.25 · m | 4.50 mm |
| Circular pitch | p = π · m | 6.283 mm |
| Base circle dia at 20° | d_b = d · cos20° | 37.59 mm |
Worked example: a gear with m = 2, z = 20
A module-2 gear with 20 teeth and a 20° pressure angle. Substitute into the formulas:
- Pitch diameter: d = 2 × 20 = 40 mm
- Outside diameter: dₐ = 2 × (20 + 2) = 2 × 22 = 44 mm
- Root diameter: d_f = 2 × (20 − 2.5) = 2 × 17.5 = 35 mm
- Addendum hₐ = 2 mm, dedendum h_f = 2.5 mm, whole depth = 4.5 mm
- Circular pitch p = π × 2 = 6.283 mm (tooth thickness at the pitch circle ≈ p ⁄ 2 = 3.142 mm)
Centre distance of a gear pair
When two gears of the same module mesh, the centre distance is half the sum of their pitch diameters.
Example: a module-2 pair with z₁ = 20 and z₂ = 40 → a = 2 × (20 + 40) ⁄ 2 = 60 mm, ratio = z₂ ⁄ z₁ = 40 ⁄ 20 = 2:1.
Try it right now — a free 2D CAD in your browser. Nothing to install, no sign-up.
Open DXCAD2D OnlineDrawing the gear reference circles
Drawing a true involute tooth takes many steps, but what you actually use to make and check the part are the three reference circles (outside, pitch, root). Below we draw the m = 2, z = 20 gear at full size.
- Type C Enter, click the centre
0,0, enter radius 22 Enter for the outside circle (Ø44). - Repeat C with radius 20 Enter for the pitch circle (Ø40), then C radius 17.5 Enter for the root circle (Ø35).
- Sketch one tooth between the root and outside circles: type
PLEnter and draw the two flanks and the tip, using the pitch-circle tooth thickness ≈ 3.14 mm as a guide. - Type
POEnter (polar array), select the tooth, set the centre0,0, enter 20 items over 360° to fill the whole gear. - Type TR Enter to trim surplus lines at the root circle, draw the bore with C, and finish with D to dimension Ø44 and Ø40.
Frequently asked questions
What is a gear module
The module m = pitch diameter ÷ number of teeth (in mm); it sets the tooth size. Two gears will mesh only if they share the same module and pressure angle.
How do I calculate a gear outside diameter
Outside diameter = module × (teeth + 2), so m = 2, z = 20 gives 2 × 22 = 44 mm, because the tooth tip rises one module above the pitch circle on each side.
What is the diameter of a 20-tooth module-2 gear
Pitch Ø 40 mm, outside Ø (tip to tip) 44 mm, root Ø 35 mm, and a whole tooth depth of 4.5 mm.
How do I find the centre distance of two gears
a = module × (teeth₁ + teeth₂) ÷ 2, so a module-2 pair of 20 and 40 teeth gives 2 × 60 ÷ 2 = 60 mm.
Summary
A spur gear is set by its module m and tooth count z; every dimension follows: pitch Ø = m·z, outside Ø = m(z+2), root Ø = m(z−2.5), and whole depth = 2.25m. For m = 2, z = 20 that gives a pitch Ø of 40, an outside Ø of 44 and a root Ø of 35 mm. For a meshing pair, the centre distance is a = m(z₁+z₂)⁄2. When drawing, lay out the three reference circles first, then sketch and repeat one tooth with a polar array.