William MacRae (September 9, 1834 – February 11, 1882) was a brigadier general in the Confederate States Army during the American Civil War.