Lactic Acid is a carboxylic acid with a chemical formula of C3H6O3 . Lactic acid is a carboxylic acid , whose chemical formula C3H6O3 has its hydroxyl group adjacent to the carboxyl group , making it an alpha hydroxy acid ( AHA ) .