Sir William Rae, 3rd Baronet (14 April 1769 – 19 October 1842), was a Scottish politician and lawyer.