How to Make a Compression Spring From Scratch

Making a compression spring involves coiling wire around a mandrel to create a helical shape that resists being pushed together. The process ranges from simple hand-winding for one-off projects to automated CNC coiling for production runs, but the core steps are the same: choose the right wire, coil it to the correct dimensions, finish the ends, and treat the spring so it holds up over time. Whether you’re fabricating a spring in a home shop or trying to understand industrial production, here’s what each stage involves.

Choosing the Right Wire Material

The wire you start with determines almost everything about how the finished spring performs. Three materials cover most applications:

  • Music wire (high-carbon steel) is the most common choice for general-purpose springs. It has the highest tensile strength of standard spring wires (230,000 to 399,000 psi depending on diameter) and is easy to form, but it tops out at about 250°F before it starts losing its spring properties. It also rusts without a protective coating.
  • Stainless steel (302/304) handles temperatures up to 550°F and resists corrosion naturally, making it a good pick for outdoor, food-contact, or wet environments. Its tensile strength ranges from 125,000 to 325,000 psi. Type 316 stainless offers even better corrosion resistance in saltwater or chemical exposure.
  • Chrome silicon is an alloy steel wire that sits between the two. It tolerates temperatures up to 475°F and handles high-stress, high-cycle applications well, with tensile strength in the 235,000 to 300,000 psi range. It’s a popular choice for automotive valve springs and other demanding uses.

For a home workshop project, music wire is the easiest to source and work with. You can buy it in small quantities from hardware stores or online suppliers in standard gauge sizes.

Getting the Design Dimensions Right

Before you coil anything, you need four basic measurements: wire diameter, coil outer diameter (or inner diameter), free length (the spring’s height when not compressed), and the number of active coils. These determine how stiff the spring is and how much force it produces at a given compression.

One critical ratio to keep in mind is the spring index, which is the mean coil diameter divided by the wire diameter. A spring index between 6 and 12 is the sweet spot for manufacturability. Below 6, the coils are too tight relative to the wire thickness, making the spring difficult to form and prone to cracking. Above 12, the spring becomes floppy and hard to control during coiling. If you’re designing from scratch rather than copying an existing spring, staying in this range will save you a lot of frustration.

The spring rate (how much force per unit of compression) depends on all these dimensions plus the material’s stiffness. Online spring calculators let you plug in your dimensions and material to see if the spring will deliver the force you need. If you’re replacing a broken spring, measure the original carefully before you start.

Cold Coiling vs. Hot Coiling

The coiling method depends almost entirely on wire diameter. Cold coiling works for wire up to about 30mm (roughly 1.2 inches) in diameter and covers the vast majority of springs you’ll encounter. The wire is fed at room temperature into a coiling machine or wound around a mandrel. Cold coiling uses high-carbon steel, stainless steel, or other metals that are flexible enough to form without heating.

Hot coiling is reserved for heavy-duty springs with wire diameters up to 65mm. The wire is heated until it becomes pliable enough to form, which is necessary for high-strength steel alloys that would crack if bent cold. Unless you’re building industrial suspension springs or heavy machinery components, cold coiling is the method you’ll use.

Hand-Winding a Spring

For a DIY compression spring, the simplest approach is winding wire around a steel rod (the mandrel) that matches your desired inner coil diameter. Clamp one end of the wire to the rod, then rotate the rod while guiding the wire to maintain even pitch (the spacing between coils). A hand drill or lathe chuck makes this easier than turning by hand.

Keep consistent tension on the wire as you feed it. Uneven tension produces coils with irregular spacing, which means uneven force distribution when the spring is compressed. Once you’ve wound the correct number of coils, cut the wire with appropriate cutters. Spring wire is hard, so standard wire cutters may not work on thicker gauges. Bolt cutters or a cutoff wheel on a rotary tool handle heavier wire better.

One thing to account for: the wire will spring back slightly after you release it from the mandrel, so the finished coil diameter will be somewhat larger than the rod you wound it on. For precision work, you may need to experiment with a slightly undersized mandrel to hit your target diameter.

Finishing the Ends

