ElectronicsInfoline

PCB manufacturing

How PCBs are made: from your Gerber files to a tested board

By Bulan Sarkar, founder of ElectronicsInfoline (since 2000) · About a 12-minute read

What happens to your board between uploading the Gerber files and opening the parcel: each step in the factory, in order, and the numbers each one leaves on the board you get back.

The limits quoted are one large fab's published capabilities, JLCPCB's. Other fabs publish similar tables, so read your own fab's before you set your design rules. The rest is worked out from physical constants, so you can redo it.

A two-layer PCB goes through 13 steps. The fab checks your files, drills the holes, coats the hole walls with copper so they conduct, then images the outer layers and plates and etches the copper into your tracks. Solder mask, a surface finish and the legend go on next. Every board is electrically tested, then routed out of the panel.

Multilayer boards add two steps at the start: the inner layers are etched first, then pressed together with resin-filled glass cloth. The numbers to design for are the hole and track tolerances: a 0.6 mm hole comes back between 0.52 mm and 0.73 mm, and a track can be 20 % narrower than drawn (JLCPCB).

What the factory receives

You send a set of Gerber files, one per layer: top and bottom copper, solder mask, legend, solder paste if you order a stencil, and the board outline. The holes travel in a separate drill file, usually in Excellon format. Your design tool also exports them as a single zip, and that zip is what the fab's website reads.

The first person to see your board is a CAM engineer, or software standing in for one. CAM (computer-aided manufacturing) checks the files against the fab's limits. It also widens each track slightly to allow for the copper that etching will eat from its sides, and places many copies of your board on a production panel with tooling holes and test coupons round the edge. If something breaks a rule, this is where the order stops and you get an email.

Our take: open the zip in a Gerber viewer before you upload it. A missing outline or drill file is the most common reason an order stalls at CAM.

The route through the factory

Every board takes the same path. The two steps drawn dashed apply only to boards with inner layers.

1CAM2Inner layers3Press4Drill5PTH6Image7Plate8Etch9AOI10Mask11Finish12Silk13E-test14Route15FQCmultilayer boards onlyevery board
Figure 1. The factory route for a PCB. A two-layer board takes the 13 solid steps; a four-layer board adds the two dashed ones before drilling.

The order matters. The holes are drilled before the outer copper is patterned, because the hole walls have to be plated at the same time as the tracks. And the solder mask goes on after etching, because it has to cover the finished tracks and leave only the pads open.

Copper weight, and the board in section

Copper on a PCB is sold by weight: ounces of copper spread over one square foot. One ounce over a square foot, at copper's standard density of 8.89 g/cm³ (NBS Handbook 100), is a sheet 34.3 µm thick. Fabs round it to 0.035 mm. Half an ounce is 17.2 µm and two ounces 68.7 µm.

The board starts as a laminate: a sheet of FR-4 (woven glass cloth in epoxy) with foil bonded to both sides. A plated hole joins the two foils through the board, and the finished section looks like Figure 2.

Pad and finishMask on copper 15.2 µmMask on laminate30.5 µmFoil 34.3 µmFR-4 (glass + epoxy)Hole wall copper 18 µm1.6 mmSection through one plated hole, not to scale
Figure 2. A two-layer board cut through one plated hole. The fab's numbers: 18 µm average copper on the hole wall, 15.2 µm of mask over a track and 30.5 µm over bare laminate. Drawn for clarity, not to scale.

The weight you order is the finished weight on the outer layers. Ask for two ounces when a track has to carry several amps; the PCB design page works out how wide it has to be.

1 oz copper
34.3 µm
Hole wall copper (average)
18 µm
Plating at 2 A/dm²
0.44 µm/min
4-layer stack, added up
1.586 mm

Drilling, and copper on the hole walls

CNC drills make the holes, often through a stack of panels at once. JLCPCB drills from 0.15 mm to 6.3 mm on two-layer boards and holds each hole within ±0.075 mm of where you put it (JLCPCB). Larger holes are routed.

A freshly drilled hole wall is bare glass and epoxy, which does not conduct. The panel goes through a chemical line that cleans the walls and deposits a very thin layer of copper with no current at all (electroless copper). That layer is too thin to carry anything. Its job is to let the next step, electroplating, build real thickness on the walls.

A deep, narrow hole is harder to plate than a short, wide one, because the plating solution has to flow through it. The measure is the aspect ratio: board thickness over drill size.

0.15 mm drill10.7 : 10.20 mm drill8.0 : 10.30 mm drill5.3 : 10.80 mm drill2.0 : 1board thickness ÷ drill
Figure 3. Aspect ratio of a hole in a 1.6 mm board for four drill sizes. JLCPCB's smallest drill is 0.15 mm; it prefers 0.2 mm for vias.

The smallest hole, 0.15 mm, is 10.7 times deeper than it is wide in a 1.6 mm board. At 0.2 mm that falls to 8 : 1, and at 0.3 mm to 5.3 : 1. JLCPCB charges more for the smallest holes (JLCPCB); they are the hardest to plate.

