HSE-322 · Lesson 2 of 12 · 27 min

Law, codes and standards for battery systems

Battery systems sit where several bodies of rules overlap. Occupational health and safety law protects the people who work on and near them. Electrical codes govern how they are installed and connected. Fire codes and building codes limit how much stored energy can be placed in a space and what protection it needs. Product standards test the batteries and their enclosures. Hazard communication rules cover the chemicals inside. Transport rules apply when batteries are moved. Consensus standards fill in the details of safe work and maintenance. This lesson maps those rules so that you know where each requirement comes from and who enforces it.

HSE-321 Lesson 2 mapped the electrical safety framework for critical facilities, including the electrical code and the workplace electrical safety standard. This lesson does not repeat that map; it adds the parts specific to batteries and energy storage. As always, the rules in force at a given site depend on the edition adopted by the jurisdiction, so the editions named here are those current or newly published as of 2026, and you must check what your authority having jurisdiction has actually adopted.

Layers of rules

It helps to think of the rules in layers. At the base is legislation: the occupational health and safety statute and regulations, which bind employers and workers, and the fire and building legislation that adopts codes. Above that are the codes adopted by law, such as the electrical code and the fire code. Codes in turn reference product standards and installation standards, which become mandatory when a code calls them up. Finally, there are consensus standards and guidelines that are not law in themselves but define good practice and are often referenced in contracts, insurer requirements and enforcement decisions.

A layered diagram. The bottom layer is legislation: occupational health and safety law and fire and building legislation. The next layer is adopted codes: electrical code, fire code and building code. Above that are referenced product and installation standards for energy storage, and at the top are consensus practice standards for battery maintenance, ventilation and electrical safety.
Layers of rules for battery systems. Each layer gives force or detail to the one above or below it.

Occupational health and safety law

In Canada, the provincial and territorial occupational health and safety acts and regulations apply to most data centres, and the Canada Labour Code Part II with the Canada Occupational Health and Safety Regulations applies to federally regulated employers such as some telecommunications carriers. All of these impose a general duty on the employer to take every precaution reasonable in the circumstances to protect workers, together with specific requirements for electrical work, hazardous products, eyewash and emergency showers, ventilation, personal protective equipment, training and supervision. Several provinces have specific electrical rules that mention batteries or charging areas; their exact wording varies, so consult the regulation for your province rather than relying on a summary. The Criminal Code, as amended after the Westray mine disaster, makes it a legal duty for anyone who directs work to take reasonable steps to prevent bodily harm.

Electrical codes

The Canadian Electrical Code, Part I (CSA C22.1), adopted with amendments by each province and territory, governs the installation of battery systems. It contains rules for storage batteries and battery rooms, including requirements for ventilation, working space, insulation and guarding of live parts, and, in recent editions, a dedicated set of rules for energy storage systems in its section on renewable energy and energy storage. The 2024 edition (C22.1:24) is the current national edition as of 2026; provincial adoption dates and amendments vary. Listed equipment must be certified to the applicable Canadian product standards, which for energy storage include the bi-national UL 9540 and UL 1973 standards published as ANSI/CAN/UL documents.

Fire and building codes

Fire and building codes decide how much stored energy may be placed in a space, how far apart groups of batteries must be, what fire protection, detection and explosion control is needed and what information must be given to the fire service. In Canada, the National Building Code and National Fire Code are model codes adopted, sometimes with significant changes, by the provinces and territories; Ontario, Quebec, British Columbia and Alberta publish their own versions. Requirements for large lithium-ion installations have been evolving, and many authorities having jurisdiction in Canada rely on NFPA 855 and on the bi-national UL standards when reviewing an energy storage installation. A new edition of the national model codes is in progress; check what your province has adopted before relying on any specific provision.

NFPA 855

NFPA 855, Standard for the Installation of Stationary Energy Storage Systems, is the central installation standard for energy storage systems in North America. It applies above threshold quantities that depend on the chemistry and sets requirements for hazard mitigation analysis, large-scale fire testing, separation, location, ventilation, explosion control, fire detection and suppression, signage, commissioning, operation and maintenance, decommissioning and emergency planning. It is referenced by fire codes and adopted directly by many authorities.

