Hart was born on 5 June 1841 to Sir Andrew S. Hart, sometime vice-provost of Trinity College, Dublin, and his wife Frances MacDougall, the daughter of Henry MacDougall QC, of Dublin.
He was called to the Irish Bar in 1865.