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.

Updated . Sources are listed at the end. Markdown version.

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 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

  1. 49 CFR 192.7 — Incorporation by reference — eCFR
  2. PHMSA Office of Pipeline Safety — PHMSA
  3. Landowner's Guide to Pipelines (2011), who regulates pipeline safety — Pipeline Safety Trust, hosted by PHMSA
  4. CER Onshore Pipeline Regulations, guidance notes and related documents — Canada Energy Regulator
  5. Pipeline transportation safety investigations and reports — Transportation Safety Board of Canada

Also in New to pipelines

Spotted an error? Engineers keep this site honest.Report an error or suggest a correction

Open the form on this page

Occasional updates