snugfit

“The round spacer just spins when I tighten the screw.”

Hex standoff STL generator, M2 to M8

The same job as a round spacer, where you need to stop it turning: stacking boards, spacing a panel off a wall. Set the width across flats to a spanner size and you can hold it with a tool.

Loading the model builder…First visit downloads a 3.5 MB engine. After that, models build in about a second.

What to measure first

  1. Measure the gap to fill for the height.
  2. For the width across flats, pick a spanner you own (5.5, 7, 8 and 10 mm are the common small sizes) or leave it at twice the screw size.

Where the numbers come from

The hole is a plain ISO 273 clearance hole, 3.4 mm for the default M3: the screw passes straight through and the hex is clamped between the two parts.

Across flats defaults to 7 mm, about twice an M3 screw. That fits a 7 mm spanner. The 3.4 mm nominal bore leaves 1.8 mm of wall at the flats. The default 0.2 mm offset gives a 3.6 mm bore and 1.7 mm of wall in the STL. The printer offset widens the hole only, never the hex.

Width across flats is the distance between two opposite flat sides, which is what a spanner measures. The corner-to-corner width is that divided by cos 30°, about 15 % more.

Sliders and their ranges
SettingDefaultRange
Height12 mm2 to 100 mm
Width across flats7 mm4 to 40 mm
Screw size (M)32 to 8
Hole offset for your printer0.2 mm0 to 0.6 mm

How to print it

  • Print standing on a hex face, as modelled.
  • Tall thin standoffs can wobble loose from the bed. Add a brim above about 30 mm.

What this generator does not do

  • The hole is plain, not threaded. For a threaded standoff, set the hole for a heat-set insert using the hole tolerance card, or drive a self-tapping screw into an undersized hole.

Questions

How tall can a printed standoff be?
As tall as your printer allows, but above about 30 mm a thin hex wobbles on the bed and bends under any sideways load. Widen it across flats, or use two shorter standoffs on one longer screw.
Why does my spanner not fit the printed hex?
Outside dimensions usually print slightly large. Take 0.1 to 0.2 mm off the width across flats.

How this page was checked

On 2 December 2026 this model was compiled 11 times across its slider ranges, and every build was a closed solid. At the defaults it measures 8.08 × 7 × 12 mm, about 0.39 cm³ if printed solid. Geometry only: strength is not tested. Method and limits.

References

  • ISO 273:1979, Fasteners — Clearance holes for bolts and screws. Source of the screw clearance hole diameters (medium series).

Related generators