Thread Calculator

Thread Calculator for UNC, UNF and ISO metric bolt and nut limits by class, pitch and minor diameter, tap drill size, three-wire reading and stress area, or match a measured screw.

Thread Size and Task

Pick a size to get the bolt thread limits, gauge wire reading and stress area.

Tolerance Class2A / 2B
1/4-20 UNC-2A Bolt Thread
0.2127-0.2164 in Pitch Diameter
E = 0.2175 in less 0.0011 in allowance, then 0.0037 in tolerance down
0.2408-0.2489 in Major Dia
Allowance (es)-0.0011 in
PD Tolerance (Td2)0.0037 in
Bolt major diameter limits from the allowance and tolerance of the class, with the pitch diameter tolerance band.
0.0307 in Thread Depth
Root Diameter, Basic (d3)0.1887 in
Sharp V Height (H)0.0433 in
Depth of the bolt thread from crest to root, the basic root diameter it leaves, and the sharp V triangle height H.
0.2560-0.2597 in Over 3 Wires
Best Wire Size0.0289 in
Usable Wire Range0.0253-0.0505 in
Reading over three wires for the pitch diameter limits, with the best wire size and the wire range that still works.
0.0318 in² Tensile Stress Area
Root Area, Basic (d3)0.0280 in²
Grade 5 Proof Load2,705 lbf
Area that sets bolt tensile strength, the basic root area, and the proof load in a common grade where one covers it.
Thread Profile Diagram20 TPI
Major 0.2500 inPitch 0.2175 inMinor 0.1959 inP 0.0500 in60°Basic profile, 60° flank angle, not to scale
Thread Size ChartUNC Coarse, 32 Sizes
SizeTPIBasic PDTap Drill, 75%Stress Area
#1-64 UNC640.0629#530.0026 in²
#2-56 UNC560.0744#500.0037 in²
#3-48 UNC480.0855#470.0049 in²
#4-40 UNC400.0958#430.0060 in²
#5-40 UNC400.1088#380.0080 in²
#6-32 UNC320.1177#360.0091 in²
#8-32 UNC320.1437#290.0140 in²
#10-24 UNC240.1629#250.0175 in²
#12-24 UNC240.1889#160.0242 in²
1/4-20 UNC200.2175#70.0318 in²
5/16-18 UNC180.2764F0.0524 in²
3/8-16 UNC160.33445/160.0775 in²
7/16-14 UNC140.3911U0.1063 in²
1/2-13 UNC130.450027/640.1419 in²
9/16-12 UNC120.508431/640.1819 in²
5/8-11 UNC110.566017/320.2260 in²
3/4-10 UNC100.685021/320.3345 in²
7/8-9 UNC90.802849/640.4617 in²
1-8 UNC80.91887/80.6057 in²
1-1/8-7 UNC71.032263/640.7633 in²
1-1/4-7 UNC71.15721-7/640.9691 in²
1-1/2-6 UNC61.39171-11/321.4053 in²
1-3/4-5 UNC51.62011-9/161.8995 in²
2-4½ UNC4.51.85571-25/322.4982 in²
2-1/4-4½ UNC4.52.10572-1/323.2477 in²
2-1/2-4 UNC42.33762-1/43.9988 in²
2-3/4-4 UNC42.58762-1/24.9340 in²
3-4 UNC42.83762-3/45.9674 in²
3-1/4-4 UNC43.087637.0989 in²
3-1/2-4 UNC43.33763-1/48.3286 in²
3-3/4-4 UNC43.58763-1/29.6565 in²
4-4 UNC43.83763-3/411.0826 in²
Step-by-Step MathPD = E - es - Td2
  1. Pitch P = 1/20 = 0.05000 in; sharp V height H = 0.866025 × P = 0.0433 in.
  2. Basic pitch diameter E = D - 0.649519 × P = 0.2175 in; basic minor D1 = D - 1.082532 × P = 0.1959 in.
  3. 2A PD tolerance = 0.0015 × D^(1/3) + 0.0015 × √D + 0.015 × P^(2/3) = 0.00377 in (ASME B1.1, engagement = D).
  4. 2A: allowance = 0.0011 in, major tolerance = 0.060 × P^(2/3) = 0.0081 in, PD tolerance = 0.0037 in.
  5. Major diameter: max = D - es = 0.2489 in, min = max - Td = 0.2408 in.
  6. Pitch diameter: max = E - es = 0.2164 in, min = max - Td2 = 0.2127 in.
  7. Best wire W = 0.57735 × P = 0.0289 in; over 3 wires M = PD + 3W - 0.866025 × P = PD + 0.0433 in.
  8. Stress area As = π/4 × (D - 0.9743 × P)² = 0.0318 in².
  9. Result: 0.2127-0.2164 in Pitch Diameter.
1/4-20 UNC-2A Bolt Gauging
A GO ring gauge must screw on by hand over the full thread; the NOT GO ring may take up to 3 turns (ASME B1.2). Check with wires against card 3 when no ring gauge is on hand.

How a Thread Calculator Sizes a 60° Thread

A thread calculator works out every diameter of a screw thread from two numbers: the nominal size and the pitch. Unified inch (UN) and ISO metric threads share the same 60° profile, so one set of formulas covers both.

The nominal diameter is the size a thread is named by, such as 1/4 in or 6 mm. It equals the basic major diameter, the largest diameter measured across the crests of a bolt.

Pitch is the distance from one crest to the next. Inch threads give it as threads per inch (TPI), so the pitch is 1 ÷ TPI. Metric threads state the pitch in millimeters, as in M6 × 1.

To calculate a 60° thread, start from the sharp V triangle the profile is cut from. Its height sets every other depth on the thread.

H is the height of the sharp V and P is the pitch. The real thread is flattened at the crest and root, so the working depth is a fraction of H.

Pitch Diameter and Minor Diameter Formulas

To calculate the pitch diameter of a thread, subtract 0.649519 times the pitch from the major diameter. The pitch diameter is where the thread groove and the thread ridge have equal width.

To calculate the minor diameter, subtract 1.082532 times the pitch. That is the basic minor diameter of the nut thread, the bore a tap drill aims for.

A metric bolt root sits a little deeper, at d3 = d - 1.226869 × P, because the bolt root is rounded. Every thread calculator uses these constants, which come from the basic profile shared by ASME B1.1 and the ISO metric standards.

Worked Example: 1/4-20 UNC

Run a 1/4-20 UNC through a thread calculator and it starts from D = 0.250 in and P = 1 ÷ 20 = 0.050 in. The sharp V height is 0.866025 × 0.050 = 0.0433 in.

The basic pitch diameter is 0.250 - 0.649519 × 0.050 = 0.2175 in. The basic minor diameter is 0.250 - 1.082532 × 0.050 = 0.1959 in, which is where the nut thread's minor band starts.

Metric Thread Calculator Sizes in mm

To calculate metric thread size, read the callout. M10 × 1.5 means a 10 mm nominal diameter with a 1.5 mm pitch. A coarse thread often drops the pitch, so plain M10 means M10 × 1.5.

A thread calculator in mm runs the same formulas with millimeters. The table gives the ISO 965-1 limits for the common 6g bolt and 6H nut fit, worked from the tool's own tolerance tables.

SizeBolt Major, 6g (mm)Bolt Pitch Dia, 6g (mm)Nut Minor, 6H (mm)Stress Area
M3 × 0.52.874 to 2.9802.580 to 2.6552.459 to 2.5995.0 mm²
M4 × 0.73.838 to 3.9783.433 to 3.5233.242 to 3.4228.8 mm²
M5 × 0.84.826 to 4.9764.361 to 4.4564.134 to 4.33414.2 mm²
M6 × 15.794 to 5.9745.212 to 5.3244.917 to 5.15320.1 mm²
M8 × 1.257.760 to 7.9727.042 to 7.1606.647 to 6.91236.6 mm²
M10 × 1.59.732 to 9.9688.862 to 8.9948.376 to 8.67658.0 mm²
M12 × 1.7511.701 to 11.96610.679 to 10.82910.106 to 10.44184.3 mm²
M16 × 215.682 to 15.96214.503 to 14.66313.835 to 14.210156.7 mm²
M20 × 2.519.623 to 19.95818.164 to 18.33417.294 to 17.744244.8 mm²

So what is the diameter of an M6 thread? A metric thread calculator gives more than one answer.

The nominal major diameter is 6 mm, but a 6g bolt measures 5.794 to 5.974 mm across the crests. Its pitch diameter runs 5.212 to 5.324 mm, and the 6H nut minor runs 4.917 to 5.153 mm.

A metric thread diameter calculator never gives the full nominal size on a bolt. The 6g position pulls every bolt diameter slightly under nominal, which leaves room for plating and easy assembly.

Bolt Thread Calculator: Classes and Limits

A bolt thread calculator turns the basic sizes into a min and max for each diameter. The class decides how far below basic the bolt sits and how wide its tolerance band is.

SizeBolt Major, 2A (in)Bolt Pitch Dia, 2A (in)Nut Minor, 2B (in)Stress Area
#10-24 UNC0.1818 to 0.18900.1586 to 0.16190.1449 to 0.15550.0175 in²
1/4-20 UNC0.2408 to 0.24890.2127 to 0.21640.1959 to 0.20740.0318 in²
5/16-18 UNC0.3026 to 0.31130.2712 to 0.27520.2524 to 0.26510.0524 in²
3/8-16 UNC0.3643 to 0.37370.3287 to 0.33310.3073 to 0.32140.0775 in²
1/2-13 UNC0.4876 to 0.49850.4435 to 0.44850.4167 to 0.43360.1419 in²
1/4-28 UNF0.2425 to 0.24900.2225 to 0.22580.2113 to 0.21970.0364 in²

