The esophagus is located in the chest. It is about 10 inches long. The esophagus lies behind the heart and windpipe. The windpipe is also called the trachea. It carries oxygen to the lungs and exhales carbon dioxide.