Potassium sorbate is produced industrially by neutralizing sorbic acid with potassium hydroxide. The precursor sorbic acid is produced in a two-step process via the condensation of crotonaldehyde and ketene.[5][6][7]