The 2026 edition made several changes that matter for data centres. As reported in industry analyses in 2026, it makes a hazard mitigation analysis the default for most installations rather than only those that exceed prescriptive limits, with exceptions for some long-established chemistries such as lead-acid. It explicitly requires large-scale fire testing alongside UL 9540A testing, conducted or witnessed by an approved laboratory, to show that a fire in one unit will not spread to an adjacent unit, and it requires further unit-level testing when cell or module tests release flammable gas. It also adds a section setting minimum requirements for emergency response plans and training, with annual review and refresher training arranged with the authority having jurisdiction. Lesson 11 returns to those requirements.

Product standards: UL 1973, UL 9540 and UL 9540A

Three product standards appear on almost every battery submittal. UL 1973 covers batteries for stationary and motive applications, testing cells and modules for electrical, mechanical and environmental safety. UL 9540 covers complete energy storage systems and equipment, including the battery, the power conversion equipment, the controls and the enclosure. Both are published as harmonized ANSI/CAN/UL standards for Canada and the United States.

UL 9540A is not a certification standard but a test method for evaluating thermal runaway fire propagation. It tests at four levels: cell, module, unit and installation. At the cell level it measures how a cell enters thermal runaway and the volume and composition of the gas it releases. At the module and unit levels it measures whether runaway spreads from one cell or module to others and whether flames or gas escape. The results are used by designers and authorities to decide spacing, ventilation, explosion control and suppression. The sixth edition, released in early 2026, formally adds large-scale fire testing of complete systems, with pass and fail criteria that rule out units where fire propagation to adjacent units is observed, and it requires certified products to be built exactly as tested.

Standards that appear most often for data centre battery systems. Check the editions adopted locally and referenced in contracts.
StandardWhat it coversWhy it matters on site
UL 1973Safety of battery cells and modulesConfirms the battery has passed electrical, mechanical and environmental tests
UL 9540Complete energy storage systems and equipmentListing that codes require for ESS installations
UL 9540ATest method for thermal runaway propagation (cell, module, unit, installation)Gas volume and composition, propagation results; basis for spacing and explosion control
NFPA 855Installation of stationary ESSThresholds, HMA, separation, explosion control, emergency plans
NFPA 68 and NFPA 69Deflagration venting; explosion prevention systemsMethods for protecting rooms and enclosures from off-gas explosions
IEEE 1635 / ASHRAE Guideline 21Ventilation and thermal management of stationary batteriesCalculating hydrogen generation and ventilation needs
IEEE 450, IEEE 1188, IEEE 1657Maintenance and testing of vented and VRLA batteries; battery personnel qualificationMaintenance intervals, tests and competence of battery technicians

Electrical safety standards for battery work

CSA Z462, Workplace electrical safety, includes requirements specific to batteries and battery rooms, mirroring the corresponding article of NFPA 70E. They cover the battery risk assessment, which considers the shock hazard from the string voltage, the arc flash hazard from DC faults and the chemical hazard from the electrolyte; personal protective equipment for working with electrolyte; tools and equipment for battery work; alerting signs; and eyewash. The 2024 edition (Z462:24) is current as of 2026. CSA Z462's annexes include methods for estimating DC arc flash incident energy, introduced in Lesson 3.

Hazard communication

Battery electrolytes and the products of battery failures are hazardous products. Under WHMIS 2015, the federal Hazardous Products Act and Hazardous Products Regulations, aligned with the Globally Harmonized System, require suppliers to provide labels and safety data sheets, and provincial and federal OHS law requires employers to provide workplace labels, access to SDSs and worker education. Amendments to the Hazardous Products Regulations aligning with later revisions of the GHS took effect in December 2022, with a transition period that ended in December 2025. HSE-102 covers WHMIS in full. Note that manufactured articles such as sealed batteries in normal use may be exempt from some labelling requirements, but the electrolyte, spare acid and spill residues are not.

