Which president was gay

Gay served as the dean of Social Sciences at Harvard from to , as the dean of the Harvard Faculty of Arts and Sciences from to , and as the 30th president of Harvard University from July to January
James Buchanan was the only U.S. president who remained a bachelor throughout his life. Buchanan had a close relationship with William Rufus De Vane King, sparking speculation about his sexuality. Historian James Loewen suggests Buchanan's possible gay identity is not widely discussed today.