A chemical substance has the characteristics that it cannot be separated by physical methods. Seawater and milk can be separated by sedimentation, and air has different components depending on other aspects (such as elevation). Only ammonia is a substance. (thus it can have a formula: NH3)