3D Printing Generator
DeutschEnglish

Print a spring: compression coil or flat spring

Springs that come off the printer ready to use

A 3D printed spring solves small jobs where a metal spring is missing or the wrong size: the return of a push button, the pressure on a battery contact, the tension of a latch, the pad under a lid. This generator makes two kinds. The compression spring is a coil that stands upright on the bed and prints without supports. The flat spring is a band folded back and forth between two mounting eyes: serpentine with round turns, zig-zag with pointed turns, or sinuous like a sine wave.

Both are made for printed materials. A 0.4 mm nozzle can’t print real spring wire, so the shapes are chosen for what the printer can build: wide bands instead of thin wire, 50° slants instead of overhangs, and flat springs that bend in the plane of the layers. Ready designs are in the examples, such as the compression spring 24 × 40 mm, the serpentine spring with two eyes or the soft TPU wave spring.

How the generator works

The generator runs entirely in your browser. Nothing is uploaded, and the design lives in the link: “Share” sends exactly this spring to someone else or keeps it as a bookmark. Every change appears in the 3D preview a moment later, together with an estimate of the spring rate in newtons per millimeter and the travel you can use comfortably.

Pick “Compression coil” or “Flat spring” under “Spring type”, choose the material you will print in, and set the dimensions. The material does not change the shape, it only feeds the estimate. At the end download an STL or a 3MF file; the 3MF also carries the part name and a short description for your slicer.

The compression coil

Why not simply sweep a round wire around an axis? Because a round wire lying in a helix leans out over the gap of the turn below, and every layer of the upper turn hangs in the air. Slicers answer with supports, and supports inside a coil are impossible to remove. The generator avoids this in three steps.

First, the “wire” is a wide band: its section is a parallelogram with vertical inner and outer sides and a top and bottom that lean outward at 50° from horizontal. Second, the turns are separated by a slanted slit, the “Turn gap”, which is narrower than the slant of the band. A slice through the coil at any height therefore shows one continuous spiral strip, and every layer rests on the one below by a slant of at most 50°. Third, the first turn is filled down to the bed like a ramp, so that the lowest turn does not start in mid-air.

The ends are flat: the coil stands on a flat foot and its top is a flat plane at exactly the free length, so it carries a plate or a cap evenly.

The settings:

  • Outer diameter: 8 to 90 mm, default 24 mm. The hole in the middle stays at least 2 mm wide.
  • Band thickness: 1.6 to 12 mm, default 3 mm, measured radially. A thicker band gives a stiffer spring and allows a wider gap.
  • Turn gap: 1 to 8 mm, default 1.6 mm. It sets how far the spring can be pressed (turns times gap) and must stay open while printing. The generator keeps it at 85 percent of the slant at most.
  • Free length: 10 to 170 mm, default 40 mm.
  • Active turns: 2 to 25 in half steps, default 6. The half turn at each end is added.

If you ask for something that does not fit, the generator corrects it and says so at the field: fewer turns when the band would not fit between them, a thinner band when the hole would close. The editor also shows the pitch and the length at which the spring is pressed shut.

Flat springs

A flat spring is a band that runs from one eye to the other in a wave. It lies on the bed, so there is nothing to support, and the layers lie in the plane in which it bends. That is the strong direction of a printed part.

Choose the shape first. The serpentine spring has straight legs joined by half circles: the soft all-rounder. The zig-zag spring has straight, slanted legs with pointed turns and is stiffer for the same length. The sinuous spring is a smooth sine wave: it spreads the bending evenly and handles large travel without a weak spot at the turns.

The settings:

  • Strip width: 1.2 to 8 mm, default 2.4 mm, in the plane. It goes into the stiffness with the third power: doubling it makes the spring eight times stiffer.
  • Thickness: 1.6 to 12 mm, default 4 mm, the printed height. The rate grows in proportion.
  • Swing: 4 to 60 mm, default 14 mm, the distance of the peaks from the center line. A larger swing makes it softer.
  • Peak spacing: 3 to 30 mm, default 6 mm. A serpentine spring keeps at least 1 mm of air between its legs.
  • Bends: 2 to 24, default 6. More bends make the spring longer and softer.
  • Eye diameter and Eye hole: 6 to 30 mm and 0 to 16 mm, default 10 and 4.2 mm for an M4 screw. The eye keeps a ring of at least 1.6 mm around the hole.

The generator warns when two legs come closer than 1 mm and may fuse, when the spring would be wider than the 180 mm bed, or when the strip is much taller than wide: then it buckles sideways instead of bending in the plane.

How the rate is estimated

The estimate is based on beam theory and clearly labeled as an estimate. For the coil, the band is treated as a wire of rectangular section that twists: the rate is the shear modulus times the torsion constant divided by two times the number of turns times the mean coil radius cubed. For the flat spring, the strip bends: the rate is Young’s modulus times the second moment of the strip divided by the integral of the squared distance of the center line from its mean, which treats both eyes as held parallel.

