A by-election was held for the New South Wales Legislative Assembly electorate of Ryde on 14 September 1940 following the resignation of Eric Spooner (United Australia), to contest the federal seat of Robertson at the 1940 election, at which he was elected.