Electronic Project Engineer's Best Partner!
engineer

How to Create Gerber Files? Complete Guide for Popular PCB Tools

12 0 Jul 06.2026, 16:51:54

If you've ever sent a PCB design out for fabrication and gotten back a board that doesn't quite match what you drew on screen, there's a good chance the problem started before manufacturing even began — with how the Gerber files were generated. Gerber files are the actual instructions your board house builds from, not your native design file, so getting the export step right is one of the highest-leverage things you can do to avoid respins.

This guide walks through exactly how to generate Gerber files in the PCB design tools engineers reach for most: Altium Designer, KiCad, Autodesk EAGLE, and Cadence Allegro (OrCAD). Each section breaks the process into clear, numbered steps so you can follow along inside your own software. We'll also touch briefly on what a Gerber file actually is, the mistakes that most often cause fabrication delays, and a quick checklist to run before you hit "submit" on your order.

What Is a Gerber File?

A Gerber file is a 2D vector image format that describes one layer of a PCB — top copper, bottom copper, solder mask, silkscreen, drill data, and so on — in a language that fabrication equipment can read directly. Rather than sending a manufacturer your native Altium, KiCad, or Eagle project (which they may not even have software to open), you export a set of Gerber files that any board house can load, regardless of which design tool you used.

Two Gerber formats are in common use today. RS-274X embeds aperture definitions directly in each layer file and is the current industry standard. Gerber X2 is a newer extension of RS-274X that adds layer-stackup and net attribute data, giving fabricators more automated design-for-manufacturing checks. Most modern fab houses accept either, but it's worth confirming with your manufacturer before export, since a small number of shops still expect the older RS-274-D format.

Why You Should Generate Your Own Gerber Files

It's tempting to just hand over your native project file and let the manufacturer sort it out. Two things make that risky. First, your fabricator may use different CAM software than you do, and translating between systems introduces room for error. Second, even when the manufacturer uses the same design tool, letting someone else configure the export means you lose control over layer selection, units, and format — details that directly affect whether your board comes back correct. Generating the files yourself, and checking them before you submit, keeps that control in your hands.

How to Generate Gerber Files in Altium Designer

Altium Designer is a common choice for professional and enterprise PCB teams, and its Gerber export is handled through a dedicated setup dialog with five configuration tabs.

Step 1: Open the Gerber setup. With your .PcbDoc file open, go to File > Fabrication Outputs > Gerber Files. This opens the Gerber Setup dialog.

Step 2: Set units and format. On the General tab, choose Inches or Millimeters and select a coordinate format. A 2:5 format gives higher resolution than 2:3, and either is fine for most boards as long as it's consistent with your drill file.

Step 3: Select your layers. On the Layers tab, tick every layer you want plotted (and mirrored, if needed). Leave mechanical layers unchecked unless your fabricator specifically requests them.

Step 4: Review drill drawing settings. The Drill Drawing tab rarely needs changes — the default legend settings work for most designs.

Step 5: Confirm the aperture format. On the Apertures tab, make sure Embedded Apertures (RS274X) is checked. This keeps aperture data inside each layer file rather than requiring a separate aperture file.

Step 6: Set advanced options. On the Advanced tab, leave Film Size on its default, set Aperture Matching Tolerances to 0.005mil for both Plus and Minus, and choose Separate file per layer under Batch Mode. Match Leading/Trailing Zeroes and Position on Film to whatever you'll use for your NC Drill files.

Step 7: Generate the files. Click OK. Altium exports a separate Gerber file for each selected layer to your project's output folder.

Don't forget the drill data: File > Fabrication Outputs > NC Drill Files generates the corresponding Excellon drill file separately, and both sets need to be zipped together before you send them off.

How to Generate Gerber Files in KiCad

KiCad is free and open-source, and it's become one of the most widely used PCB tools for hobbyists, students, and startups — which makes its Gerber workflow worth knowing well even though it's less frequently covered in manufacturer guides.

