Potassium nitrate is a chemical compound. It has the chemical formula KNO3. It contains potassium and nitrate ions. It is often called saltpeter.