3D Printing Generator
DeutschEnglish

Printing bolts and nuts: sizes and tips

What the generator makes

Sometimes you are missing exactly one bolt. Sometimes you need a nut with a grip that you can tighten without tools, or a threaded rod in a length no hardware store sells. This generator prints metric standard parts: hex bolts with a hex socket, countersunk bolts, hex nuts, washers, complete sets of bolt, nut and washer, threaded rods and rod connectors that extend round rods. On top of that come two parts with a grip: the thumb screw and the thumb nut, both fully printed, thread included.

You pick the part, set the size and download an STL or 3MF file. Everything is calculated in your browser, nothing is uploaded, and the whole design lives in the page link. Use “Share” to copy it and pick up exactly where you left off.

The examples are a good place to start: the M8 × 30 hex bolt, the matching M8 nut, the M10 × 25 bolt set as a fit test, or the printed M8 thumb nut for clamps and stands.

Metric sizes at a glance

All dimensions come from the tables for metric coarse threads. You only enter the diameter, the number after the M, and the generator sets the rest: pitch, width across flats, head height, hex socket size and nut height. A few common values:

SizePitchAcross flatsNut heightHex socket
M30.5 mm5.5 mm2.4 mm2.5 mm
M40.7 mm7 mm3.2 mm3 mm
M50.8 mm8 mm4.7 mm4 mm
M61 mm10 mm5.2 mm5 mm
M81.25 mm13 mm6.8 mm6 mm
M101.5 mm16 mm8.4 mm8 mm
M121.75 mm18 mm10.8 mm10 mm

The length of a hex bolt is measured below the head, just like a bolt you buy. For a countersunk bolt the head counts too, which is also the standard: a countersunk M6 × 20 is 20 mm long overall and sits flush in a countersunk hole.

Between the table values you can choose any diameter from 2 to 40 mm in half-millimeter steps. For sizes in between, the generator blends the values of the neighboring sizes. That comes in handy for show pieces like the M20 × 60 demo bolt, where flanks and pitch are easy to see with the naked eye.

For fine threads you enter the pitch. An M10 × 1 nut then fits axles and machine parts that use 1 mm instead of 1.5 mm pitch. With the pitch left at 0 you get the coarse thread. If a pitch is too coarse for a small diameter, the generator limits it and tells you, so the core of the thread stays strong.

Tolerance and fit

A printer never lays down plastic with perfect accuracy. Outside edges usually come out a little wider and holes a little narrower. The tolerance makes up for that: at 0.4 mm, the default, the threaded hole of a nut is 1 % plus 1.25 times the tolerance wider than the bolt, a good half millimeter for M8. Hex heads and nuts get half a tolerance narrower on the outside so a wrench still fits. The crests of a bolt, on the other hand, grow by an eighth of the tolerance, because the plastic shrinks a little as it cools.

Here is how to find the right value for your printer:

  1. Print the M10 × 25 bolt set with the default tolerance. It does not take long and shows you right away how well your printer handles threads.
  2. If the nut runs stiff or binds, raise the tolerance in steps of 0.05 mm. The M12 bolt with 0.6 mm tolerance is an example for printers that over-extrude a little.
  3. If the nut wobbles noticeably, use 0.3 or 0.2 mm. Very accurate printers do well with that.

If printed nuts should fit steel bolts, keep the default. The printed nut then has enough play for a normal bolt from the hardware store. The other way around, a printed bolt fits a steel nut as long as your printer holds its dimensions.

The flank angle is set to 30°, which gives the metric 60° profile. You only need other values for special cases such as very flat teeth. The profile is a sharp V without the flattened crests of standardized threads. It is compatible with metric coarse threads but does not match the DIN or ISO dimensions exactly.

One detail about nuts: they always get the same pitch as the bolt of the same size. An M8 nut therefore has a 1.25 mm pitch and runs on any M8 bolt, even over many turns.

Thumb screws and thumb nuts

The thumb screw has a round grip with finger notches instead of a hex head, and the thumb nut is exactly that grip with a threaded hole. You tighten both by hand. Typical uses are case lids you open often, lamp and camera brackets, clamps on a tripod or jigs in the workshop. The M5 × 16 thumb screw is a good starting point.

The knob diameter grows with the thread size automatically: 2.4 times the diameter plus 8 mm, so just over 27 mm for M8. That sits comfortably between your fingers and gives enough leverage to tighten the nut firmly. With your own values you make the grip larger or smaller, and you can set the knob height as well. The number of notches decides how fine the knurling is. If the notches get too narrow to print cleanly, the generator uses fewer and tells you.

Both parts are printed entirely. If you would rather press a steel nut or a bolt head into a grip, a knob with a pocket for the hardware is the better tool, since steel takes far more load than a printed thread.

Threaded rods and rod connectors

A threaded rod is a continuous thread without a head. With chamfered ends it tapers at 45° down to the root diameter on both sides, which helps it start into a nut. The M10 × 80 threaded rod fits printed and store-bought M10 nuts.

