Piano Sonata No. 4 (Mozart)

{{Infobox musical composition

| name = {{nowrap|Piano Sonata in E-flat major}}

| subtitle = No. 4

| composer = W. A. Mozart

| image = Mozart by Martin Knoller 1773.jpg

| image_upright =

| alt =

| caption = 1773 miniature of Mozart

| other_name =

| key = E-flat major

| catalogue = K. 282 / 189g

| style = Classical period

| composed = {{start date|1774}}

| dedication =

| published =

| movements = Three (Adagio, Menuetto I–II, Allegro)

| scoring =

| misc =

}}

Wolfgang Amadeus Mozart's Piano Sonata No. 4 in E-flat major, K. 282 / 189g, (1774) is a sonata in three movements:

{{ordered list|list_style_type=upper-roman

|Adagio

|Menuetto I–II (Menuetto I is in B-flat major, but Menuetto II is in E{{music|flat}} major, then returns to Menuetto I)

|Allegro

}}

A typical performance takes about 12 minutes.

Mozart wrote the work down during a visit paid to Munich for the production of La finta giardiniera from late 1774 to the beginning of the following March.

The first movement is in sonata form. The second movement consists of two minuets, of which the first one is in the dominant key of B-flat major and the second one moves to the tonic (home) key of E-flat major, after which the first minuet in B-flat is repeated, resulting in an ABA form overall. The third movement is also in sonata form and returns in the home key in E-flat major.