ThisCalculator

Sports and fitness

Gear Dimension Calculator: How to Use One

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Gear Dimension Calculator: How to Use One

A gear dimension calculator works out the key sizes of a gear pair—pitch diameter, outside diameter, root diameter, center distance, and tooth dimensions—from basic inputs like module or diametral pitch and tooth count. You enter the gear standard, tooth counts, and either the module (metric) or diametral pitch (inch), and it returns the dimensions you need for design, machining, or replacement. This article explains the formulas, how to use the calculator correctly, and the common mistakes that lead to gears that don’t mesh.

Formula

For metric gears, the fundamental relationship is:

Pitch diameter (d) = module (m) × number of teeth (z)

where:

  • d = pitch diameter, in millimeters (mm)
  • m = module, in millimeters (mm) – the size of the tooth in mm per tooth
  • z = number of teeth (dimensionless)

For inch-system gears (diametral pitch, DP), the formula is:

Pitch diameter (d) = number of teeth (z) / diametral pitch (P)

where P is in teeth per inch. The module and diametral pitch are reciprocals: m = 25.4 / P.

From the pitch diameter, other dimensions follow:

  • Outside diameter (addendum diameter) = d + 2m (metric) or d + 2/P (inch)
  • Root diameter = d – 2.5m (metric, standard full-depth) or d – 2.5/P
  • Center distance = (d1 + d2) / 2
  • Addendum = m (metric) or 1/P (inch)
  • Dedendum = 1.25m (metric) or 1.25/P (inch)

The calculator above uses the metric module system, which is the most common worldwide. It computes pitch diameters, center distance, addendum, and dedendum from tooth counts and module.

Worked Example

Using the default values from the calculator: gear 1 has 20 teeth, gear 2 has 40 teeth, and the module is 2 mm.

  1. Pitch diameter of gear 1: d1 = m × z1 = 2 × 20 = 40.00 mm
  2. Pitch diameter of gear 2: d2 = m × z2 = 2 × 40 = 80.00 mm
  3. Center distance: c = (40 + 80) / 2 = 60.00 mm
  4. Addendum: add = m = 2.00 mm
  5. Dedendum: ded = 1.25 × m = 2.50 mm

These match the calculator output. The outside diameter of gear 1 would be 40 + 2×2 = 44 mm, and the root diameter would be 40 – 2.5×2 = 35 mm.

When to Use a Gear Dimension Calculator

You need a gear dimension calculator whenever you are designing a gear pair, replacing a worn gear, or checking whether two gears will mesh correctly. Typical situations include:

  • Designing a gearbox or drive train for a hobby project, robot, or machine.
  • Ordering a replacement gear – you need the module or DP and tooth count to match the existing gear.
  • Checking the center distance between two shafts when you have gears of known tooth counts and module.
  • Machining gears on a CNC or manual mill – you need outside diameter, root diameter, and tooth depth.
  • 3D printing gears – you need accurate tooth profiles, which start with the pitch diameter and addendum.

The calculator is useful for spur gears (straight teeth) and helical gears (angled teeth), though helical gears require additional parameters like helix angle and normal module.

How to Choose the Right Inputs

The most important input is the module (metric) or diametral pitch (inch). These define tooth size. If you have an existing gear, measure the distance between two adjacent tooth centers at the pitch circle (the pitch) and divide by π to get the module. Or measure the outside diameter and count teeth, then use:

m = outside diameter / (z + 2)

For a gear with 20 teeth and an outside diameter of 44 mm, m = 44 / 22 = 2 mm.

For inch gears, measure the pitch diameter (or calculate it from center distance) and use P = z / d. A gear with 20 teeth and a pitch diameter of 2.5 inches has P = 20 / 2.5 = 8 (8 DP).

Tooth count must be an integer. The calculator enforces a minimum of 1, but real gears need at least 12–17 teeth for standard full-depth involute profiles to avoid undercutting. If you are designing a pair, choose tooth counts that are not multiples of each other to distribute wear evenly.

