What is a keep-out zone?
A keep-out zone is an area of a PCB where certain objects are not allowed: tracks, vias, pads, copper pours or components, on the layers you choose. It turns a mechanical or RF requirement, such as nothing under an antenna or no copper under a screw head, into a rule the design rule check can enforce. KiCad calls these rule areas.
What can a keep-out zone block?
In KiCad a rule area can be set to keep out tracks, vias, pads, zone fills and footprints, each independently, on any set of layers. If an object of a blocked type lies inside the area, DRC raises an 'Items not allowed' error, and a zone set to keep out pours makes copper fills flow around it automatically. A rule area with no keep-out boxes ticked is still useful: it can be named and used as the target of custom DRC rules, for example tighter clearance inside a high-voltage section.
A keep-out is different from a clearance rule. Clearance is measured between two objects wherever they are; a keep-out is a fixed region that forbids objects regardless of net.
Where does a PCB need keep-out zones?
- Under and around antennas. Espressif recommends placing an ESP32-S3 module's PCB antenna outside the base board, or, if that is not possible, putting the feed point near the board edge and cutting away the base board on both sides of and below the antenna. It also suggests at least 15 mm of clearance around the antenna inside the product housing, and keeping all layers clear under an IPEX connector.
- Mounting holes, standoffs and screw heads, which must not touch copper of other nets.
- Board edges and break lines. JLCPCB asks for copper at least 0.2 mm from a routed edge and 0.4 mm from a V-cut; this is often set as a board-edge clearance rule rather than drawn as an area.
- Fiducials, which need a clear ring of bare board; JLCPCB places them at least 3.35 mm from the board edge, keep-out area included.
- Mechanical features of the enclosure, connectors that overhang the board, heat sinks and battery holders.
- Isolation gaps between high- and low-voltage circuits, where creepage and clearance decide the width.
How do you draw a keep-out zone in KiCad?
Add a rule area
Choose the Add rule area tool and draw the outline, matching the mechanical drawing or the module's keep-out figure.
Pick the layers
Select every layer the restriction applies to; an antenna keep-out usually covers all copper layers.
Choose what to keep out
Tick tracks, vias, pads, zone fills and footprints as required, and give the area a name so DRC messages are clear.
Refill and run DRC
Refill zones so pours retreat from the area, then run the design rule check.
Common keep-out mistakes
- Clearing copper under an antenna on the top layer only, while an inner-layer ground pour still runs underneath.
- Drawing the keep-out from memory instead of the module datasheet or the enclosure model.
- Forgetting that a component's body or courtyard can intrude even when its pads are outside the area.
- Placing fiducials or test points inside a region the enclosure covers.
Sources
- KiCad 9.0 documentation: PCB Editordocs.kicad.org
Rule areas: keep out tracks, vias, pads, zone fills and footprints, DRC 'Items not allowed', zones avoiding areas, named areas for custom rules
- Espressif: ESP32-S3 Hardware Design Guidelines, PCB Layout Designdocs.espressif.com
Module antenna placement, board cutouts, 15 mm housing clearance, all layers clear under IPEX connector
- JLCPCB: PCB Manufacturing Capabilitiesjlcpcb.com
Board-edge copper clearance for routed and V-cut edges
- JLCPCB: How to add edge rails and fiducials for a PCB assembly orderjlcpcb.com
Fiducial edge clearance including keep-out area
