If have edema will see an indentation where you pressed. Should see a doctor to determine the cause of leg swelling. If both legs are swollen, your doctor will ask about other symptoms and will examine you. A urine test will show if you are losing protein from the kidneys. Blood tests, a chest X-ray and an electrocardiogram (ECG) also may be done.