William Anderson (1762 – December 16, 1829) was a member of the U.S. House of Representatives from Pennsylvania.
William Anderson was born in Accomack County, Virginia, in 1762. Married to Elizabeth Dixon. During the Revolutionary War, he joined the Continental Army at the age of fifteen and served until the end of the war. He was a major on the staff of General Lafayette and distinguished himself at Germantown and Yorktown. He was engaged in the hotel business as landlord of the Columbia House in Chester, Pennsylvania, in 1796. He served as county auditor in 1804 and county director of the poor in 1805. He was a Jeffersonian democrat and held many public offices.
Anderson was elected as a Democratic-Republican to the Eleventh, Twelfth, and Thirteenth Congresses. He was elected to the Fifteenth Congress. He was appointed an associate judge of the county court on January 5, 1826, and resigned in 1828 to become an inspector of customs in Philadelphia. He served until his death in Chester in 1829. Interment in Old St. Paul’s Cemetery.