Most muscle strains can be treated with the RICE protocol. RICE stands for Rest, Ice, Compression, and Elevation.
Rest. Take a break from the activity that caused the strain. Your physician may recommend that you use crutches to avoid putting weight on the leg.
Ice. Do not apply ice directly to the skin. Use cold packs for 20 minutes at a time, several times a day.
Compression. To prevent additional swelling, lightly wrap the injured area in a soft bandage or ace wrap.
Elevation. To minimize swelling, raise your leg up higher than your heart.
Your orthopedic surgeon may recommend a non-steroidal anti-inflammatory medication, such as ibuprofen for pain relief. As the pain and swelling subside, physical therapy will help improve range of motion and strength. The muscle should be at full strength and pain-free before you return to sports. This will help prevent additional injury.