With current RDA (recommended daily amount) of magnesium is 320 mg per day for women and 420mg per day for men. Some doctors mention you can take higher but this is up to you. If you notice any fluid retention then your kidneys are having a hard time processing the magnesium.
Excerpt from Dr Hyman's article "Magnesium: The Most Powerful Relaxation Mineral Available"...
"• The RDA (the minimum amount needed) for magnesium is about 300 mg a day. Most of us get far less than 200 mg.
• Some may need much more depending on their condition.
• Most people benefit from 400 to 1,000 mg a day.
• The most absorbable forms are magnesium citrate, glycinate, taurate, or aspartate, although magnesium bound to Kreb cycle chelates (malate, succinate, fumarate) are also good.
• Avoid magnesium carbonate, sulfate, gluconate, and oxide. They are poorly absorbed (and the cheapest and most common forms found in supplements).
• Side effects from too much magnesium include diarrhea, which can be avoided if you switch to magnesium glycinate.
• Most minerals are best taken as a team with other minerals in a multi-mineral formula.
• Taking a hot bath with Epsom salts (magnesium sulfate) is a good way to absorb and get much needed magnesium.
• People with kidney disease or severe heart disease should take magnesium only under a doctor's supervision."
You have just listed all my symptoms! I have some magnesium which I will start taking, I just wonder how much is needed based on how much vitamin D I take?
"Vitamin D, just like all other nutrients, works in harmony with several other nutrients to perform its many functions. Most importantly, vitamin D requires and 'uses up' magnesium to convert from supplements or sun into its active form in the blood. As such, it is a big mistake to simply take large doses of Vitamin D without taking the need for magnesium into consideration.
Yet this is exactly what is happening in most cases and it is causing a lot of people to have problems that they believe are due to side effects of Vitamin D- or even worse they believe they are experiencing an overdose. Such a huge number of people have subtle magnesium deficiency that some researchers and doctors are calling magnesium deficiency an epidemic, and anyone with even a mild or 'subclinical' magnesium deficiency will have this deficiency amplified when Vitamin D is taken.
This is creating some uncomfortable 'Side Effects of Vitamin D' that are actually symptoms of an induced magnesium deficiency! Some of the magnesium deficiency symptoms being attributed to Vitamin D are:
Headaches
Insomnia
Jitteriness
Muscle Cramps
Anxiety
Heart Palpitations
Constipation"