Evolution and life stagesLungs
How the Lungs Develop: From Embryo to the First Breath
For general education about how the body works, not medical advice. Medical disclaimer.

The lungs begin as a small outgrowth of the embryo’s foregut in the fourth week after fertilization, and they keep developing in stages until after birth. The process moves from a simple bud to a branching tree of airways and then to the tiny air sacs that exchange gases. Most of the structure is in place before birth, but the number of alveoli continues to rise in childhood.
Contents
What the lungs develop from
Early in development, the embryo forms a flat layer of cells called the endoderm, which folds into a tube called the foregut. The foregut will become the throat, the stomach and much of the digestive tract. A narrow groove appears in the ventral wall of the foregut, and a small bud grows out from it. This bud is called the respiratory diverticulum, and it is the first sign of the trachea and the lungs.
The bud separates from the front part of the foregut as the tracheoesophageal septum forms. This separation is why the trachea and the esophagus are two separate tubes in the adult, with the trachea at the front and the esophagus behind it. The lung bud is covered by a layer of endoderm, and the tissue around it comes from the mesoderm that surrounds the foregut.
Early stages: the airway tree forms
From about the fifth week, the bud divides repeatedly into two main branches, one for each lung. These branches continue to divide during the pseudoglandular stage, which runs to about the 16th week. During this period the airways form the tree of bronchi and bronchioles, and the tissue looks like a gland under the microscope, which gives the stage its name. No gas exchange takes place yet.
The pulmonary arteries and veins grow alongside the airways during these same stages. Each developing airway is matched by a branch of the pulmonary artery, so the segments of the lung are organized around paired airways and vessels from an early point. The veins form as channels that drain into the heart, and the capillary network that will sit against the air sacs is built from the mesoderm around the branching tubes. By the end of the canalicular stage the arrangement is close to the adult pattern, although the air spaces are still far smaller than they will be.
The stage that follows is called the canalicular stage, from about the 16th to the 26th week. The airways continue to narrow and branch, and the lung tissue becomes rich in blood vessels. The terminal airways start to take on a thin, flat lining, and the cells that will form the gas exchange surface begin to appear. Some fetuses born during this stage can survive with intensive support, but the lungs are not yet able to exchange enough gases to sustain life without help.
Late fetal development: sacs and surfactant
The saccular stage runs from about the 24th week until near term. The terminal airways form thin-walled sacs, and capillaries come close to the air spaces. This is the stage where the future gas exchange surface takes shape. Type II alveolar cells produce surfactant, a mixture of lipids and proteins that lowers the surface tension in the air spaces. Surfactant begins to appear around the 24th week and increases toward term.
Without enough surfactant, the sacs would tend to collapse at the end of each breath. This is why the timing of surfactant production matters so much for a baby born early. Breathing movements also start before birth, and the fetus moves air in and out of the airways without taking in air from outside the body. The lungs are filled with fluid during this time, and that fluid is part of normal development.
The first breath and the alveolar stage
At birth, the fluid in the lungs is cleared from the airways and absorbed into the tissues, and the first breath draws air into the sacs. The change is driven by a large drop in pressure in the chest and by the action of surfactant and the nervous system. From this moment the lungs take over gas exchange from the placenta, and the blood vessels in the lungs open to carry blood from the heart to the alveoli.
After birth, the lung continues the alveolar stage. New alveoli form by dividing the existing air spaces, a process called alveolarization. The number of alveoli increases for several years, and most textbooks say that the process is largely complete by about the age of eight. An adult lung has several hundred million alveoli, far more than the lung of a newborn, and the surface area of gas exchange grows along with them.
Comparing with other animals
The lungs of land vertebrates, including reptiles, birds and mammals, begin as an outgrowth of the ventral foregut. The swim bladder of many bony fishes also develops from a similar outgrowth. Anatomists use this shared origin as evidence that the lungs and the swim bladder are homologous structures, which means they descend from a common ancestral organ.
Comparison also shows how the lung changed as animals moved onto land. In mammals, the branching tree and the many alveoli provide a large gas exchange surface in a relatively small chest, and the developmental sequence is the same one that builds the human lung. Development follows a similar sequence of branching and sac formation across many species, which supports the idea that the process has been conserved over long periods of evolution.
What scientists still debate
Researchers still study the exact signals that tell the lung bud where and when to branch. Genes that control branching have been identified in mice, and the same families of signals are found in humans, but the details of the human sequence are still being mapped. Scientists do not yet agree on every detail of how the air sacs divide and how the timing differs between individuals.
The end point of alveolar growth is also debated. Some sources describe the process as complete by about the age of eight, while others describe it as continuing in a more limited way into adolescence. Estimates of the number of alveoli at birth and in adulthood also vary between studies, because counting alveoli is difficult and depends on the methods used.
Frequently asked questions
When do the lungs start to form?
The lungs start as a small bud from the ventral wall of the foregut in the fourth week after fertilization. The bud later separates from the developing esophagus and grows into the tissue that will form the trachea and lungs.
When can a baby breathe air?
A baby born at full term can breathe air because the lungs have finished their main branching and have started to make surfactant. Breathing movements also begin before birth, but the fetus does not take in air and gets oxygen from the placenta.
What is surfactant and why does it matter?
Surfactant is a mixture of lipids and proteins made by type II alveolar cells. It lowers the surface tension inside the alveoli, which keeps them from collapsing at the end of each breath.
Do the lungs keep growing after birth?
Yes. The lungs continue to form new alveoli during childhood, and the number of alveoli increases for several years after birth. The total lung volume grows as the chest and body grow.
Do other animals develop lungs in the same way?
Lungs in most land vertebrates arise from the ventral side of the foregut, which supports a shared origin. The swim bladder of many bony fishes develops from a similar outgrowth.
Sources and further reading
- Gray's Anatomy (Susan Standring, ed.)
- OpenStax, "Anatomy and Physiology 2e"
- Keith L. Moore and T. V. N. Persaud, "The Developing Human: Clinically Oriented Embryology"
Cite this page
“How the Lungs Develop: From Embryo to the First Breath.” Body Atlas, https://body.bigworldlist.com/evolution/how-the-lungs-develop/.
Lungs: more questions and guides
- ProfileLungs: Anatomy, Size and How the Human Lungs Work
- ListBronchopulmonary Segments: The Separate Units of Each Lung
- QuestionCan You Live With One Lung? How the Body Adapts
- QuestionDo Lungs Have Muscles? What Really Makes the Lungs Inflate
- Evolution and life stagesHow Breathing Changes With Age: From Newborn to Older Adult
- Evolution and life stagesHow Did Lungs Evolve? From Ancient Fish to Human Lungs
- QuestionHow Do the Circulatory and Respiratory Systems Work Together?
- QuestionHow Does the Diaphragm Work? Breathing In and Out Explained
- Evolution and life stagesHow Human Bodies Adapted to High Altitude: Tibet, Andes, Ethiopia