How to Design a Compression Spring: Step-by-Step Guide for CNC and Stamping Engineers
Aug 07,2026

How to Design a Compression Spring: Step-by-Step Guide for CNC and Stamping Engineers

Designing a compression spring for precision manufacturing requires a calculated balance of material properties, geometric constraints, and load requirements. This guide provides a direct engineering methodology: first define the force-deflection curve, then select the wire diameter and mean coil diameter, calculate the spring rate, verify stress and buckling, and finalize with tolerance specifications. For a standard steel compression spring in a 20 mm bore, expect a lead time of 3 to 5 days for CNC coiling and 7 to 10 days for fully ground, stress-relieved springs.

Step 1: Define Operating Parameters and Load Requirements

Before any calculation, establish the three critical operating points: the free length (L0), the load at a preload height (L1), and the load at the maximum compressed height (L2). The difference between these loads divided by the deflection gives the spring rate (k). For example, if you need 50 N at a height of 40 mm and 100 N at a height of 30 mm, the spring rate is (100-50) N / (40-30) mm = 5 N/mm. This rate is the foundation of the entire design.

For dynamic applications, define the operating frequency. A compression spring must operate below 80% of its natural frequency to avoid surging. The natural frequency (f) in Hz is approximately f = 356,000 * d / (D^2 * N_a), where d is wire diameter in mm, D is mean coil diameter in mm, and N_a is the number of active coils. For a wire of 2 mm, mean diameter of 12 mm, and 8 active coils, the frequency is approximately 356,000 * 2 / (144 * 8) = 618 Hz.

How to Design a Compression Spring: Step-by-Step Guide for C

Material Selection: Wire Grade and Temperature Limits

Material choice dictates maximum stress, temperature range, and cost. For general industrial use, oil-tempered chrome-silicon steel (ASTM A401) offers a tensile strength of 1,800 to 2,000 MPa and operates up to 200°C. Stainless steel 302 (AISI 302) provides corrosion resistance but lower strength (1,200 to 1,500 MPa) and a temperature limit of 150°C. For high-temperature environments above 250°C, use Inconel X-750, which retains 70% of its room-temperature strength at 540°C.

The maximum allowable shear stress should be 45% of the ultimate tensile strength for static service and 30% for dynamic service. For a music wire (ASTM A228) with 2,200 MPa tensile strength, the static allowable stress is 990 MPa, but the dynamic allowable stress drops to 660 MPa. Our factory recommends chrome-silicon for automotive valve springs and 302 stainless for medical or food-contact parts.

Material GradeTensile Strength (MPa)Max Temp (°C)Max Shear Stress Static (MPa)Relative Cost Index
Wire diameter 2.0 mm2,200 (Music Wire)1209901.0
Chrome-silicon ASTM A4011,9002008551.4
Stainless 3021,3501506071.8
Inconel X-7501,0005404505.5

Step 2: Calculate Spring Geometry and Spring Rate

Using the chosen wire diameter (d) and mean coil diameter (D), calculate the spring index (C = D/d), which should be between 4 and 12 for manufacturability. A spring index below 4 causes high stress concentration and tool wear; above 12 makes the spring unstable and prone to buckling. For a wire of 2 mm and mean diameter of 12 mm, C = 6, which is optimal.

The spring rate (k) is calculated using the formula k = (G * d^4) / (8 * D^3 * N_a), where G is the shear modulus (79,300 MPa for steel). To achieve 5 N/mm with d = 2 mm and D = 12 mm, solve for N_a: N_a = (79,300 * 16) / (8 * 1,728 * 5) = 18.4 active coils. Add 2 inactive coils for closed and ground ends, giving a total of 20.4 coils.

The solid height (Ls) is the product of total coils and wire diameter: 20.4 * 2 = 40.8 mm. Ensure the maximum compressed height (L2) is at least 15% greater than Ls to prevent coil binding. If L2 = 30 mm, this design is invalid because 30 mm is less than 40.8 mm. You must reduce N_a or increase the wire diameter. Redesign with d = 2.5 mm and D = 15 mm: N_a = (79,300 * 39.06) / (8 * 3,375 * 5) = 22.9 coils, solid height = 24.9 * 2.5 = 62.3 mm, which still exceeds 30 mm. The proper solution is to use a larger mean diameter or accept a lower spring rate.

