How to model a spring in SolidWorks
A spring is a circle swept along a helix. Once you have built one, the same method works for coils, threads, pipe coils and spiral ducting.
Watch the video for the walkthrough. The written steps below follow the software publisher’s documentation, so menu names may differ slightly from the version in the video.
Worked example
We will use a 20 mm mean diameter, 2 mm wire, 5 mm pitch and 50 mm height. That gives 50 ÷ 5 = 10 turns. Each turn is about √((π × 20)² + 5²) = 63.0 mm long, so the wire is about 630 mm long before any end coils are added.
Build the helix
- Start a part and sketch a 20 mm circle on the Top plane. The helix follows this circle, so its diameter is the mean coil diameter.
- With the sketch selected, click Helix and Spiral on the Curves toolbar, or go to Insert, Curve, Helix/Spiral.
- Under Defined By, choose Height and Pitch.
- Set Height to 50 mm and Pitch to 5 mm, with Constant pitch.
- Set the Start angle and direction, then accept.
Add the wire
- Click Swept Boss/Base on the Features toolbar.
- Choose Circular Profile, set Diameter to 2 mm and pick the helix as the path.
- Accept the sweep.
In older versions, or for a non-round wire, use Sketch Profile. Draw the wire section on a plane at the start of the helix. The start of the path must lie on the plane of the profile.
When the sweep fails
- Pitch is less than the wire diameter, so the turns overlap. Neither the section, the path nor the resulting solid can be self-intersecting.
- The profile is an open sketch. It must be closed for a boss sweep.
- The profile is not at the start of the path.
Variations
Use Variable pitch to close up the end coils, with a table of revolutions, height, diameter and pitch for each region. Taper Helix makes a conical spring, and is available only on constant pitch helixes. Spiral gives a flat coil, set by pitch and revolutions.
What the model does not tell you
A CAD model gives you the shape, mass and clearances. It does not give spring rate, stress or fatigue life. Those need a spring calculation or a test. The solid height of this example, with no end grinding, is roughly 10 × 2 = 20 mm, which is worth checking against the travel you need.
Related: project a curve onto a surface, pump and shaft power calculations.
Sources
Last checked 9 November 2026 against the documentation listed above. See the disclaimer.