An acyl halide (also known as an acid halide) is a chemical compound derived from an oxoacid by replacing a hydroxyl group with a halide group.
If the acid is a carboxylic acid, the compound contains a –COX functional group, which consists of a carbonyl group singly bonded to a halogen atom. The general formula for such an acyl halide can be written RCOX, where R may be, for example, an alkyl group, CO is the carbonyl group, and X represents the halide, such as chloride. Acyl chlorides are the most commonly encountered acyl halides, but acetyl iodide is the one produced (transiently) on the largest scale. Billions of kilograms are generated annually in the production of acetic acid.
The hydroxyl group of a sulfonic acid may also be replaced by a halogen to produce the corresponding sulfonyl halide. In practical terms this is almost always chloride to give the sulfonyl chloride.
Common laboratory methods for the synthesis of acyl halides entail the reaction of carboxylic acids with reagents such as thionyl chloride or phosphorus trichloride for acyl chlorides, phosphorus pentabromide for acyl bromides, and cyanuric fluoride for acyl fluorides.
Aromatic acyl halides can be prepared in similar reactions with similar reagents; however, some specialty reactions are also available to produce these compounds. For example, chloroformylation, a specific type of Friedel-Crafts acylation which uses formaldehyde as a reagent, or by the direct chlorination of benzaldehyde derivatives.