You need calcium and magnesium both. But don't take them at the same time, they will fight for absorbtion and much of the magnesium will be wasted. The best time to take magnesium is on an empty stomach, first thing in the morning or at night.
A good plan is to take your calcium in the morning at or before breakfast; most people drink some milk or have it on cereal in the morning, this will get you your calcium and vitamen D. Then at night right before bed when your stomach is empty take your magnesium (this is also a good time to take zinc, they help each other to be absorbed).
If you are deficient you may need 1 gram of calcium a day and 500 mg. of magnesium a day. (Or even a little more.) The proper ratio is about 2:1.
If you are getting alot of calcium but are still deficient you may have a problem with not enough stomach acid, if so you can take your minerals with enzyme tablets you can get at any health food store.
Hope this helps! Good luck.
Cheese Dog
Big egos are fragile.
Where the violent see only violence, the skillfull can see skill.
"You cannot solve a problem with the same level of thinking that existed when it was created." Albert Einstein