Electrical code

An electrical code is a term for a set of regulations for the design and installation of electrical wiring in a building. The intention of such regulations is to provide standards to ensure electrical wiring systems are safe for people and property, protecting them from electrical shock and fire hazards. They are usually based on a model code (with or without local amendments) produced by a national or international standards organisation.

Such wiring is subject to rigorous safety standards for design and installation. Wires and electrical cables are specified according to the circuit operating voltage and electric current capability, with further restrictions on the environmental conditions, such as ambient temperature range, moisture levels, and exposure to sunlight and chemicals. Associated circuit protection, control and distribution devices within a building's wiring system are subject to voltage, current and functional specification. To ensure both wiring and associated devices are designed, selected and installed so that they are safe for use, they are subject to wiring safety codes or regulations, which vary by locality, country or region.

The International Electrotechnical Commission (IEC) is attempting to harmonise wiring standards amongst member countries, but large variations in design and installation requirements still exist.