Nighttime thigh cramps are treated by massaging and stretching the muscle, applying ice or a cold pack to the affected thigh or taking over-the counter pain medication such as ibuprofen or acetaminophen, explains WebMD. An increased intake of fluid such as water or sports drinks may also help.
Consistent nighttime thigh cramps can be treated with prescription medication as directed by a physician, according to WebMD. Walking and jiggling the leg may also help to relieve the pain associated with leg and thigh cramps. Stretching exercises can help to alleviate thigh cramps, such as standing 2 feet from a wall and leaning forward toward the wall while keeping the knee straight and the heel on the ground to stretch the thigh muscle.
Muscle cramps in the thigh or legs is often caused by overuse of muscles, exercise or injury, states WebMD. Some people experience cramps as a result of pregnancy, dehydration or a deficiency of potassium, minerals and calcium. Exposure to cold temperatures or water can also produce leg or thigh cramps. People who sit or stand for long periods of time or sleep with their legs in awkward positions are often more prone to nighttime leg and thigh cramps.