The chemical reactions and pathways involving acetaldehyde, a colorless, flammable liquid intermediate in the metabolism of alcohol.