Automation Glossary • Stock Tank

What Is a Stock Tank?

Merobix Engineering • • 7 min read

A stock tank is the on-lease storage tank that holds treated crude oil after processing and before it is sold or hauled away. It is also the reference point behind one of the industry's most-used units - the stock-tank barrel. This guide explains what a stock tank is, how oil in it is gauged and measured, and why the concept matters for volumes.

Back to Blog

Stock Tank in one line: A stock tank is an atmospheric storage tank on an oil lease that holds treated crude at surface conditions before sale. It is also the reference basis for the stock-tank barrel (STB), the volume of oil measured at standard surface temperature and pressure.

What a Stock Tank Is For

After oil passes through the separator and heater treater and meets BS&W spec, it flows to the stock tanks for temporary storage. These are typically vertical, atmospheric (low-pressure) steel or fiberglass tanks grouped at the tank battery. They buffer production between the continuous flow from the wells and the periodic events of trucking or pipeline transfer, and they serve as the custody-transfer point where ownership of the oil changes.

Because stock tanks vent near atmospheric pressure, light hydrocarbons flash from the oil as vapor. That vapor is either captured by a vapor recovery unit, routed to a flare, or - where allowed and controlled - vented, which is why emissions control at the tanks is a growing focus.

The Stock-Tank Barrel

Oil volume changes with temperature and pressure - warm oil with dissolved gas occupies more space than the same oil cooled and degassed at surface. To compare and sell oil consistently, the industry references volumes to standard conditions at the stock tank: a stock-tank barrel (STB) is one barrel of oil measured at defined reference conditions (commonly 60 degrees F and near-atmospheric pressure), after the gas has come out of solution.

This is why reservoir and production engineers speak of STB and of the formation volume factor - the ratio of a volume down in the reservoir to the volume it shrinks to once it reaches the stock tank. Stating rates in STB per day makes them comparable regardless of downhole conditions.

Gauging and Monitoring Stock Tanks

Traditionally a pumper gauges a stock tank by hand - opening the thief hatch and measuring the oil level and interface with a gauge line, or reading a level indicator - to determine how much oil is on hand and when to schedule a haul. Automated tank gauges (level transmitters, radar, or float systems) now do this continuously.

A cloud SCADA such as Merobix reads tank level transmitters over Modbus, so oil inventory, fill rate, and high-level alarms for every stock tank are visible remotely - letting operators schedule hauling efficiently and catch overfills or thief-hatch issues without a site visit.

Fittings You Will Find on a Stock Tank

Walk around a stock tank and most of what you see bolted to it exists to manage the vapor space. The tank shell is built for pressures barely above or below atmospheric, so every fitting that lets it breathe matters. The main ones are the thief hatch on the roof, a pressure-vacuum vent valve, a flame arrestor in the vent path, an equalizer line tying the vapor spaces of neighboring tanks together, the sales or load-line valve where the truck connects, and a drain or water leg at the bottom for pulling off free water and bottoms.

FittingWhat it does
Thief hatchRoof access for hand gauging, sampling, and temperature readings
Pressure-vacuum ventRelieves the small over- and under-pressures created by filling, emptying, and thermal cycles
Flame arrestorStops an external flame from propagating into the vapor space
Equalizer lineShares vapor between tanks in the battery so one tank filling does not overpressure while another pulls vacuum
Sales / load-line valveThe custody connection for the truck or pipeline transfer
Water leg / drainRemoves free water and accumulated bottoms from the tank floor

The reason to know these fittings is that they fail in ways that hurt. A pressure-vacuum vent stuck closed while a well keeps pumping in can bulge a shell, and the same vent stuck closed while a truck pulls oil out can collapse one, because an atmospheric tank tolerates almost no differential either way. Never blind or isolate a vent path without following site procedures, and treat any work on the roof or in the vapor space as a task for qualified personnel under the site's safe-work system.

From Gauge Reading to Run Ticket

