Gears · Browser-based calculation

Gear Center Distance Calculator

Calculate the nominal center distance, pitch diameters, and ratio of two standard external spur gears from module and tooth counts.

Reference calculator #001

Enter gear geometry

Inputs stay in your browser. Values are normalized to canonical units before calculation.

Common module for both gears.

Whole-number tooth count for the first gear.

Whole-number tooth count for the mating gear.

Calculated output

Results

spur-gears/1.0.0
Center distance60 mm
Pitch diameter 1
40 mm
Pitch diameter 2
80 mm
Gear ratio (z₂/z₁)
2.000

Valid standard reference geometry

Spur gear reference-circle diagramTwo tangent pitch circles with their shaft centers and the nominal center distance marked.a = 60 mmd₁ = 40 mmd₂ = 80 mm
Pitch-circle geometry; automatically scaled for legibility.
Scope and assumptions
  • External spur gears share one module and have parallel axes.
  • Reference geometry uses zero profile shift, so the two reference circles are tangent.
  • The result is a nominal reference value; backlash, tolerances, deflection, strength, and housing accuracy are not evaluated.

Calculation engine: spur-gears/1.0.0

Formula for standard spur gears

a = m(z₁ + z₂) / 2

The same result can be written as a = (d₁ + d₂) / 2, because each reference pitch diameter is d = mz.

Symbol Meaning Unit
a Nominal reference center distance mm or in
m Common module length per tooth; conventionally stated in mm
z₁ Gear 1 tooth count whole number
z₂ Gear 2 tooth count whole number
d₁, d₂ Reference pitch diameters same length unit as a

Worked example

For m = 2 mm, z₁ = 20, and z₂ = 40:

  1. Gear 1 pitch diameter: d₁ = 2 × 20 = 40 mm.
  2. Gear 2 pitch diameter: d₂ = 2 × 40 = 80 mm.
  3. Center distance: a = (40 + 80) / 2 = 60 mm.
  4. Tooth-count ratio: z₂ / z₁ = 2.000.

The calculator keeps full floating-point precision in the domain engine and applies display rounding only in the result UI.

How to use this calculator

Enter the common module and the whole-number tooth count of each external spur gear. Select mm or in for the module input, then calculate. The unit engine converts the input to canonical millimetres before the pure gear function runs; changing the display unit does not change the physical geometry.

The URL query string stores only calculator state. Shared parameter URLs use the same canonical page, so input combinations do not create separate SEO pages.

Engineering scope and validation

This tool validates finite positive inputs and requires integer tooth counts. A tooth count below 17 produces a warning rather than an error because the basic center-distance calculation remains mathematically valid, while undercut risk depends on pressure angle, tooth system, and profile shift.

The result is intentionally limited to standard reference geometry. Do not treat it as a substitute for checking:

  • profile-shifted, internal, helical, crossed-axis, or non-involute gearing;
  • operating pressure angle, backlash, tooth-thickness modification, or tolerances;
  • shaft and housing deflection, alignment, lubrication, noise, or thermal effects;
  • bending strength, contact stress, service factors, duty cycle, or material suitability.

Use the calculated value as a transparent preliminary reference, then complete the application-specific design and verification required for the gear pair.

Frequently asked questions

How do you calculate spur gear center distance?

For two standard external spur gears with a common module, multiply the module by the sum of both tooth counts and divide by two. This is equivalent to adding both pitch radii.

Can gears with different modules use this formula?

No. A normal spur-gear pair must use compatible tooth systems, including the same module and pressure angle. This calculator assumes one common module for both gears.

Does pressure angle change this center-distance formula?

Pressure angle does not appear in the basic reference-center-distance formula for standard zero-profile-shift spur gears, but it still affects tooth geometry, undercut risk, and meshing compatibility.

Is the calculated value always the final mounting distance?

No. It is the nominal reference center distance. Profile shift, backlash targets, tolerances, housing accuracy, load deflection, and application requirements can change the required operating or mounting condition.

Does the inch option mean diametral pitch?

No. The inch option only expresses the physical module in inches and converts it to the internal canonical unit. Diametral pitch is a different input system and is outside this V1 calculator.

References and review status

Reviewed . The references define context and independent verification targets; they do not imply endorsement.