The sonata was written at the same time as the Piano Sonata, K. 330 and Piano Sonata, K. 331 (Alla turca), Mozart numbering them as a set from one to three. They were once believed to have been written in the late 1770s in Paris, but it is now thought more likely that they date from 1783. Vienna has been suggested as a possible place of composition, with other believing they were written during a visit to Salzburg where Mozart introduced his wife, Constanze, to his father, Leopold. All three sonatas were published in Vienna in 1784.
The work is in three movements and has a conventional structure: