The youngest person to assume office was Theodore Roosevelt (age 42), who became president following William McKinley's assassination. The youngest president elected to office was John F. Kennedy (age 43 years, 236 days), who was also the youngest to leave office (age 46 years and 177 days) when he was assassinated..