PCB Routing Guide: Rules, Best Practices and Common Mistakes

How to route a PCB so it works the first time: trace width and clearance, stackup and return paths, vias, differential pairs and the checks to run before you send files to the manufacturer.

PCB routing guide infographic showing five steps: placement, stackup and rules, critical nets, power and ground, and design rule check

PCB routing is the stage of board design where you connect component pads with copper traces and vias so that every net in your schematic becomes a real, physical connection. It happens after component placement and before you generate the manufacturing files. Done well, routing gives you a board that powers up cleanly, passes EMC testing more easily, costs less to fabricate and is easy to debug. Done badly, it produces noise, resets, unreliable wireless links and expensive respins.

This guide explains PCB routing the way we approach it on real connected-product boards: what to decide before you draw the first trace, which rules matter most, a routing order that saves time, and a checklist to run before release. It applies whether you work in KiCad, EasyEDA, Altium or another tool.

Before you route: placement, stackup and design rules

Most of the quality of a routed board is decided before the first trace is drawn. Three things come first.

1. Placement

Place connectors, mounting holes and board outline first, then the parts that dictate the layout: the microcontroller or module, the antenna, crystals, regulators and any high-speed interface. Keep related parts together, put decoupling capacitors next to the pins they serve, and leave room to route. If a net looks impossible to route, the fix is usually to move a component, not to draw a cleverer trace.

2. Layer count and stackup

Simple, low-speed boards often work on two layers. Boards with a Wi-Fi/BLE module, USB, several power rails or tight space usually benefit from four layers: signals on the outside, a solid ground plane and a power plane inside. The extra layers cost more, but they make routing easier and give signals a clean return path. Ask your manufacturer for their standard stackup and dielectric thicknesses before you finalise it, especially if you need controlled impedance.

3. Design rules and net classes

Set your design rules from your manufacturer's capabilities, not from defaults. Define minimum trace width, minimum clearance, via drill and annular ring, and then create net classes: for example Power (wide traces), Signal (standard width) and High-speed (specific width and spacing). Net classes stop you from accidentally routing a 1 A rail with a signal-width trace.

Trace width and current capacity

Trace width depends on the current, the copper weight (commonly 1 oz per square foot), whether the trace is on an outer or inner layer, and how much temperature rise you accept. Do not guess: use an IPC-2221 or IPC-2152 based calculator, or the one built into your EDA tool, and leave a safety margin.

Clearance, spacing and crosstalk

Clearance is the gap between copper features. Your manufacturer sets the minimum they can produce, and cheaper fabrication options usually have looser limits, so check before you commit to tight spacing. Give yourself more room than the minimum wherever space allows, because it improves yield and reduces the chance of shorts.

Spacing also controls crosstalk, the unwanted coupling between neighbouring traces. A common rule of thumb is the 3W rule: keep high-speed or sensitive traces at least three trace widths apart, measured centre to centre, and avoid long parallel runs next to noisy signals such as switching regulators or clock lines. For mains or other high-voltage circuits, spacing is governed by safety standards for creepage and clearance, not by routing preference, so follow the relevant standard for your product.

A routing order that saves time

Routing in the wrong order is the most common reason designers run out of space. A reliable sequence is:

  1. Critical connections first: antenna feed lines, crystals and oscillators, and any RF path. Keep them short and direct.
  2. High-speed and differential pairs: USB, Ethernet and similar interfaces, routed as controlled pairs.
  3. Power distribution: main rails, regulator loops and decoupling connections.
  4. The remaining signals: GPIO, I2C, SPI, UART and general-purpose nets.
  5. Ground: complete the ground plane or pour, add stitching vias and clean up isolated copper.

Use your tool's interactive router in push-and-shove mode so existing traces move out of the way instead of blocking you.

Grounding and return paths

Every signal needs a path for its current to return to the source. At low frequencies that current takes the shortest route, but at higher frequencies it tends to follow the path directly underneath the signal trace. If that path is interrupted by a slot or a split in the plane, the return current detours, the loop area grows, and you get more radiated noise and more susceptibility to interference.

