If you're experiencing magnesium deficiency symptoms on a ketogenic diet, try supplementing 200-400 mg of magnesium citrate a day. Consult your medical practitioner to help you find the correct dose.