Calculating Solid Height Closed And Square Ends: The formula for calculating solid height on closed and square ends is: Total Wires = Total Coils + 1 Solid Height = Total Wire * Wire Diameter. There are two ways to get the total amount of wires in a closed and square end compression spring.