An electrical code is a term for a set of regulations for the design and installation of
electrical wiring
Electrical wiring is an electrical installation of Electrical cable, cabling and associated devices such as switches, distribution boards, sockets, and light fittings in a structure.
Wiring is subject to safety standards for design and in ...
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
An electrical injury (electric injury) or electrical shock (electric shock) is damage sustained to the skin or internal organs on direct contact with an electric current.
The injury depends on the density of the current, tissue resistance and ...
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.
Wire
file:Sample cross-section of high tension power (pylon) line.jpg, Overhead power cabling. The conductor consists of seven strands of steel (centre, high tensile strength), surrounded by four outer layers of aluminium (high conductivity). Sample d ...
s and
electrical cable
Electricity is the set of physical phenomena associated with the presence and motion of matter possessing an electric charge. Electricity is related to magnetism, both being part of the phenomenon of electromagnetism, as described by Maxwel ...
s are specified according to the circuit operating
voltage
Voltage, also known as (electrical) potential difference, electric pressure, or electric tension, is the difference in electric potential between two points. In a Electrostatics, static electric field, it corresponds to the Work (electrical), ...
and
electric current
An electric current is a flow of charged particles, such as electrons or ions, moving through an electrical conductor or space. It is defined as the net rate of flow of electric charge through a surface. The moving particles are called charge c ...
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
The International Electrotechnical Commission (IEC; ) is an international standards organization that prepares and publishes international standards for all electrical, electronics, electronic and related technologies. IEC standards cover a va ...
(IEC) is attempting to harmonise wiring standards amongst member countries, but large variations in design and installation requirements still exist.
Regional codes

