The ester formed when pentyl alcohol reacts with acetic acid is pentyl acetate. This reaction involves the condensation of the hydroxyl group of pentyl alcohol with the carboxyl group of acetic acid, resulting in the formation of the ester and water as a byproduct. Pentyl acetate is commonly used as a flavoring agent in the food industry due to its fruity aroma.