Spur Gear Calculator

Centre distance105.0 mm
Pinion pitch diameter60.0 mm
Gear pitch diameter150.0 mm
Pinion outside diameter66.0 mm
Gear ratio2.50 : 1
Gear speed400.0 rpm
How this was calculated
  1. Module is the size unit of the gear: pitch diameter = module x teeth, so the pinion is 3 x 20 = 60.0 mm and the gear is 150.0 mm.
  2. Add two modules for the tooth tips and subtract 2.5 for the root: the pinion outside diameter is 66.0 mm (gear 156.0 mm) and its root diameter is 52.5 mm.
  3. The shafts sit at centre distance (d1 + d2) / 2 = 105.0 mm - the dimension the housing bores must hold for a standard 20 degree pressure angle mesh.
  4. The ratio is teeth over teeth, 50 / 20 = 2.50, so the gear turns at 400.0 rpm and the teeth mesh 20,000 times a minute.

This spur gear calculator turns a few basic inputs — module, tooth counts and input speed — into the dimensions and ratios you need to design or check a gear pair. It reports pitch diameter, outside diameter, centre distance, gear ratio and output speed. For example, a module 3 pinion with 20 teeth has a pitch diameter of 60.0 mm; meshing with a 50-tooth gear it needs a centre distance of 105.0 mm and gives a 2.50 : 1 ratio. That pinion's outside diameter is 66.0 mm — pitch diameter plus two modules — and at 1,000 rpm it drives the gear at 400.0 rpm. A module 2 pair, 16 driving 64 teeth, gives a 4.00 : 1 reduction and 362.5 rpm out from 1,450 rpm in, while equal 24-tooth module 4 gears mesh at a 96.0 mm centre distance with a 1.00 : 1 ratio — the layout of a simple idler pair.

The method behind these results is the standard geometry used for spur gears: pitch diameter from module and tooth count, outside diameter as pitch diameter plus two modules, centre distance as half the sum of the two pitch diameters, and ratio and output speed from the tooth counts. That is why the numbers match the worked cases above. This page shows the formula, the step-by-step workings, worked examples and sources, so you can follow every figure rather than take it on trust.

Worked examples

Module 3, 20 driving 50 teeth at 1,000 rpm

(3 mm · 20 · 50 · 20° (standard) · 1000 rpm)

Centre distance105.0 mm
Pinion pitch diameter60.0 mm
Gear pitch diameter150.0 mm
Pinion outside diameter66.0 mm
Gear ratio2.50 : 1
Gear speed400.0 rpm

Module 2, 16 driving 64 teeth at 1,450 rpm

(2 mm · 16 · 64 · 20° (standard) · 1450 rpm)

Centre distance80.0 mm
Pinion pitch diameter32.0 mm
Gear pitch diameter128.0 mm
Pinion outside diameter36.0 mm
Gear ratio4.00 : 1
Gear speed362.5 rpm

Module 4, equal 24-tooth pair, 14.5 degree teeth

(4 mm · 24 · 24 · 14.5° · 600 rpm)

Centre distance96.0 mm
Pinion pitch diameter96.0 mm
Gear pitch diameter96.0 mm
Pinion outside diameter104.0 mm
Gear ratio1.00 : 1
Gear speed600.0 rpm

How spur gear geometry is calculated

A spur gear calculator starts from a single number: the module. The module is the size unit for the whole gear, and every diameter in the gear's geometry scales from it. Once you know the module and the tooth count, the rest of the dimensions follow directly, which is why the module is the first input on any spur gear calculator.

The four core formulas are short. Pitch diameter equals module times tooth count: m × z. Outside diameter equals module times tooth count plus two: m (z + 2). Root diameter equals module times tooth count minus 2.5: m (z − 2.5). Centre distance for a meshing pair equals module times the sum of the two tooth counts, divided by two: m (z1 + z2) / 2. The gear ratio is simply the ratio of the tooth counts, so a larger gear on the driven shaft turns slower by that same factor.

