Do you have to be married to be president of the US?

No You do not, but

you must be at least 35 and be born a US citizen . You also have to lived in the US for 14 years.