← How-Tos
electronics May 7, 2026 ◑ 1 views ◯ 7 min read

How to Design PCBs with KiCad: From Schematic to Gerber Export

kicadpcbschematiclayoutgerberelectronicsdesigncad

Introduction

KiCad is a free, open-source electronics design automation (EDA) suite used by professionals and hobbyists worldwide to design printed circuit boards (PCBs). It includes schematic capture, PCB layout, a 3D viewer, and Gerber export โ€” everything needed to go from a circuit idea to a manufacturable board. This guide walks through the complete KiCad workflow from creating your first schematic, assigning footprints, routing the PCB, running design rule checks (DRC), and exporting manufacturing files for JLCPCB or any other fab house. Whether you are designing a simple LED driver or a multi-layer microcontroller board, this guide gives you the workflow to produce professional results.

What You Need

Step 1: Install and Configure KiCad

  1. Download KiCad from kicad.org for your OS (Windows, macOS, Linux)
  2. Run the installer and keep the default libraries selected โ€” they contain thousands of symbols and footprints
  3. Launch KiCad and open the Project Manager
  4. Go to Preferences > Preferences and configure:
  1. Download the JLCPCB fabrication toolkit plugin later for easy BOM and placement export

Step 2: Create a New Project

  1. File > New Project > Create a new blank project
  2. Name your project descriptively (e.g., "LED_Driver_v1")
  3. KiCad creates a folder with three main files:

Step 3: Schematic Capture

Schematic capture is where you draw your circuit using standard electronic symbols.

Placing Symbols

  1. Click the Symbol button (or press A)
  2. Search for components by name (e.g., "R" for resistor, "C" for capacitor, "LED", "Arduino_Nano")
  3. Place symbols on the sheet by clicking
  4. Press R to rotate, X/Y to mirror while placing

Wiring the Circuit

  1. Click the Wire tool (W) to draw connections
  2. Click on a pin to start, click on another pin to end
  3. Use Labels (L) to connect distant points without drawing long wires โ€” essential for clean schematics
  4. Add Power symbols (VCC, GND, +5V) from the power library

Assigning Values

  1. Press E on any symbol to edit its properties
  2. Set the Value field (e.g., "10k" for a resistor, "100nF" for a capacitor)
  3. Add a Reference designator if not auto-assigned (R1, C1, U1)

Annotating the Schematic

  1. Tools > Annotate Schematic > Annotate Automatically
  2. This assigns sequential reference designators to all components

Running ERC (Electrical Rule Check)

  1. Inspect > Electrical Rules Checker
  2. Click Run ERC
  3. Fix any errors or warnings (unconnected pins, power flags missing, etc.)
  4. No ERC errors should exist before moving to PCB layout

Step 4: Assigning Footprints

Every schematic symbol needs a physical footprint (the copper pattern on the PCB).

  1. Tools > Assign Footprints
  2. The Footprint Assignment window opens showing all your components
  3. For each component, select the appropriate package:
  1. Filter by library using the left panel
  2. Click the footprint name to preview it in the right panel
  3. Double-click to assign

Pro tip: Use JLCPCB's KiCad library for parts they stock โ€” it includes both footprint and LCSC part number for automated BOM generation.

Step 5: PCB Layout

Once footprints are assigned, transfer the schematic to the PCB editor.

Initial Setup

  1. Click Update PCB from Schematic in the toolbar
  2. KiCad imports all components as unplaced footprints
  3. Set your board outline: Edge.Cuts layer, use the rectangle or polygon tool
  4. Common board sizes: 50x50mm, 100x100mm (common for cheap prototyping)

Placing Components

  1. Drag components from the right-side panel onto the board area
  2. Place connectors and user-interface components at the board edge
  3. Group related circuits together (power section, microcontroller, sensor area)
  4. Keep high-frequency or sensitive traces short by placing components close

Setting Design Rules

  1. File > Board Setup > Design Rules > Constraints
  2. Set rules based on your fabrication house capabilities:

Routing Traces

  1. Select the Route Tracks tool (X)
  2. Click on a pad to start routing
  3. Click at each corner to place segments
  4. Double-click to finish on the destination pad
  5. Use the V key to add a via while routing (for changing layers)

Routing Best Practices

Copper Zones (Ground Planes)

  1. Click the Copper Zone tool
  2. Select the GND net
  3. Draw a polygon covering the board area on your chosen layer
  4. Press B to fill all zones
  5. Ground planes reduce noise and provide return paths for signals

Step 6: Design Rule Check (DRC)

  1. Inspect > Design Rules Checker
  2. Click Run DRC
  3. Fix all errors before proceeding:
  1. Zero errors and zero unconnected items is the goal

Step 7: Silkscreen and Documentation

  1. Add silkscreen text for component references (automatically placed)
  2. Add board title, version, and your name on the front silkscreen
  3. Mark polarity for diodes, LEDs, and electrolytic capacitors
  4. Add mounting holes (typically 3.2mm diameter for M3 screws)
  5. Keep silkscreen text away from pads and exposed copper

Step 8: 3D Viewer and Validation

  1. View > 3D Viewer
  2. Verify component placement and orientation
  3. Check for tall components blocking each other
  4. Verify connectors face the correct direction
  5. Export a STEP file if you need to integrate with mechanical CAD

Step 9: Gerber Export

Gerber files are the industry standard manufacturing format.

  1. File > Fabrication Outputs > Gerbers (.gbr)
  2. Select these layers minimum:
  1. Set format to 4.6 (high precision)
  2. Use protel filename extensions
  3. Click Plot

Drill Files

  1. File > Fabrication Outputs > Drill (.drl)
  2. Select PTH and NPTH in single file or separate as required by your fab
  3. Use absolute coordinates
  4. Units: mm

BOM and Pick-and-Place

  1. File > Fabrication Outputs > Component Placement (.pos)
  2. This generates the pick-and-place file for assembly services
  3. Also export BOM: Tools > Generate Bill of Materials

Step 10: Ordering from JLCPCB

  1. Zip all Gerber files and the drill file together
  2. Go to jlcpcb.com and click Quote Now
  3. Upload your Gerber zip file
  4. Verify the PCB preview looks correct (layer stack, outline, holes)
  5. Select options:
  1. If using SMT assembly, upload your BOM and placement files
  2. Review the part placement preview carefully
  3. Order and wait 5-7 days for delivery

Pro Tips for Better PCBs

Conclusion

KiCad is a professional-grade PCB design tool that costs nothing. By following this workflow โ€” schematic capture, ERC, footprint assignment, PCB placement, routing, DRC, and Gerber export โ€” you can design boards ranging from simple breakout boards to complex multi-layer designs. The key to success is methodical checking: ERC before layout, DRC before export, and visual inspection before ordering. With practice, you will develop an intuition for good layout that minimizes noise, eases manufacturing, and produces reliable electronics.