Four-layer PCB stackup diagram with signal layers, a solid ground plane, a power plane and the return current path under the signal

Vias: use fewer and place them deliberately

Each via adds inductance and capacitance and interrupts the return path, so use as few as practical on sensitive nets. Use ground stitching vias to tie ground areas together and to give returns a short route. Thermal vias under power pads help move heat into inner planes. Vias placed inside pads ("via-in-pad") need to be filled and capped, which many manufacturers charge extra for, so avoid them unless a fine-pitch package forces it.

Differential pairs and impedance control

Interfaces such as USB use differential signalling. The two traces of a pair should run together, stay the same length and keep consistent spacing along their whole route. Route them as a coupled pair in your tool, avoid splitting them around obstacles, and keep other signals away. For USB 2.0 the specification calls for 90 ohm differential impedance, and for high-speed interfaces you may need controlled impedance for both single-ended and differential traces.

Impedance depends on trace width, spacing, copper thickness and the dielectric between the trace and its reference plane, so use the stackup your manufacturer provides and calculate widths from it. Ask the manufacturer to confirm controlled-impedance support and tolerance before you rely on it. Match pair lengths within the tolerance given by the interface specification.

Corners, stubs and layer changes

Decoupling capacitors and power routing

Decoupling capacitors only work if the loop between the capacitor, the IC power pin and ground is small. Place the smallest-value capacitor as close to the power pin as possible, route power to the pin through the capacitor pad where practical, and connect the capacitor's ground side to the plane with a short, wide via. Long thin traces to a capacitor defeat its purpose.

Routing wireless and ESP32 boards

Boards with a Wi-Fi or Bluetooth module need extra care. Follow the module datasheet's antenna keep-out exactly: no copper, traces, ground pour or components in the marked area, and place the antenna at the board edge. Keep noisy switching circuits and fast digital lines away from the antenna and the RF section, and give the module a solid ground reference. If you are designing around an ESP32, our guide to ESP32 IoT product development covers power, antenna placement and the path from prototype to production.

Autorouter or manual routing?

Autorouters can be useful for quick prototypes and for non-critical nets, but they do not understand signal integrity, return paths or your product's constraints. A sensible approach is to route critical nets, power and differential pairs by hand, let the tool help with the rest if you want, and then review the result carefully. Treat an autorouted board as a draft, not a finished layout.

Pre-release routing checklist

Run through this before you generate Gerber files:

Common routing mistakes to avoid

Our article on 10 common PCB design mistakes goes deeper on these, and the complete PCB design process shows where routing fits between schematic capture and manufacturing. If you are planning a budget, see how much custom PCB design costs.

Frequently asked questions

What is PCB routing?

PCB routing is the process of connecting component pads with copper traces and vias on a printed circuit board so that every connection in the schematic exists physically. It follows component placement and comes before generating manufacturing files.

Should I use an autorouter or route manually?

Route critical nets such as power, antenna feeds, clocks and differential pairs by hand. An autorouter can help with non-critical nets on a prototype, but it does not understand signal integrity or return paths, so always review its output carefully.

How wide should a PCB trace be?

It depends on the current, the copper weight, whether the trace is on an outer or inner layer and the temperature rise you accept. Use an IPC-2221 or IPC-2152 based calculator or your EDA tool's calculator, and leave a safety margin. Power traces should be much wider than signal traces.

Why are 45-degree corners preferred over 90-degree corners?

At low speeds the electrical difference is small, but 45-degree bends or curves are cleaner, avoid sharp internal corners and are easier to manufacture. They are widely treated as standard good practice.

Do I need a four-layer PCB?

Not always. Simple low-speed boards often work on two layers. A four-layer board with a solid ground plane and a power plane is usually worth it when you have a Wi-Fi or Bluetooth module, USB, several power rails or limited space, because it makes routing easier and improves signal return paths.

Get your PCB routed and reviewed by engineers

At Pak IT Corner, we handle schematic capture, multilayer PCB layout and routing, DFM review and Gerber/BOM preparation, alongside the mobile or web app that controls your hardware. See our PCB design and hardware engineering services, or explore IoT app development if your board needs a companion app.

Discuss Your PCB Project