For a standard 15A home automation relay board using 1oz external copper, you need a minimum trace width of 115 mils for a 10°C temperature rise, or 70 mils for a 30°C rise. If you are stepping up to a 20A appliance circuit, those widths jump to 180 mils and 110 mils, respectively. When designing custom PCBs that interface directly with residential branch circuits—like ESP32-based smart switches, subpanel energy monitors, or heavy-duty contactor drivers—guessing trace widths leads to melted FR-4 and failed UL certifications. The data below provides the exact dimensions required to safely carry mains-level currents on your custom boards.
The IPC-2221 PCB Trace Ampacity Reference Table
The following data is derived from the IPC-2221B Generic Standard on Printed Board Design, which remains the definitive authority for trace current-carrying capacity. Before using this table, you must understand how to read the columns and select the correct parameters for your specific installation.
How to read this table:
- Current (A): The continuous DC or RMS AC current the trace must carry. For home automation, this maps directly to your breaker size (e.g., 15A or 20A NEC branch circuits).
- Temp Rise (°C): The allowable temperature increase of the trace above ambient room temperature. A 10°C rise is conservative and recommended for enclosed smart switches; 30°C is the absolute maximum for standard FR-4 before the substrate begins to degrade over time.
- External vs. Internal: External layers (top/bottom) dissipate heat into the air and can carry roughly 50% more current than internal layers (buried between prepreg) for the exact same trace width. Always route high-current mains paths on external layers.
- Copper Weight (oz): Standard 1oz copper is 1.37 mils (35 µm) thick. 2oz copper is 2.74 mils (70 µm) thick and is mandatory for any board switching 120V/240V AC loads above 10A.
| Current (A) | Temp Rise (°C) | 1oz External (mil) | 2oz External (mil) | 1oz Internal (mil) | 2oz Internal (mil) |
|---|---|---|---|---|---|
| 5 | 10 | 25 | 15 | 50 | 30 |
| 5 | 20 | 15 | 10 | 30 | 20 |
| 10 | 10 | 60 | 40 | 120 | 80 |
| 10 | 20 | 40 | 25 | 80 | 50 |
| 15 | 10 | 115 | 75 | 230 | 150 |
| 15 | 20 | 70 | 45 | 140 | 90 |
| 20 | 10 | 180 | 120 | 360 | 240 |
| 20 | 20 | 110 | 75 | 220 | 150 |
Quick-Jump Rows for Home Automation Mains Switching
Most DIY and prosumer home electrical projects fall into two distinct NEC branch circuit categories. Bookmark these specific breakpoints for your next smart home PCB layout.
The 15A Lighting and Receptacle Breakpoint
If you are building a smart relay to replace a standard 15A wall switch or control a 15A duplex receptacle, your board must handle 15A continuous.
- Using 1oz Copper: You need a massive 115 mil (2.92 mm) trace for a safe 10°C rise. This is often too wide for compact 1-gang smart switch enclosures.
- Using 2oz Copper: The required width drops to 75 mil (1.90 mm) for a 10°C rise, or 45 mil (1.14 mm) if you are willing to accept a 20°C rise. Recommendation: Specify 2oz copper for the outer layers of any 15A mains board.
The 20A Appliance Breakpoint
For heavy-duty contactor drivers, smart subpanel monitors, or 20A kitchen/bathroom circuits, the thermal load increases non-linearly.
- Using 1oz Copper: A 180 mil (4.57 mm) trace is required for a 10°C rise. This is impractical for most relay modules.
- Using 2oz Copper: You need 120 mil (3.04 mm) for a 10°C rise. If board space is critically constrained, a 75 mil trace at a 20°C rise is the absolute minimum, but you must strip the solder mask and apply a thick layer of solder (tinning) to increase the effective cross-sectional area.
Derating and Environmental Modifiers
The IPC-2221 table assumes a standard FR-4 board operating in still air at a 25°C ambient temperature. In real-world home electrical installations, these assumptions rarely hold true. Here is how derating modifies your base values.
If your PCB is mounted inside a sealed plastic 1-gang wall box or a dense DIN-rail enclosure with no active airflow, the ambient temperature inside the enclosure can easily reach 45°C to 50°C when the load is active. You must derate the trace ampacity by 15% to 20%. If the table calls for a 75 mil trace at 25°C ambient, bump it to 90 mils to maintain the same thermal headroom inside an enclosed box.
Polyimide vs. Standard FR-4: If you are designing a flexible PCB (polyimide) for tight spaces behind a toggle switch, the thermal conductivity is significantly lower than rigid FR-4. Increase your calculated trace widths by at least 25% to prevent delamination.
Altitude Derating: For standard residential homes, altitude is irrelevant. However, if you are designing equipment for high-altitude off-grid solar cabins (above 6,000 feet), the thinner air reduces convective cooling. Add 10% to your trace width for every 3,000 feet above sea level.
For complex multi-layer boards where internal power planes interact with external traces, use the Saturn PCB Toolkit to model the exact thermal relief and via stitching required to pull heat from internal layers to the exterior.
Decision Path: Sizing Your Next Smart Switch PCB
Use this decision tree to lock in your copper weight and trace width without second-guessing the math. This framework terminates in a concrete manufacturing specification.
| Condition / Load Type | Required Action | Final Specification Pick |
|---|---|---|
| Logic, Sensors, ESP32/MCU power (Under 2A) | Route on any layer, standard thickness. | 1oz copper, 15 mil external trace. |
| 10A Solid State Relay (SSR) or small contactor | External layer only, allow moderate temp rise. | 1oz copper, 60 mil external trace (10°C rise). |
| 15A Mechanical Relay (Standard US 120V branch) | External layer, prioritize compact width for 1-gang boxes. | 2oz copper, 75 mil external trace (10°C rise). |
| 20A Heavy Appliance (240V dryer/HVAC contactor) | External layer, strip solder mask for tinning. | 2oz copper, 120 mil external trace + solder mask relief. |
Default Recommendation: If you are ordering a batch of smart home relay boards and want a single, foolproof specification that covers 95% of residential 15A lighting and outlet circuits without wasting money on excessive board space, order 2-layer or 4-layer FR-4 with 2oz outer copper, and route your mains traces at 80 mils wide. This gives you a comfortable margin below the 75-mil 10°C threshold, accounting for minor manufacturing etching tolerances.
What the Ampacity Table Cannot Tell You
A trace width calculator only solves the thermal problem. It completely ignores the dielectric and mechanical realities of switching 120V or 240V AC mains on a PCB. When designing for home electrical, you must manually verify the following parameters that the IPC-2221 ampacity table omits.
Creepage and Clearance (The Arc Flash Hazard)
Ampacity dictates how wide a trace must be to prevent melting; clearance and creepage dictate how far apart traces must be to prevent high-voltage arcing. According to IEC 62368-1 and UL standards for household electronics, a 120V AC mains trace must maintain a minimum clearance (shortest air distance) of 3 mm and a creepage (shortest surface distance along the FR-4) of 4 mm from any low-voltage DC trace (like your ESP32 GPIO lines). For 240V circuits, double those distances. If you route a 20A, 120-mil wide trace just 10 mils away from your 3.3V logic ground, the ampacity is perfect, but the board will arc and fail catastrophically upon first power-up.
Vias and Layer Transitions
The ampacity table assumes a continuous, unbroken trace on a single layer. If you must route a 15A mains path through a via to an internal layer or the back of the board, the via becomes the bottleneck. A standard 0.3mm (12 mil) plated through-hole via can only safely carry about 1A to 1.5A. To transition a 15A trace between layers, you must use an array of at least 10 to 12 vias in parallel, staggered along the width of the trace, to distribute the current and prevent localized hot spots.
Terminal Block and Connector Limits
Your 120-mil, 2oz copper trace might be rated for 20A, but if it terminates in a cheap 3.5mm pitch PCB-mount screw terminal, the connector itself will melt at 10A. Always cross-reference your trace ampacity with the specific UL-rated current limit of your chosen PCB terminal block (such as the Phoenix Contact MSTB series or CamdenBoss 5.0mm pitch blocks). For 15A and 20A home wiring, use minimum 5.08mm (0.200 inch) pitch terminal blocks with brass or copper-alloy contacts, and ensure the PCB pads are reinforced with heavy copper pour and multiple mounting vias to handle the mechanical torque of a 12 AWG solid copper wire being screwed down.
For further reading on RF and high-current layout constraints for IoT microcontrollers, refer to the Espressif ESP32 Hardware Design Guidelines, which details specific keep-out zones and ground plane requirements that interact directly with your high-current mains routing.






