July 19, 2026

Gerber Files Explained: PCB Layers, Formats & Export

Gerber Files Explained: PCB Layers, Formats & Export

As electronic computer-aided design (ECAD) software replaced manual drafting tables in the 1970s and 1980s, fabricators needed a universal vector format to drive automated photoplotters. A photoplotter manufacturer known as Gerber Scientific developed a vector graphic format that quickly became the worldwide standard for hardware manufacturing outputs.

Today, even with direct imaging laser systems, a Gerber file remains the universal bridge between digital ECAD design software and physical circuit board fabrication. Understanding how these files determine physical board layers, how they differ from native CAD project files, and how to verify a complete PCB manufacturing package prevents fabrication delays and costly board re-spins.

Key Takeaways

  • Each Gerber file represents a single 2D layer or mechanical feature of a physical PCB.
  • A complete PCB manufacturing package requires a Gerber files PCB package combined with separate NC drill files and fabrication notes.
  • Independent inspection using a 2D Gerber viewer before releasing files to fabrication catches alignment, revision, and layer masking errors.

What Is a Gerber File?

A Gerber file is a standardized 2D vector image format used by Computer-Aided Manufacturing (CAM) systems to direct photoplotters, which generate high-precision artwork films for PCB fabrication, and direct-imaging lasers, which project circuit patterns directly onto photoresist-coated copper without requiring film. Rather than treating a circuit board as a complex 3D object, the Gerber file format breaks a PCB design down into individual 2D image slices representing specific physical layers of the board.

A complete board layout cannot exist within a single file. Instead, the export process generates a collection of PCB fabrication files, where each file defines a specific layer:

  • Top copper
  • Bottom copper
  • Internal signal planes
  • Solder mask boundaries
  • Silkscreen text
  • Mechanical routings

Understanding what a Gerber file represents requires understanding the difference between manufacturing outputs from design-source data. A Gerber file contains pure vector geometry: lines, flashes, polygons, and arc coordinates, without electrical functionalities. It does not contain schematic logic, component footprints, netlists, or constraint rules.

Evolution of the Gerber Format

  • RS-274D (Standard Gerber): The legacy vector format required an external wheel table (aperture file) to interpret line widths and shape definitions. Because aperture tables were supplied separately, missing or mismatched aperture files frequently corrupted board geometries.
  • RS-274X (Extended Gerber): The widely used standard embeds aperture definitions, units, and coordinate formatting directly into the file header, eliminating external aperture table dependency.
  • Gerber X2: The modern extension adds intelligent attributes to the file structure, defining specific layer stackup order, board function (e.g., top copper vs inner plane), and component pin locations directly within the data.
  • Gerber X3: This latest extension integrates assembly data directly into the PCB file set by adding dedicated component layers. It embeds reference designators, manufacturer part numbers, and pick-and-place centroid locations. This unifies fabrication and assembly into a single workflow, automating machine programming while remaining fully backward-compatible with legacy viewers.

What Files Are Included in a Gerber Package For a 2-Layer PCB?

PCB layer stack cross-section mapped to the Gerber and NC drill files that define each layer, including top copper, solder mask, silkscreen, solder paste, board outline, and through-hole drill files
Cross-section of a standard PCB layer stack alongside the fabrication data used to manufacture it. Copper layers, Solder mask, Silkscreen, Solder paste, Board outline are part of Gerber files.

Generating a complete set of PCB manufacturing files requires exporting vector data for every physical layer alongside mechanical drilling instructions.

Summary of What Gerber Files Contain

Layer or File Type What It Defines Typical Contents
Copper Layers Conductive pathways and pours Signal traces, power planes, SMT pads, thru-hole pads
Solder Mask Insulation openings Areas where protective epoxy mask is omitted to expose copper pads
Silkscreen Visual labels and markings Reference designators, pin 1 indicators, logos, warning text
Solder Paste Stencil aperture boundaries Openings for SMT paste deposition during assembly
Board Outline Mechanical geometry Outer board perimeter, internal slots, routed cutouts

Gerber Files vs PCB Files and Drill Data