How long does the plating take? Faraday's law gives the copper deposited per unit of charge. Divide by copper's density and you get thickness against time. At a current density of 2 A/dm², our example of a moderate setting, and with every coulomb going into copper, the wall grows 0.445 µm a minute. The 18 µm average JLCPCB quotes (JLCPCB) takes 40 minutes.

0102030400306090minutes in the plating tankµm of copperdashed: 18 µm average1 A/dm²2 A/dm²3 A/dm²1 A/dm²: 0.22 µm/min2 A/dm²: 0.44 µm/min3 A/dm²: 0.67 µm/min
Figure 4. Copper thickness against time in the plating tank at 1, 2 and 3 A/dm², at 100 % efficiency. The dots mark 18 µm: 81, 40 and 27 minutes.

Real lines lose some of the current to side reactions, and a hole wall plates more slowly than the panel face, so the times are a lower bound. The sum still shows why a factory cannot rush this step: the copper grows at well under a micrometre a minute.

Imaging, plating and etching the outer layers

Your tracks are made photographically. A light-sensitive film (photoresist) is laminated over the copper and exposed to UV through your artwork, either through a film or with a laser that draws it directly. The developer washes away the unexposed resist, leaving bare copper only where your tracks and pads go.

On most two-layer lines that bare copper is then plated up, along with the hole walls, and covered with a thin layer of tin. The resist is stripped, an etchant dissolves the copper the tin does not protect, and the tin is stripped in turn. What is left is your copper pattern.

1Resist laminated2UV exposure3Developed4Copper + tin plated5Etched, stripped
Figure 5. One track and the gaps either side through the outer-layer steps. The etchant also eats sideways under the edge, so the finished track is narrower at the top than at the base.

Etching is the step that sets your track widths, and it is not exact. The etchant works sideways as well as down, which is why CAM widens every track before imaging. JLCPCB quotes a track width tolerance of ±20 % (JLCPCB). A 0.15 mm track can come back anywhere from 0.12 mm to 0.18 mm. Its resistance moves the other way, from -17 % to +25 %.

Before the mask goes on, an automated optical inspection (AOI) machine compares each panel with the CAM data and flags nicks, shorts and missing copper.

Annular ring: why pads are bigger than holes

The ring of copper left round a hole is the annular ring: half the pad diameter minus half the hole. The drill can land up to ±0.075 mm off (JLCPCB), so the ring on one side can be that much thinner than you drew it.

Take a component hole of 0.8 mm (our example). In a 1.2 mm pad the ring is 0.20 mm, and the thin side can drop to 0.125 mm. In a 1.3 mm pad it is 0.25 mm, which is JLCPCB's recommended ring for two-layer, one-ounce boards (JLCPCB), and the thin side keeps 0.175 mm. The absolute minimum JLCPCB lists is 0.18 mm.

1.2 mm padring 0.20 mmthin side 0.125 mm1.3 mm padring 0.25 mmthin side 0.175 mm0.25 mm viaring 0.05 mmthin side none leftdashed: hole where it was drawn · solid: hole moved by the position tolerance
Figure 6. Three pads, each with its hole moved 0.075 mm to one side. The smallest via ring can be broken; a component pad cannot be allowed to.

The smallest via JLCPCB lists, a 0.15 mm hole in a 0.25 mm pad, has a ring of only 0.05 mm. Move the hole 0.075 mm and it reaches the edge of the pad. That is why the same table asks for the pad to be 0.1 mm larger than the hole and prefers 0.15 mm (JLCPCB). A via only has to join two layers; a component pad also has to hold a solder joint, so give pads the full ring.

Four layers: inner layers and the press

A four-layer board starts from a thin core with copper on both sides. The two inner layers are imaged and etched first, inspected, and given a rough oxide surface so resin will grip them. Then the stack is laid up: a sheet of copper foil, prepreg (glass cloth soaked in half-cured epoxy), the etched core, more prepreg and a second foil. Heat and pressure in a vacuum press melt the prepreg and cure it, and the stack becomes one solid board. From there it follows the two-layer route from drilling onwards.

Top copper (L1) 0.0350 mmPrepreg 7628 0.210 mmInner copper (L2) 0.0152 mmCore 1.065 mmInner copper (L3) 0.0152 mmPrepreg 7628 0.210 mmBottom copper (L4) 0.0350 mmTotal 1.586 mm (ordered as 1.6 mm)
Figure 7. JLCPCB's standard 1.6 mm four-layer stack (JLC04161H-7628). The layers add up to 1.586 mm, inside the ±10 % thickness tolerance. Copper is drawn thicker than scale.

