The brain contains two major glands: the pineal gland and the pituitary gland. A third structure, the hypothalamus, functions as both a brain region and a hormone-producing gland. Together, these three structures form the command center of your endocrine system, releasing hormones that influence everything from sleep and stress to growth and reproduction.
The Pituitary Gland
The pituitary gland sits at the base of the brain, just below the hypothalamus. It’s roughly the size of a pea, yet it’s often called the “master gland” because it controls the activity of most other hormone-producing glands in the body. The gland has two distinct lobes, each with different jobs.
The front lobe (anterior pituitary) manufactures its own hormones. It releases thyroid-stimulating hormone, which tells the thyroid to regulate metabolism and energy. It produces a stress-signaling hormone that prompts the adrenal glands to release cortisol. It also makes growth hormone, prolactin (involved in breast milk production), and hormones that drive sperm production and egg development.
The back lobe (posterior pituitary) works differently. It doesn’t actually make hormones. Instead, it stores and releases two hormones that the hypothalamus produces: one that regulates water balance and sodium levels in the body, and oxytocin, which triggers uterine contractions during labor, stimulates breast milk flow, and plays a role in bonding between parent and baby.
The Pineal Gland
The pineal gland is a tiny structure buried deep in the middle of the brain, sitting in a groove just above the thalamus and beneath the back part of a large band of nerve fibers called the corpus callosum. Its primary job is producing melatonin, the hormone that regulates your sleep-wake cycle.
The way it works is elegantly simple. Your retinas detect how much light is in your environment and relay that information to the pineal gland. When it’s dark, the gland ramps up melatonin production. When it’s light, melatonin drops. The gland’s specialized cells release melatonin directly into the cerebrospinal fluid surrounding the brain and spinal cord, which then carries it into the bloodstream.
One notable feature of the pineal gland is that it tends to calcify with age. In children under 6, calcification is rare (about 1%), but it rises to roughly 23% in children aged 7 to 15. By adulthood, pineal calcification is common and typically shows up on brain imaging as a small bright spot. In most cases this is harmless, though in very young children, unexpected calcification can warrant a closer look.
The Hypothalamus
The hypothalamus is located at the base of the brain, near the point where the optic nerves from each eye cross. It’s technically a brain region rather than a standalone gland, but it earns its place in the endocrine system because it produces hormones that directly control the pituitary gland. Some of these hormones stimulate the pituitary to release its own hormones, while others suppress that release. This makes the hypothalamus the true overseer of the entire hormonal chain of command.
Beyond its hormone duties, the hypothalamus also regulates body temperature, appetite, thirst, blood pressure, and sleep cycles. It’s where the nervous system and the endocrine system meet, translating signals from the brain into hormonal instructions for the rest of the body.
How These Glands Work Together
The hypothalamus, pituitary, and pineal gland don’t operate in isolation. The hypothalamus senses conditions in the body (stress, temperature, hormone levels) and sends releasing or inhibiting hormones to the pituitary. The pituitary then signals distant glands like the thyroid, adrenal glands, and reproductive organs to adjust their hormone output. Meanwhile, the pineal gland tracks the external light cycle independently, keeping the body’s internal clock synchronized with day and night.
When hormone levels in the blood rise high enough, the hypothalamus and pituitary detect that change and scale back their signals. This feedback loop keeps the system in balance. If the loop breaks down, whether through a tumor, injury, or disease, the effects can ripple across the entire body.
What Happens When Brain Glands Malfunction
Pituitary tumors are the most common disorder affecting these glands. Most are benign growths called adenomas. Smaller ones may cause no symptoms at all, but larger tumors can press on nearby nerves and brain tissue, leading to headaches, vision problems (particularly loss of peripheral vision), facial numbness, or a drooping eyelid.
The hormonal effects depend on what the tumor does. Some tumors overproduce a specific hormone. A tumor that churns out excess cortisol-stimulating hormone can cause Cushing disease, marked by weight gain around the midsection, a rounded face, thinning skin that bruises easily, and muscle weakness. A tumor overproducing growth hormone leads to acromegaly, which gradually enlarges the hands, feet, and facial features. Prolactin-producing tumors can disrupt menstrual cycles in women or cause sexual dysfunction in men.
Other tumors do the opposite: they grow large enough to crush normal pituitary tissue, reducing hormone production. This can cause persistent fatigue, weight changes, loss of body hair, feeling unusually cold, and sexual or fertility problems.
How Brain Gland Problems Are Detected
MRI is the gold standard for evaluating both the pituitary and pineal glands. Because the pituitary gland is so small, imaging requires thin slices of 3 mm or less focused specifically on the area around the gland. Coronal views (front-to-back cross sections) give the clearest picture, while sagittal views (side profiles) help assess midline structures like the pineal gland. A contrast agent is often injected during the scan to make small tumors easier to spot, since some are otherwise invisible against normal tissue. Blood tests measuring hormone levels typically accompany imaging to determine whether a gland is overproducing or underproducing specific hormones.

