Electrolytes are necessary for human health and are especially important when fasting for long periods. An electrolyte imbalance can hinder your fast, causing unpleasant side effects like dizziness, irregular heartbeat, nausea, muscle cramps, and fatigue. Taking an electrolyte supplement can help you maintain balance.