Engineering teams frequently confuse source design files (e.g. PCB files) with manufacturing outputs (e.g., gerber files). Understanding gerber files vs PCB files helps designers send correct deliverables to fabrication houses.

  • A native PCB file (such as a KiCad .kicad_pcb or Altium .PcbDoc file) represents the editable CAD database. Such a file contains active components, net connectivity, clearance rules, and parametric footprints.
  • Fabricators generally request flattened PCB fabrication files rather than native CAD project files because native files depend on specific software versions, proprietary fonts, and installed library paths.
    • PCB Drill files are supplied separately from standard vector layer files. CNC drilling machinery utilizes NC drill formats (such as Excellon) that specify drill bit diameters, tool numbers, and exact X/Y hole coordinates.

Differences Between PCB Manufacturing File Types

Characteristic Gerber Files Drill Files Native PCB File
Primary Purpose Manufacturing layer geometry CNC hole drilling data Editable layout and schematic source
Format Type 2D Vector (RS-274X / Gerber X2) NC Drill (Excellon) Proprietary database / CAD format
Intelligence Geometric shapes and traces Tool size and X/Y coordinates Full netlists, components, and DRC rules
Compatibility Universal across all fabricators Universal across CNC drill systems Software-specific (requires specific ECAD tool)

How to Generate and Review Gerber Files

Executing a PCB Gerber export requires verifying design constraints before generating output files.

Step-by-Step Export and Inspection Process

  1. Run DRC and ERC: Perform complete Design Rules Checking (DRC) and Electrical Rules Checking (ERC) within the ECAD tool to resolve unrouted traces or clearance violations.
  2. Confirm Mechanical Layers: Verify that the board outline is closed, continuous, and drawn on a dedicated mechanical layer.
  3. Export Gerber Vector Data: Configure export settings for RS-274X or Gerber X2. While both formats contain the required PCB layer, Gerber X2 includes embedded layer metadata and fabrication attributes that improve automation and reduce manufacturing errors. Export all required copper, solder mask, silkscreen, paste, and mechanical layers.
  4. Generate NC Drill Files: Export separate drill files for plated through-holes (PTH) and non-plated through-holes (NPTH), ensuring units and coordinate resolutions match the Gerber export settings.
  5. Compile Fabrication Notes: Include stackup specifications, copper weight requirements, surface finish preferences, and solder mask colors in a text file or fabrication drawing.
  6. Inspect in a Standalone Viewer: Load the exported ZIP archive into an independent 2D Gerber viewer to verify geometry prior to release.

Pre-Release Verification Checklist

  • Are all required copper, solder mask, silkscreen, and mechanical layers exported?
  • Do drill hole coordinates align perfectly with copper pad centers?
  • Is the board outline continuous, closed, and located on a dedicated mechanical layer?
  • Are solder mask openings correctly defined for all SMT pads and test points?
  • Is silkscreen text legible and kept clear of exposed copper pads?
  • Are internal slots, cutouts, and routing paths clearly documented?
  • Have obsolete or older export files been purged from the ZIP release archive?

Common Gerber Export Mistakes

Fabrication delays frequently occur due to file packaging errors. Avoiding common pitfalls ensures a smooth transition from CAD design to physical board delivery:

  • Revision Mismatches: Including copper layers from Revision B alongside a drill file exported from Revision A causes misaligned holes and broken net connections.
  • Missing Board Outline: Omitting the mechanical edge layer forces the fabricator to guess board dimensions or pause production to issue an engineering query.
  • Unmatched Coordinate Units: Exporting Gerber layers in metric units while exporting drill files in imperial units results in severe scaling and alignment errors in the fabricator's CAM software.
  • Inverted or Mirrored Layers: Accidentally mirroring bottom copper or top silkscreen layers during export results in unworkable PCBs.
  • Silkscreen Over Solder Pads: Allowing silkscreen ink to overlap exposed copper pads causes soldering defects during SMT assembly.
  • Leftover Legacy Files: Archiving multiple export attempts in the same release folder confuses CAM operators regarding which files represent the final revision.

How Modern PCB Tools Simplify Manufacturing Outputs

Disconnected design software creates friction during manufacturing handoffs, where schematic updates, board layouts, and exported files exist as separate desktop artifacts.

Modern cloud-native platforms like Flux streamline manufacturing handoffs by maintaining connected schematic, layout, and output data in a single workspace. Built-in design rule checks and centralized revision control ensure that exported files accurately reflect the active design state. By providing a shared source of truth, engineering teams and fabricators can conduct collaborative design reviews directly in the browser, reducing revision errors before releasing a PCB manufacturing package. Try Flux now to simplify PCB manufacturing handoffs and ensure production files are always up to date.

