Introduction
Pcbnew is the printed circuit board (PCB) editor built into KiCad. After creating your schematic in Eeschema, Pcbnew lets you design the physical board: place the components, route the connections, define the board outline and generate the manufacturing files.
This tutorial guides you through the basics of Pcbnew: from moving from the schematic to the PCB, to generating the Gerber files for manufacturing.
This tutorial assumes you have already created a schematic with Eeschema, with the components annotated and the footprints assigned. If not, see our Eeschema tutorial first.
Opening Pcbnew and importing the schematic
Step 1: Open Pcbnew from the project
From the KiCad project manager, double-click the .kicad_pcb file or click the PCB Editor icon. Pcbnew opens with a blank PCB or your existing PCB.
Step 2: Update the PCB from the schematic
To import or update the components from your schematic, go to Tools > Update PCB from Schematic or press F8. A window opens listing all the changes.
Step 3: Import the components
In the update window:
- Check the list of components to add
- Tick ‘Delete footprints with no symbols’ if necessary
- Click Update PCB
All your components appear stacked, ready to be placed. The connections (ratsnest) are visible.
The thin white lines linking the components are called the ‘ratsnest’. They represent the logical connections of your schematic and guide you when routing your tracks.
Discovering the Pcbnew interface
The areas of the interface
The Pcbnew interface is organised in several areas:
1. Top toolbar: Main tools (save, undo, zoom, layers)
2. Right vertical toolbar: Drawing and routing tools
3. Central drawing area: Your PCB
4. Appearance panel on the right: Visibility of layers and items
5. Message bar at the bottom: Coordinates and information
The layers of the PCB
A PCB is made of several stacked layers:
F.Cu (Front Copper): Front copper layer (red)
B.Cu (Back Copper): Back copper layer (green)
F.SilkS (Front Silkscreen): Front silkscreen (markings)
B.SilkS (Back Silkscreen): Back silkscreen
Edge.Cuts: Board cutting outline
For PCBs with 4 layers or more, there are inner layers (In1.Cu, In2.Cu and so on)
Essential keyboard shortcuts
Memorise these shortcuts to work more efficiently:
M: Move a component
R: Rotate a component
F: Flip a component (front/back side)
X: Start a track (route)
V: Place a via
D: Drag a track
U: Select the whole track
Delete: Delete an item
Page Up/Down: Change the active layer
Esc: Cancel the current action
Use the wheel to zoom, and hold the middle button to pan the view. Press F11 to switch to full screen and gain working space.
A footprint is the physical representation of a component on the PCB: the solder pads, the outline, the silkscreen. Every symbol of your schematic must have a footprint assigned in order to be placed on the PCB.
From Eeschema, go to Tools > Assign Footprints. A window opens with three columns:
- Left: Footprint libraries
- Centre: Available footprints
- Right: Your list of components
For each component of your schematic:
- Select it in the right-hand column
- Look for the matching footprint (e.g. for an 0805 SMD resistor, search for ‘R_0805’)
- Double-click the footprint or use the button to assign it
- The footprint appears next to the component
Common footprints:
- SMD resistors/capacitors: R_0805, C_0603
- Through-hole resistors: R_Axial_DIN0207
- SMD LED: LED_0805
- Through-hole LED: LED_D3.0mm or LED_D5.0mm
Step 3: Use the filters
Use the filters at the top of the window to find footprints quickly:
- By keywords: Type ‘0805’, ‘SOIC’, ‘QFN’ and so on
- By pin count: Filter by number of pins
- By library: Select a specific library on the left
View the footprint before assigning it with the preview panel.
Step 4: Confirm and save
Once all the footprints are assigned:
- Check that no component shows ‘****'
- Click OK or Apply, Save Schematic & Continue
- The footprints are now linked to your components
Go back to Pcbnew and update the PCB (F8) to see the new footprints.
KiCad includes thousands of standard footprints. For specific components, check the manufacturers’ websites or use SnapEDA/Ultra Librarian to download ready-made footprints. To import additional footprint libraries, see our tutorial KiCad: importing libraries.
Placing the components
Step 1: Separate the components
After the import, all the components are stacked in the same place. Click and drag to separate them roughly. Do not worry about their final position yet; just spread them out so that you can see clearly.
Step 2: Plan the layout
Before fine placement, think about the logical organisation:
- Group the components by function (power, microcontroller, connectors and so on)
- Identify the components that must be close together (e.g. decoupling capacitors near the µC)
- Think about the direction of signal flow (input → processing → output)
- Consider the mechanical constraints (mounting holes, connectors at the edge)
Step 3: Place the components one by one
Place each component following these principles:
- Select a component and press M to move it
- Press R to rotate it (90° rotation)
- Press F to flip it (from the front side to the back side)
- Watch the ratsnest: the lines should be short and cross as little as possible
- Align the components on the grid (right-click > Grid to change the spacing)
Place the critical components first (connectors, µC), then the passives around them.
Step 4: Optimise the placement
Good placement makes routing easier. Check:
- Minimal ratsnest: The connections cross as little as possible
- Enough spacing: Leave room to route between components
- Logical orientation: Align the components with the signal direction
- Accessibility: Test points and components to be soldered are accessible
Do not hesitate to rearrange several times until you are satisfied.
Decoupling (bypass) capacitors must be placed AS CLOSE AS POSSIBLE to the power pins of integrated circuits, with short, direct tracks. This is critical for proper operation.
Defining the board outline
Step 1: Select the Edge.Cuts layer
Before drawing the outline, select the Edge.Cuts layer in the layer selector at the top. This layer defines where the board will be cut during manufacturing.
Step 2: Draw a simple rectangle
For a simple rectangular PCB:
- Click the Rectangle icon in the right toolbar
- Click to set the first corner
- Stretch the rectangle to enclose all your components with some margin
- Click to finish
Leave at least 3-5mm of margin around the components.
Step 3: Draw a custom outline
For a more complex shape, use the Line tool:
- Select the line tool on the Edge.Cuts layer
- Draw the outline segment by segment
- For curves, use the Arc tool
- The outline must form a complete closed loop
You can add corner fillets with the appropriate tool.
Step 4: Add mounting holes
To add mounting holes:
- Go to Place > Footprint or press O
- Search for ‘MountingHole’ in the library
- Choose the appropriate diameter (e.g. MountingHole_3.2mm_M3)
- Place the holes at the four corners or wherever you need them
Respect the minimum distances from the edges (generally 3mm minimum).
Common PCB dimensions are: 100x100mm, 100x80mm, 50x50mm. Check your manufacturer’s prices: some dimensions are cheaper than others.
Setting the design rules
What are design rules?
Design rules define the manufacturing constraints:
- Minimum track width
- Minimum spacing between tracks
- Via diameter
- Clearance (safety distance)
These values depend on the capabilities of your PCB manufacturer.
Step 1: Open the setup
Go to File > Board Setup. Several tabs appear: Layers, Design Rules, Net Classes and so on.
Step 2: Set the constraints
In the Constraints tab, set the minimum values:
For a standard 2-layer PCB:
- Minimum clearance:
0.2mm
- Minimum track width:
0.2mm
- Maximum track width:
2mm (or more as needed)
- Minimum via diameter:
0.6mm
- Via drill diameter:
0.3mm
These values work with most standard manufacturers (PCBWay, JLCPCB and so on).
Step 3: Net classes (optional)
For specific tracks (power, high-speed signals), create net classes:
- Go to the Net Classes tab
- Create a class (e.g. ‘Power’ for the supply)
- Set a larger track width (e.g. 0.5mm or 1mm)
- Assign the matching nets (VCC, GND, +5V and so on)
Power tracks will automatically be wider.
Before finalising your rules, read the technical specifications of your PCB manufacturer. Each manufacturer has its own capabilities and constraints. Respecting these specifications avoids manufacturing errors.
Routing the tracks
Step 1: Start a track
To route a connection:
- Press X or click the ‘Route tracks’ icon
- Click a starting pad
- Follow the ratsnest (white line) to the destination
- Click to create segments
- Finish on the destination pad
The track appears in the colour of the active layer.
Step 2: Change layer with vias
To go from one layer to the other while routing:
- While drawing a track, press V
- A via (plated hole) is placed automatically
- The active layer switches (F.Cu ↔ B.Cu)
- Keep routing on the new layer
Use vias wisely to avoid crossing tracks.
Step 3: Routing modes
Pcbnew offers several routing modes (switch with / or \):
Mode 1, 45°: Tracks follow 45° angles (recommended)
Mode 2, 90°: Right angles (to be avoided for fast signals)
Mode 3, free: Any angle (for special cases)
Push and shove: Existing tracks are pushed aside automatically
In most cases, use the 45° mode with push and shove enabled.
Step 4: Route the signals
Recommended routing order:
- Critical signals: Clocks, high-speed signals, differential pairs
- Main power: VCC, GND (or use ground planes)
- Normal signals: GPIO, I2C, SPI, UART and so on
- Secondary signals: LEDs, buttons, auxiliary connectors
Keep tracks short and direct. Avoid sharp 90° angles.
Step 5: Track width
Adapt the width to the current:
- 0.2-0.3mm: Low-current signals (<100mA)
- 0.5mm: Medium signals (100-500mA)
- 1-2mm: High-current supply (500mA-3A)
- >2mm: Very high current (>3A)
Change the width while routing: press W, then type the value.
Use online calculators to size tracks precisely for the current.
To move a track that is already routed, press D (Drag) instead of M (Move). This moves the track while keeping the connections, which is much more convenient.
Ground planes and copper zones
What is a ground plane?
A ground plane (or copper pour) is a large area of copper connected to ground (GND). Advantages:
- Reduces electromagnetic interference (EMI)
- Makes routing easier (no need to route every GND)
- Improves heat dissipation
- Lowers ground impedance
It is good practice for almost every PCB.
Step 1: Create a copper zone
To create a ground plane on the back side:
- Select the F.Cu layer (front copper)
- Click the Add a filled zone icon (or press Ctrl+Shift+Z)
- A window opens: select the GND net
- Click to draw the outline of the zone (generally the whole PCB)
- Double-click to finish
In the zone configuration window, set:
Net: GND (or the net you want)
Clearance: 0.2mm (safety distance)
Pad connection: Thermal reliefs
Priority: 0 (for the main ground plane)
Fill type: Solid
Thermal reliefs make soldering easier by limiting heat drain.
Step 3: Fill the zone
To see the copper fill:
- Press B to fill all zones (Fill all zones)
- The ground plane fills in, automatically avoiding the other tracks and pads
- To unfill (in order to edit), press Ctrl+B (Unfill all zones)
The plane adapts automatically when you change the routing.
Step 4: Add a ground plane on the other side
For 2-layer PCBs, also add a ground plane on F.Cu:
- Select the F.Cu layer
- Repeat the previous steps
- Fill with B
You now have a ground plane on both sides, which greatly improves electrical performance.
Thermal reliefs are essential: they connect the pads to the ground plane through thin ‘spokes’. Without them, soldering would be very difficult, because the whole plane would act as a heat sink.
DRC (Design Rule Check)
What is the DRC?
The DRC (Design Rule Check) automatically checks that your PCB respects the design rules defined:
- Spacing between tracks
- Minimum track width
- Forbidden overlaps
- Missing connections (unrouted ratsnest)
- Vias too close to the edges
It is essential before sending the files for manufacturing.
Importing a DRC configuration from another project
You can import preconfigured design rules from another project or from a PCB manufacturer:
- Open the setup window: File > Board Setup
- Click Design Rules > Constraints
- In the Constraints tab, click Import Settings from Another Board
- Select the
.kicad_pro or .kicad_dru file of the source project
- The rules are imported: confirm with OK
Recommended DRC configuration: Use your manufacturer’s DRC configuration to guarantee compatibility. For example, Aisler provides ready-to-use DRC configuration files on its GitHub repository: https://github.com/AislerHQ/aisler-support/tree/master/kicad
Importing these rules ensures your PCB will respect the manufacturing capabilities (minimum spacing, track widths, via sizes and so on).
Step 1: Start the DRC
Go to Inspect > Design Rules Checker or click the ladybird icon. The DRC window opens with several tabs.
Step 2: Run the check
In the DRC window:
- Click Run DRC
- The tool analyses your PCB (this can take a few seconds)
- The errors and warnings appear in the list
- The counter shows the number of problems detected
Double-click an error to jump to the location concerned.
Step 3: Fix the errors
Common types of errors and solutions:
Clearance violation: Two tracks too close → Move them apart or change the routing
Track width: Track too thin → Widen the track
Unconnected items: Unrouted ratsnest → Finish the routing, or delete it if it is a mistake
Via too close to edge: Via too close to the edge → Move the via
Fix all the errors one by one, then run the DRC again until you get 0 errors.
Step 4: Check the warnings
Warnings do not block manufacturing but deserve attention:
- Silkscreen over pad: Silkscreen on a pad (it will be removed)
- Courtyard overlap: Components too close together (potential assembly problem)
- Missing courtyard: Footprint with no courtyard defined
Assess each warning: some are acceptable, others must be fixed.
A PCB ready for manufacturing must have 0 DRC errors. Warnings can sometimes be accepted depending on the context, but ALL errors must be fixed.
Silkscreen and finishing touches
Add text to the silkscreen
The silkscreen shows information on the finished PCB:
- Select the F.SilkS layer (front silkscreen)
- Click the Add text icon (or press Ctrl+Shift+T)
- Type your text (project name, version, your name, date and so on)
- Place it and adjust the size (generally 1-1.5mm high)
Add useful information: project name, version, date, your logo and so on.
Tidy up the component references
References (R1, C1, U1…) are placed automatically but are often badly positioned:
- Move them so that they are readable and overlap nothing
- Orient them the same way if possible
- To hide a reference: select it, press E and untick ‘Visible’
- Check that no reference overlaps a pad
A clean silkscreen makes assembly and debugging much easier.
Check the PCB visually
Before generating the manufacturing files, do a full visual check:
- All tracks are routed (no white ratsnest left)
- The ground planes are filled correctly
- The component references are readable
- The silkscreen does not overlap the pads
- The Edge.Cuts outline is closed and clean
- Mounting holes are present if needed
Take the time to check: it is easier now than after manufacturing!
Use the 3D view (Alt+3 or View > 3D Viewer) to see your PCB in three dimensions. It is excellent for spotting problems and getting a preview of the final result.
Next steps and resources
Congratulations! You now master the basics of Pcbnew. You know how to create a complete PCB, from the schematic to the manufacturing files.
Going further
Once you are comfortable with the basics, explore these advanced features:
- Automatic routing: Using autorouters (Freerouting and others)
- Multi-layer PCBs: 4, 6, 8 layers or more
- Differential pairs: Routing high-speed signals (USB, HDMI and so on)
- Impedance calculations: Impedance matching for RF and high speed
- Track length: Length matching for synchronous signals (DDR and so on)
- Flex or rigid-flex PCBs: Flexible circuits
- SMD assembly: Generating Pick-and-Place files for automated assembly
Once you receive your PCBs, they have to be assembled (the components soldered). Order your components from Mouser, Digikey, Farnell or RS Components. For SMD, manufacturers (JLCPCB, PCBWay) also offer inexpensive assembly services.
Good PCB design practice
Placement and routing
- Logical signal flow: Organise input → processing → output
- Short sensitive signals: Clocks and fast signals as short as possible
- Decoupling close by: Decoupling capacitors as close as possible to the ICs
- Ground return: Ensure a short return path for every signal
- Avoid loops: Current loops create interference
Thermal and mechanical
- Heat dissipation: Wide copper areas for hot components
- Mechanical stress: Reinforce stressed areas (connectors and so on)
- Mounting holes: Always plan mounting points
- Mechanical clearance: Check the heights of components and enclosures
Manufacturing and assembly
- Edge margins: 3-5mm minimum from the edges for components and tracks
- Component orientation: Same orientation if possible (makes assembly easier)
- Test points: Add test points for debugging
- Logical numbering: References in order (left to right, top to bottom)
- Documentation: Version notes, schematics, BOM on/with the PCB
Further resources
To deepen your knowledge of Pcbnew and PCB design:
PCB design is an art that improves with practice. Start simple, learn from each project, and do not be afraid of making mistakes (that is how you learn!). Happy routing!