The new spring s diameter length and wire size or gauge must be the same as your old spring.
How to fix a garage door extension spring.
Spray each spring with garage door lubricant.
Shove a winding bar into a bottom hole of the winding cone of the good spring.
Loosen the unbroken spring.
Slide a grocery bag or piece of cardboard behind the spring to protect the garage door.
Clamp a locking pliers or a c clamp to the track just above one of the rollers.
The easiest way to do this is to take the broken spring to a local garage door dealer or home improvement center so they can help you find an exact match.
The stretching and contracting of the door spring on the garage door balance out the heavyweight of the garage door to help it slide up and down easily during opening and closing.
Wipe off any excess then repeat the process on the other side.