What is the minimum PCB trace spacing for a given voltage?
It depends on where the conductors are. In IPC-2221B Table 6-1, 48 V needs 0.1 mm on an internal layer, 0.13 mm under solder mask and 0.6 mm on bare external copper at up to 3050 m.
IPC-2221 Table 6-1 sets the minimum spacing between conductors for a given voltage. This PCB trace spacing calculator finds it for internal layers, solder-masked or uncoated external copper, and component leads. Or start from the gap you have and see the highest voltage it clears, in mm or mil.
Minimum spacing
0.6 mm
IPC-2221 sets functional spacing for design. It does not replace the creepage and clearance tables in a safety standard (IEC 62368-1, IEC 60664-1) for mains or user-accessible circuits.
Every category at 48 V peak (IPC-2221B)
| Category | Spacing, mm | Spacing, mil |
|---|---|---|
| B1: internal conductors | 0.1 mm | 3.94 mil |
| B2: external, uncoated, up to 3050 m | 0.6 mm | 23.6 mil |
| B3: external, uncoated, over 3050 m | 0.6 mm | 23.6 mil |
| B4: external, permanent polymer coating (solder mask) | 0.13 mm | 5.12 mil |
| A5: external, conformal coating over assembly | 0.13 mm | 5.12 mil |
| A6: component lead or termination, uncoated, up to 3050 m | 0.4 mm | 15.7 mil |
| A7: component lead or termination, conformal coated | 0.13 mm | 5.12 mil |
Look up the DC or AC peak voltage in IPC-2221 Table 6-1. At 48 V the IPC-2221B minimum is 0.6 mm on uncoated external copper, 0.13 mm under solder mask and 0.1 mm on an internal layer. Above 500 V, add a fixed amount per volt to the 301–500 V value.
Table 6-1 is a lookup, not a formula. Up to 500 V you read the column for your conductors and the row for your peak voltage. A voltage that falls between two rows takes the higher row.
An AC waveform has to be converted to its peak first. For a sine wave:
48 V falls in the 31–50 V row. On uncoated external copper (B2) the spacing is 0.6 mm (23.6 mil). Under solder mask (B4) it drops to 0.13 mm, and on an internal layer (B1) to 0.1 mm. Rev C raises the solder-mask figure to 0.3 mm.
The peak is √2 × 230 = 325.3 V, in the 301–500 V row. IPC-2221B gives 2.5 mm uncoated at up to 3050 m, 0.8 mm under solder mask and 1.5 mm for uncoated component leads. These are functional spacings: an isolation barrier on a mains product is sized from its safety standard instead.
Above 500 V the per-volt rule applies. Internal layer: 0.25 + 500 × 0.0025 = 1.5 mm. Uncoated external at up to 3050 m: 2.5 + 500 × 0.005 = 5 mm. An inner layer with 1.5 mm of copper spacing clears exactly 1000 V.
Minimum spacing for DC or AC peak voltage. B columns are for the bare board, A columns for the assembly.
| Voltage | B1 | B2 | B3 | B4 | A5 | A6 | A7 |
|---|---|---|---|---|---|---|---|
| 0–15 V | 0.05 | 0.1 | 0.1 | 0.05 | 0.13 | 0.13 | 0.13 |
| 16–30 V | 0.05 | 0.1 | 0.1 | 0.05 | 0.13 | 0.25 | 0.13 |
| 31–50 V | 0.1 | 0.6 | 0.6 | 0.13 | 0.13 | 0.4 | 0.13 |
| 51–100 V | 0.1 | 0.6 | 1.5 | 0.13 | 0.13 | 0.5 | 0.13 |
| 101–150 V | 0.2 | 0.6 | 3.2 | 0.4 | 0.4 | 0.8 | 0.4 |
| 151–170 V | 0.2 | 1.25 | 3.2 | 0.4 | 0.4 | 0.8 | 0.4 |
| 171–250 V | 0.2 | 1.25 | 6.4 | 0.4 | 0.4 | 0.8 | 0.4 |
| 251–300 V | 0.2 | 1.25 | 12.5 | 0.4 | 0.4 | 0.8 | 0.8 |
| 301–500 V | 0.25 | 2.5 | 12.5 | 0.8 | 0.8 | 1.5 | 0.8 |
| Above 500 V, add per volt | 0.0025 | 0.005 | 0.025 | 0.00305 | 0.00305 | 0.00305 | 0.00305 |
B1 internal conductors. B2 external, uncoated, sea level to 3050 m. B3 external, uncoated, over 3050 m. B4 external with permanent polymer coating, any elevation. A5 external with conformal coating over the assembly. A6 component lead or termination, uncoated, sea level to 3050 m. A7 component lead or termination, conformal coated.
Every column in this table, B1 through A7, follows IPC-2221B. The values match the image of Table 6-1 that Altium publishes as IPC-2221B cell for cell, and Altair's PollEx documentation prints the same numbers as text without naming a revision. IPC-2221 is a paid document and we read these reproductions, not the standard itself.
The same table converted at 1 mil = 0.0254 mm.
| Voltage | B1 | B2 | B3 | B4 | A5 | A6 | A7 |
|---|---|---|---|---|---|---|---|
| 0–15 V | 1.97 | 3.94 | 3.94 | 1.97 | 5.12 | 5.12 | 5.12 |
| 16–30 V | 1.97 | 3.94 | 3.94 | 1.97 | 5.12 | 9.84 | 5.12 |
| 31–50 V | 3.94 | 23.6 | 23.6 | 5.12 | 5.12 | 15.7 | 5.12 |
| 51–100 V | 3.94 | 23.6 | 59.1 | 5.12 | 5.12 | 19.7 | 5.12 |
| 101–150 V | 7.87 | 23.6 | 126 | 15.7 | 15.7 | 31.5 | 15.7 |
| 151–170 V | 7.87 | 49.2 | 126 | 15.7 | 15.7 | 31.5 | 15.7 |
| 171–250 V | 7.87 | 49.2 | 252 | 15.7 | 15.7 | 31.5 | 15.7 |
| 251–300 V | 7.87 | 49.2 | 492 | 15.7 | 15.7 | 31.5 | 31.5 |
| 301–500 V | 9.84 | 98.4 | 492 | 31.5 | 31.5 | 59.1 | 31.5 |
Rev C adds a column, names solder mask directly, and calls out use in a vacuum. Every value in the solder-mask column (B4) is larger than in Rev B.
| Voltage | B1 | B2 | B3 | B4 | B5 | A6 | A7 | A8 |
|---|---|---|---|---|---|---|---|---|
| 0–15 V | 0.05 | 0.1 | 0.1 | 0.075 | 0.075 | 0.13 | 0.13 | 0.13 |
| 16–30 V | 0.05 | 0.1 | 0.1 | 0.075 | 0.075 | 0.13 | 0.25 | 0.25 |
| 31–50 V | 0.1 | 0.64 | 0.64 | 0.3 | 0.13 | 0.13 | 0.4 | 0.8 |
| 51–100 V | 0.1 | 0.64 | 1.5 | 0.3 | 0.13 | 0.13 | 0.5 | 1 |
| 101–150 V | 0.2 | 0.64 | 3.2 | 0.8 | 0.4 | 0.4 | 0.8 | 1.6 |
| 151–170 V | 0.2 | 1.25 | 3.2 | 0.8 | 0.4 | 0.4 | 0.8 | 1.6 |
| 171–250 V | 0.2 | 1.25 | 6.4 | 0.8 | 0.4 | 0.4 | 0.8 | 1.6 |
| 251–300 V | 0.2 | 1.25 | 12.5 | 0.8 | 0.4 | 0.4 | 0.8 | 1.6 |
| 301–500 V | 0.25 | 2.5 | 12.5 | 1.6 | 0.8 | 0.8 | 1.5 | 3 |
| Above 500 V, add per volt | 0.0025 | 0.005 | 0.025 | 0.00305 | 0.00305 | 0.00305 | 0.00305 | 0.0061 |
B3 here also covers a vacuum. B4 is external copper covered with solder mask. B5 is external copper with a coating, at any elevation or in a vacuum. A6 is a coated component lead, A7 an uncoated lead up to 3050 m, and A8 an uncoated lead over 3050 m or in a vacuum.
Every column in this table, B1 through B5 and A6 through A8, follows IPC-2221C (December 2023), as reproduced by Siemens with IPC's permission. The column letters moved between revisions, so do not carry a column name across. IPC notes that B5 was A5 in earlier revisions, but the values changed too: 0.13 mm in Rev B and 0.075 mm in Rev C at 0 to 30 V. Rev B's A6 (uncoated lead) is A7 in Rev C, and Rev B's A7 (coated lead) is A6 in Rev C.
The numbers are minimums for the voltage you enter, so use the highest voltage the nets can see, including switching spikes and surge. The steps are abrupt: going from 101–150 V to 151–170 V more than doubles the B2 value, from 0.6 mm to 1.25 mm, so leave margin if a rail sits near a boundary. For AC and pulsed voltages above 200 V, IPC-2221 also requires the dielectric constant and capacitive division of the material to be considered. Solder mask only helps where it actually covers the copper, and it does nothing for exposed pads, which is what the A columns are for. Humidity, dirt and flux residue all reduce the real surface strength. For mains and other circuits that protect people, IPC-2221 is not enough on its own: the product's safety standard (for example IEC 62368-1, with its insulation grades, pollution degree and material group) sets the creepage and clearance. Slots in the board lengthen the creepage path when you cannot widen the gap.
It depends on where the conductors are. In IPC-2221B Table 6-1, 48 V needs 0.1 mm on an internal layer, 0.13 mm under solder mask and 0.6 mm on bare external copper at up to 3050 m.
On uncoated external copper (B2), 12 V and 24 V need 0.1 mm (3.94 mil) and 48 V needs 0.6 mm (23.6 mil). Under solder mask (B4), 12 V and 24 V need 0.05 mm and 48 V needs 0.13 mm.
120 V RMS is 170 V peak and 230 V RMS is 325 V peak. IPC-2221B B2 gives 1.25 mm and 2.5 mm for those peaks, but a mains circuit also has to meet the creepage and clearance tables of its safety standard, which are often larger.
Yes, for the conductors it covers. Rev B calls category B4 a permanent polymer coating, and Rev C renames it as covered with solder mask. Rev C is stricter at every voltage in the table: 0.3 mm at 48 V against 0.13 mm in Rev B. Soldered lands stay uncoated and use the A6 column (A7 in Rev C).
Take the 301–500 V value and add the per-volt figure for each volt over 500. For B1 at 1000 V that is 0.25 mm + 500 × 0.0025 mm = 1.5 mm.
Clearance is the shortest path through air between two conductors. Creepage is the shortest path along the surface of the insulation. IPC-2221 gives one spacing figure; safety standards specify the two separately.
For IPC-2221, yes. Table 6-1 gives one minimum conductor spacing for each voltage and layer type, so an IPC-2221 clearance calculator and a trace spacing calculator read the same column.
Peak. Table 6-1 is in DC or AC peak voltage between the conductors, so if you have an AC RMS value, set “That voltage is” to AC RMS and the calculator converts it. A sine wave peaks at √2 times its RMS value, so 230 V RMS is 325 V peak. Use the highest voltage the nets can see, including switching spikes and surge.
Use the one your customer, contract or quality system names. If none is named, Rev C is the current one, though Rev B is still widely quoted, which is why the calculator offers both.
See all free electronics tools →
ProtoFlow is free AI PCB design software: describe a circuit and get a schematic with real parts, PCB layout with an autorouter, SPICE simulation and Gerber files. Native KiCad, Altium and EAGLE import and export. Free on macOS, Windows and Linux.
Free to start. No card required.