Sir William Dunbar, 7th Baronet (2 March 1812 – 18 December 1889) was a Scottish Liberal Member of Parliament in the British House of Commons. He became the 7th Baronet on 22 June 1841.