Hegardt was born in Gothenburg, Sweden, the daughter of the judge Carl Hegardt and his wife Blenda (née Koch). She received a Candidate of Law degree from Lund University in 1958 and carried out her clerkship from 1959 to 1961.