Pitch Diameter Calculator: Gear Formula & Use
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.
This calculator works out the pitch diameter of a gear from the number of teeth and the module (metric) or diametral pitch (inch). You enter the tooth count and the pitch value, and you get the pitch diameter in the same unit system you chose, which is the reference circle diameter used in gear design and measurement.
Formula
For metric gears, the pitch diameter d equals the module m multiplied by the number of teeth z:
d = m × z
For inch-system gears, the pitch diameter d equals the number of teeth z divided by the diametral pitch P:
d = z / P
Variables:
- d – pitch diameter (mm for metric, inches for inch system)
- m – module (mm per tooth)
- z – number of teeth (integer, no unit)
- P – diametral pitch (teeth per inch of pitch diameter)
Worked Example
Using the default values: metric system, module = 2 mm, teeth = 24.
- Write the formula: d = m × z
- Substitute: d = 2 mm × 24
- Multiply: d = 48 mm
The calculator shows 48.000 mm. If you switch to inch system with diametral pitch 12 and teeth 24, the result is 24 / 12 = 2.000 inches.
What Pitch Diameter Actually Means
The pitch diameter is the diameter of an imaginary circle that rolls without slipping against the mating gear’s pitch circle. It is not the outer tip diameter nor the root (base) diameter – it lies between them. For two meshing gears, the pitch circles are tangent, and the distance between the gear centers equals half the sum of their pitch diameters.
This value is fundamental because it defines the gear ratio. If gear A has 20 teeth and gear B has 40 teeth, the ratio is 1:2, and the pitch diameters will also be in a 1:2 ratio (assuming the same module or diametral pitch).
How to Choose Module vs. Diametral Pitch
You must know which system your gear uses before calculating. Metric gears are specified by module (a round number like 1, 1.5, 2, 2.5, 3 mm). Inch gears are specified by diametral pitch (a round number like 8, 10, 12, 16, 20). Mixing them is a common error.
- If you have a metric gear, use module.
- If you have an inch gear, use diametral pitch.
- To convert: module (mm) = 25.4 / diametral pitch.
For example, a 12 DP gear has module ≈ 25.4 / 12 = 2.117 mm. A 2 mm module gear has DP ≈ 25.4 / 2 = 12.7.
Common Mistakes and How to Avoid Them
Unit mix-ups cause most errors. If you enter a module in inches (which is rare) or a diametral pitch in metric, the result will be off by a factor of 25.4. Always check the unit of your pitch value.
Another mistake is confusing pitch diameter with outside diameter. The outside diameter (tip diameter) for a standard full-depth gear is:
Outside diameter = pitch diameter + 2 × module (metric) or pitch diameter + 2 / diametral pitch (inch).
So for the default example, outside diameter = 48 + 2×2 = 52 mm, not 48 mm.
Rounding too early also causes problems. Keep at least three decimal places in intermediate steps, especially when converting between module and DP.
Limits of the Simple Formula
The formula d = m × z (or d = z/P) applies to standard, unmodified spur gears. It does not account for profile shift (also called addendum modification), which changes the operating pitch diameter but not the reference pitch diameter. It also assumes a full-depth tooth profile; stub teeth or special profiles may have different proportions.
For helical gears, the pitch diameter is measured in the transverse plane, and the formula becomes d = m_n × z / cos(β), where m_n is the normal module and β is the helix angle. If you are working with helical gears, you must include the helix angle.
For bevel gears, the pitch diameter is measured at the outer cone, and the formula is more complex. This calculator is intended for standard spur gears.
Why Pitch Diameter Matters in Practice
Engineers use pitch diameter to calculate center distance, gear ratio, and backlash. For two meshing gears with pitch diameters d1 and d2, the center distance is (d1 + d2) / 2. If you change the number of teeth, the pitch diameter changes, and the center distance must be adjusted accordingly.
In manufacturing, pitch diameter is used to set cutting tools and to measure gears with pins or over-wire methods. It is also the reference for specifying tolerances – a gear’s pitch diameter tolerance is usually tighter than its outside diameter tolerance.
Frequently Asked Questions
What is the difference between pitch diameter and outside diameter?
Pitch diameter is the theoretical rolling circle that defines the gear ratio. Outside diameter is the physical tip of the teeth. For a standard spur gear, outside diameter = pitch diameter + 2 × module (metric) or + 2 / DP (inch).
Can I calculate pitch diameter from the number of teeth and outside diameter?
Yes, but you need to know the addendum. For a standard full-depth gear, module = outside diameter / (teeth + 2). Then pitch diameter = module × teeth. For inch gears, DP = (teeth + 2) / outside diameter, and pitch diameter = teeth / DP.
Does pitch diameter change with backlash?
No, backlash is the gap between mating teeth, and it does not change the reference pitch diameter. Backlash is adjusted by changing center distance or tooth thickness, not by altering the pitch circle.
Is pitch diameter the same as the base circle diameter?
No. The base circle is where the involute tooth profile starts, and it is smaller than the pitch circle. Base circle diameter = pitch diameter × cos(pressure angle). For a 20° pressure angle, base circle ≈ 0.94 × pitch diameter.
What if my gear has a non-standard profile shift?
Profile shift moves the tooth profile relative to the pitch circle, changing the operating pitch diameter but not the reference pitch diameter. The formula above gives the reference pitch diameter; the operating pitch diameter depends on the center distance and the shift coefficients. This calculator does not handle shifted gears.
Related
Formula used
in t | Number of teeth | - | 24 | 1 sel sys | System | Metric (module)=1, Inch (diametral pitch)=2 in m | Module (mm) | mm | 2 | 0.1 in dp | Diametral pitch (1/in) | 1/in | 12 | 0.1 out pd | Pitch diameter | mm or in | (sys == 1) ? m * t : t / dp | 3
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.