The second son of the 9th Earl of Northampton (later the First Marquess), Compton studied at Trinity College, Cambridge, receiving a Master of Arts degree in 1810. In 1812, following the assassination of his cousin, the prime minister Spencer Perceval, Compton, by now Earl Compton as heir to the Marquessate, took his seat for Northampton in the House of Commons.