William Henry Harrison spent the shortest time in office, he died 31 days after taking office in 1841. Franklin D. Roosevelt served the longest, over twelve years, before dying early in his fourth term in 1945; he is the only president to have served more than two terms.