Typical values for printed material, along the layers: PETG 1800 MPa, TPU 95A 30 MPa, nylon 1300 MPa, PLA 3000 MPa. The “comfortable travel” is the smaller of the travel until the turns touch and the travel at which the material reaches a strain of 1.5 percent for PETG, 12 percent for TPU, 2.5 percent for nylon and 0.8 percent for PLA.

For the default coil in PETG, the editor shows about 0.3 N/mm and a travel of about 10 mm. The default serpentine spring gives about 0.56 N/mm, the same shape in TPU about a fortieth of that. Treat these as a guide: measure the first print and correct.

Printing tips

All numbers below come from a test slice with PrusaSlicer, Prusa MINI, 0.20 mm SPEED profile, PLA, automatic supports switched on. In that test none of the examples got a single support line.

  • Coil: print it upright without supports. The default 24 × 40 mm coil weighs about 7 g and takes about 46 minutes, the pen spring 10 × 22 mm about 1 g and 12 minutes. Use three or more perimeters and a slightly higher temperature for good layer bonding.
  • Flat springs: print them lying down. The default serpentine spring weighs 2.7 g and takes 8 minutes, the zig-zag spring 2 g and 7 minutes, the sinuous TPU spring 3.1 g and 11 minutes. Thin walls need no infill; the spring is solid with three perimeters.
  • PETG: the best starting point. Let the spring sit a day before you judge it.
  • TPU: print slowly (20 to 25 mm/s), without retraction if you can, on a direct-drive extruder. The soft springs are almost indestructible.
  • Nylon: dry the filament first. It survives the most load cycles.
  • Fit: a coil in a bore needs about 0.5 mm of clearance; the outer diameter is exact. Guide a tall coil on a rod.
  • Mounting: the eyes take M3 or M4 screws. The holes are vertical, so they print as clean round holes.

If you want a hinge or a latch for the same job, the hinge generator pairs well with a flat spring.

Credits and licenses

The generator is an original design. Three Printables models were the inspiration for the idea of a parametric spring generator and the three flat shapes; no code, dimensions or meshes were taken from them.

The complete list of sources is on the license page. Back to the spring generator or look at the examples.

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
Coil
Band thickness3 mm1.6 – 12 mmRadial thickness of the coil band. The coil is a wide band with 50° slanted top and bottom, so every layer rests on the one below and no supports are needed.
Turn gap1.6 mm1 – 8 mmHeight of the slanted slit between two turns: it sets how far the spring can be pressed (turns × gap) and must stay open while printing. At least 1 mm.
Outer diameter24 mm8 – 90 mmOuter diameter of the coil at the bottom.
Free length40 mm10 – 170 mmHeight of the unloaded spring. The ends are flat so it stands securely and carries a flat load.
Active turns62 – 25Number of turns that spring. The half turn at each end is added. More turns make a softer spring.
Flat spring
Strip width2.4 mm1.2 – 8 mmWidth of the spring band in the plane. It enters the stiffness with the third power.
Thickness4 mm1.6 – 12 mmHeight of the spring when printed. The spring rate grows in proportion to it.
Swing14 mm4 – 60 mmDistance of the wave peaks from the center line, so the spring is twice this wide. A larger swing makes it softer.
Peak spacing6 mm3 – 30 mmDistance between two turning points. Serpentine springs keep at least a 1 mm gap between the legs.
Bends62 – 24Number of turning points. More bends make a longer, softer spring.
Eye diameter10 mm6 – 30 mmOuter diameter of the round mounting eyes at both ends.
Eye hole4.2 mm0 – 16 mmHole for a screw or pin: 3.2 mm for M3, 4.2 mm for M4. 0 = no hole.

Frequently asked questions

Does a printed spring need supports?

No. The coil is a wide band whose top and bottom are slanted at 50°, and its first turn is filled down to the bed. In a test slice in PrusaSlicer, with automatic supports switched on, none of the 14 examples got a single support line. The flat springs lie on the bed anyway.

How accurate is the spring rate shown in the editor?

It is an estimate from beam theory with typical material values, good for the order of magnitude and for comparing two designs. Printed parts vary with temperature, layer height and cooling, so print the first spring, press it against a kitchen scale and correct the number of turns or the thickness.

Which material is best for a spring?

PETG is a good start: it bends a lot before it creeps and it is easy to print. Nylon (PA) lasts longest under many load cycles. TPU 95A gives very soft, durable springs. PLA is stiff but brittle and sets under constant load, so use it only for a quick test.

Why does my coil spring get stiffer or softer than shown?

The layers of a coil run along the band, but the load shears across them in some places. Real parts can deviate noticeably from the estimate, and PETG sags a little after weeks under load. Raise the temperature a few degrees for better layer bonding, and print with at least three perimeters.

Can I make an extension spring with this?

Not as a coil: a vertical coil with hooks at both ends cannot print without supports. For pulling, use a flat spring: serpentine, zig-zag and sinuous springs work in tension and compression, and the eyes take a screw or a pin.

How long can a spring be?

Coil springs up to 170 mm and a diameter of 90 mm, flat springs up to 180 mm including both eyes. Taller coils tip over while printing: from a height of three times the diameter the editor warns you, and a rod through the middle guides the spring in use.

Origin & license