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

What is a Gerber file?
A Gerber file is a 2D vector graphic file describing an individual physical layer of a printed circuit board for manufacturing.
What files are needed to manufacture a PCB?
Fabrication requires a complete PCB manufacturing package containing gerber files for all copper, solder mask, silkscreen, and mechanical layers, combined with NC drill files and fabrication specifications.
Are drill files included in gerber files?
No. Drill data is generated separately as NC drill files (typically in Excellon format) specifying exact hole coordinates and tool diameters.
What is the difference between a Gerber file and a PCB file?
A PCB file is an editable CAD design database containing netlists, active components, and layout rules. A Gerber file is a flattened 2D vector manufacturing file containing pure layer geometry without circuit intelligence.
How do engineers open a Gerber file?
Opening and inspecting gerber files requires utilizing a standalone 2D Gerber viewer software or web tool.
How do designers check gerber files before manufacturing?
Designers load the complete ZIP archive into an independent Gerber viewer to check layer alignment, verify solder mask clearances, inspect silkscreen legibility, and confirm drill hole registration.
Are gerber files still used in modern PCB manufacturing?
Yes. While formats like ODB++ and IPC-2581 exist, the Gerber file format (specifically Extended RS-274X and Gerber X2) remains the global standard for PCB fabrication.
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

Pi Filters Explained: Design, Components & Applications

Pi Filters Explained: Design, Components & Applications

A pi filter is a three-element passive CLC network that provides stronger ripple and EMI suppression than a single capacitor. This guide covers topology selection, component derating, resonance damping, and PCB layout best practices.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|July 19, 2026
Tantalum Capacitors Guide: Polarity, Derating & Risks

Tantalum Capacitors Guide: Polarity, Derating & Risks

Tantalum capacitors offer high capacitance density in a tiny footprint but demand strict polarity and voltage derating. This guide explains how they compare to ceramics and aluminum electrolytics, common failure risks, and how to select and place them safely.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|July 19, 2026
What Is PCBA? PCB vs PCBA and Assembly Explained

What Is PCBA? PCB vs PCBA and Assembly Explained

PCBA turns a bare PCB into a functional circuit by mounting and soldering components. This guide breaks down the assembly workflow, SMT vs through-hole methods, required manufacturing files, and common defects to avoid.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|July 19, 2026
Electrical Rule Check (ERC) vs DRC in PCB Design

Electrical Rule Check (ERC) vs DRC in PCB Design

ERC checks schematic-level electrical issues while DRC checks PCB layout rules -- engineers run ERC before layout and DRC during or after routing.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|July 7, 2026
Hardware Design Workflow: From Schematic Capture to Manufacturing

Hardware Design Workflow: From Schematic Capture to Manufacturing

The complete hardware design workflow covers requirements, schematic capture, PCB layout, validation, prototyping, and manufacturing.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|July 7, 2026
PCB Constraint Management: How Engineers Control Layout Rules

PCB Constraint Management: How Engineers Control Layout Rules

PCB constraint management defines routing, spacing, impedance, and manufacturing rules and validates them throughout PCB layout.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|July 7, 2026
PCB Design History and Revision Management Best Practices

PCB Design History and Revision Management Best Practices

PCB revision management tracks what changed, who changed it, and why -- keeping schematics, layout, BOM, and manufacturing files aligned.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|July 7, 2026
PCB Symbol Design: Best Practices for Clean Schematics

PCB Symbol Design: Best Practices for Clean Schematics

PCB symbol design directly impacts how fast a team can interpret a circuit, spot errors, and generate an accurate netlist.

Profile avatar of Gabriel Hacohen
Gabriel Hacohen
|July 7, 2026