The three rod pieces solve a different problem: you want to print a round rod that is taller than your printer. The rod start carries an external thread on top, the rod end has a threaded hole on top. The rod extender has both, the hole below and the thread on top, and you can stack as many as you like in between. Several pieces then make one long rod, for flag poles, props or plant supports. The rod extender for 20 mm rods shows what that looks like.

By default the connector thread is three quarters as thick as the rod and half as long. Above the threaded hole of the rod extender sits a small cone. It replaces the flat ceiling of the hole, so the printer does not have to bridge there. If the thread is too thick for the rod, the generator makes it narrower so a solid wall remains.

Printing tips for strong threads

  • Orientation: bolts stand on their head, the way the generator places them. The thread then comes out clean all around. If you need maximum tensile strength, you can lay a bolt down in the slicer; it then breaks less often at the layer lines, but the thread gets rougher underneath and needs supports.
  • Layer height: 0.15 mm or less is ideal for M4 to M8. From M10 on, 0.2 mm is enough. For M3, use 0.1 mm and a slow speed.
  • Walls over infill: three to four perimeters make threads stronger than lots of infill, because the load runs through the outer skin.
  • Material: PLA is stiff and accurate. PETG is tougher and breaks less easily, but swells a little more while printing; give it 0.05 to 0.1 mm more tolerance.
  • Elephant foot: the first layer is often squashed a little wider. On nuts this can narrow the start of the thread. A small correction in the slicer or a quick turn with a steel bolt helps.
  • Test first: before a large batch, print a single part such as the M3 nut or the small M4 bolt and check the fit.

Printed bolts do not replace steel bolts where safety matters. For models, jigs, prototypes, toys and repairs of parts that carry little load, they are a quick and cheap solution.

Origin: threads-scad by Ryan A. Colyer

The generator is based on the OpenSCAD library threads-scad by Ryan A. Colyer, released into the public domain under CC0. Its core builds a threaded rod as a single solid from rings of points, without any boolean operations. On top of that sit the modules for metric bolts, countersunk bolts, nuts, washers, sets and rod connectors, together with the tables for pitches, widths across flats and nut heights.

We ported the thread calculation and these modules point for point to TypeScript and compare the result with the original in OpenSCAD. Volume and dimensions match down to rounding errors. We changed two things: nuts get the pitch of the matching bolt, while the original takes the pitch of the slightly larger hole diameter. And the thumb screw, the thumb nut and the chamfered ends of the threaded rod are new.

Ready to start? Open the generator or browse the examples. All licenses are listed under Licenses.

All parameters

The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.

ParameterDefaultRangeMeaning
Size
Diameter8 mm2 – 40 mmNominal thread diameter, the number after the M. For rod connectors the diameter of the rod.
Length30 mm4 – 170 mmShank length below the head. Countersunk bolts include the head, as standard bolts do.
Nut height0 mm0 – 60 mm0 = standard height (6.8 mm for M8). Taller nuts hold more thread turns.
Quantity11 – 6How many rows of bolt, nut and washer go on the bed.
Thread
Pitch0 mm0 – 6 mm0 = coarse thread (1.25 mm for M8). Enter a pitch for fine threads, e.g. 1 for M10 × 1.
Tolerance0.4 mm0 – 1 mmClearance for printing: threaded holes get wider, hex heads a little narrower. If it binds, raise it in steps of 0.05 mm.
Flank angle30 °15 – 45 °Half the angle between the flanks; 30° gives the metric 60° profile.
Rod and connector thread
Height30 mm5 – 170 mmLength of the threaded rod, or height of the rod piece without the thread on top.
Thread length0 mm0 – 60 mm0 = half the rod diameter.
Thread diameter0 mm0 – 60 mm0 = three quarters of the rod diameter.
Thread pitch0 mm0 – 6 mm0 = coarse pitch for the thread diameter.
Thumb knob
Knob diameter0 mm0 – 80 mm0 = automatic (2.4 × diameter + 8 mm, 27 mm for M8).
Knob height0 mm0 – 40 mm0 = nut height + 3 mm.
Notches186 – 60Number of round finger grips around the knob.

Frequently asked questions

How small can printed threads be?

Internal threads often work from M2, printed bolts are reliable from M4. M3 bolts only succeed with a well-tuned printer, thin layers and a slow speed.

Do printed nuts fit store-bought bolts?

Yes, the dimensions follow metric coarse threads. The 0.4 mm tolerance adds clearance; very accurate printers can use 0.2 to 0.3 mm.

How strong are printed bolts?

Much weaker than steel. They are fine for light loads, models and jigs; printed lying down they break less often at layer lines, printed upright the thread is cleaner.

Can I print fine threads?

Yes. Enter the pitch, for example 1 mm for M10 × 1. Very fine pitches below 0.7 mm only print cleanly on large diameters.

Do I need supports?

No. Bolts print head-down, nuts and thumb nuts lie flat. The hex socket in the head is only a short bridge that any printer handles.

Origin & license

  • threads-scad by Ryan A. Colyer · CC0 1.0 · code ported – MetricBolt, MetricCountersunkBolt, MetricNut, MetricWasher, MetricBoltSet, RodStart, RodEnd, RodExtender and the metric tables ported to TypeScript