Your First PCB in KiCad: Schematic to Gerber Files

A first PCB in KiCad takes eight steps: draw the schematic, run the electrical rules check (ERC), assign a footprint to every symbol, update the PCB from the schematic, place and route the parts inside a board outline, run the design rules check (DRC), plot Gerber and drill files, and check those files in a viewer before you order. Each check sends you back a step when it finds an error, which is the point: fix it on screen, not on a board you paid for. This page follows the official KiCad documentation and uses a single LED and resistor as the example.

Learning objectives

  • Know the order of the KiCad steps and why each comes where it does
  • Run ERC and DRC and act on their errors
  • Plot the files a board maker needs
  • Size the parts in the example from the circuit

Prerequisites

KiCad flow: schematic, ERC, footprints, update PCB, place and route, DRC, Gerber and drill files, check, failed checks loop back
From schematic to Gerber files in KiCad. A failed check sends you back a step.

1. The schematic

Create a project, open the Schematic Editor, and place symbols: a two-pin connector for 5 V and ground, a resistor and an LED. Wire them, add power symbols, and give every symbol a value. Annotate the schematic so each part has a reference such as R1 and D1.

Worked example: sizing the resistor

With a 5 V supply, a red LED's forward voltage of about 2.0 V and 10 mA wanted, the resistor is (5 - 2.0) / 0.010 = 300 ohms. Round up to the next E12 value so the current stays at or under 10 mA.

The next E12 value up is 330 ohms. The current is then 3 V / 330 ohms = 9.09 mA, and the resistor dissipates 3 V x 9.09 mA = 27.3 mW, about 11 percent of a common 0.25 W part. Put 330 ohms in the value field of R1.

2. Electrical rules check

Run Inspect, Electrical Rules Checker. It flags unconnected pins, outputs driving outputs and power pins with no source. A power input fed only through a connector needs a power flag to tell ERC the net is driven. Fix or deliberately exclude every message before going on.

3. Footprints

Every symbol needs a footprint: the copper pads and outline of the real part. Use the footprint assignment tool, or set the footprint field in each symbol's properties. Check pad spacing against the part you will actually buy, such as a 0805 resistor or a through-hole LED.

4. Update the PCB from the schematic

In the PCB Editor, Tools, Update PCB from Schematic brings the footprints in, joined by ratsnest lines that show the connections still to be routed. Draw the board outline on the Edge.Cuts layer.

5. Set the rules, place and route

Before routing, enter your board maker's minimum track width, clearance and drill size in Board Setup, so DRC checks against what they can make. Place parts to keep connections short, then route tracks. A ground fill (a copper zone on the ground net) is common on two-layer boards.

6. Design rules check

Run Inspect, Design Rules Checker. It reports clearance and width violations, unrouted connections and parts off the board. Zero errors before any files are made.

7. Gerber and drill files

File, Fabrication Outputs, Gerbers opens the plot dialog. Plot the copper layers, solder mask, silkscreen and Edge.Cuts, then generate the drill files from the same dialog. Put them all in one folder and zip it for the board maker.

8. Check before ordering

Open the files in KiCad's Gerber Viewer, or the board maker's own viewer, and check every layer: the outline is closed, holes line up with pads, and text is not on a pad.

Common mistakes

  • Ignoring ERC warnings that later become a missing connection on the board.
  • Choosing a footprint that does not match the part you buy.
  • Routing with KiCad's default rules instead of the board maker's.
  • Forgetting the Edge.Cuts outline or the drill file.
  • Ordering without opening the Gerbers in a viewer.

Quick check

1. Which check comes before footprints, and which after routing?

ERC checks the schematic before footprints; DRC checks the layout after routing.

2. What resistor does the example use, and what current flows?

330 ohms, the next E12 value above 300, giving about 9.09 mA.

3. Which layer holds the board outline?

Edge.Cuts.

Summary

  • Schematic, ERC, footprints, update PCB, place and route, DRC, Gerber and drill files, check.
  • Set the board maker's rules before routing so DRC means something.
  • Size parts from the circuit; the calculators help.
  • Always view the Gerbers before you order.

Electronics calculators

Related

Sources

Last verified

Steps checked against the official KiCad documentation on 28 November 2026. Resistor values computed from the example circuit.

Keep going