Spur Gear Calculator

Solve a spur-gear pair from teeth and module or diametral pitch, with profile shift, center distance, ratio, output speed and torque, contact ratio and every diameter.

To calculate spur gears, multiply module by tooth count for each pitch diameter (d = m × N), add 2m for the outside diameter, subtract 2.5m for the root diameter, and set center distance C = m × (N1 + N2) ÷ 2.

Use the Spur Gear Calculator

Looking for bicycle gearing (gear inches, gain ratio, speed at cadence)? Use the bicycle gear calculator.

Gear Pair Inputs

Shared Parameters

Driver (Pinion) — Gear 1

Driven — Gear 2

Gear Pair Summary

Gear Ratio
—
Center Distance
—
Contact Ratio
—
Working Pressure Angle
—
Driven Speed
—
Driven Torque (ideal)
—
Pitch-line Velocity
—
Tangential Tooth Force
—

Gear Geometry (mm)

Parameter Driver (Gear 1) Driven (Gear 2)
Number of Teeth — —
Profile Shift x — —
Pitch Diameter — —
Base Circle Diameter — —
Working Pitch Diameter — —
Addendum — —
Dedendum — —
Outside (Tip) Diameter — —
Root Diameter — —
Whole Depth — —
Circular Pitch — —
Tooth Thickness at Tip — —
Min. Shift to Avoid Undercut — —

Formula Reference

Pitch diameter d = m × N = N ÷ P Module m = 25.4 ÷ P Base circle db = d × cos α inv α = tan α − α inv αw = 2 tan α (x1+x2)/(N1+N2) + inv α Center dist. a = (N1+N2) m cos α / (2 cos αw) y = a/m − (N1+N2)/2 Tip dia. da1 = d1 + 2m(1 + y − x2) Root dia. df = d − 2.5m + 2xm Whole depth h = m(2.25 + y − x1 − x2) Circular pitch p = π × m Undercut xmin = 1 − N sin²α / 2 Gear ratio i = N2 / N1 T2 = T1 × i, n2 = n1 / i (no losses) Contact ratio ε = [√(ra1²−rb1²) + √(ra2²−rb2²) − a sin αw] / (π m cos α)

Geometry follows the involute relations in ISO 21771 and KHK's gear technical reference for standard full-depth teeth (addendum coefficient 1, clearance 0.25). With profile shift, the tip is shortened by (x1 + x2 − y)m so the standard bottom clearance is kept. Torque and force ignore friction; a single spur mesh typically loses about 1–2%.

Quick answer

To calculate spur gears, multiply module by tooth count for each pitch diameter (d = m × N), add 2m for the outside diameter, subtract 2.5m for the root diameter, and set center distance C = m × (N1 + N2) ÷ 2. In inch gears, d = N ÷ P for diametral pitch P. Gear ratio is driven teeth ÷ driver teeth.

Example: Module 2 mm with 20 and 40 teeth: pitch diameters 40 mm and 80 mm, outside diameters 44 mm and 84 mm, center distance 60 mm, ratio 2:1, so 1,500 rpm in gives 750 rpm out and 10 N·m in gives 20 N·m out (before losses).

Enter teeth and module or diametral pitch, or a target center distance, to solve the full pair.

Summary

This calculator covers an external involute spur-gear pair with standard full-depth teeth (addendum 1m, dedendum 1.25m) in metric module or inch diametral pitch. It computes ratio, output speed and torque, pitch-line velocity, center distance, working pressure angle, contact ratio, pitch/base/working/outside/root diameters, tip thickness and undercut limits, with optional profile shift. A target shaft center distance can be met either by solving the module or, keeping a standard module, by solving the profile shift. Strength rating, backlash and tolerances still require AGMA 2101 / ISO 6336 and the applicable accuracy standard.

How it works

  1. Pitch diameter d = m × N (metric) or N ÷ P (inch, with m = 25.4 ÷ P).
  2. With profile shift x1 + x2, the working pressure angle αw solves inv αw = 2 tan α (x1 + x2) ÷ (N1 + N2) + inv α, where inv α = tan α − α.
  3. Center distance a = (N1 + N2) m cos α ÷ (2 cos αw); with no shift this is m (N1 + N2) ÷ 2.
  4. Tip diameters use addendum (1 + y − x_other) m so the standard 0.25m clearance is kept; root diameter = d − 2.5m + 2xm.
  5. Contact ratio = path of contact ÷ base pitch; undercut and tip thickness are checked for each gear.

Use cases

  • Size a gear pair for a gearbox or power transmission system.
  • Fit a gear pair to an existing shaft spacing with profile shift instead of a non-standard module.
  • Convert between metric module and inch diametral pitch gear sizes.
  • Determine speed and torque ratio between driver and driven shafts.
  • Check contact ratio, undercut and tip thickness before cutting small pinions.
  • Calculate gear blank diameters for CNC machining.
  • Teach gear kinematics to mechanical engineering students.
  • Prototype gear sets for robotics, automation, and hobby projects.

Frequently Asked Questions

Last updated: 2026-10-09 · Reviewed by Nham Vu