Highlights•Type 2 diabetes is associated with smaller volumes in most hippocampal subfields.•Prediabetes shows no significant associations with any hippocampal subfield volume.•There is a dose–response trend from normal glucose metabolism to type 2 diabetes.•Prediabetes might offer a window of action for the early prevention of brain disease.