Tracy was elected as an Independent Republican to the Thirty-eighth Congress. He served as collector of the port of Philadelphia in 1866. He resumed mercantile pursuits.
Death and interment
Tracy died at Standing Stone in 1886, aged 78. He was interred in the Brick Church Cemetery in Wysox, Pennsylvania.