Transport and waste rules

Moving batteries to or from a site brings in transport law. In Canada, the Transportation of Dangerous Goods Act and Regulations classify lithium-ion batteries as Class 9 dangerous goods and wet lead-acid batteries as Class 8 corrosives, with special provisions for packaging, marking and documentation. End-of-life batteries are managed under provincial waste and extended producer responsibility programs. Lesson 10 covers both.

Putting the map to work

The value of the map is in knowing where to look. When a contractor proposes to install a new lithium-ion battery room, the questions start with the fire code and NFPA 855: is the stored energy above the threshold, is a hazard mitigation analysis required, what do the UL 9540A results show, what explosion control and suppression are proposed? The electrical code then governs the installation, the workplace electrical safety standard governs the work, OHS law governs training, eyewash and PPE, and hazard communication governs the electrolyte and any spill residues.

The short program below shows how a site might keep a simple applicability register, recording which rule layers are triggered by each battery system. It is a teaching sketch; real registers are maintained in compliance management systems and reviewed with the authority having jurisdiction.

# Teaching sketch: which rule layers apply to each battery system at a site.
# Thresholds are illustrative; check the edition adopted by your jurisdiction.
THRESHOLD_KWH = {"lithium-ion": 20, "lead-acid": 70, "nickel-cadmium": 70}

systems = [
    ("Hall 1 VRLA room", "lead-acid", 384),
    ("Hall 2 Li-ion room", "lithium-ion", 410),
    ("Generator start batteries", "lead-acid", 6),
    ("NOC rack DC plant", "lithium-ion", 15),
]

for name, chem, kwh in systems:
    layers = ["OHS law", "electrical code", "workplace electrical safety", "hazard communication"]
    if kwh > THRESHOLD_KWH[chem]:
        layers += ["fire code ESS rules", "NFPA 855"]
        if chem == "lithium-ion":
            layers += ["UL 9540A data", "hazard mitigation analysis"]
    print(f"{name:26s} {kwh:4d} kWh -> {', '.join(layers)}")
Output
Hall 1 VRLA room            384 kWh -> OHS law, electrical code, workplace electrical safety, hazard communication, fire code ESS rules, NFPA 855
Hall 2 Li-ion room          410 kWh -> OHS law, electrical code, workplace electrical safety, hazard communication, fire code ESS rules, NFPA 855, UL 9540A data, hazard mitigation analysis
Generator start batteries     6 kWh -> OHS law, electrical code, workplace electrical safety, hazard communication
NOC rack DC plant            15 kWh -> OHS law, electrical code, workplace electrical safety, hazard communication

The register makes clear that even small batteries carry electrical, OHS and hazard communication duties, while the fire code energy storage rules are triggered by size and chemistry.

Worked problem

Mapping the rules for a new lithium-ion battery room

Cedar Ridge plans to replace the VRLA batteries serving Hall 1 with a lithium-ion battery room storing about 400 kWh. The site is in Ontario. List the main rule layers the project must address and the question each answers.

Show solution
  1. Fire and building codes as adopted in the province, with NFPA 855 as commonly relied on: Is the room permitted, how much energy may be in it, what separation, detection, suppression and explosion control are needed?
  2. Product standards: Is the system certified to UL 9540 with UL 1973 batteries, and what do the UL 9540A test results show about gas release and propagation?
  3. Canadian Electrical Code as adopted in Ontario: How must the batteries, disconnects and DC wiring be installed, and what working space is needed?
  4. Provincial OHS law, CSA Z462 and WHMIS: How will workers be protected during installation and maintenance, what PPE, eyewash and training are needed, and how is the electrolyte communicated?
  5. Transport and waste rules: How will the new batteries arrive and the old lead-acid batteries be removed and recycled?

Answer: Several layers apply at once. The fire code and NFPA 855 decide whether and how the room may be built, product standards prove the equipment, the electrical code governs installation, OHS law and the electrical safety standard govern the work, and transport and waste rules govern the batteries arriving and leaving.