Work the module 3 example fully. A module 3 pinion with 20 teeth has a pitch diameter of 60.0 mm, because 3 × 20 = 60.0. Its outside diameter is 66.0 mm — pitch diameter plus two modules, since 3 × (20 + 2) = 66.0. Meshing with a 50-tooth gear, the centre distance is 105.0 mm, from 3 × (20 + 50) / 2 = 105.0, and the pair gives a 2.50 : 1 ratio, since 50 ÷ 20 = 2.50. At 1,000 rpm the pinion drives the gear at 400.0 rpm, which is 1,000 ÷ 2.50.

The same formulas hold at other sizes. A module 2 pair, 16 teeth driving 64 teeth, gives a 4.00 : 1 reduction, and 1,450 rpm in produces 362.5 rpm out. Equal 24-tooth module 4 gears mesh at a 96.0 mm centre distance with a 1.00 : 1 ratio — the layout of a simple idler pair, where the centre distance is 4 × (24 + 24) / 2 = 96.0 and neither shaft changes speed relative to the other.

Two practical notes follow from these relationships. First, the module sets the tooth size, so gears only mesh correctly when they share the same module. Second, the outside diameter is always the pitch diameter plus two modules, and the root diameter is always the pitch diameter minus 2.5 modules — the 2.5 accounts for the clearance below the pitch line. Check those two dimensions against your measured blank before you cut teeth, and confirm the centre distance before you drill the shaft holes.

  • Pitch diameter: m × z
  • Outside diameter: m (z + 2)
  • Root diameter: m (z − 2.5)
  • Centre distance: m (z1 + z2) / 2
  • Ratio: z2 ÷ z1
Module 3, 20 teeth: pitch 60.0 mm, outside 66.0 mm, centre distance 105.0 mm to a 50-tooth gear, ratio 2.50 : 1, and 1,000 rpm in gives 400.0 rpm out.

Ratio and output speed

The gear ratio of a spur pair is simply the number of teeth on the driven gear divided by the number of teeth on the driving gear. In the main worked example, a module 3 pinion with 20 teeth drives a 50-tooth gear, so the ratio is 50 divided by 20, or 2.50 : 1. That single number tells you two things at once: the output turns 2.5 times slower than the input, and it turns with 2.5 times the torque (ignoring friction losses). A spur gear calculator returns this ratio directly from the tooth counts, before any speed is entered.

Output speed follows straight from the ratio. Divide the input speed by the ratio to get the driven gear's speed. The same module 3 pinion running at 1,000 rpm drives its 50-tooth gear at 400.0 rpm, because 1,000 divided by 2.50 is 400. A second example shows a steeper reduction: a module 2 pair with 16 teeth driving 64 teeth gives a 4.00 : 1 ratio, so an input of 1,450 rpm produces 362.5 rpm at the output. Notice that the module never enters these speed calculations. Tooth counts set the ratio and the speeds; module sets the physical size of the teeth and therefore the centre distance, which is 105.0 mm for the module 3 pair.

Speed at the output is only half the story, because the teeth themselves mesh at a much higher rate. Tooth mesh frequency is the number of tooth contacts per unit time, and it is the input speed multiplied by the number of teeth on the smaller gear. In the main example, 1,000 rpm times 20 teeth gives 20,000 tooth engagements per minute. That figure, not the shaft speed, is what drives mesh noise and tooth wear: every engagement is an impact, and the faster the teeth pass each other, the more often that impact repeats. A high mesh frequency is a common reason a gear set that looks fine on paper turns out to be the loudest part of a machine.

This is why a spur gear calculator is worth using for more than the ratio alone. Run the numbers for ratio, output speed and mesh frequency together, and you can see whether a proposed pair will be quiet and long-lived or fast-wearing and noisy before anything is cut. If the mesh frequency comes out high, options include a larger pinion with fewer revolutions, a different tooth count split that keeps the same ratio, or accepting the noise and specifying a material and lubricant that cope with it.

