The leg swelling is usually caused by strain on the leg muscles or aseptic inflammation, which can generally be treated as follows: 1. If it is accompanied by local swelling and pain, you can also take oral non-steroidal anti-inflammatory drugs to reduce inflammation and pain.