Home › Calculators › Spur Gear Calculator

Spur Gear Calculator

Work out the full geometry of a pair of standard involute spur gears. Enter a metric module or an inch diametral pitch, the tooth counts and the pressure angle to get pitch, outside, root and base diameters, center distance, tooth depth, chordal thickness and contact ratio, with a to-scale drawing of the mesh.

Last updated:

Tooth size
Tooth size system
mm

Common: 0.5, 1, 1.25, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10

teeth/in

Common: 4, 6, 8, 10, 12, 16, 20, 24, 32, 48

Gear pair

Same unit as the system (mm or in). Rule of thumb: 8–16 × module

rpm
Enter your values to see the result.
Advertisement
Advertisement

How to use the Spur Gear Calculator

  1. Choose the system: metric module (mm) or diametral pitch (teeth per inch).
  2. Enter the module or DP and pick the pressure angle (20° is the modern standard).
  3. Type the tooth counts of the pinion (smaller gear) and the gear.
  4. Add optional values: face width and pinion rpm.
  5. Read the results: center distance first, then diameters, tooth sizes, contact ratio and the drawing. Download the table as CSV if you need it.

Spur gear formulas

The calculator uses standard full-depth involute proportions (ISO 53 basic rack for metric module gears, the AGMA full-depth system for inch diametral pitch gears) with no profile shift. Here m is the module in mm, P the diametral pitch, z or N the number of teeth and α the pressure angle.

DimensionMetric (module)Inch (diametral pitch)
Pitch diameterd = m zD = N ÷ P
Addendumha = ma = 1 ÷ P
Dedendumhf = 1.25 mb = 1.25 ÷ P
Outside diameterda = m (z + 2)Do = (N + 2) ÷ P
Root diameterdf = m (z − 2.5)DR = (N − 2.5) ÷ P
Base diameterdb = d cos αDb = D cos φ
Circular pitchp = π mp = π ÷ P
Tooth thickness at pitch circles = π m ÷ 2t = π ÷ (2P)
Center distancea = m (z₁ + z₂) ÷ 2C = (N₁ + N₂) ÷ (2P)
Whole depthh = 2.25 mht = 2.25 ÷ P

Some fine-pitch inch standards (20 DP and finer) use a slightly deeper dedendum of 1.2 ÷ P + 0.002 in; check your cutter or supplier if you work with very small gears.

Common module and diametral pitch sizes

Module (mm)Equivalent DPCircular pitchWhole depthNearest common DP
0.550.801.571 mm1.125 mm48
0.831.752.513 mm1.800 mm32
125.403.142 mm2.250 mm24
1.516.934.712 mm3.375 mm16
212.706.283 mm4.500 mm12
2.510.167.854 mm5.625 mm10
38.479.425 mm6.750 mm8
46.3512.566 mm9.000 mm6
55.0815.708 mm11.250 mm5
64.2318.850 mm13.500 mm4

The "nearest" DP is only close in size: module and DP gears never mesh correctly with each other.

Design tips

  • Mating gears must match in module (or DP) and pressure angle. Tooth count only changes the size and the ratio.
  • Avoid tiny pinions. Below about 17 teeth at 20° the cutter removes material at the tooth root (undercut), weakening the tooth and shortening contact.
  • Face width is usually 8 to 16 times the module; wider faces need very accurate shaft alignment.
  • Hunting tooth ratios (tooth counts with no common factor, such as 19 and 41) spread wear evenly because each tooth meets every tooth of the other gear.
  • Backlash is created by thinning the teeth slightly or opening the center distance a little beyond the theoretical value.

Frequently asked questions

How do I calculate the pitch diameter of a spur gear?

Multiply the module by the number of teeth (d = m × z) for metric gears, or divide the teeth by the diametral pitch (d = N ÷ P) for inch gears. A 40-tooth gear with module 2 has a 80 mm pitch diameter; a 48-tooth, 12 DP gear has a 4 in pitch diameter.

What is the outside diameter of a gear?

For standard full-depth teeth the outside (tip) diameter is the pitch diameter plus two addendums: d + 2m in metric or (N + 2) ÷ P in inch units. This is the size of the gear blank before the teeth are cut.

How is the center distance of two gears found?

For standard gears without profile shift the center distance is half the sum of the pitch diameters: a = m (z₁ + z₂) ÷ 2. A 20-tooth and 40-tooth pair in module 2 runs at 60 mm centers. Spreading the centers slightly adds backlash.

How do I convert between module and diametral pitch?

Module = 25.4 ÷ DP, and DP = 25.4 ÷ module. A 12 DP gear is about module 2.117, so it is not interchangeable with module 2 gears even though they look similar. Gears must have the same module (or DP) and pressure angle to mesh.

What tooth depth does a standard spur gear have?

Full-depth teeth have an addendum of 1 module and a dedendum of 1.25 module, so the whole depth is 2.25 × m (or 2.25 ÷ P in inches). The working depth is 2m and the root clearance 0.25m.

What is the minimum number of teeth to avoid undercut?

In theory 2 ÷ sin²α: about 17 teeth at 20° and 32 teeth at 14.5°. In practice about 14 teeth (20°) still runs well. Fewer teeth need a positive profile shift or a larger pressure angle.

What is a good contact ratio?

The contact ratio is the average number of tooth pairs in mesh. It must be above 1 for continuous motion; 1.2 is a common minimum and 1.4 to 1.8 is typical for standard 20° spur gears with a reasonable number of teeth.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Gear Ratio CalculatorGear ratio, output rpm and torque for multi-stage gear trains, plus vehicle speed at rpm.Torque CalculatorSolve τ = r·F·sin θ for torque, force, lever arm or angle, and convert torque to power at any rpm.Bike Gear CalculatorGear ratio, gear inches, development and speed for every chainring and cog combination.Section Modulus CalculatorSection modulus, moment of inertia, centroid and radius of gyration for beams and shapes.BTU CalculatorEstimate air conditioner BTU, tons and heating BTU for a room from its size and conditions.Pipe Flow Rate CalculatorFlow rate from pipe diameter and velocity (GPM, L/s, m³/h), velocity from flow, or pipe size.Rebar CalculatorRebar for a slab grid: bars each way, total length, weight by bar size and stock bars.Beam Deflection CalculatorMax deflection, moment and shear for simply supported, cantilever or fixed beams.Sheet Metal Bend Allowance CalculatorBend allowance, bend deduction and flat blank length from thickness, radius, angle, K-factor.Bolt Torque CalculatorTightening torque for metric and UNC/UNF bolts from grade, lubrication and target preload.Duct Size CalculatorRound duct diameter and equivalent rectangular duct sizes from CFM and friction or velocity.Room Heat Loss CalculatorRoom heat loss in BTU/h and watts from walls, windows, ceiling, floor and air leakage.Moment of Inertia CalculatorMass moment of inertia of common shapes and area moment of beam sections, incl. I-beams.Pulley Belt and Speed CalculatorDriven RPM, belt length, belt speed and ratio from pulley diameters and center distance.Steel Weight CalculatorWeight of steel plate, bar, pipe, tube and angle in kg and lb from dimensions and material.Tap Drill Size CalculatorTap drill size for metric, UNC and UNF threads at any thread %, with a full drill chart.Pipe Volume CalculatorWater volume in a pipe by NPS/schedule or inner diameter: gallons, liters, weight, fill time.Air Changes per Hour CalculatorCalculate ACH from CFM and room size, CFM for a target ACH, ACH50 or ASHRAE ventilation.Aviation Fuel CalculatorFlight fuel required with taxi, reserves and alternate, in gallons, liters and pounds.Bearing CalculatorInitial and final bearing, compass direction and great-circle distance between two coordinates.Belt Length CalculatorBelt length from two pulley diameters and center distance, or center distance from a belt.Bolt Circle CalculatorX/Y coordinates for every hole on a bolt circle, with a drawing and CSV export.Drone Flight Time CalculatorEstimate drone flight time from battery mAh, voltage, discharge, weight and amp draw.E6B Flight ComputerOnline E6B: wind correction, heading, ground speed, time-speed-distance, fuel and conversions.G-Code ViewerPreview 3D printer and CNC G-code in 2D or 3D with layers, size and estimated time.Hydraulic Cylinder CalculatorPush and pull force, extend and retract speed, cycle time and oil volume from bore, rod and pressure.ISO Fits and Tolerances CalculatorHole and shaft limits, clearance or interference and fit type for ISO 286 fits like H7/g6.Map Distance CalculatorClick points on a map to measure a path in km, miles or nautical miles, with GPX export.Pipe Schedule ChartOD, wall thickness, ID, weight per foot and volume for any NPS and pipe schedule.Pump Power CalculatorHydraulic, shaft and motor power in kW and HP from flow, head, specific gravity and efficiency.Shear and Moment Diagram CalculatorDraw shear force and bending moment diagrams with reactions and max values for any beam.Stress and Strain CalculatorStress, strain and Young's modulus from force, area and length change, with material checks.Tension CalculatorRope tension for a hanging mass on one or two angled ropes, a pulled object or a pulley.Screw Thread CalculatorUNC, UNF and metric thread dimensions: major, pitch and minor diameters, tap drill and limits.Aircraft Weight and Balance CalculatorAircraft weight and balance: total weight, moment and CG, plotted against your CG envelope.
See all 34 Engineering & Machining Calculators →