00 · New to pipelines
Codes, regulations, and who is in charge
In short How consensus standards differ from rules with the force of law, who regulates pipelines in the United States, and who does in Canada.
Newcomers often use “code,” “standard,” “regulation” and “guidance” as if they meant the same thing. They do not, and the difference decides what you are required to do.
Codes and standards
A code or standard is a technical document written by a committee of experts and published by a standards body. Examples are ASME B31.4 and B31.8 for pipeline design and operation, API RP 1160 for liquid integrity management, ASME PCC-2 for repair, and CSA Z662 in Canada. They carry no legal force on their own. They become mandatory when a law, a regulator, or a contract adopts them. The documents are copyrighted and sold, which is why this site summarizes what they cover and does not reproduce them. See how codes and regulations differ.
Regulations
A regulation is a rule made under a statute, enforceable by a government agency. A regulation can say “follow this standard” and name the edition, which is called incorporation by reference. In the United States, 49 CFR 192.7 is the gas-side list. The edition named is the one that binds, even if a newer edition exists.
Guidance
Agencies also publish guidance: advisory bulletins, FAQs, interpretation letters, and research reports. Guidance explains how the agency reads the rules and can describe real failure modes, but it generally does not add new legal duties. See using PHMSA sources and official guidance.
United States
- PHMSA, the Pipeline and Hazardous Materials Safety Administration in the U.S. Department of Transportation, is the federal pipeline safety regulator. Its Office of Pipeline Safety runs a national program for natural gas and hazardous liquid pipelines, including regulation, inspection and enforcement. Its rules are in 49 CFR Parts 192 (gas) and 195 (hazardous liquids). See Part 192 repair and integrity and Part 195 repair and integrity.
- State agencies also play a part. Pipeline safety is shared between PHMSA and state programs, and the Landowner’s Guide to Pipelines explains how that split works in practice.
- NTSB investigates major pipeline accidents and issues recommendations. It does not write rules. See lessons from investigations.
- Enforcement actions are public. See the enforcement section.
Canada
There is no single national pipeline regulator in Canada. Authority depends on where the pipeline runs.
- The Canada Energy Regulator (CER) regulates pipelines that cross provincial or international borders. Its main safety rule for onshore pipelines is the Onshore Pipeline Regulations, supported by guidance notes and advisories. See CER onshore pipeline regulations and CER safety and information advisories.
- Provincial regulators handle lines inside a province. See Alberta, British Columbia, and Saskatchewan and other provinces.
- CSA Z662 is the technical standard that these regulators generally point to. See CSA Z662.
- The Transportation Safety Board of Canada (TSB) investigates pipeline occurrences and publishes reports, as described in TSB pipeline investigation reports.
The overview page Canadian pipeline regulators shows how the pieces fit together and compares them with the U.S. structure. A conference paper on competency and training for response to unauthorized activities, pointing at the Onshore Pipeline Regulations and CSA Z662, is at IPC2026-185953.
A practical rule of thumb
When someone says a repair “meets code,” ask three things: which document, which edition, and whether the regulator that has authority over this pipeline has adopted it. The answer is rarely a simple yes or no. See evaluating a repair product.
— The Pipeline Repairs team
Sources
- 49 CFR 192.7 — Incorporation by reference — eCFR
- PHMSA Office of Pipeline Safety — PHMSA
- Landowner's Guide to Pipelines (2011), who regulates pipeline safety — Pipeline Safety Trust, hosted by PHMSA
- CER Onshore Pipeline Regulations, guidance notes and related documents — Canada Energy Regulator
- Pipeline transportation safety investigations and reports — Transportation Safety Board of Canada
Related notes
- How codes and regulations differ — Codes and standards
- Official repair guidance — Regulations and official guidance
- Pipeline regulation in Canada: who regulates what — Regulations and official guidance
- CSA Z662: Canada's oil and gas pipeline systems standard — Codes and standards
- How to read PHMSA sources — Regulations and official guidance
- Choosing a repair — Repair methods
Also in New to pipelines
Spotted an error? Engineers keep this site honest.Report an error or suggest a correction