CC Blog • Quick Bits • Resources

Laying Out PCBs

Written by Andrew Levido

PCB layout is one of those tasks that can be both extremely frustrating and extremely rewarding at the same time. A successful PCB is a unique combination of art and science, but it is all too easy make an error that means your masterpiece is just a useless lump of fibreglass.

 I want to share a few tips I have learned over many years that might help reduce the frustration factor. This is not intended to be a “how to” guide (there are a ton of great resources on-line for that) but rather a few thoughts that might help avoid some common errors.

It all starts with the component footprints. Your EDA software will most likely include a pre-made library of common footprints and you can download others from many sources on the net. Your EDA tool will likely also include a wizard that creates common footprints for you. All this is great, but the only footprint I fully trust is one I have personally verified (and preferably used successfully before). The number one source of PCB-related frustration is finding your footprint does not quite match the part.

This is why you should build your own library of verified footprints (either personal or for your company). You absolutely can start with a reputable library or wizard, but you should verify it against the part’s data sheet. But don’t just check the pad layout – also check that the overlay text, and any pin1 or polarity markers etc are consistent with the rest of your library. You should also check any other layers you use such as keep-outs, courtyards, assembly documentation etc.

While we are still in the footprint library, I strongly suggest that you always add a 3D model to every part. Use the best model you can find. This is really critical to help you lay out the board effectively and avoid mechanical errors down the track.

The next step is to set up your design in your EDA tool. This includes defining the layer stack-up, setting the design rules, preferred track and via dimensions and the like. You may need to refer to your PCB supplier’s capabilities to do this. Time spent getting this right up front will save you lots of time later. Most EDA tools check for rule violations in real-time, preventing you from making errors as you go. The last thing you want after days of routing a complex board is to run design rules for the first time only to find a heap of DRC violations!

Generally speaking, the layout itself should start with the PCB outline and the positioning of items like mounting holes and connectors that have to be in specific places. Once these are placed, I suggest you lock them so they can’t be inadvertently moved during layout.

Many sources suggest you place all the components before you start routing. Unless my design is very simple, I don’t do it this way. I tend to place and lay out one subcircuit at a time. Sometimes I will do this them off to one side of the board then move the whole thing (parts, traces, vias etc) into its final place once I am happy that the layout is optimal. This is especially helpful with analogue designs and switching regulators where layout can be super-critical.

Figure 1
This figure shows a typical PCB layout showing how components are laid out according to a grid (fine yellow lines). Note that longer traces on the top (red) layer are primarily horizontal while those on the bottom (blue) layer are primarily vertical. The thicker red traces are power and the copper plane on the bottom is ground.

To make this approach work (and the board look half-way presentable) you do have to lay out parts on a grid of some kind and keep components aligned consistently. Figure 1 shows part of a typical board with its layout grid (fine yellow lines) switched on. EDA tools usually support a variety of grids or guides for component alignment. Note that the grid does not have to be rectangular – your tool should also support polar grids for placing parts in arcs or circles where appropriate. Figure 2 shows a board which has been laid out with both polar and rectangular grids.

Figure 2
This figure shows a design where components are placed on both polar and rectangular grids. A polar grid makes it very easy to arrange components radially. The 3D view is extremely useful during both layout and verification.

Routing the PCB is the fun part. For me it’s like solving a complex 3-dimensional puzzle (especially on boards with more than two signal layers). You should try to follow a few guidelines here too. For boards with multiple signal layers its easier if you can allocate layer pairs so one layer has mostly horizontal traces, and one has mostly vertical traces. You can see this in Figure 1.

Even if your board does not have dedicated ground/power plane layers, you can often employ from a solid copper ground plane on the non-component side of the board. This is especially true for single sided SMT designs where the non-component side of the board usually has space for it.

Once your board is routed it is time for verification. Don’t rush this step – most of the errors I have made could have been caught at this point. You should definitely run the design rule checker, but you also need to do some visual checks. Look carefully at each signal layer on its own (with everything else turned off). Once you have fixed any glaring errors, you can go through and “polish” the traces, neatening things up, eliminating unnecessary vias or track segments (Figure 3) Check any ground or power planes for “islands” or areas which are only barely connected. Often a little judicious track shifting or via relocation can fix this sort of problem easily.

Figure 3
One of the final steps is to “polish” the traces. I find this easiest to do if most of the other layers are turned off. Polishing is the process of neatening up and optimising the traces – for example there is an unnecessary kink on the trace running downward from the via at the top left, under the QFN package.

Look at the 3D model from all angles as well. Do you see any mechanical issues? Check for good access to connectors or mounting hardware. This is also a good way to check the silk screen overlay as well. Figure 4 shows one of my designs in 3D. Now is the time to export the 3D model to your mechanical CAD program and check it will fit into the enclosure, if this is your workflow.

Figure 4
The 3D model is also useful to check the mechanical aspects of the board before committing to fabrication. In this example a flat flex cable passes through the slot in the board and connects to the 40-pin flat flex connector at bottom right. I would normally export the 3D model to my MCAD program to verify it fits with the enclosure as expected.

Once everything checks out, you can run the DRC one last time before exporting the manufacturing files (typically gerbers and an NC drill file). You should always check the gerbers using an appropriate viewer just as one last sanity check. Be aware that ground/power plane layer gerbers are often inverted – just make sure whatever you send is what your PCB house expects. Finally, you are ready to upload your files and hit “go” on manufacturing.

Keep up-to-date with our FREE Weekly Newsletter!

Don't miss out on upcoming issues of Circuit Cellar.


Note: We’ve made the Dec 2022 issue of Circuit Cellar available as a free sample issue. In it, you’ll find a rich variety of the kinds of articles and information that exemplify a typical issue of the current magazine.

Would you like to write for Circuit Cellar? We are always accepting articles/posts from the technical community. Get in touch with us and let's discuss your ideas.

Sponsor this Article
+ posts

Andrew Levido (andrew.levido@gmail.com) earned a bachelor’s degree in Electrical Engineering in Sydney, Australia, in 1986. He worked for several years in R&D for power electronics and telecommunication companies before moving into management roles. Andrew has maintained a hands-on interest in electronics, particularly embedded systems, power electronics, and control theory in his free time. Over the years he has written a number of articles for various electronics publications and occasionally provides consulting services as time allows.

Supporting Companies

Upcoming Events


Copyright © KCK Media Corp.
All Rights Reserved

Copyright © 2026 KCK Media Corp.

Laying Out PCBs

by Andrew Levido time to read: 5 min