HbA1c measures the percentage of hemoglobin — the protein in red blood cells that carries oxygen — that has glucose attached to it. Because red blood cells live for about three months, the test gives an average picture of your blood sugar over that period rather than a single snapshot.
This makes HbA1c different from a fasting glucose test, which only reflects your blood sugar at the moment of the draw. HbA1c does not require fasting, so it can be drawn at any time of day.
Doctors use HbA1c to diagnose type 2 diabetes and prediabetes and to monitor blood sugar control in people already diagnosed. Because insulin resistance and high blood sugar are central drivers of fat buildup in the liver, HbA1c is also one of the standard blood tests used when evaluating MASLD (metabolic dysfunction-associated steatotic liver disease) and MASH (metabolic dysfunction-associated steatohepatitis), often alongside a complete blood count, a basic metabolic panel, and a lipid panel.