The Piano Sonata No. 11 in A major, K. 331 is a piece of music for the piano. It was written by Wolfgang Amadeus Mozart. It was published in Vienna, Austria by Artaria in 1784. It is the second of a group of three piano sonatas. Mozart probably wrote the group in Salzburg in the summer of 1783. It was then that he brought his wife Constance (Weber) to his hometown to introduce her to his father Leopold. The first sonata in the group is No. 10 in C major, K. 330. The third is No. 12 in F major, K. 332. Mozart numbered this group of sonatas 1 through 3. He spent much time teaching during his early years in Vienna. It is likely that these sonatas were written for his pupils.