UN bolts use classes 1A, 2A and 3A under ASME B1.1. Class 2A is the general fit, and the one to pick in a thread calculator unless the print says otherwise.

Class 2A takes a small allowance off the pitch diameter, 0.3 times the 2A pitch diameter tolerance, so plated parts still assemble.

Class 1A is the loose fit, at 1.5 times the 2A tolerance with the same allowance. Class 3A has no allowance and 0.75 times the tolerance, for close-fit and precision work.

ISO metric threads name the fit by a grade and a letter. In 6g, the 6 sets the tolerance width and the g sets a small gap below basic. The 4h class has no gap, and 6e leaves a larger gap for thick plating.

The pitch diameter tolerance for a 2A thread follows one ASME formula, which a thread calculator applies with the major diameter as the length of engagement. For 1/4-20 it gives 0.0037 in, which sets the 0.2127 to 0.2164 in band in the table.

D and P are in inches. Class 2B nuts take 1.3 times this value, 1B nuts 1.95 times and 3B nuts 0.975 times.

Internal Thread Calculator for Nuts and Tapped Holes

An internal thread calculator works in the other direction. The nut thread starts at the basic size and its tolerance runs larger, so a nut never cuts under the basic pitch or minor diameter.

The minor diameter band is the size that matters most in the shop, because it is the hole your tap drill leaves. A 1/4-20 2B nut allows 0.1959 to 0.2074 in, and an M6 6H nut allows 4.917 to 5.153 mm.

Minimum Thread Engagement

How deep a tapped hole must be depends on stripping. Machinery's Handbook gives the shortest engagement at which a bolt breaks before its threads strip, when the nut and bolt are the same strength.

As is the tensile stress area, Kn,max is the largest nut minor diameter, Es,min is the smallest bolt pitch diameter and n is threads per inch. For 1/4-20 that is 0.174 in, about 0.70 times the diameter or 3.5 threads.

A thread calculator gives this as the floor for a steel nut. A softer tapped part needs more engagement than this, since its threads strip first. The Bolt Pull Out Force Calculator checks strip strength in a weaker material.

Tap Drill Size From Thread Percentage

A tap drill rarely cuts a 100% thread. Most shops aim for about 75%, which keeps nearly all the strength while making the tap far easier to turn. A thread calculator trades that percentage against drill size, since a lower percentage means a bigger drill.

D is the major diameter in inches and % is the thread percentage. For metric threads, replace 1 ÷ TPI with the pitch in millimeters. A 1/4-20 at 75% needs 0.250 - 0.75 × 1.299038 × 0.050 = 0.2013 in, which is a #7 drill.

A roll form tap pushes metal into the thread instead of cutting it, so it needs a larger hole. The same formula uses 0.68 in place of 1.299038. A HomemadeTools forum member who writes drill software uses the same 0.0068 factor.

ThreadCutting Tap, Exact 75%Closest Stock DrillForm Tap, Exact 75%Closest Stock Drill
#4-40 UNC0.0876 in#43 (0.0890 in), 71%0.0993 in#39 (0.0995 in), 74%
#6-32 UNC0.1076 in#36 (0.1065 in), 78%0.1221 in#31 (0.1200 in), 85%
#8-32 UNC0.1336 in#29 (0.1360 in), 69%0.1481 in#26 (0.1470 in), 80%
#10-24 UNC0.1494 in#25 (0.1495 in), 75%0.1688 in#18 (0.1695 in), 72%
#10-32 UNF0.1596 in#21 (0.1590 in), 76%0.1741 in#17 (0.1730 in), 80%
1/4-20 UNC0.2013 in#7 (0.2010 in), 75%0.2245 in#2 (0.2210 in), 85%
5/16-18 UNC0.2584 inF (0.2570 in), 77%0.2842 in9/32 (0.2812 in), 83%
3/8-16 UNC0.3141 in5/16 (0.3125 in), 77%0.3431 in11/32 (0.3438 in), 74%
1/2-13 UNC0.4251 in27/64 (0.4219 in), 78%0.4608 in29/64 (0.4531 in), 90%
M3 × 0.52.513 mm2.5 mm, 77%2.745 mm2.75 mm, 74%
M4 × 0.73.318 mm3.3 mm, 77%3.643 mm3.6 mm, 84%
M5 × 0.84.221 mm4.2 mm, 77%4.592 mm4.6 mm, 74%
M6 × 15.026 mm5 mm, 77%5.490 mm5.5 mm, 74%
M8 × 1.256.782 mm6.8 mm, 74%7.362 mm7.4 mm, 71%
M10 × 1.58.539 mm8.5 mm, 77%9.235 mm9.2 mm, 78%
M12 × 1.7510.295 mm10.3 mm, 75%11.107 mm11.1 mm, 76%

