A potassium test is used to measure the amount of potassium in your blood. Potassium is an electrolyte that’s essential for proper muscle and nerve function. Even minor increases or decreases in the amount of potassium in your blood can result in serious health problems.