Step 1: Run a design rule check first. Before exporting anything, run DRC (Inspect > Design Rules Checker) and refill copper zones (Edit > Fill All Zones, or press B). Stale zone fills are one of the most common causes of incorrect Gerbers.

Step 2: Open the Plot dialog. In Pcbnew, go to File > Fabrication Outputs > Gerbers (.gbr), or click the Plot icon in the toolbar.

Step 3: Set your output folder and layers. Choose a dedicated output directory (KiCad will create it if it doesn't exist), then select the layers to include: F.Cu, B.Cu, F/B.Paste, F/B.Silkscreen, F/B.Mask, Edge.Cuts, and any inner copper layers for 4+ layer boards.

Step 4: Configure plot options. Enable Check zone fills before plotting, Plot footprint values (if needed), and Use extended X2 format if your fabricator supports it — leave it unchecked for standard RS-274X.

Step 5: Plot the Gerbers. Click Plot. KiCad generates one file per selected layer in your chosen folder.

Step 6: Generate drill files. From the same Plot window, click Generate Drill Files, select Excellon format, match your drill units to your design units, and click Generate Drill File.

Step 7: Verify before sending. Open the exported files in KiCad's Gerber Viewer (or any third-party viewer) to confirm the board outline is fully closed and every layer looks correct before zipping and submitting.

How to Generate Gerber Files in Autodesk EAGLE

EAGLE exports Gerbers through its CAM Processor, using a CAM job file that defines which layers map to which output files.

Step 1: Run the drill configuration ULP. Open your .brd file, go to File > Run ULP, and select drillcfg.ulp to generate the drill configuration before exporting.

Step 2: Open the CAM Processor. Go to File > CAM Processor (or click the CAM icon on the toolbar).

Step 3: Load a Gerber job file. Select File > Open > Job and load a CAM job such as gerb274x.cam. Most fabricators publish a ready-made CAM file for EAGLE, which is worth using since it's pre-configured for their equipment.

Step 4: Check your silkscreen and outline layers. By default, EAGLE only exports the top silkscreen — add the bottom silkscreen layers manually if your design needs it. Confirm your board outline is drawn as a closed shape on the Dimension layer, since a missing or open outline is one of the most common EAGLE export errors.

Step 5: Process the job. Click Process Job. EAGLE generates the Gerber files (and, in recent versions, packages them into a single ZIP automatically).

Step 6: Generate the drill file. Reopen the CAM Processor, load excellon.cam, and process it separately to produce your drill file.

Step 7: Verify layer-by-layer. Use EAGLE's built-in Gerber preview in the CAM Processor, or an external viewer, to check each layer before compressing everything into a single ZIP for submission.

How to Generate Gerber Files in Cadence Allegro (OrCAD)

Allegro is common on high-layer-count and high-complexity boards, and its Artwork Control Form handles Gerber generation for the full stackup at once.

Step 1: Open the Artwork Control Form. With your layout open in Allegro, go to Manufacture > Artwork.

Step 2: Add a board outline film. Right-click the TOP folder in the film list and choose Add Manual, name it (for example, OUTLINE), and click OK.

Step 3: Assign the outline subclass. In the Subclass Selection window, expand BOARD GEOMETRY, check OUTLINE, and click OK.

Step 4: Confirm the film is active. Back in the Artwork Control Form, make sure OUTLINE appears and is checked under Available films.

Step 5: Select all layers. Click Select All so every required layer is included in the output.

Step 6: Generate the artwork. Click Create Artwork. Allegro writes a Gerber file for each selected layer to your working directory.

As with the other tools, generate your NC drill data as a separate step and confirm both sets use matching units and origin before zipping them together for your fabricator.

Software Comparison at a Glance

SoftwareCostNative FileGerber FormatBest For
Altium DesignerPaid (subscription).PcbDocRS-274X / Gerber X2Professional & enterprise teams
KiCadFree, open-source.kicad_pcbRS-274X / Gerber X2Hobbyists, startups, students
Autodesk EAGLEFree tier + paid tiers.brdRS-274X (via CAM job)Makers, small-team production boards
Cadence Allegro (OrCAD)Paid (enterprise).brdRS-274XHigh-layer-count, complex designs

Common Errors to Avoid When Generating Gerber Files

  • Exporting with stale copper zones — always refill zones and re-run DRC immediately before export.

  • Leaving the board outline (Edge.Cuts / Dimension / Keep-Out layer) open or incomplete, which prevents the fabricator from routing the board correctly.

  • Mismatched units or origin points between your Gerber and drill files, which causes misregistration between copper and holes.

  • Forgetting inner copper layers on 4+ layer boards.

  • Mixing Gerber X2 and legacy RS-274X settings without confirming your fabricator supports the format you chose.

  • Sending files without opening them in a Gerber viewer first — a five-minute check catches most avoidable respins.

Pre-Submission Checklist

  • DRC passed with zero unresolved errors

  • All copper zones refilled

  • Board outline forms a single closed shape

  • Correct layer count exported, including inner layers

  • Units and origin match between Gerber and drill files

  • Files reviewed in a Gerber viewer

  • All files (Gerbers + drill + drill map) zipped together in one archive

Getting Your Gerber Files Manufactured

Once your Gerber files are exported and verified, the next step is to upload them to a PCB manufacturer and move into production with confidence that your design is correctly interpreted. You can directly submit your files to PCBgogo, where they are automatically checked through a design-for-manufacturing (DFM) review before fabrication begins, helping catch potential issues like outline errors, spacing problems, or missing layers at an early stage.

PCBgogo Capabilities for Gerber-Based Orders

  • Founded in 2013, ISO 9001:2015 & UL certified → ensuring standardized quality control and manufacturing reliability.

  • Free DFM checks on uploaded Gerber files → automatically detect issues such as open outlines, incorrect stackups, or missing drill data before production starts.

  • HDI fabrication capabilities → enabling high-density, fine-pitch designs beyond standard PCB complexity.

  • Precision SMT assembly with X-ray inspection → supporting BGA and other hidden-joint components for higher assembly accuracy.

  • 5-board minimum order → flexible enough for rapid prototyping while still supporting small-scale production runs.

Whichever design tool you use, the workflow remains consistent: export clean Gerber and drill files, verify them carefully, then upload directly to the manufacturer's online quoting system for DFM review and production.

Frequently Asked Questions

What is a Gerber file used for?

A Gerber file describes a single layer of a PCB — copper, solder mask, silkscreen, or drill data — in a standardized vector format that PCB fabrication equipment reads directly to manufacture the board and, when applicable, its assembly stencils.

What's the difference between RS-274X and Gerber X2?

RS-274X embeds aperture data in each layer file and is the current baseline standard accepted by virtually all fabricators. Gerber X2 extends RS-274X with additional layer-stackup and net attribute information, enabling more automated checks on the fabricator's side. Most shops accept either format, but it's worth confirming before export.

Do I need to generate Gerber files myself, or can my manufacturer do it from my design file?

You should generate them yourself whenever possible. Manufacturers may use different design or CAM software than you do, and letting someone else configure the export removes your control over units, layers, and format — details that directly affect whether the finished board matches your design.

How many Gerber files does a PCB need?

Each layer of the board — top and bottom copper, solder mask, silkscreen, paste layers, and board outline — needs its own Gerber file, plus a separate drill file for hole data. A simple two-layer board typically produces around seven to ten files; multilayer boards produce more, one set per inner copper layer.

Can I preview my Gerber files before sending them to a manufacturer?

Yes. Most design tools include a built-in Gerber viewer (KiCad's Gerber Viewer, EAGLE's CAM Processor preview), and free standalone viewers are also widely available. Reviewing every layer before submission is one of the most effective ways to catch outline, layer, or registration errors ahead of fabrication.

Share the Project