Skip to content
Beaconby Winda
FactOil, Gas and Chemicals Basics · Value chain and segments

What are upstream, midstream and downstream in oil and gas?

·10 sources

Short answer

Upstream, midstream and downstream are the three segments of the oil and gas value chain. Upstream explores for and produces crude oil and natural gas; midstream gathers, stores and transports them by pipeline, ship, rail and truck; downstream refines and processes them into fuels and products for customers. Public agencies place gas processing in different segments.

By , Editor·Researched and drafted by ·Checked by , Editor·Last checked ·Next review

What does the upstream segment include?

Upstream is the part of the industry that finds oil and gas and brings it to the surface. The US Environmental Protection Agency (EPA) describes it as exploration for, and production of, crude oil and natural gas, and files it under North American Industry Classification System (NAICS) code 211 1.

A Penn State petroleum engineering course adds the first treatment of produced fluids in the field, so that oil and gas meet the entry specifications of the export route, whether a pipeline or a tanker 2. Typical assets are wells, flowlines and field facilities; offshore, these sit on production platforms.

What does the midstream segment include?

Midstream links the field to the plants that turn oil and gas into products. EPA describes it as gathering, storing and transporting oil and natural gas, by pipeline, rail, tanker and truck 1. The Penn State course notes that the route can end at a refinery on another continent 2.

For natural gas, the US Energy Information Administration (EIA) lays out the chain step by step 3:

  1. Gathering: gathering pipelines move gas from the wells to processing plants 3.
  2. Processing: water, liquids and impurities such as hydrogen sulfide (H2S), carbon dioxide (CO2) and nitrogen are removed, leaving dry gas fit for long-distance lines 3.
  3. Transmission: wide, high-pressure pipelines carry the gas to consuming regions 3.
  4. Storage: gas injected during low demand is withdrawn at peaks, mostly from depleted fields, salt caverns or aquifers 3.

What does the downstream segment include?

Downstream turns crude oil and natural gas into products and delivers them. In EPA's wording, it covers refining crude into products such as gasoline, diesel, lubricants and asphalt binders, as well as processing and purifying natural gas for distribution to customers 1.

The Penn State course puts storage, refining and marketing to consumers in this segment, including tank farms and caverns that hold crude before refining 2. For gas, EIA describes the last step as distribution: gas leaves the transmission lines for smaller mains, then flows through service lines into homes and buildings 3.

Where do gas processing and storage fit?

The three public sources used here do not draw the lines in the same places, as the table shows 1,3,2.

ActivityEPA Smart Sectors page (2026)EIA natural gas pagesPenn State PNG 301
First treatment of fluids in the fieldNot stated separatelyPart of processing, which can happen at the wellhead, in field facilities or at plantsUpstream
Gas processing plantDownstreamA step between gathering and transmissionNot stated
Storage of crude, products or gasMidstreamA separate step: underground storage and tanksDownstream
Gas distribution to customersDownstreamThe final step, through mains and service linesNot stated

As a result, the same gas processing plant or storage site can be labeled midstream in one report and downstream in another 1,3,2. What the plant does is described in What does a gas processing plant do?.

Which US safety rules apply in each segment?

In the United States, the rule that applies depends on the type of facility; three examples 10,4:

  • Process plants such as refineries: the Occupational Safety and Health Administration (OSHA) process safety management (PSM) standard, 29 CFR 1910.119, requires a mechanical integrity program for covered processes. Vessels, tanks, piping, relief systems, controls and pumps must be inspected and tested by procedures that follow "recognized and generally accepted good engineering practices" (RAGAGEP) 10.
  • Wells: the same standard excludes oil or gas well drilling and servicing operations, retail facilities and normally unoccupied remote facilities 10.
  • Pipelines: federal pipeline safety rules are administered by the Pipeline and Hazardous Materials Safety Administration (PHMSA). Its fact sheets (revised 2018) state that operators must periodically assess their lines, using in-line inspection tools, hydrostatic pressure tests or direct assessment, and repair or replace corroded pipe 4,5,6.

Over 2013 to 2017, PHMSA attributes roughly 17% of the incidents reported on hazardous liquid lines and on gas gathering and transmission lines to corrosion 4. Offshore rules are covered in What is the BSEE Safety and Environmental Management Systems (SEMS) rule?.

Where integrity problems show up

