Ammonium carbonate , also known as baker 's ammonia or sal volatile , is a chemical compound . Its chemical formula is ( NH4 ) 2CO3 .
Ammonium carbonate ( NH4 ) 2CO3 is a commercial salt , formerly known as sal volatile or salt of hartshorn .