 Hearn was born in Belturbet, County Cavan, Ireland, the son of Reverend William Edward Hearn (a curate and later a vicar) and Henrietta Hearn (née Reynolds).He was the second of seven sons in the family.Hearn was educated at Portora Royal School in Enniskillen, Ireland and later studied at Trinity College at the University of Dublin from 1842.