Given your age,
diabetes and previous CABG, recurrent pain in both legs—especially pain occurring at night or at rest—should be evaluated rather than assumed to be simple muscle pain. Diabetes and established cardiovascular disease increase the likelihood of peripheral arterial disease (reduced blood circulation to the legs), although diabetic neuropathy, muscle cramps, spinal problems and metabolic/electrolyte abnormalities are other possibilities.
The fact that the pain improves after getting out of bed and going to the restroom may be related to walking or changing the position of the legs rather than the restroom visit itself.
Next Steps
Please consult a physician/vascular or orthopaedic specialist for examination of the circulation and nerves in both legs. Checking the foot pulses and an ankle-brachial index (ABI/ABPI) is a standard initial assessment when peripheral arterial disease is suspected. In people with
diabetes, the ABI sometimes needs to be supplemented with other vascular tests because arterial calcification can make the reading misleading.
Health Tips
Seek urgent medical attention if the pain becomes persistent or severe, or if a foot becomes unusually cold/pale, develops discoloration, numbness/weakness, or a wound that is not healing