A wellhead is the equipment installed at the surface of a drilled well that seals the opening, supports the internal piping, and provides a way to control what flows in or out. In oil and gas production, it’s the steel assembly bolted at ground level (or on the seabed) that holds everything together and keeps high-pressure fluids contained. In water wells, it’s simpler: the visible casing, cap, and seal that protect your water supply from contamination. The term applies across industries, but the complexity varies enormously depending on what the well produces and where it sits.
How an Oil and Gas Wellhead Works
Think of a wellhead as the foundation of the entire well. It’s the surface structure that the well is built up from during drilling and the base that production equipment attaches to once the well is complete. Every well involves multiple concentric pipes (called casing strings) cemented into the earth at different depths. The wellhead is what holds all those pipes in place at the surface, seals the spaces between them, and gives operators a controlled access point to the well.
During drilling, the wellhead connects to blowout prevention equipment that keeps the well from releasing uncontrolled pressure. Once drilling is finished and the well is ready to produce, that blowout preventer comes off and a production valve assembly (called a Christmas tree) goes on top instead. The wellhead stays in place for the entire life of the well, from the first day of drilling through decades of production.
Main Components of an Oil and Gas Wellhead
A wellhead is built in stages as the well gets deeper, with each new piece added as a new casing string is run into the hole.
Casing Head Housing
This is the bottom piece, connected directly to the outermost cemented casing string. It supports the next string of casing inside it and provides the initial connection point for pressure control equipment. The casing head housing is typically welded or threaded onto the first casing and then pressure-tested to around 3,000 psi (or 80% of the casing’s collapse rating) before drilling continues. It seals the wellbore from the atmosphere.
Casing Hangers and Spools
As each additional casing string is lowered into the well, it needs to be suspended from the wellhead. Casing hangers do this job. They sit inside the casing head or spool, holding the weight of the casing string, centering it, and sealing off the space between the inner and outer pipes. Lock-down screws secure each hanger in place. Additional casing spools can be stacked on top to accommodate more casing strings in deeper wells.
Tubing Head Spool
The tubing head sits on top of the casing assembly. It supports and seals around the production tubing, which is the innermost pipe that actually carries oil or gas to the surface. It also holds the tubing hanger, which suspends the tubing string and includes a seat for a back-pressure valve. That valve is a critical safety feature: it allows operators to temporarily seal the well from above so they can swap out the Christmas tree or other surface equipment without losing control of well pressure.
The Wellhead vs. the Christmas Tree
People often confuse the wellhead with the Christmas tree, but they’re separate pieces of equipment with different jobs. The wellhead is the permanent structural base. It supports the casing, contains pressure, and stays in place for the life of the well. A Christmas tree is the assembly of valves and fittings that sits on top of the wellhead to control production flow. You need a wellhead to use a Christmas tree, but the wellhead exists on its own during drilling, long before any tree is installed.
Christmas trees have gotten increasingly complex over the years. Modern trees are often machined from solid blocks of steel containing multiple valves, rather than assembled from individual flanged valves. Beyond basic flow control, a tree typically includes chemical injection points, pressure and temperature monitoring, corrosion and sand detection sensors, and connections to control a downhole safety valve located deep in the well. The wellhead, by contrast, is more structural than operational. It holds everything up and keeps everything sealed.
Subsea Wellheads
Offshore wells drilled in deep water use subsea wellheads that sit on the seabed rather than at the surface. These serve the same basic functions as land-based wellheads: they support the casing strings, provide structural and pressure integrity, and hold the tubing hanger and production tree. But the engineering is far more demanding because everything must withstand water pressure, corrosion, and the difficulty of being accessed only by remotely operated vehicles or specialized intervention equipment.
A subsea wellhead transfers all the mechanical loads from the casing and completed well into the seabed structure. The Christmas tree installed on a subsea wellhead is called a wet tree (or subsea tree), as opposed to the dry or surface trees used on land wells. Some offshore platforms bring the wellhead up to the platform deck, but in deepwater applications, the wellhead and tree remain on the ocean floor with flow lines running back to a production facility.
Water Well Wellheads
If you have a private water well on your property, your wellhead is the visible pipe (casing) sticking out of the ground, plus the cap and seal on top. It looks nothing like an oil and gas wellhead, but the principle is the same: seal the well, protect it from contamination, and provide access to what’s below.
The casing should extend at least 12 inches above ground level. On top of that sits a well cap. Standard caps leave an air gap between the cap and casing, which can let insects, rodents, and surface water get in. A sanitary well cap uses a rubber gasket to create a tight seal while including a screened vent that allows necessary airflow without letting contaminants enter. These sanitary caps aren’t always installed automatically, so well owners often need to request one specifically.
Below ground, a grout seal made of bentonite clay can be packed around the outside of the casing. This clay expands to form a tight barrier that prevents surface water from seeping down along the outside of the casing and reaching the aquifer. Grout seals aren’t always required by local codes for private wells, but they add a significant layer of protection.
How a Wellhead Gets Installed
On an oil or gas well, installation happens in stages that track with the drilling process. First, the surface casing is drilled and cemented into place. The wellhead flange (casing head housing) is then attached to that casing, leveled precisely, and welded, threaded, or otherwise secured. Welds are pressure-tested before anything else proceeds.
As the well goes deeper and additional casing strings are run, each one gets its own hanger landed and locked into the wellhead assembly. A new spool may be added on top to accommodate each string. Between each casing run, blowout prevention equipment is installed on the growing wellhead stack for pressure control during drilling. The tubing head goes on last, after the final casing is set and the well is ready for completion. This entire sequence can take weeks, with the wellhead growing taller piece by piece.
Monitoring and Maintenance
Modern oil and gas wellheads are equipped with sensors that continuously track pressure, temperature, flow rates, choke positions, valve status, and chemical injection rates. These sensors connect to centralized monitoring software, often through IoT networks, giving operators real-time visibility into well conditions. Gas detection systems provide an additional safety layer, alerting crews to any leaks.
For water wells, the National Ground Water Association recommends an annual inspection by a licensed professional. A typical checkup includes a flow test to measure system output, checks of water level and pump motor performance, pressure tank evaluation, and water quality testing for coliform bacteria, nitrates, and minerals like iron and manganese that cause staining or odor problems.
Water well owners should also do their own periodic visual checks. Make sure the cap is securely attached and its seal is intact, the ground slopes away from the wellhead to divert runoff, no chemicals or fuel are stored nearby, and any vented cap has a clear, unobstructed screen. Vegetation with deep root systems should be kept at least 10 feet from the well, and livestock or kennels should be at least 50 feet away.

