HbA1c, or glycated hemoglobin, gives the average of the last three months' glucose levels. This is because HbA1c measures the amount of glucose that has attached to hemoglobin in the red blood cells over a period of approximately three months. By measuring the percentage of HbA1c in the blood, healthcare professionals can assess a person's average blood sugar levels over that time frame, providing valuable information about their long-term blood sugar control.