NewAI Part GeneratorFree to get started
FREE TOOL

PCB trace spacing calculator (IPC-2221)

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.

Solve for
Examples
V
That voltage is
IPC-2221 revision

Minimum spacing

0.6 mm

In mil
23.62 mil
In inches
0.0236 in
Peak voltage used
48 V
Table band
31–50 V next step above 50 V

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.

IPC-2221B minimum spacing, B2
0.010.11101101001000Peak voltage (V)Spacing (mm)48 V
B2B1 (internal)

Every category at 48 V peak (IPC-2221B)

CategorySpacing, mmSpacing, mil
B1: internal conductors0.1 mm3.94 mil
B2: external, uncoated, up to 3050 m0.6 mm23.6 mil
B3: external, uncoated, over 3050 m0.6 mm23.6 mil
B4: external, permanent polymer coating (solder mask)0.13 mm5.12 mil
A5: external, conformal coating over assembly0.13 mm5.12 mil
A6: component lead or termination, uncoated, up to 3050 m0.4 mm15.7 mil
A7: component lead or termination, conformal coated0.13 mm5.12 mil

How much spacing does a PCB trace need for a given voltage?

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.

How to calculate PCB trace spacing from IPC-2221

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.

S = table value (up to 500 V)     S = S₅₀₀ + (V − 500) × k (above 500 V)
S
minimum spacing in mm
S₅₀₀
table value for 301–500 V
V
DC or AC peak voltage between the conductors
k
per-volt increment for the category, in mm/V

An AC waveform has to be converted to its peak first. For a sine wave:

Vpeak = √2 × Vrms

Worked examples

Example 1: a 48 V bus

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.

Example 2: 230 V AC mains

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.

Example 3: 1000 V DC

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.

IPC-2221B clearance table (Table 6-1) in mm

Minimum spacing for DC or AC peak voltage. B columns are for the bare board, A columns for the assembly.

VoltageB1B2B3B4A5A6A7
0–15 V0.050.10.10.050.130.130.13
16–30 V0.050.10.10.050.130.250.13
31–50 V0.10.60.60.130.130.40.13
51–100 V0.10.61.50.130.130.50.13
101–150 V0.20.63.20.40.40.80.4
151–170 V0.21.253.20.40.40.80.4
171–250 V0.21.256.40.40.40.80.4
251–300 V0.21.2512.50.40.40.80.8
301–500 V0.252.512.50.80.81.50.8
Above 500 V, add per volt0.00250.0050.0250.003050.003050.003050.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.

IPC-2221B clearance table (Table 6-1) in mil

The same table converted at 1 mil = 0.0254 mm.

VoltageB1B2B3B4A5A6A7
0–15 V1.973.943.941.975.125.125.12
16–30 V1.973.943.941.975.129.845.12
31–50 V3.9423.623.65.125.1215.75.12
51–100 V3.9423.659.15.125.1219.75.12
101–150 V7.8723.612615.715.731.515.7
151–170 V7.8749.212615.715.731.515.7
171–250 V7.8749.225215.715.731.515.7
251–300 V7.8749.249215.715.731.531.5
301–500 V9.8498.449231.531.559.131.5

IPC-2221C clearance table (Table 6-1) in mm

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.

VoltageB1B2B3B4B5A6A7A8
0–15 V0.050.10.10.0750.0750.130.130.13
16–30 V0.050.10.10.0750.0750.130.250.25
31–50 V0.10.640.640.30.130.130.40.8
51–100 V0.10.641.50.30.130.130.51
101–150 V0.20.643.20.80.40.40.81.6
151–170 V0.21.253.20.80.40.40.81.6
171–250 V0.21.256.40.80.40.40.81.6
251–300 V0.21.2512.50.80.40.40.81.6
301–500 V0.252.512.51.60.80.81.53
Above 500 V, add per volt0.00250.0050.0250.003050.003050.003050.003050.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.

What the table does not cover

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.

Glossary

Conductor spacing
The distance between the edges of two copper features at different voltages.
Peak voltage
The highest instantaneous voltage between the conductors. A sine wave peaks at √2 times its RMS value.
Clearance
The shortest distance through air between two conductors.
Creepage
The shortest distance along an insulating surface between two conductors.
Permanent polymer coating
IPC-2221B wording for a coating that stays on the bare board, in practice solder mask.
Conformal coating
A thin protective film applied over the finished assembly, including components and solder joints.

Related guides

Frequently asked questions

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.

How much spacing do 12 V, 24 V and 48 V need?

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.

What spacing does mains voltage need on a PCB?

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.

Does solder mask count as a coating in IPC-2221?

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).

How do I calculate spacing above 500 V?

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.

What is the difference between clearance and creepage?

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.

Is trace clearance the same as trace spacing?

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.

Should I use peak or RMS voltage for IPC-2221 spacing?

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.

Which revision of IPC-2221 should I use?

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.

More free PCB tools

See all free electronics tools →

Sources

Design the whole board, not one number

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.

Get for Mac

Free to start. No card required.