Wiring installation codes and regulations are intended to protect people and property from
electrical shock
An electrical injury (electric injury) or electrical shock (electric shock) is damage sustained to the skin or internal organs on direct contact with an electric current.
The injury depends on the density of the current, tissue resistance and ...
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 as the
IEC
The International Electrotechnical Commission (IEC; ) is an international standards organization that prepares and publishes international standards for all electrical, electronic and related technologies. IEC standards cover a vast range of ...
.
Australia and New Zealand
In Australia and New Zealand, the
AS/NZS 3000
Electrical wiring is an electrical installation of Electrical cable, cabling and associated devices such as switches, distribution boards, sockets, and light fittings in a structure.
Wiring is subject to safety standards for design and in ...
standard, commonly known as the "wiring rules", specifies requirements for the selection and installation of electrical equipment, and the design and testing of such installations. The standard is mandatory in both New Zealand and Australia; therefore, all electrical work covered by the standard must comply.
Europe
In European countries, an attempt has been made to harmonise national wiring standards in an
IEC
The International Electrotechnical Commission (IEC; ) is an international standards organization that prepares and publishes international standards for all electrical, electronic and related technologies. IEC standards cover a vast range of ...
standard,
IEC 60364
IEC 60364 ''Low-voltage electrical installations'' is the International Electrotechnical Commission (IEC)'s international standard series on ''low-voltage electrical installations''. This standard is an attempt to harmonize national wiring stand ...
''Electrical Installations for Buildings''. Hence national standards follow an identical system of sections and chapters. However, this standard is not written in such language that it can readily be adopted as a national wiring code. Neither is it designed for field use by electrical tradespeople and inspectors for testing compliance with national wiring standards. By contrast, national codes, such as the NEC or CSA C22.1, generally exemplify the common objectives of IEC 60364, but provide specific rules in a form that allows for guidance of those installing and inspecting electrical systems.
Belgium
RGIE (fr) (''Réglement Général sur les Installations Électriques'') is used for installations in Belgium.
AREI (nl) (''Algemeen Reglement Elektrische Installaties'') is used for installations in Flanders, Belgium.
France
NF C 15-100 (fr) is used for
low voltage
In electrical engineering, low voltage is a relative term, the definition varying by context. Different definitions are used in electric power transmission and distribution, compared with electronics design. Electrical safety codes define "low vo ...
installations in France
Germany
The
VDE is the organisation responsible for the promulgation of electrical standards and safety specifications. DIN VDE 0100 is the German wiring regulations document harmonised with IEC 60364. In Germany, blue can also mean phase or switched phase.
Sweden
In Sweden, IEC 60364 is implemented through the national standard SS-436 40 000.
United Kingdom
In the United Kingdom, wiring installations are regulated by the
British Standard
British Standards (BS) are the standards produced by the BSI Group which is incorporated under a royal charter and which is formally designated as the national standards body (NSB) for the UK. The BSI Group produces British Standards under th ...
known as
BS 7671
British Standard BS 7671 "Requirements for Electrical Installations. IET Wiring Regulations", informally called in the UK electrical community "The Regs", is the national standard in the United Kingdom for electrical installation and the safet ...
''Requirements for Electrical Installations: IET Wiring Regulations'', which are harmonised with IEC 60364. The first edition was published in 1882. BS 7671 is an industry standard and as such is not itself statutory, however legislation in the form of
UK Building Regulations requires that domestic installations conform to a safe standard, and official guidance accompanying this statutory regulation points to following BS 7671 as one way to comply.
BS 7671 is also used as a national standard by
Mauritius
Mauritius, officially the Republic of Mauritius, is an island country in the Indian Ocean, about off the southeastern coast of East Africa, east of Madagascar. It includes the main island (also called Mauritius), as well as Rodrigues, Ag ...
,
St Lucia
Saint Lucia is an island country of the West Indies in the eastern Caribbean. Part of the Windward Islands of the Lesser Antilles, it is located north/northeast of the island of Saint Vincent (Saint Vincent and the Grenadines), Saint Vincent ...
,
Saint Vincent and the Grenadines
Saint Vincent and the Grenadines, sometimes known simply as Saint Vincent or SVG, is an island country in the eastern Caribbean. It is located in the southeast Windward Islands of the Lesser Antilles, which lie in the West Indies, at the south ...
,
Sierra Leone
Sierra Leone, officially the Republic of Sierra Leone, is a country on the southwest coast of West Africa. It is bordered to the southeast by Liberia and by Guinea to the north. Sierra Leone's land area is . It has a tropical climate and envi ...
,
Singapore
Singapore, officially the Republic of Singapore, is an island country and city-state in Southeast Asia. The country's territory comprises one main island, 63 satellite islands and islets, and one outlying islet. It is about one degree ...
,
Sri Lanka
Sri Lanka, officially the Democratic Socialist Republic of Sri Lanka, also known historically as Ceylon, is an island country in South Asia. It lies in the Indian Ocean, southwest of the Bay of Bengal, separated from the Indian subcontinent, ...
,
Trinidad and Tobago
Trinidad and Tobago, officially the Republic of Trinidad and Tobago, is the southernmost island country in the Caribbean, comprising the main islands of Trinidad and Tobago, along with several List of islands of Trinidad and Tobago, smaller i ...
,
Uganda
Uganda, officially the Republic of Uganda, is a landlocked country in East Africa. It is bordered to the east by Kenya, to the north by South Sudan, to the west by the Democratic Republic of the Congo, to the south-west by Rwanda, and to the ...
and
Cyprus
Cyprus (), officially the Republic of Cyprus, is an island country in the eastern Mediterranean Sea. Situated in West Asia, its cultural identity and geopolitical orientation are overwhelmingly Southeast European. Cyprus is the List of isl ...
.
North America
The first electrical codes in the United States originated in
New York
New York most commonly refers to:
* New York (state), a state in the northeastern United States
* New York City, the most populous city in the United States, located in the state of New York
New York may also refer to:
Places United Kingdom
* ...
in 1881 to regulate installations of electric lighting. Since 1897 the US
National Fire Protection Association
The National Fire Protection Association (NFPA) is a U.S.-based international nonprofit organization devoted to eliminating death, injury, property damage, and economic loss due to fire, electrical, and related hazards. , the NFPA claims to have 5 ...
, a private non-profit association formed by insurance companies, has published the ''
National Electrical Code
The National Electrical Code (NEC), or NFPA 70, is a regionally adoptable standard for the safe installation of electrical wiring and equipment in the United States. It is part of the National Fire Code series published by the National Fire Prote ...
'' (NEC). States, counties or cities often include the NEC in their local building codes by reference along with local differences. The NEC is modified every three years. It is a consensus code considering suggestions from interested parties. The proposals are studied by committees of
engineers
Engineers, as practitioners of engineering, are professionals who invent, design, build, maintain and test machines, complex systems, structures, gadgets and materials. They aim to fulfill functional objectives and requirements while consider ...
,
tradesmen
A tradesperson or tradesman/tradeswoman is a skilled worker that specialises in a particular trade. Tradespeople (tradesmen/women) usually gain their skills through work experience, on-the-job training, an apprenticeship program or formal educat ...
, manufacturer representatives, fire fighters, and other invitees.
Since 1927, the
Canadian Standards Association
The CSA Group (formerly the Canadian Standards Association; CSA) is a standards organization which develops standards in 57 areas. CSA publishes standards in print and electronic form, and provides training and advisory services. CSA is composed ...
(CSA) has produced the Canadian ''Safety Standard for Electrical Installations'', which is the basis for provincial electrical codes. The CSA also produces the
Canadian Electrical Code, the 2006 edition of which references
IEC 60364
IEC 60364 ''Low-voltage electrical installations'' is the International Electrotechnical Commission (IEC)'s international standard series on ''low-voltage electrical installations''. This standard is an attempt to harmonize national wiring stand ...
(''Electrical Installations for Buildings'') and states that the code addresses the fundamental principles of electrical protection in Section 131. The Canadian code reprints Chapter 13 of IEC 60364, but there are no numerical criteria listed in that chapter to assess the adequacy of any electrical installation.
Although the US and Canadian national standards deal with the same physical phenomena and broadly similar objectives, they differ occasionally in technical detail. As part of the
North American Free Trade Agreement
The North American Free Trade Agreement (, TLCAN; , ALÉNA), referred to colloquially in the Anglosphere as NAFTA, ( ) was an agreement signed by Canada, Mexico, and the United States that created a trilateral trade bloc in North America. The ...
(NAFTA) program, US and Canadian standards are slowly converging toward each other, in a process known as harmonisation.
Mexico and Costa Rica follow the US
National Electrical Code
The National Electrical Code (NEC), or NFPA 70, is a regionally adoptable standard for the safe installation of electrical wiring and equipment in the United States. It is part of the National Fire Code series published by the National Fire Prote ...
.
South America
Venezuela and Colombia follow the US
National Electrical Code
The National Electrical Code (NEC), or NFPA 70, is a regionally adoptable standard for the safe installation of electrical wiring and equipment in the United States. It is part of the National Fire Code series published by the National Fire Prote ...
.
India
India is regulated by the so-called
Central Electricity Authority Regulations (CEAR).
Colour coding of wiring by region

In a typical electrical code some colour-coding of wires is mandatory. Many local rules and exceptions exist per country, state, or region. Older installations vary in colour codes, and colours may fade with insulation exposure to heat, light, and aging.
Europe
From 1970 European countries started a process of harmonising their wiring colours, as several countries had chosen the same colour to denote different wires. The new harmonised colours were chosen mainly because no country had used them. Colours like pink, orange and turquoise were not available as they were deemed to be too close to other colours. Even so, there were unavoidable clashes. Blue was a phase conductor in the United Kingdom and Ireland, which delayed the adoption of the new colours for several decades. But flexible cable was changed pretty much instantly following pressure from manufacturers of appliances.
Pre-harmonised European colours
Post-harmonised European colours

As of March 2011, the European Committee for Electrotechnical Standardization (CENELEC) requires the use of green/yellow striped cables as protective conductors, blue as neutral conductors and brown as
single-phase
In electrical engineering, single-phase electric power (abbreviated 1φ) is the distribution of alternating current electric power using a system in which all the voltages of the supply vary in unison. Single-phase distribution is used when loads ...
conductors.
The use of striped green/yellow for earth conductors was adopted for its distinctive appearance to reduce the likelihood of dangerous confusion of safety earthing (grounding) wires with other electrical functions, especially by persons affected by red–green
colour blindness
Color blindness, color vision deficiency (CVD) or color deficiency is the decreased ability to see color or differences in color. The severity of color blindness ranges from mostly unnoticeable to full absence of color perception. Color bl ...
.
Sweden
In Sweden there is a notable exception for blue, where while the colour normally is used for neutral, it may be used as connecting wire between switches and between switch and fixture, as well as phase wire in a two-phase circuit, all under the condition that no neutral wire is used in the particular circuit.
United Kingdom
In the UK it is fairly common practice to use three-core cable with three-phase coloured insulation for part of the wiring of two-way lighting switches. To avoid confusion the accepted practice is to add coloured sleeves to the ends in brown or blue as appropriate to communicate how the wires are being used.
United States
The United States
National Electrical Code
The National Electrical Code (NEC), or NFPA 70, is a regionally adoptable standard for the safe installation of electrical wiring and equipment in the United States. It is part of the National Fire Code series published by the National Fire Prote ...
requires a bare copper, or green or green/yellow insulated protective conductor, a white or grey neutral, with any other colour used for single phase. The NEC also requires the high-leg conductor of a
high-leg delta
High-leg delta (also known as wild-leg, stinger leg, bastard leg, high-leg, orange-leg, red-leg, dog-leg delta) is a type of electrical service connection for three-phase electric power installations. It is used when both single and three-phase po ...
system to have orange insulation, or to be identified by other suitable means such as tagging. Prior to the adoption of orange as the suggested colour for the high-leg in the 1971 NEC, it was common practice in some areas to use red for this purpose.
The introduction of the NEC clearly states that it is not intended to be a design manual, and therefore creating a colour code for ungrounded or "hot" conductors falls outside the scope and purpose of the NEC. However, it is a common misconception that "hot" conductor colour-coding is required by the Code.
In the United States, colour-coding of three-phase system conductors follows a de facto standard, wherein black, red, and blue are used for three-phase 120/208-volt systems, and brown, orange or violet, and yellow are used in 277/480-volt systems. (Violet avoids conflict with the NEC's high-leg delta rule.) In buildings with multiple voltage systems, the grounded conductors (neutrals) of both systems are required to be separately identified and made distinguishable to avoid cross-system connections. Most often, 120/208-volt systems use white insulation, while 277/480-volt systems use grey insulation, although this particular colour code is not currently an explicit requirement of the NEC.
Some local jurisdictions do specify required colour coding in their local building codes, however.
Color codes
See also
*
Electrical wiring
Electrical wiring is an electrical installation of Electrical cable, cabling and associated devices such as switches, distribution boards, sockets, and light fittings in a structure.
Wiring is subject to safety standards for design and in ...
References
{{reflist
Electrical safety
Fire protection
Fire prevention