How to Design a Compression Spring: Step-by-Step Guide for C

Step 3: Stress Verification and Buckling Check

Calculate the Wahl factor (Kw) to account for curvature stress: Kw = (4C - 1) / (4C - 4) + 0.615 / C. For C = 6, Kw = (24-1)/(24-4) + 0.615/6 = 1.15 + 0.1025 = 1.2525. The corrected shear stress is τ = Kw * (8 * F * D) / (π * d^3). For F = 100 N, D = 12 mm, d = 2 mm: τ = 1.2525 * (8 * 100 * 12) / (3.1416 * 8) = 1.2525 * 9,600 / 25.13 = 478 MPa. This is below the 660 MPa dynamic limit for music wire, so the design is safe for 10^6 cycles.

Buckling occurs when the free length divided by the mean diameter (L0/D) exceeds 2.6 for parallel-ended springs. If L0 = 50 mm and D = 12 mm, L0/D = 4.17, which is unstable. You must either add a guide rod, increase D, or reduce L0. In practice, we recommend a maximum L0/D of 2.0 for unguided springs. For guided springs, maintain a radial clearance of 1 mm between the spring OD and the guide bore.

Step 4: End Coil Configuration and Tolerances

Closed and ground ends are standard for precision applications because they provide a flat seating surface and reduce buckling risk. For wire diameters above 3 mm, grinding is mandatory to achieve a flatness tolerance of 0.5 mm. The number of inactive coils is 2 for closed-ground ends and 1 for closed-not-ground ends. The free length tolerance is typically ±1.0% or ±0.5 mm, whichever is greater. The spring rate tolerance is ±5% for standard production, but we can hold ±2% with CNC coiling and 100% load testing.

For a spring with a 20 mm OD and 2 mm wire, the standard OD tolerance is ±0.3 mm for a 10 to 50 mm length. The total load tolerance at a specified height is ±10% for standard springs, ±5% for precision springs. Our factory prices for a chrome-silicon spring with 20.4 coils, 2 mm wire, and 50 mm free length are $0.85 per piece for 100 pieces, $0.42 per piece for 1,000 pieces, and $0.28 per piece for 10,000 pieces, excluding tooling.

Design ParameterStandard TolerancePrecision ToleranceEffect on Cost
Free Length±1.0% or ±0.5 mm±0.3% or ±0.15 mm+15%
Spring Rate±5%±2%+20%
OD±0.3 mm±0.1 mm+10%
Load at Height±10%±5%+25%

How to Design a Compression Spring: Step-by-Step Guide for C

Step 5: Manufacturing Process and Lead Time

Our CNC coiling machines handle wire from 0.3 mm to 12 mm diameter with a maximum OD of 150 mm. The standard process includes coiling, stress-relieving at 350°C for 30 minutes, grinding (if specified), and shot peening for dynamic applications. Shot peening increases fatigue life by 20% but adds 3 days to the lead time and $0.10 per piece at 1,000 quantity. For corrosion protection, zinc plating adds 2 days and $0.05 per piece; electro-polishing for stainless adds 3 days and $0.15 per piece.

For a prototype order of 5 pieces, the lead time is 48 hours with a setup charge of $150. For production quantities above 1,000 pieces, the lead time is 7 working days. We recommend ordering prototypes with the same wire diameter and process as production to validate the spring rate and fatigue life. Our in-house load testing machine verifies the force at three heights and provides a certificate with each batch.

FAQ-Style Tips for Common Design Errors

Why is my spring buckling even though the stress is low? The L0/D ratio exceeds 2.6. Redesign with a larger mean diameter or add a guide rod. A spring with L0 = 80 mm and D = 25 mm has L0/D = 3.2, which will buckle under compression.

What is the minimum number of active coils? We recommend at least 3 active coils. Below this, the spring rate becomes non-linear and the manufacturing tolerance is difficult to hold. For a 2 mm wire with a 12 mm mean diameter, 3 active coils give a rate of k = (79,300 * 16) / (8 * 1,728 * 3) = 30.6 N/mm, which is very stiff.

