Nitrous oxide, also known as dinitrogen oxide or dinitrogen monoxide, is a chemical compound with chemical formula N2O . It is commonly known as laughing gas due to the exhilarating effects of inhaling it. It is used in surgery and dentistry for its anaesthetic and analgesic effects