Electrolytes are minerals in your body that have an electric charge. They are essential for various bodily functions, including regulating your heartbeat, muscle contractions, and maintaining proper fluid balance. Common electrolytes include sodium, potassium, calcium, and magnesium.