Can I use a compression spring beyond its solid height? No. Operating at solid height causes coil collision, stress spikes, and premature failure. Always maintain a 15% clearance above solid height. If your design requires a lower compressed height, select a smaller wire or a material with a higher shear modulus.

Conclusion

Designing a compression spring is a systematic process of defining the load curve, selecting material, calculating geometry, verifying stress and stability, and specifying tolerances. The most common failure points are buckling from excessive L0/D and stress exceedance from a low spring index. For a reliable design, keep the spring index between 4 and 12, keep the L0/D below 2.6, and verify the corrected shear stress against the material limit. With these calculations, you can confidently specify a spring that meets your performance and lifespan requirements.

For a complete design review or to request a quotation, our engineering team at BQUU provides a 12-hour response on all compression spring inquiries. Send your drawing or specifications to our engineering team for a free DFM analysis and cost estimate. Contact us at Email: sc@bquq.com, WhatsApp: +86 13713157787, or visit www.bquq.com.

Related Articles



Contact Us Quote
Get A Quote
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

Please read our Terms and Conditions and this Policy before accessing or using our Services. If you cannot agree with this Policy or the Terms and Conditions, please do not access or use our Services. If you are located in a jurisdiction outside the European Economic Area, by using our Services, you accept the Terms and Conditions and accept our privacy practices described in this Policy.
We may modify this Policy at any time, without prior notice, and changes may apply to any Personal Information we already hold about you, as well as any new Personal Information collected after the Policy is modified. If we make changes, we will notify you by revising the date at the top of this Policy. We will provide you with advanced notice if we make any material changes to how we collect, use or disclose your Personal Information that impact your rights under this Policy. If you are located in a jurisdiction other than the European Economic Area, the United Kingdom or Switzerland (collectively “European Countries”), your continued access or use of our Services after receiving the notice of changes, constitutes your acknowledgement that you accept the updated Policy. In addition, we may provide you with real time disclosures or additional information about the Personal Information handling practices of specific parts of our Services. Such notices may supplement this Policy or provide you with additional choices about how we process your Personal Information.


Cookies

Cookies are small text files stored on your device when you access most Websites on the internet or open certain emails. Among other things, Cookies allow a Website to recognize your device and remember if you've been to the Website before. Examples of information collected by Cookies include your browser type and the address of the Website from which you arrived at our Website as well as IP address and clickstream behavior (that is the pages you view and the links you click).We use the term cookie to refer to Cookies and technologies that perform a similar function to Cookies (e.g., tags, pixels, web beacons, etc.). Cookies can be read by the originating Website on each subsequent visit and by any other Website that recognizes the cookie. The Website uses Cookies in order to make the Website easier to use, to support a better user experience, including the provision of information and functionality to you, as well as to provide us with information about how the Website is used so that we can make sure it is as up to date, relevant, and error free as we can. Cookies on the Website We use Cookies to personalize your experience when you visit the Site, uniquely identify your computer for security purposes, and enable us and our third-party service providers to serve ads on our behalf across the internet.

We classify Cookies in the following categories:
 ●  Strictly Necessary Cookies
 ●  Performance Cookies
 ●  Functional Cookies
 ●  Targeting Cookies


Cookie List
A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.

Functional Cookies
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.

Performance Cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.

Targeting Cookies
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

How To Turn Off Cookies
You can choose to restrict or block Cookies through your browser settings at any time. Please note that certain Cookies may be set as soon as you visit the Website, but you can remove them using your browser settings. However, please be aware that restricting or blocking Cookies set on the Website may impact the functionality or performance of the Website or prevent you from using certain services provided through the Website. It will also affect our ability to update the Website to cater for user preferences and improve performance. Cookies within Mobile Applications

We only use Strictly Necessary Cookies on our mobile applications. These Cookies are critical to the functionality of our applications, so if you block or delete these Cookies you may not be able to use the application. These Cookies are not shared with any other application on your mobile device. We never use the Cookies from the mobile application to store personal information about you.

If you have questions or concerns regarding any information in this Privacy Policy, please contact us by email at . You can also contact us via our customer service at our Site.