Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Thread Calculator

Convert threads per inch to thread pitch in millimetres, or a metric pitch back to TPI, using the exact 25.4 mm inch. A 1/4-20 UNC bolt is a 1.27 mm pitch.

Thread Calculator

Known thread measure
Thread pitch
1.27
Distance from one thread crest to the next, measured along the axis, in millimetres.
Threads per inch
20TPI

Background.

A screw thread is a helix, and the first thing anyone needs to know about it is how tightly that helix is wound. Two conventions describe the same spacing. Metric threads quote the pitch: the distance in millimetres from one crest to the next, measured along the axis, so an M10 coarse bolt is M10×1.5. Inch-series threads count instead. A 1/4-20 UNC bolt has 20 crests in every inch of its length, and the 20 is the number printed on the box.

One inch has been exactly 25.4 mm since the 1959 international yard and pound agreement, so moving between the two conventions is a single division: pitch = 25.4 ÷ TPI, and TPI = 25.4 ÷ pitch. The relationship is reciprocal. A finer thread has a smaller pitch and a larger thread count.

The conversion comes up whenever a part from one system meets a tap, die, nut or lathe gearbox from the other. It is also how near-misses get caught. A 1.25 mm metric pitch is 20.32 TPI, not 20. A 1/2-13 UNC bolt has a pitch of about 1.954 mm, while the nearest metric size, M12 coarse, uses 1.75 mm. Threads that look identical by eye can differ by a few hundredths of a millimetre per turn, and that error adds up along every thread that is engaged.

Spacing is all the result tells you. Major diameter, flank angle (60° for Unified and ISO metric threads, 55° for Whitworth and BSP pipe threads), tolerance class and the number of starts all decide whether two parts actually mate, and none of them enters this calculation.

What is thread calculator?

Thread pitch is the axial distance between matching points on neighbouring threads, crest to crest or root to root, given here in millimetres. Threads per inch is the number of those threads in 25.4 mm of length. Each is 25.4 divided by the other, so either one fully determines the other. On an ordinary single-start thread the pitch also equals the lead, the distance a screw advances in one full turn; on a two- or three-start thread the lead is two or three times the pitch, and only the pitch is given here.

How to use this calculator.

  1. Under Known thread measure, choose Threads per inch if your number comes from an inch designation such as 3/8-16 or 1/4-28, or Pitch in millimetres if it comes from a metric one such as M8×1.25, where the pitch is the figure after the ×.
  2. Type the number into Known value. Fractional thread counts are accepted, which matters for pipe threads: 1-inch NPT, for example, is 11.5 TPI.
  3. Working from an unmarked part rather than a drawing, use a thread pitch gauge if you have one. Without it, measure with calipers from one crest to the eleventh crest along, which spans ten pitches, and divide by ten to get the pitch in millimetres.
  4. Read the pitch and TPI side by side; one of them simply repeats what you typed. Before treating the converted figure as a match for a part in the other system, confirm the diameter and thread form as well.

The formula.

Pitch (mm) = 25.4 / TPI; TPI = 25.4 / pitch (mm)

Pitch (mm) = 25.4 ÷ TPI, and TPI = 25.4 ÷ pitch (mm). The 25.4 is not a rounded figure: the international inch is defined as exactly 25.4 millimetres, so the conversion adds no error of its own beyond the rounding of the displayed result. Whichever measure you enter is passed straight through to its own output, and the other is found by dividing 25.4 by it. Because the relationship is a reciprocal, its sensitivity is uneven. Going from 10 to 11 TPI shortens the pitch by about 0.231 mm, while going from 40 to 41 TPI changes it by only about 0.015 mm. That is why fine threads one count apart are so hard to tell apart without a gauge. Thread form, diameter and the number of starts play no part in the result.

A worked example.

Example

A quarter-inch coarse bolt is designated 1/4-20 UNC, so choose Threads per inch and enter 20. The pitch is 25.4 ÷ 20 = 1.27 mm: each crest sits 1.27 mm from the next along the shank, and the TPI output simply repeats the 20 you entered. The closest common metric pitch is 1.25 mm, used on M8 coarse bolts, and it converts to 25.4 ÷ 1.25 = 20.32 TPI. The two pitches differ by only 1.27 − 1.25 = 0.02 mm, but over ten engaged threads the mismatch grows to 10 × 0.02 = 0.2 mm, which is why two pitches that are almost the same should never be treated as interchangeable on a long engagement.

modetpi
value20

Frequently asked questions.

How can I find the pitch of an unmarked bolt?
A thread pitch gauge is quickest: try leaves until one sits in the thread with no light showing between the teeth. Without one, measure across ten pitches with calipers and divide by ten. Then measure the outside diameter too, because the pitch alone does not tell you whether the bolt is metric or inch.
Is a 1.25 mm pitch the same as 20 threads per inch?
No. A 1.25 mm pitch is 20.32 TPI, and 20 TPI is a 1.27 mm pitch. The gap is only 0.02 mm per thread, so a nut may start by hand, but the error accumulates with every turn and the threads can bind or strip as more of them engage.
What is the difference between pitch and lead?
Pitch is the spacing between neighbouring threads; lead is how far the screw travels in one revolution. They are equal on single-start threads, which covers almost all bolts and screws. Multi-start threads, found on some lead screws and bottle caps, advance two or more pitches per turn, so their lead is a multiple of the pitch shown here.
Why don't 1/2-inch NPT and 1/2-inch BSP fittings seal together when both are 14 TPI?
Matching thread counts are not enough. NPT uses a 60° flank angle with flattened crests and roots, while BSP threads follow the Whitworth form with a 55° angle and rounded crests. The flanks do not bear evenly against each other, so the joint tends to leak even when it screws together a few turns.
What does a higher TPI mean for bolts of the same diameter?
A finer thread. A 1/4-28 UNF bolt has a pitch of about 0.907 mm against 1.27 mm for 1/4-20 UNC. Fine threads give smaller movement per turn for precise adjustment and leave a slightly larger core, while coarse threads assemble faster and are less easily damaged or cross-threaded.
Why is the pitch sometimes missing from a metric bolt size?
In ISO metric designations the coarse pitch is the default and is often left off, so a bolt labelled simply M10 is M10×1.5, which this conversion gives as about 16.933 TPI. A fine thread always states its pitch, as in M10×1.25, so a bare size usually means coarse.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
Pitch (mm) = 25.4 / TPI; TPI = 25.4 / pitch (mm)
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon