The Piano Sonata No 31 in A-Flat Major, Op. 110, by Ludwig van Beethoven was composed in 1821. It is the central piano sonata in the group of three (Op 109, 110, 111) which he wrote between 1820 and 1822, and the thirty-first of his published piano sonatas.