What Is a Cervix? Anatomy, Function, and Conditions

The cervix is the lower, narrow end of the uterus that connects to the vagina. It’s a small, cylindrical structure, roughly 2.5 centimeters long in non-pregnant individuals, and it serves as a gateway between the vagina and the upper reproductive tract. Despite its small size, the cervix plays a surprisingly active role in fertility, childbirth, immune defense, and overall reproductive health.

Basic Anatomy of the Cervix

The cervix sits at the very bottom of the uterus and extends slightly into the upper vagina. If you imagine the uterus as an upside-down pear, the cervix is the narrow stem at the bottom. Running through its center is a narrow passageway called the cervical canal, which connects the vaginal opening to the interior of the uterus.

Two small openings sit at either end of this canal. The external os is the opening you’d see from the vaginal side, and the internal os is the opening that leads into the body of the uterus. The external os looks and feels different depending on whether a person has given birth vaginally. In someone who hasn’t, it’s typically small and round. After vaginal delivery, it often takes on a wider, more slit-like shape.

The cervix has two distinct regions covered in different types of tissue. The ectocervix is the outer portion that projects into the vagina, covered in flat, layered cells similar to the skin inside your cheek. The endocervix is the inner canal, lined with column-shaped cells that produce mucus. Where these two tissue types meet is called the transformation zone, a small but important area because it’s where most cervical cancers originate.

How the Cervix Changes Throughout Your Cycle

The cervix isn’t static. Its position, firmness, and openness shift throughout the menstrual cycle in response to changing hormone levels. During menstruation, the cervix sits lower in the body (making it easier to feel), stays relatively open to allow menstrual blood to exit, and tends to feel firm. As ovulation approaches and estrogen rises, the cervix moves higher, softens noticeably, and opens slightly to make it easier for sperm to enter.

Cervical mucus follows an even more dramatic pattern. In the days right after a period, discharge is minimal, dry, or tacky. By about a week into the cycle, it becomes creamy and white, similar in consistency to yogurt. During the fertile window around ovulation (roughly days 10 through 14), mucus becomes slippery, stretchy, and clear, often compared to raw egg whites. This texture helps sperm travel through the cervical canal. After ovulation, mucus dries up again and stays that way until the next period. Tracking these changes is one of the oldest methods of identifying peak fertility.

The Cervix as an Immune Barrier

One of the cervix’s lesser-known roles is acting as a gatekeeper against infection. The upper reproductive tract, including the uterus, fallopian tubes, and ovaries, needs to stay relatively sterile. The cervix is a major line of defense keeping bacteria, viruses, and fungi from traveling upward.

Cervical mucus does much of this work. It’s mostly water, but it contains a family of large proteins called mucins that physically trap microorganisms before they can reach the uterus. The mucus plug that forms during pregnancy concentrates these protective substances even further, with some antimicrobial compounds found at concentrations roughly 75 times higher than in regular vaginal fluid.

Beyond the mucus itself, the cells lining the cervix produce a range of natural germ-killing compounds. Some punch holes in bacterial cell walls. Others starve microbes by binding to the iron they need to survive. Several of these compounds are also active against viruses, including HIV. The cervix also has specialized receptors that detect molecular patterns unique to invading pathogens and trigger a broader immune response when needed. In short, the cervix is far more than a passive doorway. It’s an active part of the body’s immune system.

The Cervix During Labor and Delivery

During pregnancy, the cervix stays long, firm, and tightly closed to support the growing pregnancy and keep the uterus sealed. As delivery approaches, hormonal shifts cause the cervix to soften and thin out, a process called effacement. Effacement is measured as a percentage: 0% means the cervix is still its full thickness, and 100% means it has thinned completely.

Dilation is the other half of the equation. The cervix needs to open from essentially closed to 10 centimeters for a baby to pass through. Early labor typically involves gradual dilation up to about 5 or 6 centimeters, which can take hours or even days. The active phase picks up from 6 centimeters to full dilation and generally moves much faster. Hospitals typically admit patients once dilation reaches 4 to 5 centimeters with at least 80% effacement and regular, strong contractions.

Common Cervical Conditions

Several benign conditions can affect the cervix. Nabothian cysts are small, mucus-filled bumps that form when the glands on the cervix’s surface get blocked, usually during normal tissue turnover or after healing from inflammation, childbirth, or minor procedures. They’re extremely common and almost always harmless. Most cause no symptoms at all and are found incidentally during routine exams. Occasionally a larger cyst can cause pelvic discomfort or unusual discharge, but treatment is rarely needed.

Cervicitis, or inflammation of the cervix, can result from sexually transmitted infections, bacterial imbalances, or irritation from products like spermicides. It may cause unusual discharge, bleeding between periods, or pain during intercourse, though it can also be silent. Cervical polyps are small growths on the cervical canal that sometimes cause irregular bleeding. Like nabothian cysts, they’re almost always non-cancerous.

Cervical Cancer Screening Guidelines

The transformation zone, where the two tissue types of the cervix meet, is where abnormal cell changes most often develop. Nearly all cervical cancers are caused by persistent infection with certain strains of HPV (human papillomavirus), which is why screening focuses on detecting either abnormal cells or the virus itself before cancer has a chance to develop.

Current recommendations from the U.S. Preventive Services Task Force break screening down by age. People aged 21 to 29 should get a Pap test every three years. From age 30 to 65, there are three options: a Pap test alone every three years, an HPV test alone every five years, or both tests together every five years. Screening is not recommended before age 21, and people over 65 with a history of normal results can generally stop. Those who have had a hysterectomy that removed the cervix and have no history of precancerous cervical changes do not need screening.

These intervals apply to people at average risk. A history of abnormal results, a compromised immune system, or prenatal exposure to certain medications may call for more frequent monitoring.