Medical questions & health advice by board certified doctors

"What causes muscle cramping?"

ZocdocAnswersWhat causes muscle cramping?


I get a lot of muscle cramps in my hips and upper legs, especially in the morning. Why? What causes muscle cramping and how can I make it go away?


Muscle cramps are especially painful and can last from seconds to minutes. The exact reasons for this condition are not clear. However, there are potential causes that your primary care doctor can help you figure out with a more complete history and examination. He or she may ask you a number of questions. Do you get muscle fatigue easily after repetitive motion? Are these cramps happening at any other times other than in the morning? Does it occur after exercise? Are you on a restricted diet or fluid restriction? Do you have any major medical conditions, such as congestive heart failure, chronic kidney failure, on hemodialysis? Do you take a diuretic, or cholesterol medication in the statin class? Do you drink a lot of coffee? These questions are important to help figuring out what might potentially be causing your cramps. For example, a number of electrolytes (potassium, magnesium, calcium) is important for muscle contraction and relaxation, and their imbalance can present as cramps. Patients who have heart or kidney disease, on hemodialysis, or taking diuretics can often have electrolytes at an abnormal levels. Additionally, patients with muscular disorders, such as myasthenia gravis, multiple sclerosis, and thyroid diseases, etc., can also present with muscle cramps. As you can see, potential causes for your condition are many. Some can be simple while others are potentially very serious. I advise you to stretch your muscles before going to bed and to follow up with your primary care physician who can further assist you.

Zocdoc Answers is for general informational purposes only and is not a substitute for professional medical advice. If you think you may have a medical emergency, call your doctor (in the United States) 911 immediately. Always seek the advice of your doctor before starting or changing treatment. Medical professionals who provide responses to health-related questions are intended third party beneficiaries with certain rights under Zocdoc’s Terms of Service.