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 opp. 109--111 which he wrote between 1820 and 1822, and the thirty-first of his published piano sonatas.