For reference, ratio and output speed behave predictably across common layouts. The same arithmetic applies whether the pair is a reduction, an overdrive, or a 1 : 1 arrangement.

  • Module 3, 20 teeth driving 50 teeth: 2.50 : 1 ratio, 1,000 rpm in gives 400.0 rpm out, mesh frequency 20,000 per minute.
  • Module 2, 16 teeth driving 64 teeth: 4.00 : 1 ratio, 1,450 rpm in gives 362.5 rpm out.
  • Equal 24-tooth module 4 gears: 1.00 : 1 ratio at a 96.0 mm centre distance, the layout of a simple idler pair.
Ratio = driven teeth ÷ driving teeth. Output speed = input speed ÷ ratio. Mesh frequency = input rpm × teeth on the smaller gear — the number that governs noise and wear.

Pressure angle: 20 degrees vs 14.5 degrees

The pressure angle is the angle between the line of action and the common tangent to the pitch circles at the point where the teeth meet. It shapes the tooth flank, and it decides how the load travels from one tooth to the next. For most of the twentieth century, 14.5 degrees was the standard. Today, 20 degrees is the default in nearly every spur gear calculator and catalog, and the reasons come down to strength, undercut and separating force.

A 20-degree flank is stubbier and broader at the root than a 14.5-degree flank of the same module. That extra material at the base makes each tooth stiffer and better able to carry bending load, so a 20-degree gear can transmit more torque at the same size. The steeper flank also keeps the contact point closer to the base circle over more of the mesh, which spreads the load more evenly across the teeth in contact. The trade-off is real: the same steeper angle pushes the teeth apart harder. The separating force between the shafts grows, so bearings, shafts and housings must be sized for more radial load than a 14.5-degree pair would demand.

Undercut is where the 20-degree standard really earns its place. When a small pinion cuts into the flank of a mating gear, the root of the tooth is weakened and the usable involute is shortened. A 20-degree tooth tolerates far fewer teeth before undercut becomes a problem, so small pinions can be made without adding profile shift or resorting to a larger module. That matters in compact drives. A module 3 pinion with 20 teeth has a pitch diameter of 60.0 mm; meshing with a 50-tooth gear it needs a centre distance of 105.0 mm and gives a 2.50 : 1 ratio. Its outside diameter is 66.0 mm - pitch diameter plus two modules - and at 1,000 rpm it drives the gear at 400.0 rpm. Those are the proportions a 20-degree design handles comfortably at a low tooth count.

The older 14.5-degree standard has not disappeared. It survives where loads are light, speeds are modest and the priority is smooth, quiet running rather than torque density - small instrument gears, some legacy machinery, and replacement parts for equipment designed decades ago. A gear cut to 14.5 degrees will not mesh correctly with a 20-degree mate, so the two standards cannot be mixed in one pair. If you are matching an existing gear, measure the pressure angle before you order; if you are designing fresh, 20 degrees is the safer default.

The ratios and centre distances themselves do not depend on pressure angle - only the tooth shape and the forces do. A module 2 pair, 16 driving 64 teeth, gives a 4.00 : 1 reduction and 362.5 rpm out from 1,450 rpm in. Equal 24-tooth module 4 gears mesh at a 96.0 mm centre distance with a 1.00 : 1 ratio - the layout of a simple idler pair. Set the pressure angle first, then let the spur gear calculator work out the geometry and the separating loads.

20 degrees is the modern default: stronger teeth and far less undercut at low tooth counts, at the cost of higher separating force on shafts and bearings. 14.5 degrees survives mainly in light-duty, legacy and instrument gearing - and the two angles never mesh with each other.

Checking a gear pair before you cut or buy

Before a spur gear pair is cut or ordered, three checks catch most of the expensive mistakes: tooth count, centre distance, and how you verify the finished size. A spur gear calculator makes each one quick, and the numbers below show what to look for.

Start with tooth count. Small pinions are the usual trouble spot, because below a certain number of teeth the cutter undercuts the root and weakens the tooth. As a working example, a module 3 pinion with 20 teeth has a pitch diameter of 60.0 mm. Meshing with a 50-tooth gear, it needs a centre distance of 105.0 mm and gives a 2.50 : 1 ratio. That is a comfortable pinion size, but if you shrink the tooth count to gain ratio, check the undercut limit for your pressure angle before you commit to the drawing.

