Swearingen was elected as a Democrat to the Twenty-fifth Congress to fill the vacancy caused by the resignation of Daniel Kilgore.
He was reelected to the Twenty-sixth Congress and served from December 3, 1838, to March 4, 1841.
Death and burial
He died on board ship while en route to his home from the State of California and was buried at sea.