A gauge reading by itself is just a height of liquid. Converting it to barrels takes the tank strapping table, the calibration table for that specific tank that maps each increment of height to a volume. When oil is sold by truck, the hauler takes an opening gauge before loading and a closing gauge after, and the difference, run through the strapping table, is the gross volume moved. That figure, along with the observed temperature, gravity, and BS&W cut, goes on the run ticket that documents the transfer.

Gross volume then gets corrected to net standard volume. Symbolically: net equals gross, multiplied by a temperature correction factor that shrinks the observed volume to the standard reference temperature, multiplied by one minus the BS&W fraction to remove the water and sediment that the buyer will not pay for. The correction factors come from published tables keyed to the measured gravity and temperature, not from judgment. When a level transmitter feeds SCADA, the same strapping table can be loaded into the monitoring platform so the tank level trends in barrels rather than feet, and a persistent mismatch between hauler tickets and the SCADA-computed volume change is worth investigating - it points at a gauging problem, a strapping error, or oil leaving the tank unaccounted for.

Operating Problems That Show Up at the Tanks

Overfill is the classic one. A single high-level alarm from the same transmitter that measures inventory is not protection, because when that transmitter fails you lose the alarm and the reading together. The accepted structure, described in API 2350 overfill protection, layers an independent high-high sensor above the working alarm so one failed instrument cannot take out both. A thief hatch left unlatched after gauging is the other everyday offender: it vents hydrocarbons continuously, lets rain into the oil, and disturbs the pressure balance the vent system is designed around.

Slower problems accumulate at the bottom. BS&W settles out over months, which quietly eats working capacity and makes the strapping table wrong in the lowest portion of the tank. Paraffin builds on cold shells and in the water leg, and in winter a frozen water leg or drain line can back free water up into the sales oil. Trending the fill rate catches many of these early: a well suddenly making more water, a leaking dump valve on the separator, or a stuck treater valve all show up as a change in how fast the tank gains level before anyone sees it at the site.

Frequently Asked Questions

What is a stock tank?

A stock tank is an atmospheric storage tank on an oil lease that holds treated crude at surface conditions after processing and before it is sold or hauled. It buffers continuous production against periodic transfers and usually serves as the custody-transfer point.

What is a stock-tank barrel (STB)?

A stock-tank barrel is one barrel of oil measured at standard surface reference conditions - commonly 60 degrees F and near-atmospheric pressure - after dissolved gas has come out of solution. It gives a consistent basis for reporting and selling oil volumes.

How is oil in a stock tank measured?

Traditionally by hand gauging through the thief hatch with a gauge line to read the oil level and interface, or by a level indicator. Today automated tank gauges - radar, level transmitters, or floats - read it continuously and feed the data to SCADA.

How many stock tanks does a tank battery need?

It is site-specific. The battery needs enough working capacity to keep producing through the longest expected gap between hauls or pipeline runs, with margin for upsets, and enough separate tanks that one can be isolated, gauged, and sold from while another keeps filling. Adding tanks buys scheduling flexibility for trucking at the cost of more fittings, more gauging, and more emissions points to manage.

What actually protects a stock tank from overpressure?

The pressure-vacuum vent, the equalizer line to the other tanks, and whatever vapor recovery or flare path the battery uses, working together. The shell itself tolerates almost no pressure differential in either direction, which is why a blocked or iced-over vent during filling or emptying is a serious event and why vent paths are never isolated outside site procedures.

Sources and verification

This page references the protocol specifications published by the organizations below. Editions, product capabilities, and documentation change over time - confirm current requirements and specifications directly with the source.

Merobix is not affiliated with, endorsed by, or sponsored by these organizations; their names are used only to identify the standards and products discussed.

More in Pumps, Compressors & Process Equipment
OOOO Storage Vessel Controls  •  Calculate DP Level Range for a Sealed Tank  •  Verify a Hydrostatic Tank Gauging System  •  Working and Breathing Losses  •  Bolted Steel Tank  •  All Pumps, Compressors & Process Equipment →
Free SCADA operator training
Merobix University - 70 video lessons & 261 quiz questions, from first login to compliance reporting. No demo call required.
Start free →