congress has come up with a "line of succession" a list of the people who would become president, and in what order, if both the presidency and vice presidency became vacant. as of 2016, the order is: the speaker of the house of representatives; the president "pro tempore" of the senate; and then the fifteen cabinet secretaries, in order of when their departments were first created.