Segment and assetTypical integrity issueIn the Library
Upstream and gathering: flowlines and gathering lines carrying wet oil and gasInternal corrosion from water, CO2 and H2S carried with the productWhat is carbon dioxide (CO2) corrosion?, Sweet vs sour corrosion: carbon dioxide vs hydrogen sulfide
Midstream: buried transmission pipelinesExternal corrosion where coating flaws expose steel to soil or water; controlled with coatings and cathodic protectionHow does cathodic protection work?, What is pipeline integrity management?
Downstream: refinery amine treating unitsCorrosion controlled through regenerator and reboiler temperatures and by keeping oxygen outWhat is amine corrosion and amine cracking?
Downstream: crude unit furnace tubes, towers and hot pipingSulfidation from sulfur compounds in crude at about 230 °C to 540 °C (450 °F to 1,000 °F); naphthenic acid corrosion above about 230 °C (450 °F)What is sulfidation (high-temperature sulfur corrosion)?, What is naphthenic acid corrosion?
Downstream: crude unit overhead systemsCorrosion from hydrogen chloride and ammonium chloride formed from salts in the crudeWhat is hydrochloric acid (HCl) corrosion in crude unit overheads?, What is ammonium chloride corrosion?
Downstream: equipment where H2S meets waterCracking of steel by wet H2SWhat is wet hydrogen sulfide (H2S) damage?
Downstream: hydrotreater piping in hot hydrogen serviceHigh temperature hydrogen attack (HTHA) where carbon steel ends up in service specified for chrome alloy steelWhat is high temperature hydrogen attack (HTHA)?

Sources: PHMSA fact sheets on corrosion, internal corrosion and external corrosion (2018) 4,5,6; OSHA Technical Manual, Section IV, Chapter 2 7; CSB final report on the 2012 Richmond refinery fire (2015) 8; CSB Safety Bulletin 2005-04-B (2006) 9.

Common questions

Is a gas processing plant upstream or midstream?
It depends on the source. EPA's sector page puts natural gas processing under downstream, while EIA treats it as a step between gathering and transmission. The same plant can therefore sit in different segments in different datasets.
Are all pipelines midstream?
No. Flowlines and gathering lines sit in or near the producing field, transmission pipelines are the main midstream asset, and EIA describes gas distribution mains and service lines as the final delivery step to customers. PHMSA reports incident causes for distribution pipelines separately from transmission and gathering lines.
Does OSHA process safety management apply to oil and gas wells?
No. 29 CFR 1910.119 excludes oil or gas well drilling and servicing operations and normally unoccupied remote facilities. It does apply to covered processes in plants such as refineries.

Beacon explains these concepts in its own words for education. It does not reproduce or replace the standards cited, and Winda is not affiliated with or endorsed by the organizations that publish them. Engineering decisions need the current edition of the standard and a qualified engineer.

Sources

  1. 1.Oil and Gas Sector Information (Smart Sectors) · US Environmental Protection Agency (EPA)
  2. 2.PNG 301, Introduction to Petroleum and Natural Gas Engineering, 1.2: Oil and Gas Industries · The Pennsylvania State University, John A. Dutton e-Education Institute
  3. 3.Delivery and storage of natural gas (Natural gas explained) · US Energy Information Administration (EIA)
  4. 4.Fact Sheet: Corrosion · Pipeline and Hazardous Materials Safety Administration (PHMSA)
  5. 5.Fact Sheet: Internal Corrosion · Pipeline and Hazardous Materials Safety Administration (PHMSA)
  6. 6.Fact Sheet: External Corrosion · Pipeline and Hazardous Materials Safety Administration (PHMSA)
  7. 7.OSHA Technical Manual, Section IV, Chapter 2: Petroleum Refining Process · US Occupational Safety and Health Administration (OSHA)
  8. 8.Final Investigation Report: Chevron Richmond Refinery Pipe Rupture and Fire · US Chemical Safety and Hazard Investigation Board (CSB) ·
  9. 9.Safety Bulletin No. 2005-04-B, Positive Material Verification: Prevent Errors During Alloy Steel Systems Maintenance · US Chemical Safety and Hazard Investigation Board (CSB) ·
  10. 10.29 CFR 1910.119, Process safety management of highly hazardous chemicals · Electronic Code of Federal Regulations (eCFR)