A compact power supply board can look perfectly clean: wide copper pours, neatly routed traces, and a generous-looking gap between the AC input and low-voltage output. Then humidity, dust, flux residue, or a switching transient turns that seemingly harmless gap into the weakest part of the design.
This is why insulation spacing deserves attention as early as component placement. A PCB is not merely a drawing of electrical connections; it is also a physical insulation system made from copper, laminate, solder mask, air, and the environment around it.
For low-voltage digital circuits, spacing is often driven by manufacturing capability and signal integrity. Once mains voltage, high DC bus voltage, medical isolation, or safety extra-low-voltage outputs enter the picture, the question changes: can this board maintain safe separation throughout its intended life?
Creepage and clearance are the two measurements used to answer that question. They are related, but they do not solve the same problem. Understanding the distinction prevents many of the layout mistakes that survive a first review.
⚡ Why PCB Spacing Is a Safety Function
Insulation prevents accessible or low-voltage circuitry from reaching hazardous potential. On a PCB, copper features may be separated only by a few millimetres, so the board itself forms part of the insulation barrier.
If spacing is inadequate, failure can occur through air, across the board surface, or through contamination that changes the surface from an insulator into a weak conductive path. The result may range from intermittent leakage to damaged equipment or electric-shock risk.
📏 Clearance: The Shortest Path Through Air
Clearance is the shortest distance through air between two conductive parts at different potentials. Imagine stretching a straight thread between the closest edges of two pads: that direct air gap is the relevant idea.
Clearance primarily addresses the possibility of an arc or flashover through air. Voltage transients matter because a brief surge can bridge an air gap even when the normal operating voltage appears modest.
🛤️ Creepage: The Path Along a Surface
Creepage distance is the shortest path along the surface of an insulating material between conductive parts. On a PCB, that usually means following the board surface from one copper feature to another.
It is useful to picture a raindrop travelling over the laminate rather than jumping through the air. A longer surface path makes it harder for moisture, dust, and ionic residue to create a conductive route.
🔎 One Gap, Two Measurements
Two adjacent pads on a flat, clean board may have similar creepage and clearance values. Their difference becomes obvious around slots, component bodies, board edges, barriers, or three-dimensional assemblies.
A routed slot can force a surface path to detour, increasing creepage. But it may not improve clearance if the nearest conductive points can still see each other directly across a short air path. Review both measurements independently.
🏠 The Environment Changes the Required Distance
A sealed, clean product used indoors does not expose its PCB to the same conditions as industrial equipment, outdoor electronics, or a board installed in a damp enclosure. Pollution, condensation, dust, and chemical vapours can all reduce the reliability of surface insulation.
Standards classify environments using concepts such as pollution degree. The appropriate classification depends on the intended equipment and enclosure, not simply on the engineer’s expectation that users will keep the product clean.
🧪 Pollution Degree and Surface Contamination
Pollution degree broadly describes how much contamination may be present and whether it can become conductive. A dry office environment and an industrial cabinet may require different assumptions, even if both contain the same power-conversion circuit.
Contamination is not always visible. Flux residues, handling salts, machining debris, and absorbed moisture can lower surface resistance. Good cleaning and coating practices help, but they should not be used casually to justify distances below the applicable requirement.
🧱 Material Group and CTI
The laminate itself influences creepage requirements. Insulating materials are grouped partly by their comparative tracking index, or CTI, which indicates resistance to surface tracking under a defined test method.
In practical terms, a material more resistant to tracking can sometimes permit shorter creepage distances under an applicable standard. Never assume every “FR-4” board has the same material classification; obtain the relevant laminate data from the fabricator or material documentation.
🌩️ Working Voltage Is Not the Whole Story
Normal operating voltage affects insulation stress, but it is not the only input. Mains-derived circuits may experience line variations, switching events, or externally coupled surges that are much higher than the nominal RMS value.
Design rules commonly distinguish continuous working voltage from transient or impulse withstand requirements. A layout that looks adequate for steady 230 V AC may still need larger clearance because the equipment category anticipates surge exposure.
🧭 Overvoltage Category Sets the Surge Context
Overvoltage category describes the expected severity of transient overvoltages at a location in an electrical installation. Equipment connected close to a building supply may face a different surge environment from circuitry downstream of protective or isolating components.
This is a system-level decision. A PCB designer needs a clear statement from the product safety plan: supply type, installation class, required impulse withstand, and the point at which protective devices are considered effective.
🛡️ Basic, Supplementary, Double, and Reinforced Insulation
Spacing requirements depend strongly on the insulation role. Basic insulation provides one level of protection against shock. Supplementary insulation is independent insulation added to basic insulation; together they form double insulation.
Reinforced insulation is a single insulation system intended to provide protection equivalent to double insulation. It often drives the most demanding distances on compact offline converters, especially between primary circuitry and accessible secondary outputs.
🔌 Functional Insulation Is Different
Not every gap is a shock-protection barrier. Functional insulation separates circuits so they operate correctly, such as two unrelated switching nodes or a high-side control domain and a logic domain.
Functional spacing still matters for reliability, EMC, and preventing ordinary faults. However, it should not be described as basic or reinforced insulation unless the full construction and required distances support that claim.
🔄 Identify Every Insulation Boundary First
Before routing, divide the schematic and mechanical design into voltage domains. Mark where hazardous voltage begins, which circuits are earthed, which outputs are accessible, and which domains must remain safely isolated.
- Primary mains and high-voltage DC bus
- Protective earth and chassis-connected metalwork
- Isolated secondary and SELV/ESLV circuits where applicable
- Non-isolated low-voltage control circuits
- Communications ports, connectors, and user-accessible metal
This exercise catches a common omission: a safe transformer does not automatically make every nearby connector, screw, shield, or test point safe.
🗺️ Create a Voltage-Domain Map on the Layout
Use keepout regions, coloured mechanical layers, or named rule regions to make the isolation barrier visible in the PCB tool. The boundary should extend beyond the transformer pins to include copper pours, vias, mounting holes, component pads, and test features.
A visual map helps reviewers see violations that net-based checks miss. It also keeps later changes—such as a debug header or larger heat sink—from quietly crossing into a protected spacing zone.
📚 Start With the Applicable Standard
There is no single universal creepage-and-clearance table that can be copied into every project. Requirements depend on the equipment family, insulation class, working voltage, pollution degree, material group, altitude, overvoltage category, and insulation type.
Examples of commonly encountered standards families include IEC 60664 for insulation coordination and product-specific safety standards for IT, audio/video, laboratory, household, industrial, medical, and measurement equipment. Use the edition and product standard applicable to the actual product, then involve a qualified safety reviewer when compliance is required.
🧮 Build Rules From Inputs, Not Habit
A remembered “3 mm rule” or “8 mm rule” may be suitable for a particular old design and completely unsuitable for another. It is safer to record the assumptions that produced each constraint.
| Rule input | Why it affects layout |
|---|---|
| Working and impulse voltage | Sets electrical stress during normal operation and transients. |
| Insulation type | Determines whether the boundary is functional, basic, or reinforced. |
| Pollution degree and material group | Influence surface tracking risk and creepage. |
| Altitude and environment | Can affect air insulation assumptions and derating. |
| Manufacturing tolerances | Ensure the minimum remains valid on the finished board. |
Store the derived minimums in a controlled design note and in the CAD rule set.
🏔️ Altitude Can Reduce Air Insulation Margin
Air becomes less dense at higher altitude, reducing its dielectric strength. This mainly affects clearance, because clearance relies on air rather than the board surface.
Do not assume a product intended for ordinary office use will never be installed at elevation. Product requirements may specify a maximum operating altitude; if they do, use the relevant standard’s correction approach rather than improvising a multiplier.
🕳️ Slots Increase Creepage—With Important Limits
A slot or milled channel can lengthen the surface route between copper areas without increasing board size. This makes slots valuable near isolation barriers in compact power supplies.
However, the geometry must be evaluated in the finished assembly. Copper on inner layers, conductive hardware, dirt accumulation, sharp slot corners, and a component body spanning the opening can all reduce the intended benefit. A slot is a layout feature, not a substitute for checking clearance.
🧩 Components Can Bridge a Good Layout
The PCB may meet every spacing rule while a component defeats the barrier. Examples include an optocoupler with insufficient pin spacing, a transformer lacking the necessary construction, a Y capacitor with an unsuitable safety rating, or a connector whose pin pattern is too tight.
Check component datasheets for insulation ratings, creepage and clearance dimensions, and intended use. Also inspect the physical body: leads, metal clips, exposed shields, and conductive adhesive can create paths that a two-dimensional copper check cannot see.
🔩 Vias, Mounting Holes, and Copper Pours
Vias are easy to overlook because they may be hidden by a polygon or placed automatically. A via near an isolation boundary introduces a conductive barrel through the board and can become the true closest point.
Mounting holes need the same scrutiny. A plated hole, metal screw, washer, or chassis standoff can carry a potential far beyond its visible pad. Define keepouts around all hardware, and consider every copper layer rather than only the top view.
🎭 Solder Mask Is Usually Not Your Safety Distance
Solder mask improves manufacturability and provides limited environmental protection, but it is generally not treated as reliable solid insulation for reducing required creepage or clearance unless the applicable standard and validated construction explicitly permit it.
The same caution applies to conformal coating. A qualified coating system can improve resistance to moisture and contamination, yet its process control, thickness, coverage, cure, and long-term durability all matter. Treat it as a designed insulation element only when it is documented and assessed that way.
🔥 High-Voltage Nodes Need More Than Minimum Spacing
Switching nodes in flyback converters, PFC stages, inverters, and gate-drive circuits can have fast voltage edges. Even where shock-protection spacing is adequate, tight proximity to low-voltage circuitry can inject noise through capacitance.
Give high-dv/dt copper controlled area and a deliberate return path. Keep it away from feedback traces, isolation barriers, connector shells, and sensitive analogue circuitry. Electrical safety, EMI performance, and serviceability often improve together when these zones are planned early.
🌡️ Heat, Moisture, and Aging Affect Real Boards
Spacing is verified on a physical product expected to operate over time, not only on a new board in a dry lab. Heat can accelerate material aging, and repeated humidity exposure can make surface contamination more consequential.
Place hot resistors, switching devices, and heat sinks so they do not create local thermal stress near critical insulation paths. Consider whether cooling airflow can carry dust toward the barrier or whether condensation can collect at a low point on the board.
🧰 Set Up CAD Rules That Reflect the Barrier
Generic net-class clearance rules are a starting point, not a complete solution. Create dedicated rules between voltage-domain classes, and define separate values where the applicable requirements differ for clearance and creepage.
Use rule regions and keepouts to control polygon pours, via placement, and routing. If the CAD system cannot calculate surface creepage around slots and obstacles reliably, document a manual review method with dimensioned checks.
🔍 Perform a Deliberate Minimum-Distance Review
Run the design-rule checker, then inspect the barrier manually at high zoom. Search for the true nearest conductive features in all layers and all assembly states: pads, copper fills, vias, solder fillets, component leads, test probes, screws, shields, and cut edges.
Measure from finished conductive edges, not from convenient centre lines. Include fabrication tolerances, routing registration, copper etch variation, and assembly placement tolerance in the design margin.
🏭 Manufacturing Details Can Consume Margin
A nominal 0.20 mm spacing does not mean every finished board has exactly 0.20 mm of insulation path. Etch compensation, drill wander, routed-outline tolerance, and solder spreading can move conductive boundaries.
Discuss critical dimensions with the PCB fabricator and assembler before release. A robust design gives the process room to vary; a design that depends on nominal geometry can become noncompliant or difficult to manufacture.
🧼 Cleaning and Assembly Quality Matter
Residues from soldering, rework, fingerprints, and poorly controlled wash processes can reduce insulation resistance. This risk rises around closely spaced high-voltage pads, where even a small residue bridge is more significant.
Specify cleaning where the product and process require it, and avoid designing narrow traps where flux or debris accumulates. If conformal coating is used, define masking boundaries and inspection points so the coating does not leave unintended thin spots.
🧪 Verification Is More Than a DRC Pass
A layout review establishes whether the intended geometry meets the chosen rules. Product verification may additionally involve dielectric withstand testing, insulation-resistance testing, leakage-current assessment, environmental evaluation, and manufacturing inspection, depending on the product standard.
These activities answer different questions. A hipot test may reveal a weakness, but passing one test does not excuse a layout that fails required geometry. Conversely, a compliant spacing calculation does not eliminate the need to validate the finished product.
🚫 Common Layout Mistakes
- Measuring only between obvious transformer pads while ignoring adjacent copper pours or vias.
- Counting solder mask as though it automatically extends the insulation distance.
- Adding a slot for creepage but leaving a short direct air path around it.
- Using one clearance number everywhere without identifying insulation type or surge context.
- Forgetting bottom-layer copper, mounting hardware, test points, and connector shields.
- Assuming a component’s voltage rating proves its package provides the needed isolation.
Most of these errors come from treating spacing as a single dimension rather than as a complete insulation system.
🧠 A Practical Design Workflow
- Define intended use, supply, installation environment, altitude, and accessible parts.
- Select the applicable product safety framework and identify insulation barriers.
- Determine the required creepage and clearance from documented inputs.
- Choose components and transformer construction that support the barrier.
- Place primary, secondary, earth, and accessible circuits in clearly separated zones.
- Apply CAD rules, slots, keepouts, and margins before detailed routing.
- Review all layers and the assembled product, then preserve evidence in the design file.
This sequence is faster than trying to rescue an already crowded board with narrow slots and last-minute copper deletions.
📌 Document Assumptions for the Next Reviewer
A spacing value without its basis is fragile knowledge. Record the standard edition, voltage assumptions, pollution degree, material group, altitude, insulation class, calculated requirement, layout rule, and any special construction feature.
Clear documentation helps design, compliance, manufacturing, and service teams reach the same conclusion. It also makes an engineering change easier to assess when a connector, enclosure, laminate, or target market changes.
🤝 Know When to Escalate a Question
Safety spacing is not an area for confident guessing. Escalate when the product has an unusual environment, mixed mains and accessible circuits, medical or laboratory use, high altitude, nonstandard coatings, unusual transformer construction, or uncertainty about the governing standard.
An experienced compliance engineer, test laboratory, or safety specialist can resolve assumptions before they become expensive board revisions. Their role is especially valuable when the layout is close to a minimum or when a requirement relies on a construction detail.
✅ The Core Rule: Design the Insulation System, Not Just the Gap
Clearance protects against breakdown through air; creepage protects against tracking across a surface. Both must be appropriate for the voltage, transient environment, insulation function, material, contamination conditions, and real mechanical construction.
The strongest layouts make the safe path obvious: domains are separated, critical copper is controlled on every layer, components support the intended barrier, and verification is documented. Generous, well-understood margins are usually easier to manufacture and defend than clever geometry at the limit.
A safer PCB results when creepage and clearance are treated as system requirements from the first placement decision onward. That discipline turns a spacing check from a late-stage obstacle into a dependable part of product engineering. ⚡📐🛡️

