Spur gear equations: Formula, Calculator and Worked Example

Spur gear equations: module and tooth counts of pinion and gear give pitch diameters, ratio and center distance.
Spur gear equations connect module, tooth counts, pitch diameters and center distance. They are the first step in laying out any gear pair.
Where spur gear equations matters
These relationships are used in gearboxes, machine drives, robotics and 3D-printed mechanisms.
In gear design, the module, tooth count and pressure angle define every other dimension of the tooth. Getting these relationships right is the basis for quiet, efficient and durable power transmission.
Formula
a = m·(z₁ + z₂)/2 • i = z₂/z₁ • d = m·z
The calculation uses the following inputs:
Module [mm], accepted range 0.3 to 30 mm
Pinion teeth, accepted range 8 to 200
Gear teeth, accepted range 8 to 400
It returns:
Center distance [mm]
Gear ratio
Pinion pitch diameter [mm]
Gear pitch diameter [mm]
Assumptions: Standard gears without profile shift (x = 0).
Worked example
Take the following values, which are also the default settings of the calculator:
Module: 2 mm
Pinion teeth: 20
Gear teeth: 50
Applying the formula gives:
Center distance: 70 mm
Gear ratio: 2.5
Pinion pitch diameter: 40 mm
Gear pitch diameter: 100 mm
With these values no design warning is triggered, so the result sits inside the usual practical limits. Change one input at a time in the calculator to see how sensitive the result is; the response curve shows how the main result varies across the full range of the first input.
Sensitivity: which input matters most?
Starting from the worked example, each input below was changed by 20 percent while the others were held constant. The table shows the effect on center distance (baseline 70 mm).
The most influential input here is module, which moves the result by up to 20 percent for a 20 percent change, while pinion teeth has the smallest effect (5.7 percent). Focus measurement accuracy and design margin on the inputs at the top of the table.
How to use the calculator
Choose metric or US customary units with the toggle at the top. Inputs and results convert automatically.
Enter module, pinion teeth, gear teeth with the sliders or by typing values.
Read the main result, center distance, together with the secondary results and any warning shown below it.
Check the schematic: it redraws with your values so you can confirm the geometry and dimensions make sense.
Design tips
Pinions with fewer than 17 teeth at 20° pressure angle undercut unless a profile shift is used.
Use standard module values to buy cutters and gears off the shelf.
Check the center distance tolerance; it controls backlash.
Frequently asked questions
What is the module?
The module equals pitch diameter divided by the number of teeth, in millimeters. It sets tooth size.
How do I get a specific center distance?
Choose tooth counts so that the module times the sum of teeth divided by two equals the target, or use profile shift.
Which units does the spur gear equations calculator use?
Inputs are entered in mm in metric mode. Switching to US customary units converts lengths to inches, forces to pound-force, stresses to psi and masses to pounds where applicable, and all results are converted the same way.
The formulas and reference values on this page are intended for education and preliminary design. Always verify critical parts against the applicable standards, supplier data and, where required, a qualified engineer.




Comments