William Barrell (c. 1695 – 13 October 1763) was a British Army officer. He is principally known for his command of the 4th Regiment of Foot (later the King's Own Royal Regiment) at the Battle of Culloden on 16 April 1746, where his regiment bore the brunt of the Jacobite right wing's charge.
Barrell entered the army as an ensign in 1711. He served in the War of the Spanish Succession and the War of the Austrian Succession, seeing action at the Battle of Fontenoy in 1745. He was appointed Colonel of the 4th Foot in 1734, a position he held until his death.
At Culloden, Barrell's regiment was positioned on the left of the government front line. They received the initial impact of the Highland charge, suffering heavy casualties but holding their ground, a critical factor in the government victory. Barrell himself was wounded in the engagement.
He was promoted to Major-General in 1755 and Lieutenant-General in 1759. He served as Governor of Berwick-upon-Tweed from 1747 until his death.