Treatments typically include rest, avoiding activities that cause pain, ice, and anti-inflammatories. If the pain persists or comes back with resumption of activities, you should contact your doctor. Physical therapy will be recommended. This will include improving the flexibility of the hamstring and calf musculature, stretching the tendon, and starting a specialized strengthening program. Orthotic intervention may also be considered. If pain persists, your doctor may consider a patch that increases blood flow to the tendon. In rare cases, your doctor may recommend a needle procedure that stimulates healing of the tendon. Surgery is not generally recommended unless there is a large tear of the tendon.