Breathing consists of two phases: inspiration (you breathe in, and air flows into the lungs) and expiration (you breathe out, and gases leave the lungs). During inspiration, the diaphragm and intercostal muscles contract allowing air to enter the lungs. During expiration, the diaphragm and intercostal muscles relax forcing gases to flow out of the lungs.


