MotionMechLab

Spur gear module, pitch diameter & center distance calculator

Enter metric module or diametral pitch to calculate standard spur gear diameters, shaft spacing, reduction and contact ratio.

Jump to results ↓

Inputs

Tooth geometry
mm
°
Mating gears
T
T

Results

Preset estimate
Nominal center distance
30mm
External spur gear pitch, base and outside circles with the line of actionZ1 20TZ2 40T30 mm C–C
Orange rings are pitch circles. The gray rings show base and outside diameters. Geometry assumes standard unshifted teeth.
Center distance (imperial)
1.181102 in
Driven / driver ratio
2:1
Transverse contact ratio
1.6352
Metric module
1 mm
Diametral pitch
25.4 T/in
Circular pitch
3.1416 mm
Addendum
1 mm
Dedendum
1.25 mm
Driver pitch diameter
20 mm
Driver outside (addendum) diameter
22 mm
Driver root (dedendum) diameter
17.5 mm
Driver base diameter
18.7939 mm
Driven pitch diameter
40 mm
Driven outside (addendum) diameter
42 mm
Driven root (dedendum) diameter
37.5 mm
Driven base diameter
37.5877 mm

Lay out a standard external spur gear pair

The pitch circles roll against one another at the nominal center distance. The outside and root circles define the nominal tooth envelope. The tool assumes standard full-depth involute teeth and zero profile shift on both gears.

Both gears need the same tooth size and pressure angle. Diametral pitch is teeth per pitch inch and converts to metric module using 25.4 ÷ DP. The ideal speed ratio depends on tooth counts alone.

Contact ratio uses the length of the path of contact divided by the base pitch. Check the actual tooth profile when the small gear triggers undercut or the tip extends beyond a base-circle tangent. Set production clearance and backlash using your gear data.

Worked example

At module 1, 20 and 40 teeth give 20 and 40 mm pitch diameters. The shafts are 30 mm apart and the outside diameters are 22 and 42 mm. With a 20° pressure angle the nominal contact ratio is about 1.64.

Formulas

  • Module (mm) = 25.4 / DP
  • Pitch diameter d = m Z
  • Outside diameter = d + 2m
  • Root diameter = d − 2.5m
  • Center distance = (d₁ + d₂) / 2
  • Base diameter = d cos α
  • Contact ratio = [√(rₐ₁² − rᵦ₁²) + √(rₐ₂² − rᵦ₂²) − C sin α] / (π m cos α)

References

Frequently asked questions

Do I measure gear center distance from outside diameters?

Use pitch diameters. Each outside diameter includes two addenda, so it would make the center distance too large.

Can gears with the same diametral pitch have different pressure angles?

They can exist as separate parts, but a standard mating pair requires a matching pressure angle as well as matching tooth size.

Does the contact ratio predict the torque capacity of a printed gear?

Contact ratio describes the ideal contact geometry. Material, face width, load, print orientation and tooth-root strength determine capacity.