Common mistakes

  • MistakeAssuming the latest edition of a code or standard applies on site.

    InsteadCheck the edition adopted by the authority having jurisdiction and referenced in contracts.

  • MistakeTreating a UL 9540A test report as a certification that the system is safe.

    InsteadUse UL 9540A results as data for spacing, ventilation, explosion control and suppression decisions; UL 9540 is the listing standard.

  • MistakeApplying fire code energy storage rules only to lithium-ion batteries.

    InsteadCheck thresholds for every chemistry; large lead-acid rooms can also trigger requirements.

  • MistakeForgetting hazard communication because batteries are sealed articles.

    InsteadProvide SDSs and training for electrolytes, spare acid and spill residues.

  • MistakeRelying on a summary of provincial or state rules without reading the regulation.

    InsteadConsult the current text of the regulation for your jurisdiction.

Summary and key terms

  • Battery systems are governed by layers of rules: OHS law, adopted codes, referenced standards and consensus practice.
  • Electrical codes govern installation; fire and building codes govern stored energy, separation and protection.
  • NFPA 855 is the central installation standard for stationary energy storage; its 2026 edition makes hazard mitigation analysis the default for most systems, requires large-scale fire testing and adds emergency response plan requirements.
  • UL 1973 and UL 9540 are certification standards; UL 9540A is a test method for thermal runaway propagation, whose sixth edition (2026) adds large-scale fire testing with pass and fail criteria.
  • The workplace electrical safety standard has specific requirements for battery risk assessment, PPE, tools and eyewash.
  • Hazard communication, transport and waste rules apply to electrolytes and to batteries in transit and at end of life.
Authority having jurisdiction (AHJ)
The organization or official responsible for enforcing a code or standard and approving installations.
NFPA 855
The standard for the installation of stationary energy storage systems.
UL 9540
The safety standard for energy storage systems and equipment.
UL 9540A
The test method for evaluating thermal runaway fire propagation in battery energy storage systems.
UL 1973
The safety standard for batteries used in stationary and motive applications.
Hazard mitigation analysis (HMA)
A structured analysis of failure modes and their consequences used to show that an energy storage installation is adequately protected.
Large-scale fire testing (LSFT)
A test of a complete energy storage unit to show whether fire spreads to adjacent units.
Threshold quantity
The stored energy above which fire code energy storage requirements apply.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Name the four layers of rules for battery systems.

    Show answer

    Legislation, adopted codes, referenced product and installation standards, and consensus practice standards.

  2. What is the difference between UL 9540 and UL 9540A?

    Show answer

    UL 9540 is a safety standard for listing energy storage systems; UL 9540A is a test method for thermal runaway propagation.

  3. Name three changes in the 2026 edition of NFPA 855.

    Show answer

    Hazard mitigation analysis as the default for most systems, explicit large-scale fire testing, and new emergency response plan and training requirements.

  4. At what four levels does UL 9540A test?

    Show answer

    Cell, module, unit and installation.

  5. Why must you check which edition of a code applies on site?

    Show answer

    Because jurisdictions adopt editions at different times, often with amendments, and the adopted edition is the one enforced.

  6. What does the workplace electrical safety standard require a battery risk assessment to consider?

    Show answer

    The shock hazard, the DC arc flash hazard and the chemical hazard from the electrolyte.

  7. Why do hazard communication rules still apply to sealed batteries?

    Show answer

    Because electrolytes, spare acid and spill residues are hazardous products or chemicals that workers may contact.

  8. What transport class applies to lithium-ion batteries?

    Show answer

    Class 9 dangerous goods or hazardous materials.

  9. What standard provides a method for calculating hydrogen generation and battery room ventilation?

    Show answer

    IEEE 1635 / ASHRAE Guideline 21.

  10. What does the sixth edition of UL 9540A require of certified products?

    Show answer

    That they are built exactly as tested; any change in components or design requires retesting.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz