
A compression spring built from four numbers: free length, outer diameter, wire diameter and coil count. Add closed coils at either end so it seats properly, grind the ends flat so it stands square, and it is ready to print.
Outer diameter means the outside of the wire — a 25 mm spring measures 25 mm across a caliper, with no guessing which surface the number refers to. The sidebar shows the spring index, the pitch and the smallest coil gap live, so you can see whether the spring you are describing is one that can actually be wound and printed.
For awkward printers there is a flat wire section, which bonds far better between layers than round wire, and an octagonal coil that trades the smooth helix for eight flat facets per turn.
Fully client-side: the geometry is generated in your browser with OpenSCAD WebAssembly.
The LyraMaker Spring Generator builds a 3D printable compression spring to whatever size you need. Set the free length, outer diameter, wire diameter and number of coils, choose your end treatment, watch the live 3D preview, and download a free STL.
The spring is swept along a helical centreline whose pitch varies coil by coil — closed coils are wound at exactly one wire diameter so they lie flat, while the active coils share out whatever length is left. The wire section is stretched vertically by one over the cosine of the lead angle, which means the wire is genuinely round when measured square to the helix, not merely round when viewed from above. It is a small correction, and it is the difference between a spring that measures right with calipers and one that reads a few percent thin.
Print standing up with no supports. A coil is a continuous shallow overhang that bridges onto the turn below, so supports only tangle it. Use enough perimeters that the wire comes out solid rather than hollow — for a 3 mm wire on a 0.4 mm nozzle that means four or more, or simply set 100% infill. Then explore the other LyraMaker generators for more.
Yes. Outer diameter is the outside of the wire, so a 25 mm spring measures 25 mm across a caliper. The coil centreline sits at the outer diameter minus one wire diameter, halved.
A closed (dead) coil is wound with no gap, so it lies flat against its neighbour and does not compress. Grinding then cuts a flat across each end so the spring stands square instead of rocking on the last bit of wire. Real compression springs usually have one or two closed coils at each end, ground flat.
Print it standing up, no supports, with plenty of perimeters — the wire should be solid. A flexible filament such as TPU gives real spring action; PETG has some give; PLA is stiff and will snap rather than compress. Switch on the flat wire profile for a wider, better-bonded cross-section, or the octagonal coil if overhangs give you trouble.
It is the mean coil diameter divided by the wire diameter, the standard measure of how tightly a spring is wound. Below about 4 the coil is very tight and prints poorly; above about 12 the spring is slack and floppy. Between those two it behaves itself.
Because the coils would intersect. If the pitch drops below the wire diameter, neighbouring coils overlap and the model is no longer a solid. The sidebar shows the smallest coil gap live, and the generator refuses to build a spring that would fuse into a tube.