Check the stock drill against the class minor band before you drill. A drill that leaves a hole under the band makes a high thread percentage, which raises tap breakage in tough metals. One over the band fails the GO gauge on the minor.

Holes for clearance rather than threads use a different chart. The Clearance Hole Calculator sizes those, and the Countersink Depth Calculator handles flat head screw seats.

Thread Gauge Calculator: Wires and GO / NOT GO

Pitch diameter is hard to measure with calipers, so shops check it over three wires. Each wire sits in a thread groove, and a micrometer reads across them.

M is the reading over the wires, E is the pitch diameter and W is the wire size. The best wire, W = 0.57735 × P, touches the flanks right at the pitch diameter, and the formula then reduces to M = E + H.

For 1/4-20 UNC 2A, the best wire is 0.0289 in and the reading should fall from 0.2560 to 0.2597 in. Wires from 0.505 × P to 1.01 × P still sit on the flanks if the best size isn't on hand.

A thread gauge calculator also tells you what a ring or plug gauge should do. Under ASME B1.2, a GO gauge must thread on fully by hand, and a NOT GO gauge may take up to 3 turns. ISO 1502 allows the NOT GO no more than 2 turns.

How to Use a Thread Calculator on an Unknown Thread

To identify a thread, measure the outside diameter across the crests with calipers. Then measure the pitch with a thread gauge, or count the crests over 1 in or 25 mm.

Enter both readings in a thread calculator and compare them to the nearest standard size. A worn or plated bolt reads slightly under nominal, so a 0.245 in reading with 20 crests per inch is a 1/4-20 UNC, not an odd size.

Pitch decides the match more than diameter. Several inch and metric threads are close in size but differ in pitch, and the wrong nut will start, then bind after a few turns.

Inch ThreadIts Size in mmLook-Alike MetricIts Size in Inches
#10-24 UNC4.83 mm, 1.06 mmM5 × 0.80.197 in, 31.7 TPI
1/4-20 UNC6.35 mm, 1.27 mmM6 × 10.236 in, 25.4 TPI
5/16-18 UNC7.94 mm, 1.41 mmM8 × 1.250.315 in, 20.3 TPI
3/8-16 UNC9.52 mm, 1.59 mmM10 × 1.50.394 in, 16.9 TPI
1/2-13 UNC12.70 mm, 1.95 mmM12 × 1.750.472 in, 14.5 TPI

For imperial to metric threads, a thread calculator in inches or millimeters converts the pitch first. One millimeter of pitch equals 25.4 TPI, so M8 × 1.25 is 20.3 TPI and 5/16-18 is a 1.41 mm pitch.

A thread that matches nothing may be a pipe or power thread. A pipe thread calculator needs the taper as well as the pitch, and NPT tapers 1:16 on diameter, which the Taper Calculator handles.

Trapezoidal and ACME threads use 30° and 29° profiles, so a trapezoidal thread calculator needs different factors than the 60° ones here.

Stress Area and Thread Strength

A bolt breaks at its threads, so its strength uses the tensile stress area, not the shank area. A thread sizes calculator works it out from the mean of the pitch and minor diameters.

That is the UN form with D and P in inches. ISO metric threads use 0.938194 in place of 0.9743. A 1/4-20 has 0.0318 in² of stress area, and an M10 × 1.5 has 58.0 mm².

Multiply the stress area by the proof stress to get the proof load. SAE J429 Grade 5 runs 85,000 psi from 1/4 to 1 in and 74,000 psi over 1 in to 1-1/2 in, as the American Fastener grade chart lists.

A 1/4-20 Grade 5 bolt therefore holds about 0.0318 × 85,000 = 2,700 lbf at proof. An M10 class 8.8 bolt, at 580 MPa proof stress, holds 58.0 × 580 = 33.6 kN.

The Bolt Area Calculator covers stress area alone. For tightening, the Bolt Preload Calculator and Bolt Torque Calculator take it from there.

How to Calculate Thread Length on a Bolt

Thread length can mean two things. One is how much of a bolt is threaded, the other is how deep a thread must engage. A thread calculator answers the second through the minimum engagement above.

For the threaded length of hex cap screws, ASME B18.2.1 uses twice the diameter plus 1/4 in for lengths up to 6 in. ISO 4014 bolts use 2d + 6 mm for lengths up to 125 mm, so an M10 × 80 bolt has 26 mm of thread.

Fastener length itself depends on the grip and the nut. The Bolt Length Calculator and Screw Length Calculator work that out from material thickness.