Mechanical Engineering Calculator

Gear Module & Dimensions Calculator

Calculate comprehensive manufacturing dimensions for ISO metric spur gears, including pitch diameter, outside diameter, root diameter, and circular pitch based on Module (m) and Teeth (N).

Standard Tooth Profile & Geometric Terminology

Visual representation of a standard ISO metric spur gear profile showing root, pitch, and addendum boundaries.

Outside / Addendum Circle (da)Pitch Circle (d)Root / Dedendum Circle (df)a(1.0 × m)b(1.25 × m)Circular Pitch (p = π × m)c(0.25 × m)

Input Parameters

mm

Standard ISO tooth size indicator.

teeth

Total number of teeth on the gear.

Machining Tip

When turning the gear blank on a lathe, always use the Outside Diameter (da). The hobbing cutter will automatically form the pitch and root diameters.

Pitch Diameter (d)

60.00mm

Outside Diameter (da)

64.00 mm

Root Diameter (df)

55.00 mm

Circular Pitch

6.283 mm

Addendum

2.00 mm

Dedendum

2.50 mm

Governing ISO Formulas

Pitch Diameter (d)mm

m × N

Outside Diameter (da)mm

m × (N + 2)

Root Diameter (df)mm

m × (N - 2.5)

Circular Pitch (p)mm

π × m

Addendum (a)mm

1.0 × m

Dedendum (b)mm

1.25 × m

Engineering Code

Integrate full gear geometry generation into your scripts.

Python
import math

def calculate_gear_dimensions(m, N):
    """
    Calculate standard ISO metric spur gear dimensions.
    
    m: Module (mm)
    N: Number of Teeth
    
    Returns: Dictionary of gear dimensions in mm
    """
    if m <= 0 or N < 1:
        raise ValueError("Module must be > 0 and Teeth >= 1")

    return {
        "pitch_dia": m * N,
        "outside_dia": m * (N + 2),
        "root_dia": m * (N - 2.5),
        "circular_pitch": math.pi * m,
        "addendum": 1.0 * m,
        "dedendum": 1.25 * m,
        "whole_depth": 2.25 * m
    }

# Example Usage
m = 2.0
N = 30
dims = calculate_gear_dimensions(m, N)

print(f"Pitch Diameter: {dims['pitch_dia']:.2f} mm")
print(f"Outside Diameter: {dims['outside_dia']:.2f} mm")
print(f"Root Diameter: {dims['root_dia']:.2f} mm")
MATLAB
function dims = gear_dimensions(m, N)
    % Calculate ISO metric spur gear dimensions
    % m = Module (mm)
    % N = Number of Teeth

    if m <= 0 || N < 1
        error('Module must be > 0 and Teeth >= 1');
    end

    dims.pitch_dia = m * N;
    dims.outside_dia = m * (N + 2);
    dims.root_dia = m * (N - 2.5);
    dims.circular_pitch = pi * m;
    dims.addendum = 1.0 * m;
    dims.dedendum = 1.25 * m;
    dims.whole_depth = 2.25 * m;
end

% Example
m = 2.0;
N = 30;
dims = gear_dimensions(m, N);

fprintf('Pitch Diameter: %.2f mm\n', dims.pitch_dia);
fprintf('Outside Diameter: %.2f mm\n', dims.outside_dia);
fprintf('Root Diameter: %.2f mm\n', dims.root_dia);
Excel Formulas
Pitch Dia: =m*N
Outside Dia: =m*(N+2)
Root Dia: =m*(N-2.5)
Circular Pitch: =PI()*m

Example Calculation

Let's design a standard metric spur gear with a Module (m) of 2.0 mm and 30 teeth (N). We need to find the Pitch Diameter (d) and the Outside Diameter (da) for the lathe turning operation.

Pitch Diameter (d)
d = 2.0 × 30
60.0 mm
Outside Diameter (da)
da = 2.0 × (30 + 2)
64.0 mm

Understanding Gear Module and Geometry

Technical Introduction

The gear module (m) is the cornerstone of metric gear design. It defines the proportional relationship between the pitch diameter and the number of teeth, expressed in millimetres per tooth. In ISO metric gears, the module ensures compatibility: two gears will only mesh correctly if they share the same module and pressure angle. This concept replaces the imperial Diametral Pitch (DP), which measures teeth per inch of pitch diameter. By using the module, engineers can directly scale gear size and maintain geometric similarity across different tooth counts.

The module is critical in mechanical engineering because it governs not only the gear’s physical dimensions but also its load capacity, efficiency, and manufacturability. Selecting the correct module is therefore a balance between strength, size, and standardization.

Governing Formulas

Once m and N (number of teeth) are defined, the primary gear dimensions follow simple geometric formulas:

  • Pitch Diameter (d = m × N): The diameter of the pitch circle, representing the effective rolling contact between gears.
  • Outside Diameter (da = m × (N + 2)): The maximum gear diameter including addendum height.
  • Root Diameter (df = m × (N − 2.5)): The minimum diameter at the tooth root, including clearance.
  • Circular Pitch (p = π × m): The arc length between adjacent teeth measured along the pitch circle.
  • Addendum (a = m): Radial distance from pitch circle to tooth tip.
  • Dedendum (b = 1.25 × m): Radial distance from pitch circle to tooth root, including clearance.

These formulas assume standard full-depth teeth with a 20° pressure angle. They are valid for spur gears without profile shift (x = 0).

Calculation Method

The derivation of these formulas comes from the definition of the pitch circle. The pitch circle is an imaginary circle where gear teeth theoretically engage without slipping. By dividing the pitch circumference by the number of teeth, the circular pitch is obtained. The module is then defined as the pitch diameter divided by the number of teeth, simplifying the geometry into a single scaling factor. Addendum and dedendum are standardized proportions of the module to ensure clearance and proper meshing.

Input Parameters Explained

  1. Module (m): Defines tooth size. Larger modules produce stronger teeth but increase gear size. Always select from ISO standard series.
  2. Number of Teeth (N): Determines gear ratio when paired with another gear. Low tooth counts risk undercutting unless profile shifted.
  3. Pressure Angle: Typically 20° in ISO gears. It affects tooth strength and sliding friction. This calculator assumes 20°.

Engineers must ensure both gears in a pair share the same module and pressure angle. A mismatch will prevent proper meshing.

Engineering Interpretation

The calculated dimensions guide manufacturing and inspection. The pitch diameter defines the gear’s functional size, while the outside and root diameters determine machining limits. Circular pitch ensures correct spacing for hobbing or shaping cutters. Addendum and dedendum guarantee clearance between mating gears. These values are not arbitrary—they directly influence load distribution, efficiency, and service life.

For example, increasing module increases tooth thickness, improving strength but reducing the number of teeth for a given diameter. This affects gear ratio and smoothness of operation. Engineers interpret these trade-offs when designing transmissions, machinery, or precision instruments.

Units and Conversion

In metric gears, all dimensions are expressed in millimetres. For comparison, imperial gears use Diametral Pitch (DP), defined as teeth per inch of pitch diameter. The conversion between DP and module is:

m = 25.4 / DP

This conversion highlights why mixing metric and imperial gears leads to incompatibility. A gear with module 2.0 mm corresponds to DP ≈ 12.7.

Alternative and General Cases

While this calculator focuses on standard spur gears, other cases exist:

  • Profile Shifted Gears: Modify addendum/dedendum to avoid undercutting in low tooth counts.
  • Helical Gears: Use the normal module, adjusted by helix angle.
  • Non-standard Pressure Angles: 14.5° or 25° gears require different clearance factors.

These cases require modified formulas beyond the scope of this calculator.

Assumptions and Limitations

The formulas assume:

  • Standard ISO metric spur gears.
  • 20° pressure angle, full-depth teeth.
  • No profile shift (x = 0).
  • Negligible manufacturing tolerances.

Real gears may deviate due to machining errors, heat treatment distortion, or intentional profile modifications.

Practical Engineering Use

Gear module calculations are essential in:

  • Designing gearboxes for automotive and industrial machinery.
  • Specifying gears for CNC machines, robotics, and automation systems.
  • Reverse engineering unknown gears by measuring outside diameter and tooth count.
  • Ensuring compatibility when sourcing replacement gears across suppliers.

In practice, engineers use these formulas to size gear blanks, select cutters, and verify dimensions during inspection. Correct application prevents costly failures such as interference, undercutting, or mismatched gear pairs.

Conclusion

The gear module provides a simple yet powerful framework for defining spur gear geometry. By combining module and tooth count, engineers can derive all critical dimensions needed for manufacturing and assembly. While the formulas are straightforward, their implications on strength, compatibility, and performance are profound. This calculator offers a reliable tool for preliminary design and verification, but engineers must also consider advanced factors such as profile shift, helix angle, and material properties in detailed gear design.

Real-World Engineering Cases

Incompatible Replacement Gears

A maintenance team attempted to replace a broken imported 3D printer gear. They counted 40 teeth and measured a 42 mm outside diameter. They ordered a '40 Tooth, 32-Pitch (Imperial)' gear, which has a 33.3 mm outside diameter. It completely failed to mesh.

Engineering Lesson

You cannot mix Metric Module and Imperial Diametral Pitch. The broken gear had a Module of 1.0 (da = 1 × (40+2) = 42 mm). Reverse engineering requires understanding the foundational formulas.

Interference in Low Tooth Count Gears

A designer specified a standard 20° pressure angle pinion with only 12 teeth to achieve a massive reduction ratio. When manufactured, the gear teeth were severely 'undercut' at the root, making them weak and prone to breaking under load.

Engineering Lesson

The standard formulas assume a minimum number of teeth (usually 17 for a 20° pressure angle) to avoid undercutting. For fewer teeth, profile shifting (modifying the addendum) is mandatory.

Frequently Asked Questions

What is the difference between Module and Circular Pitch?

The module is a rational number (like 2.0 or 3.0) representing diameter/teeth. Circular pitch is the physical arc length between teeth along the pitch circle. They are related by the formula: Circular Pitch = π × Module.

How do I measure the module of an unknown gear?

Count the number of teeth (N). Use calipers to carefully measure the Outside Diameter (da). The Module (m) is approximately da / (N + 2). Match this result to the nearest standard ISO Module.

What is the Addendum and Dedendum?

The addendum (a = 1 × m) is the radial distance from the pitch circle to the top of the tooth. The dedendum (b = 1.25 × m) is the radial distance from the pitch circle to the bottom of the tooth root.

Calculations are based on standard ISO metric spur gears with full-depth teeth and a 20° pressure angle. Non-standard gears, helical gears, or gears with profile shifts (x-factor) require modified geometric equations.