LIBRARYDesign rules and DRC.
The design-rule check is the board's spell-check. Set the rules to your fabricator's capabilities and clear every clearance, width, hole, and short before you leave the layout.
The design-rule check is the board's spell-check. It compares your layout against a set of manufacturing limits, the clearances, trace widths, and hole sizes, and flags every place the board breaks them. Set the rules to your fabricator's capabilities, and do not leave the layout until the check is clean.
What the rules cover
The core rules are geometric: the minimum clearance between two pieces of copper, the minimum trace width, the minimum drilled hole, and the minimum annular ring (the collar of copper around a via or pad). Each is a number your fabricator can hold. Set them tighter than the fab and boards come back wrong; set them looser and you waste some space, but the board still builds.
Match the rules to your fab
Every fabricator publishes a capability sheet: the smallest trace, space, hole, and ring they reliably make. You copy those numbers into the design rules before you route, so the check enforces what your chosen fab can actually build. A board that passes against the wrong fab's limits can still fail in production.
The check catches more than geometry
DRC also finds electrical mistakes the layout introduced: two nets shorted by overlapping copper, a connection in the netlist with no trace yet (an unrouted net), and courtyards that overlap because two parts sit too close. KiCad reports each as a marker you jump to and fix (KiCad).
The courses here treat DRC = 0 the way they treat ERC = 0 on the schematic: a hard gate you clear before the board is allowed to move forward. An unrouted net or a clearance violation that ships is a board that does not work or cannot be built. Clear every marker, then export.
▸Deep dive· Annular ring and why it fails
The annular ring is the ring of copper left around a drilled hole after the drill bites. If a via's ring is too thin and the drill wanders even slightly, the hole breaks out of the pad and the connection is unreliable. Fabs quote a minimum annular ring and the DRC enforces it, because this is one of the quiet ways a cheap board fails: it passes a glance but the plating barely catches the pad. Give vias a ring with margin over the fab minimum.
Checkpoint
Quick check
One Thousand Drones engineering team · verified 2026-07