An HbA1c test is used to check diabetes or pre-diabetes conditions in patients. Pre-diabetes condition shows an increased blood sugar level that means a person is at risk for getting diabetes. In case a person already has diabetes, an HbA1c test can help the doctor to monitor their condition and blood sugar levels.