Crompton was born on 3 August 1790. He was the second (but eldest surviving) son of Joshua Crompton (1754–1832) and his wife Anna Maria Rookes (1762–1819), daughter of William Rookes (1719–89) of Royds Hall, Bradford, Yorkshire. His father, Joshua, was the son of Samuel Crompton (1714–82), a descendant of the Derby banking family of Crompton, and a cousin of the politician Sir Samuel Crompton. William's elder brother, Stansfield Crompton (1788–1801), died at the age of 13 and was buried at Guiseley Parish Church.[3]
Crompton was elected WhigMP for Huddersfield at the 1837 general election and held the seat until 1853. In 1839, he built St Paul's Church as a private family chapel at the cost of £800 (since 1983 it has been used in the combined parish of Guiseley with Esholt).
Crompton-Stansfield's win at the 1852 general election was declared void due to bribery and treating which "prevailed to a great extent". It was found, by a Commons Committee, that he was "by his agents, guilty of bribery and treating at the last Election". The Committee discovered that "treating throughout the said Borough during the last Election was general, systematic, and extravagant in its character": between sixty and seventy public-houses (at least) had been opened by his agents, with refreshments provided apparently without limit and paid for without inquiry (with expenses incurred on that account alone amounting to upwards of £1,000). With one exception, however, the only persons who were furnished with orders to provide refreshments were registered Electors, so it was not proved to the Committee that the bribery or treating were committed with Crompton-Stansfield's knowledge and consent. Nevertheless, the Committee considered that a system of treating (like that which appears to have prevailed for some time in Huddersfield) must have had the effect of exercising an influence over the minds of voters "as corrupting and debasing as direct bribery".[7][8][9] He was later a Deputy Lieutenant of the West Riding of Yorkshire.
Crompton-Stansfield died, aged 81, at Frimley Park, Surrey, on 5 December 1871. There were no children from the marriage and Esholt Hall was inherited by his nephew, General William Henry Crompton-Stansfield (1835–88).