 Whitehill was elected as a Republican to the Thirteenth Congress and served until his resignation on September 1, 1814.He engaged in mercantile pursuits in Strasburg and served as burgess of Strasburg in 1816.He was again associate judge of the county court from October 17, 1820, until his death in Strasburg in 1822.