The HEI score is calculated based on a set of components that reflect different aspects of a healthy diet, such as fruit and vegetable intake, whole grains, protein variety, and the ratio of fatty acids. Each component is scored, and the total score ranges from 0 to 100, with higher scores indicating better diet quality. The most recent version, HEI-2015, includes 13 components, each contributing to the total score.