Ernst August Hagen was born in Königsberg, at that time the administrative capital of East Prussia (and for almost a decade after 1806 when the king fled from Berlin, the home of the Prussian Court). His father, Karl Gottfried Hagen (1749-1829) was a distinguished chemist and the court apothecary.