You've no doubt experienced a muscle cramp before. It's extremely painful but usually doesn't last long. Sometimes you get them while you exercise or right after your workout. Or you might get them in the middle of the night. There are several causes of muscle spasms, including dehydration, electrolyte imbalances and overworked muscles or muscle injury. You can take several actions to prevent muscle spasms -- but they don't usually involve vitamin B-12.
Vitamin B-12 Deficiency
B-12 is a water-soluble vitamin that your body uses to make red blood cells. It is naturally attached to protein in food and is separated from the protein in your stomach. The vitamin can also be found in supplements in free form, which isn't bound to protein. Deficiency of vitamin B-12 doesn't cause leg spasms, but it can cause megaloblastic anemia, which leads to fatigue and weakness as well as constipation, loss of appetite and weight loss. Depression, confusion and numbness or tingling in the hands and feet are also symptoms of the deficiency. If you are found to be deficient in vitamin B-12, you will either be given high oral doses of the vitamin, or you'll receive vitamin B-12 injections.
You experience muscle spasms when a muscle contracts without your control and without relaxing. When these spasms occur in the leg, it's often called a charley horse. While vitamin B-12 deficiency doesn't cause a muscle spasm, the spasm can be caused by dehydration, electrolyte depletion or overworking or injuring the muscle. Other spasms -- especially neck spasms -- can be a sign of stress.
Fluid & Electrolytes
As one of the causes of these spasms, dehydration will often occur when you have been exercising, sweating or experiencing vomiting or diarrhea due to illness. Potassium is extremely important in preventing muscle spasms. When you are replenishing lost fluid, get plenty of electrolytes as well. You can do this by drinking a low-calorie sports drink or having a snack such as an orange or banana. If you have kidney problems, consult your health care provider. Increasing your fluid and potassium intake can be stressful to your kidneys. Toxicity from too much potassium is rare in healthy individuals because the extra potassium is easily excreted.
You can treat muscle spasms with heat to relax the muscle, as well as gently massaging the muscle. Properly stretching before exercise can help prevent muscle spasms. When you exercise, make sure that you're exercising within your abilities since overusing or straining your muscles may cause spasms. Get plenty of potassium in your diet by eating fruits, vegetables, low-fat or nonfat dairy products, legumes and lean meats. Drink plenty of fluids to prevent dehydration.