The 1940 Swansea East by-election was a parliamentary by-election held for the British House of Commons constituency of Swansea East on 5 February 1940. The seat had become vacant on the resignation from the House of Commons of the Labour Member of Parliament David Williams, who had held the seat since the 1922 general election.