Next, treat centre distance as a range, not a single number. Real gears need backlash so they run without binding, and the backlash you want is set by how far apart the shafts sit. The nominal figures assume standard cutting. The same module 3 pinion has an outside diameter of 66.0 mm, which is simply pitch diameter plus two modules, and at 1,000 rpm it drives the 50-tooth gear at 400.0 rpm. If you open the centre distance to add backlash, the ratio stays the same but the tooth contact shifts, so decide the allowance before machining the housing. A second pair shows the same arithmetic: module 2, 16 teeth driving 64, gives a 4.00 : 1 reduction and 362.5 rpm out from 1,450 rpm in.

Finally, verify the finished gear by measuring over pins rather than trusting the nominal outside diameter. Outside diameter is easy to check with a caliper, but it tells you little about tooth thickness, which is what actually controls backlash. The over-pins measurement captures tooth thickness at the pitch line, so it confirms the gear will mesh at the centre distance you designed. Use the outside diameter as a rough sanity check only. Equal 24-tooth module 4 gears, for instance, mesh at a 96.0 mm centre distance with a 1.00 : 1 ratio, the layout of a simple idler pair, and that is the kind of pair where a quick outside-diameter check is fine because both gears are identical.

  • Check the pinion tooth count against the undercut limit before fixing the ratio.
  • Set centre distance as a tolerance that includes your backlash allowance.
  • Measure over pins to confirm tooth thickness; use outside diameter only as a rough check.
Module 3, 20 teeth: pitch diameter 60.0 mm, outside diameter 66.0 mm, centre distance 105.0 mm with a 50-tooth gear, ratio 2.50 : 1, and 400.0 rpm out at 1,000 rpm in.

FAQs

How do I calculate gear pitch diameter?

Multiply the module by the number of teeth. In the main example, the pinion has module 3 and 20 teeth, so the pitch diameter is 3 x 20 = 60.0 mm. Pitch diameter is the working diameter where the teeth of two gears effectively roll together, so it is the starting point for most other gear dimensions.

What centre distance do two gears need?

The centre distance is half the sum of the two pitch diameters. For the module 3 pair, the pinion measures 60.0 mm and the gear measures 150.0 mm, so (60.0 + 150.0) / 2 = 105.0 mm. Mount the two shafts 105.0 mm apart for correct tooth contact.

How do I get the gear ratio from teeth?

Divide the driven gear's tooth count by the pinion's tooth count. With 50 teeth driving 20 teeth, 50 / 20 = 2.50 : 1. That ratio drops an input speed of 1,000 rpm to 400.0 rpm at the output, while torque rises in proportion. Count teeth carefully, since the ratio depends only on those counts.

What is gear module?

Module is the size of the teeth, measured as millimetres of pitch diameter per tooth. Two gears mesh only when their modules match: module 3 teeth are the same size on the 20-tooth and the 50-tooth gear, which is what lets them run together. A larger module means bigger, stronger teeth.

What is the outside diameter of a spur gear?

Use module x (teeth + 2). For the 20-tooth module 3 pinion, that is 3 x (20 + 2) = 66.0 mm. The outside diameter is the tip diameter you measure across the top of the teeth, and it is slightly larger than the pitch diameter of 60.0 mm.

Which pressure angle should I choose?

Choose 20 degrees for almost all new designs, since it is the standard for modern gearing. The 14.5 degree option exists for matching legacy gearboxes, where existing gears already use that angle. Gears with different pressure angles should not be mixed in one mesh, so match whatever the rest of the train uses.

Sources

Related calculators

Hip Rafter Length Calculator
The theoretical hip rafter length for a regular hip roof, from building span and pitch, via the 45-degree plan length and the total rise.
Bolt Torque Calculator
Bolt torque calculator: tightening torque for a target clamp load by T = K D F, with dry, oiled and waxed K factors.
AASHTO Group Index Calculator
AASHTO group index and soil group (A-1 to A-7) from the percentage passing the 75 um sieve, liquid limit and plasticity index, with the capped index terms and the subgrade quality the index implies.