The esophagus is the tube that connects the pharynx to the stomach. It is entirely made of muscle and is between 23-25 cm (10 in). The esophagus is located directly behind the trachea and pierces the diaphragm on its way to the stomach.