A flail chest occurs when a segment of the thoracic wall becomes unattached from the rest of the chest wall this most typically occurs when ribs are fractured in two places allowing that segment of the thoracic wall to float independently of the rest of the chest wall