ForHosting KIT · Developer Utilities

Gear pitch diameter calculator

This gear pitch diameter calculator turns two standard spur gear specifications—the metric module and number of teeth—into the theoretical pitch diameter used for layout and meshing.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

It applies the direct relationship between module, tooth count, and pitch-circle size, giving designers a quick, repeatable result without measuring outside diameter or estimating from a drawing. Use it when selecting mating gears, establishing shaft locations, checking a catalog part, or preparing an early mechanical layout before detailed tooth geometry is available.

What pitch diameter represents

Pitch diameter is the diameter of the imaginary pitch circle on which a spur gear is treated as rolling against its mate without slipping. It is not the physical outside diameter measured across the tooth tips, and it is not the root diameter at the bottoms of the tooth spaces. That distinction matters because gear ratios, nominal center distances, and tangential pitch-line velocities are based on pitch circles. For a standard metric spur gear, the module describes pitch-circle size per tooth, while the tooth count says how many equal pitches fit around the gear. Multiplying those values gives the pitch diameter in the same length unit used for the module. A module stated in millimetres therefore produces a pitch diameter in millimetres. The calculator reports the supplied values and the formula with the result, making it easier to carry the number into a drawing, spreadsheet, or design review without losing the assumptions behind it.

How to enter module and tooth count

Enter the metric module as a positive finite number and the tooth count as a positive whole number. Common modules include values such as 0.5, 1, 1.5, 2, and 2.5, but the calculator does not restrict you to a preferred manufacturing series. The tooth count must be an integer because a manufactured gear cannot have a fractional tooth. For example, a module of 2.5 millimetres and 24 teeth produces a 60 millimetre pitch diameter. Keep the unit convention consistent: the numerical result inherits the module’s length unit per tooth. Metric module is conventionally expressed in millimetres, so this tool is intended for module-based gear systems rather than diametral-pitch inputs. Do not enter the circular pitch, outside diameter, or diametral pitch in the module field. Those quantities are related, but substituting one of them directly changes the meaning of the calculation and yields a misleading diameter.

Using the result for gear layouts and meshes

Use the calculated pitch diameter to build the pitch circles in a gearbox layout and to establish nominal shaft spacing. For two external standard spur gears, the theoretical center distance is half the sum of their pitch diameters. For an external gear meshing with an internal gear, the corresponding nominal distance is half the difference, subject to the actual design convention. Mating gears must use the same module, and practical compatibility also depends on pressure angle, tooth form, helix angle, profile shift, backlash, face width, quality, and manufacturing tolerances. This calculator deliberately handles only the basic uncorrected pitch-diameter relationship; it does not determine outside diameter, base diameter, root diameter, undercut risk, working pitch diameter, or modified center distance. Treat the output as a clean layout value and a starting point for meshing calculations, then confirm the full tooth system and any profile modifications against the applicable gear standard or the manufacturer’s data before releasing a production design.

Lay out gearbox shafts

Calculate each gear's pitch circle before deriving the nominal center distance between parallel shafts.

Check a catalog gear

Confirm that a listed module and tooth count imply the pitch diameter expected in a mechanical drawing.

Compare candidate gear sizes

Evaluate how changing module or tooth count affects the space occupied by a spur gear at the pitch circle.

What formula does the calculator use?

It uses pitch diameter = module × number of teeth for a standard module-based spur gear.

What unit is the pitch diameter returned in?

The result uses the length unit represented by the module. With module in millimetres per tooth, pitch diameter is in millimetres.

Is pitch diameter the same as outside diameter?

No. Pitch diameter describes the theoretical rolling circle, while outside diameter is measured across the tooth tips.

Can I use diametral pitch as the module input?

No. Diametral pitch uses a different convention and must be converted to module before using this calculator.

Does this result guarantee that two gears will mesh?

No. Mating gears also need compatible module, pressure angle, tooth form, and other geometry and tolerance choices.

What does an API calculation cost?

Each API request costs $0.002. The browser calculation is available without an API request.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/eng/gear-pitch-diameter

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/eng/gear-pitch-diameter \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"module":2.5,"teeth":24}'
{
  "module": 2.5,
  "teeth": 24
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "eng.gear_pitch_diameter",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →