Ammonium carbonate is a chemical compound with the chemical formula [NH4]2CO3. It is an ammonium salt of carbonic acid. It is composed of ammonium cations [NH4] and carbonate anions CO2−3. Since ammonium carbonate readily degrades to gaseous ammonia and carbon dioxide upon heating, it is used as a leavening agent and also as smelling salt. It is also known as baker's ammonia and is a predecessor to the more modern leavening agents baking soda and baking powder. It is a component of what was formerly known as sal volatile and salt of hartshorn, and produces a pungent smell when baked. It comes in the form of a white powder or block, with a molar mass of 96.09 g/mol and a density of 1.50 g/cm. It is a strong electrolyte.