Wilson was elected as a Democrat to the Sixty-sixth Congress to fill the vacancy caused by the death of Representative-elect Edward E. Robbins. He was an unsuccessful candidate for reelection in 1920. He resumed the practice of law, and served as judge of the several courts of Butler County, Pennsylvania, from 1933 to 1943. He died in Butler. Interment in North Cemetery.