On a board with two layers or more, a trace sometimes needs to pass from top to bottom. The way to do it: a via, a small hole plated with copper inside that connects the layers together. A simple thing, but choosing it correctly makes a difference to cost, current and heat.
How is it made?
The manufacturer drills the board after pressing the layers together, then electroplates the wall of the hole with a thin copper layer (about 20–25 microns). That layer is what connects the copper on top to the copper underneath. That's why a via is not a thick wire: it's a copper tube with a wall thinner than a hair.
The types
| Type | Connects | Cost |
|---|---|---|
| Through-hole | All layers from top to bottom | Normal; this is the one you'll use |
| Blind | An outer layer to an inner layer | Much more expensive |
| Buried | Inner layers only | Much more expensive |
For hobby projects and ordinary products: through-hole only. Blind and buried vias are found in phones and very dense boards with small BGA chips.
Size
A via has a hole (drill) and a copper ring (annular ring) around it:
- A comfortable, cheap size at most manufacturers: a 0.3–0.4 mm hole and an outer diameter of 0.6–0.8 mm.
- Smaller is possible, but check the manufacturer's capability and price.
- Put these values in the design rules before the DRC. See ordering PCB manufacturing and a first KiCad project.
The annular ring
Ring = (outer diameter − hole) ÷ 2. So a 0.6 via with a 0.3 hole has a ring of 0.15 mm. The drill can wander slightly, so if the ring is too thin the hole can break out of its side and the connection is weakened. Stay at the limit the manufacturer states or above.
| Use | Hole | Outer diameter |
|---|---|---|
| Ordinary signals | 0.3 mm | 0.6 mm |
| Light power | 0.4 mm | 0.8 mm |
| Thermal vias | 0.3 mm | 0.6 mm |
| Test point for a probe | 0.5 mm or more | 1.0 mm |
High current: more than one via
A via's wall is very thin copper, so a small via can't handle a large current the way a wide trace can.
- For power and motor lines: use several vias side by side (2–4 or more depending on the current).
- The practical rule: more vias than needed is cheaper than a board that heats up.
- Work out the trace width itself with the trace width calculator and see trace width.
A rough figure to start with: a via with a 0.3 mm hole handles about 1 A with a reasonable temperature rise. So for a 3 A line put at least 4 vias, and for a 5 A motor line put 6–8. These figures are only approximate, and the more the better.
Arrange them properly: place the vias across the width of the trace (side by side, perpendicular to the current), not one behind another in a single line. Because current takes the shortest path, the first via in the queue carries most of the load.
Thermal vias
Under regulators and MOSFETs that have a thermal pad:
- A grid of vias under the pad carries heat to the copper of the bottom layer, which acts as a heatsink.
- A large copper area on the other layer helps more.
- Spacing: about 1–1.2 mm between each via and the next, in a regular grid. A small hole (0.3) is better here, so the solder isn't drawn away too much.
Stitching vias
Many vias connect the ground plane on the two layers together, especially at the edges and around fast signals. They reduce noise and make the ground effectively "one layer". KiCad has a tool that places them automatically in a grid, or place them by hand roughly every 5–10 mm.
Vias on fast signals
Each via adds a little capacitance and inductance to the line. For ordinary signals (I2C and UART) it makes no difference. But on fast signals (USB, fast SPI and the antenna):
- Minimise the number of vias on the line as far as you can.
- When the signal changes layer, put a ground via next to it so the return current changes layer with it. This reduces radiation and noise.
- A differential pair (such as USB D+ and D−) passes together with the same number of vias.
Via in pad: be careful
If you put a via inside the pad of an SMD part, the solder can wick into the hole during soldering, and the part ends up weakly soldered. Either move the via away from the pad with a short trace, or ask the manufacturer to fill and cap the vias (filled and capped), which costs more.
The exception: thermal vias under a large thermal pad are perfectly acceptable with a small hole, because little solder is drawn away and the pad is large.
Tenting
Covering the via with the solder mask (tented) protects it from oxidation and from bridges during soldering. It's a common choice, except for vias you need to measure on with a multimeter as test points.
Common mistakes
| Mistake | Result | Fix |
|---|---|---|
| A single via for a motor line | The via heats up and may fail | 4–8 vias side by side |
| A via very close to a pad | Solder forms a bridge | Leave a gap or tent it |
| A ring smaller than the manufacturer's capability | A weak connection or a rejected order | Check the manufacturer's rules in the DRC |
| No vias under a thermal pad | The chip heats up | A grid of thermal vias |
| Many vias on a fast line | Noise and radiation | Reduce them and add a ground via beside |
FAQ
Can I use a via instead of a wire jumper? Yes, that's exactly its job on a two-layer board: when two traces need to cross each other, one drops underneath and comes back up.
Do vias raise the board price? For ordinary types (through-hole at a comfortable size), no. The price rises if you shrink the hole below the manufacturer's limits, or order blind/buried or filled vias.