FAQs

Profile avatar of the blog author

Gabriel Hacohen

Gabriel Hacohen is an electrical engineer with deep expertise in analog circuitry, medical devices, high-performance computing, and semiconductors. He holds both Bachelor's and Master's degrees in Electrical Engineering and has written for companies including NVIDIA, Cadence, Synopsys, Netflix, and Autodesk.

Go 10x faster from idea to PCB
Work with Flux like an AI hardware engineer—handling complex tasks, learning your standards, explaining its decisions, and collaborating with you at every step.
Illustration of sub-layout. Several groups of parts and traces hover above a layout.
Design PCBs with AI
Introducing a new way to work: Give Flux a job and it plans, explains, and executes workflows inside a full browser-based eCAD you can edit anytime.
Screenshot of the Flux app showing a PCB in 3D mode with collaborative cursors, a comment thread pinned on the canvas, and live pricing and availability for a part on the board.
Design PCBs with AI
Introducing a new way to work: Give Flux a job and it plans, explains, and executes workflows inside a full browser-based eCAD you can edit anytime.
Screenshot of the Flux app showing a PCB in 3D mode with collaborative cursors, a comment thread pinned on the canvas, and live pricing and availability for a part on the board.
Design PCBs with AI
Introducing a new way to work: Give Flux a job and it plans, explains, and executes workflows inside a full browser-based eCAD you can edit anytime.
Screenshot of the Flux app showing a PCB in 3D mode with collaborative cursors, a comment thread pinned on the canvas, and live pricing and availability for a part on the board.

Related Content

555 Timer Guide: Pinout, Operating Modes, and Circuit Examples

555 Timer Guide: Pinout, Operating Modes, and Circuit Examples

A complete 555 timer guide covering pinout, internal operation, monostable and astable modes, timing calculations, and practical circuit examples. It also explains component selection and PCB layout tips for reliable designs.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
Capacitor Symbols Explained: Types, Polarity, and Schematic Use

Capacitor Symbols Explained: Types, Polarity, and Schematic Use

A visual guide to capacitor schematic symbols, polarity markings, and specialized capacitor types. It explains how to choose the correct symbol and footprint to prevent assembly and design errors.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
How to Wire a Potentiometer: Pinout, Diagrams, and PCB Examples

How to Wire a Potentiometer: Pinout, Diagrams, and PCB Examples

A practical guide to potentiometer wiring, including pin identification, voltage-divider and rheostat configurations, Arduino examples, and PCB footprint considerations. It helps designers avoid common wiring and layout mistakes.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
Designing Custom PCB Outlines: Fixing DXF and SVG Import Failures

Designing Custom PCB Outlines: Fixing DXF and SVG Import Failures

A troubleshooting guide for DXF and SVG board-outline import failures, including open paths, unit mismatches, unsupported curves, and layer mapping issues. It shows how to clean CAD-to-EDA handoffs before PCB fabrication.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
Inverting Op-Amp Circuits: Formula, Gain, and Design Examples

Inverting Op-Amp Circuits: Formula, Gain, and Design Examples

A practical guide to inverting op-amp circuits, covering how negative feedback creates inversion, how to calculate gain with Rin and Rf, and how real-world limits affect design. It also explains component selection and PCB layout practices for reliable amplifier performance.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
Troubleshooting JLCPCB Gerber Upload and CAM Tool Compatibility Errors

Troubleshooting JLCPCB Gerber Upload and CAM Tool Compatibility Errors

A troubleshooting guide for common JLCPCB Gerber upload errors, including unreadable files, missing board outlines, drill-file issues, and Gerber X2 compatibility problems. It explains how to export and verify clean Gerbers before ordering.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
PCB Enclosure Design: How to Design an Enclosure

PCB Enclosure Design: How to Design an Enclosure

A practical guide to designing PCB enclosures around board geometry, clearances, mounting, assembly, and 3D-printed prototyping. It also explains how Flux can generate prototype enclosures directly from a PCB project.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|September 4, 2026
Electronic Component Sourcing: Lead Times & Component Lifecycles

Electronic Component Sourcing: Lead Times & Component Lifecycles

Strategies for sourcing electronic components, managing BOMs, navigating lead times, and planning for component lifecycles to build a resilient hardware supply chain.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|August 28, 2026