Potassium is an essential electrolyte that plays a critical role in maintaining the electrical activity and rhythm of the heart. Proper levels of potassium (and other electrolytes like sodium and calcium) are necessary for the heart muscle to contract and relax regularly. Imbalances in potassium levels (both too high and too low) can lead to potentially life- threatening arrhythmias.