Ehrenhaft was born in Vienna to physician Leopold Ehrenhaft and Louise Eggar, the daughter of a Hungarian industrialist. Ehrenhaft earned his doctorate from the University of Vienna in 1903, working on the optical properties of metallic colloids. He subsequently became assistant to Franz S. Exner.