William Hay, 5th Earl of Erroll (c. 1449 – 9 September 1513) was a Scottish peer. He was the son of Nicholas Hay, 2nd Earl of Erroll (though some sources cite him as the grandson of William Hay, 3rd Earl of Erroll, succeeding his brother Nicol Hay, 4th Earl of Erroll).
He succeeded to the title of Earl of Erroll and the hereditary office of Lord High Constable of Scotland in 1470 upon the death of his brother, Nicol Hay, 4th Earl of Erroll.
As Lord High Constable, he held a position of significant judicial and military authority in the Kingdom of Scotland. He served as a Privy Counsellor to King James IV of Scotland.
Hay was killed at the Battle of Flodden on 9 September 1513, fighting alongside King James IV against the English forces of Henry VIII. He was succeeded by his son, William Hay, 6th Earl of Erroll.