Technical guide

How PCBA is actually tested: AOI, X-ray, ICT and functional test

"We test every board" is not a meaningful statement on its own. There are at least six different inspections a contract manufacturer can run, they catch different things, and none of them catches everything. Here is what each one actually does — and how to decide which ones your product needs.

  • Before placementSPI
  • After reflowAOI
  • Hidden jointsX-ray
  • Does it workElectrical test
The short answer: inspection is a ladder, not a single step. SPI checks the solder paste before placement, AOI checks what a camera can see after reflow, X-ray checks the joints hidden under a package, and electrical test checks whether the board works at all. Each rung catches a defect class the rung below it cannot see. Climbing further costs more per board, so the question is never "do you test" — it is how far up the ladder your product needs to go.
Operator loading a board into an automated optical inspection machine, with the inspection images shown on the screen
The camera sees less than you thinkAOI is the inspection people picture when they ask about testing, and it is the one with the largest blind spot: anything covered by the component body. Everything it cannot see has to be checked by X-ray or by electrical test.

The six inspections, and what each one is blind to

Read the third column before deciding how much inspection to buy — that is where the defect that reaches your customer comes from.

Inspection methods in the order they run down the line
MethodWhat it catchesWhat it cannot see
3D SPI
solder paste inspection
Paste volume, height and area after printing, before anything is placed. Catches a blocked stencil aperture or an underfilled pad.Anything that goes wrong after printing. It says nothing about whether the part lands in the right place.
AOI (pre-reflow)Missing parts, wrong parts, reversed polarity, gross misalignment — before the joint is formed, so the fix is cheap.Anything that has already been placed and shifted later. Nothing about the joint itself.
AOI (post-reflow)Solder bridges, insufficient solder, missing parts, tombstoning, wrong orientation, damaged bodies.Any joint under a package — BGA, QFN, LGA, chip-scale. Also grades by appearance, so it cannot tell a good joint from one that will fatigue.
3D X-rayBGA ball voids, opens and bridging under arrays, QFN thermal pad coverage, through-hole barrel fill, head-in-pillow.Whether a part is electrically correct. A board with perfect joints can still be functionally wrong.
ICT / flying probeIndividual component presence and value, opens and shorts between nets, orientation of diodes and polarised parts.Anything without a test point, and anything that only fails once the board is powered and running firmware.
Functional test
+ burn-in where required
Whether the assembly does its job: powers up, runs firmware, meets its measurements, survives thermal cycling.Why it failed. Functional test tells you a board is bad; finding the cause is a separate, manual step.

Cost rises as you go down this table, and the rise is not linear: SPI and AOI scale roughly with volume, while ICT and functional test bring their own one-time cost in fixturing, programming and test development. That is why the answer to "how much testing" depends on quantity as much as on the product — see where the cost goes in small-batch PCBA.

How to decide how far up the ladder to go

Three questions settle it for most products.

1. What does a defect cost you after it ships?

This is the only question that really matters. A board in a bench instrument that gets reworked in-house is a different proposition from a board in a device that is implanted, or one that goes into a vehicle where a field failure triggers a recall. Inspection is insurance, and the premium should scale with what it covers.

2. How much of your board is hidden under packages?

A design with no BGA and no QFN gets most of its coverage from AOI. A design with one large BGA per board makes X-ray close to mandatory, because the joints under it are invisible to every optical method — and a BGA that looks perfect from above can have an open ball underneath. Fine-pitch BGAs make it more important, not less.

3. Does the product need to be proven working, or just proven built?

AOI and X-ray prove the board was made correctly. They say nothing about whether it works. If your product is safety-related, goes through regulatory approval, or is expensive to service in the field, you need functional test — and probably a record of it, per unit. If it is a development board or a low-risk accessory, a well-run AOI plus a power-on check may be enough.

First article inspection, and when it is required

FAI — first article inspection — is the full dimensional and visual verification of the first unit built, against the drawing and the standard, before the rest of the batch is released. It is not a sample check at the end; it is a gate at the start, and it is the point at which a process that is going to be wrong is stopped while only one board is scrap.

In automotive work FAI is part of the PPAP submission and is not optional. In medical work it is part of process validation. For most other products it is a judgement call — but it is the cheapest possible way to catch a stencil error, a wrong footprint or a mis-loaded feeder, and we would rather run it than discover the same fault in 500 boards.

Relevant standards: bare boards are inspected to IPC-A-600, assembled boards to IPC-A-610. These are different documents covering different stages, and they are commonly confused — see what IPC-A-610 Class III actually requires.

What testing does not guarantee

No inspection programme reduces escape rate to zero. AOI is typically set to a sensitivity that trades false calls against missed defects, and every setting that catches one more real defect also rejects more good boards. X-ray sample plans deliberately inspect a fraction of joints. Electrical test only covers the nets it can reach. What a good programme does is push the escape rate low enough that it is cheaper than the failures it prevents — and leave a record of what was checked, on which board.

Two things follow from that, and they are worth asking any supplier directly. First: which inspections run on every board, and which are sampled — the answer is usually different from what the marketing implies. Second: what inspection records are kept and for how long, because in automotive and medical work the record is part of the deliverable, not a by-product.

Common questions

Does AOI catch every defect?

No. AOI is an optical check: it compares what the camera sees against a programmed reference. It cannot see under a BGA, a QFN or any package whose joints are hidden beneath the body. It also produces false calls on joints that are electrically fine but look unusual, and it grades a joint as good or bad — it cannot tell a sound joint from one that will fail in six months. AOI replaces visual inspection; it does not replace electrical test.

What does X-ray add that AOI cannot?

X-ray sees through the package, so it inspects the joints AOI is blind to: BGA balls, QFN thermal pads and through-hole barrels. 3D X-ray (CT) additionally shows the shape of each joint rather than a flat overlapping shadow, which is what lets it distinguish an open joint from a good one under a dense array. It is slower and more expensive per board than AOI, so it is usually applied to the parts that need it rather than to the whole assembly.

Do I need an ICT fixture?

Only above a few thousand units of a stable design. ICT uses a bespoke bed-of-nails fixture, which is a one-time cost that has to be spread across the volume. Below that, flying-probe test or functional test usually costs less for the same coverage. The other precondition is test points: if your layout does not bring the nets out to accessible pads, a fixture cannot reach them.

Related guides

What IPC-A-610 Class III actually requires

The difference between Class I, II and III, and which products genuinely need the strictest one.

Which quality certification do you need?

ISO 9001, IATF 16949 and ISO 13485 compared — and a ten-minute check to run on any certificate.

Why 100 boards cost so much per unit

Test fixtures are one of the one-time costs that dominate a small-batch quote. Here is the full list.

All technical guides →

Tell us what a field failure costs you

That number decides how much inspection is worth paying for. Send us the board and we will tell you which rungs of the ladder are worth climbing — including the ones you can skip.

Get a quote