Bolt Length Calculator
A bolt that is too short leaves the nut hanging on three threads. A bolt that is too long bottoms out, wastes money, and snags everything it passes. The correct length is not a guess and not the nominal size on the bin: it is the measured stack of everything the bolt passes through, plus the hardware, rounded up to the nearest standard length.
The Bolt Length Calculator below adds up your grip thickness, washers, nut height, and any thread engagement into a tapped hole, then rounds up to the nearest standard metric length. It also checks the engagement against the 1x-diameter rule so a bolt that is long enough is also strong enough.
Quick Answer
Key takeaways
- Bolt length is measured from under the head to the tip, not including the head.
- Always round the stack UP to the next standard length; rounding down starves the nut of threads.
- Minimum thread engagement is 1x diameter in steel, 1.5x in cast iron and aluminum.
- Aim for about two full threads protruding past the nut when tightened.
The stack-up formula
Two details people miss: grip includes every ply being clamped, and washers count on both sides if you use them under the head as well as under the nut. For structural work the grip also determines which standard length table applies, but for general fastening the stack-up above is the whole job.
Worked example, checked against this exact tool
Enter the pre-filled defaults (25 mm grip, 2 washers x 2 mm, 10 mm nut, M12, no tapped engagement) and click Calculate:
| Figure | Value |
|---|---|
| Stack length | 39.0 mm (25 + 4 + 10) |
| Standard length | 40 mm (next size up from 39) |
| Recommended bolt | M12 x 40 mm |
| Protrusion | 1.0 mm past the nut |
Now set the tapped-hole engagement to 12 mm and the nut height to 0 (a bolt threading directly into a tapped plate): the stack becomes 41 mm, the standard length 45 mm, and the verdict confirms 12 mm meets the 1x-diameter rule for M12. Set engagement to 8 mm and the badge warns you it falls short.
Standard metric bolt lengths
| Range | Standard lengths (mm) |
|---|---|
| Short | 16, 20, 25, 30, 35 |
| Medium | 40, 45, 50, 55, 60, 65, 70, 75, 80 |
| Long | 90, 100, 110, 120, 130, 140, 150 |
If your stack lands exactly on a standard length, that length is the answer: no rounding needed. If it lands between, always go up. A bolt 1 mm too long is a cosmetic issue; a bolt 1 mm too short is a joint running on partial threads.
The engagement rules, at a glance
The 1x-diameter rule exists because a steel bolt loaded in tension will snap before it strips when at least one full diameter of thread is engaged; the bolt is the designed weak link, and you want it to fail predictably. In softer materials the threads strip first, hence the deeper 1.5x requirement. For woodworking projects that need both lumber sizing and fastening, pair this with a board foot calculator to size the material first.
Measure, stack, round up
Measure the grip. Caliper the total clamped thickness. Do not guess from nominal lumber sizes: a “2×4” is 38 mm, not 50.
Add the hardware. Washer thicknesses on each side used, plus the nut height (about 0.8x diameter for standard hex nuts).
Round up to standard. Take the next standard length above your stack, never the one below.
Verify engagement. For tapped holes, confirm the thread depth meets the 1x-diameter minimum. For nuts, confirm roughly two threads show past the nut.
What competing calculators miss
No standard-length rounding. Most bolt length tools output the raw stack number, 39 mm, and leave you to figure out what to buy. The buyable answer is 40 mm, and this calculator gives it.
No engagement check. A bolt can be the right length and still the wrong joint if the thread engagement is shallow. The 1x-diameter verdict here catches the case competitors ignore.
Washers as an afterthought. Several tools ask for grip and nut but make you hand-add washers. They are part of the stack and belong in the inputs.
Diameter disconnected from length. Competing tools treat diameter as decoration. Here it drives the engagement rule, which is the actual engineering constraint.
Frequently asked questions
Add the grip thickness, all washer thicknesses, the nut height, and any tapped-hole engagement, then round up to the nearest standard length. For a 25 mm grip with two 2 mm washers and a 10 mm nut: 25 + 4 + 10 = 39 mm, so use a 40 mm bolt.
From the underhead bearing surface (where the head meets the material) to the tip of the bolt. The head itself is not included in the length. For countersunk flat-head screws, measure from the top of the head instead, since the head sits flush.
The total thickness of the material being clamped, not counting washers or the nut. On structural bolts the grip also determines the unthreaded shank length, but for general fastening it is simply the stack of plies the bolt passes through.
At least 1x the bolt diameter of thread engagement in steel, 1.5x in cast iron, brass, or aluminum. With a nut (rather than a tapped hole), aim for about two full threads protruding past the nut when tightened.
Always up. Rounding down leaves the nut short of full thread engagement, which is a strength issue. Rounding up costs a millimeter of protrusion, which is cosmetic.
M12 is the nominal thread diameter (12 mm, metric coarse unless noted) and 40 is the length in millimeters measured from under the head. So M12 x 40 is a 12 mm diameter bolt, 40 mm long.
Add This Calculator to Your Website
References
- Shuntool, “The Ultimate Guide To Bolt And Screw Sizes” – bolt length measurement from the underhead bearing surface and hex bolt thread length rules. Shuntool: Bolt and Screw Sizes Guide. Accessed October 19, 2026.
- ScienceAQ, “Calculating Bolt Grip Length” – grip length definition, thread-in-hole guidance, and two-thread protrusion practice. ScienceAQ: Calculating Bolt Grip Length. Accessed October 19, 2026.
- TrueGeometry, “Bolt Length Calculation” – L = grip + 2x washer + nut height formula with worked example. TrueGeometry: Bolt Length Calculation. Accessed October 19, 2026.
- Machinery’s Handbook, 31st Edition (via Industrial Press) – metric thread lengths controlled by grip gaging length; basic thread length tables. Machinery’s Handbook: Metric Screw and Bolt Thread Lengths. Accessed October 19, 2026.
- CalculatorUltra, “Thread Engagement Length Calculator” – minimum thread engagement formula from tensile stress area. CalculatorUltra: Thread Engagement Length Calculator. Accessed October 19, 2026.