Common Mistakes and Misconceptions

Here are the most frequent errors people make when using gear dimension calculators:

  • Mixing module and diametral pitch. A module of 2 mm is not the same as 2 DP. They are reciprocals (m = 25.4/P). Using the wrong system gives wildly wrong dimensions.
  • Using outside diameter instead of pitch diameter. The pitch diameter is the theoretical circle where teeth mesh, not the outer edge. Always calculate it from module × teeth.
  • Forgetting the addendum modification. Some gears are profile-shifted (X-factor) to avoid undercutting or adjust center distance. The standard formulas assume no shift. If your gear has a profile shift, add 2×shift×module to the outside diameter.
  • Assuming center distance is fixed. The center distance from the formula is the theoretical one for standard gears. In practice, you can adjust it slightly (within backlash limits) to change mesh tightness.
  • Ignoring backlash. The calculator gives dimensions for zero backlash. Real gears need a small gap between teeth to avoid jamming. This is usually achieved by increasing center distance slightly or using thinner teeth.

Limits of the Formula

The standard gear formulas assume an involute tooth profile with a 20° pressure angle (or 14.5° for older gears). They work for spur gears and, with modifications, for helical gears. They do not account for:

  • Tooth thickness tolerances and backlash
  • Profile shift (X-factor)
  • Helix angle and normal vs. transverse module
  • Internal gears (ring gears) – the formulas differ
  • Non-standard tooth forms (e.g., cycloidal, which are rare)

For precision engineering, you need a full gear design standard (ISO 53, AGMA 201, or DIN 3990) which includes stress calculations, material properties, and lubrication. The dimension calculator is a starting point, not a complete design tool.

Frequently Asked Questions

What is the difference between module and diametral pitch?
Module (mm) is the pitch diameter in millimeters divided by the number of teeth. Diametral pitch (teeth per inch) is the number of teeth divided by the pitch diameter in inches. They are reciprocals: m = 25.4 / P. Metric gears use module; inch gears use DP.

How do I measure the module of an existing gear?
Measure the outside diameter in mm, count the teeth, and use m = outside diameter / (z + 2). For example, a gear with 30 teeth and an outside diameter of 64 mm has m = 64 / 32 = 2 mm. Alternatively, measure the circular pitch (distance between tooth centers) and divide by π.

What is the minimum number of teeth for a gear?
For a standard 20° pressure angle involute gear, the minimum is 17 teeth to avoid undercutting (where the tooth base is weakened). With profile shift, you can go down to 12 teeth. For 14.5° pressure angle, the minimum is 32 teeth. The calculator allows lower numbers, but real gears should respect these limits.

Can I use this calculator for helical gears?
Only if you use the normal module and adjust for the helix angle. The pitch diameter of a helical gear is d = (normal module × teeth) / cos(helix angle). The calculator above assumes spur gears (helix angle = 0). For helical gears, you need a separate calculator that includes the helix angle.

What is the center distance for a gear pair?
It is half the sum of the two pitch diameters. For a 20-tooth and 40-tooth gear with module 2 mm, center distance = (40 + 80) / 2 = 60 mm. This is the theoretical distance between the two shaft centers.

Why does my 3D-printed gear not mesh smoothly?
Most likely because you used the theoretical dimensions without adding backlash. Increase the center distance by 0.1–0.3 mm, or scale the gear teeth down slightly (e.g., 0.1 mm on each flank). Also, check that the module matches the other gear.

Related

Formula used
in z1 | Teeth on gear 1 | - | 20 | 1
in z2 | Teeth on gear 2 | - | 40 | 1
in m | Module (metric) | mm | 2 | 0.1
out d1 | Pitch diameter gear 1 | mm | m * z1 | 2
out d2 | Pitch diameter gear 2 | mm | m * z2 | 2
out c | Center distance | mm | (d1 + d2) / 2 | 2
out add | Addendum | mm | m | 2
out ded | Dedendum | mm | 1.25 * m | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.