Diazomethane is a highly reactive, toxic gas that is soluble in ether. It has the molecular formula CH2N2 and a boiling point of -23°C. Though explosive, it can be handled safely as an ethereal solution. Diazomethane is prepared through various methods including Pechmann's, Arndt and Amende's, and Backer's. It is used as a synthetic reagent for methylation of acids, alcohols, and phenols. It can also be used for homologation, ring expansion, synthesis of heterocyclic compounds, and generation of carbines through loss of nitrogen.