The ends of a compression spring matter more than most people expect. There are four standard end types, and the right choice depends on how the spring will sit in its application:

  • Open ends have a consistent pitch all the way through with no modification. Simple to make, but the spring won’t stand straight on a flat surface.
  • Open and ground have the last coil tip flattened by grinding. This gives a slightly better contact surface.
  • Closed ends (also called “squared”) have the last coil on each end bent down to touch the adjacent coil, creating a flat, parallel surface. The spring stands upright and distributes load more evenly.
  • Closed and ground takes it a step further by grinding the closed ends flat. This is the standard for precision applications where the spring needs to mate flush with a flat surface and exert perfectly uniform pressure.

Grinding spring ends flat requires a bench grinder or belt sander with a tool rest. Hold the spring perpendicular to the grinding surface and rotate it slowly to remove material evenly. The goal is a flat surface that sits flush without wobbling. For production springs, dedicated spring grinding machines handle this automatically.

Heat Treatment and Stress Relief

After coiling, the wire carries internal stresses from being bent into shape. These residual stresses are significant. Unpeened springs can have tensile stress near the inner diameter of the coil as high as 700 MPa from the coiling process alone. Left untreated, these stresses cause the spring to lose its shape over time or fail prematurely.

Stress relieving involves heating the spring in an oven to a specific temperature (which varies by material) and holding it there for a set period before letting it cool. For music wire, this is typically around 400 to 500°F for 20 to 30 minutes. This doesn’t change the spring’s hardness; it just relaxes the internal stresses locked in during forming. Skipping this step on a spring that will see repeated use is asking for early failure.

Shot Peening for Longer Life

For springs that need to survive millions of compression cycles, shot peening dramatically improves fatigue life. The process involves blasting the spring surface with small steel or ceramic shot, which creates a layer of compressive stress on the surface that counteracts the tensile stress from coiling and use.

The results are substantial. Research at Purdue University found that a single peening treatment improved fatigue life by nearly 50%, while a dual-peening process (two passes with different shot sizes) pushed the cycle count from about 75,000 to 107,000 under identical high-load conditions. The peening replaces roughly 700 MPa of tensile stress near the surface with 950 to 970 MPa of compressive stress, effectively reversing the forces that cause cracks to form.

Shot peening requires specialized equipment and is typically done by a service provider rather than in a home shop. If your spring will see high-cycle, high-stress use, it’s worth the cost.

Corrosion Protection

Unless you’re using stainless steel, an uncoated spring will rust. Several finishing options protect against corrosion:

  • Zinc flake coatings provide excellent corrosion resistance and, critically, carry zero risk of hydrogen embrittlement (a process where hydrogen atoms from plating solutions weaken high-strength steel). They can be applied by spraying, dipping, or spinning.
  • Pre-plated (galvanized) wire is coated with zinc before coiling. This is the lowest-cost option and ensures full wire coverage, though the coating can crack at the bends during coiling.
  • Powder coating works well for larger springs and offers a wide range of colors for identification or decorative purposes, along with corrosion resistance.

For small DIY springs, a coat of rust-preventive spray or light oil may be sufficient depending on the environment. For anything exposed to moisture or chemicals long-term, a proper plating or coating process is worth the investment.

Testing the Finished Spring

A spring that looks right isn’t necessarily a spring that performs right. Testing means compressing the spring to a specific height and measuring the force it produces at that point. Production environments use digital force testers with platens that contain the spring during compression. The spring must be perfectly aligned to the testing fixture, and both ends need to be flat. If they’re not, length measurements become unreliable and spring rate calculations will be off.

One detail that trips people up: free length (the uncompressed height) is most accurately measured when the spring is returning from a compressed state rather than before compression begins. This accounts for hysteresis, the slight difference in force between compressing and releasing a spring.

If you’re testing at home without a force tester, you can get a rough check by compressing the spring with known weights and measuring the deflection. Divide the weight by the deflection to get the spring rate, and compare it to your design target. For anything safety-critical, professional load testing is the way to go. A compression spring under load stores significant energy and can launch itself if it escapes its fixture, so always test with the spring contained and, ideally, behind a shield.