From that stack (JLCPCB): the prepreg between the outer and inner copper is 0.210 mm, and its dielectric constant is 4.4 (the core's is 4.6). Those two numbers set the impedance of an outer-layer track; the microstrip section of the PCB design page uses the same kind of values. Copper is only 6.3 % of the board's thickness. The inner layers are listed at 0.0152 mm, a little under the 17.2 µm that half an ounce works out to.

Solder mask, finish, legend, test and routing

Solder mask. The green coat is a liquid photo-imageable (LPI) ink. It is coated over the whole panel, exposed and developed like the photoresist so that the pads open up, then cured. JLCPCB specifies at least 10 µm of mask (JLCPCB). The mask stops solder bridging between pads and protects the copper.

Surface finish. Bare copper tarnishes and solders badly, so the exposed pads get a finish. HASL dips the board in molten solder and levels it with hot air: cheap, robust, but the pads come out slightly domed. ENIG plates nickel and then a thin layer of gold: flat pads, better for fine-pitch parts. OSP is a thin organic coating that keeps the copper fresh until assembly. JLCPCB requires ENIG for its smallest BGA pads, and for tracks left without mask, because HASL could short them (JLCPCB).

Legend. The white silkscreen text is printed last, by screen or inkjet. JLCPCB asks for lines at least 0.15 mm wide; thinner characters do not read (JLCPCB).

Electrical test. Each board is checked for opens and shorts against the netlist taken from your files. Small orders go on a flying-probe tester, whose probes move from pad to pad; large runs use a fixed bed of pins made for that board.

Routing. Finally a router cuts each board out of the panel, or a V-score leaves it in a breakable strip. JLCPCB holds a routed edge to ±0.2 mm, or ±0.1 mm at extra cost, and a V-scored edge to ±0.4 mm (JLCPCB).

Our take: choose HASL for through-hole and ordinary SMD boards, and ENIG once there are fine-pitch ICs or the pads have to be flat.

What comes back: the tolerances to design for

Every dimension on the finished board has a band round the one you drew. Three matter most.

Hole0.520.730.60 mm+0.13 / −0.08 mmTrack0.120.180.15 mm±20 %Thickness1.441.761.60 mm±10 %
Figure 8. What you draw (red) and the range the fab can send back (blue): a 0.6 mm hole, a 0.15 mm track and a 1.6 mm board, to JLCPCB's published tolerances.

The hole band is lopsided, +0.13 and −0.08 mm (JLCPCB), so size a hole for the smallest it can be. A component lead must still pass through a hole 0.08 mm undersize. A board edge connector or a card that slides into a slot needs the thickness band: a 1.6 mm board can arrive anywhere from 1.44 mm to 1.76 mm.

What we'd do: set the design rules in your layout tool to the fab's recommended values, not its minimums. Use 0.3 mm vias in 0.6 mm pads wherever space allows. Give component pads at least a 0.25 mm ring, and size every hole for the lead plus the 0.08 mm the fab may take off. Such boards plate easily and leave margin for the tolerances above.

Tips and checks

  • Give the fab finished hole sizes, not drill sizes. The fab picks a larger drill to leave room for the plating.
  • Keep the board outline on its own layer as one closed line. An open outline is a CAM question and a day's delay.
  • A via in a 0.3 mm hole in a 1.6 mm board is 5.3 : 1. Below 0.2 mm you pay extra and gain little on a hobby board.
  • Leave tracks that carry current wider than the minimum: with the ±20 % tolerance, a track at the limit can be 20 % narrower still.
  • When the boards arrive, test a few with a meter on continuity before you solder anything. It takes a minute and catches a damaged board before it carries parts.
  • Order the parts while the boards are made. Our guide to buying components in India lists where.

Questions people ask

How thick is 1 oz copper on a PCB?

34.3 µm, from one ounce spread over a square foot at 8.89 g/cm³. Fabs round it to 35 µm. Two ounces is 68.7 µm.

Why are the holes plated?

So they conduct. The copper on the hole wall joins the top and bottom layers. Without it a two-layer board would need a wire through every hole, which is how some old hobby boards were made.

What is the difference between HASL and ENIG?

HASL coats the pads with solder levelled by hot air; it is cheap but slightly domed. ENIG is nickel under a thin gold layer; the pads are flat, which fine-pitch parts and BGAs need.

Why does a four-layer board cost more than a two-layer one?

It goes through two extra steps before drilling: the inner layers are imaged, etched and inspected, then pressed with prepreg. Drilling must also find the inner layers, so the registration is tighter.

Does the fab test every board?

Check the order page. Where it is offered, the electrical test looks for opens and shorts. The test proves the copper matches your files, not that your design works.

Lessons behind the numbers

Sources and assumptions

Read on 12 October 2026. Our own choices, not taken from any source: the 2 A/dm² plating current density and 100 % current efficiency (real lines plate more slowly, and hole walls more slowly than the surface), the 0.8 mm hole with 1.2 mm and 1.3 mm pads, the 0.6 mm hole and the 0.15 mm track. Fab limits are JLCPCB's; other fabs differ, so check yours. No prices or lead times: they change too often for this page.