Only one U.S. president served nonconsecutive terms.
Grover Cleveland was president from 1885 to 1889.
After being defeated by Republican Benjamin Harrison in the 1888 election, the Democrat Cleveland defeated Harrison in 1892 and won a nonconsecutive second term (1893-97).