AOI vs X-Ray: When Each Inspection Method Fits Best

AOI checks surface-level defects while X-ray detects hidden solder joints. Use AOI for speed and cost efficiency, X-ray for BGA and complex assemblies, or both for full coverage in quality control.
- AOI is faster and cheaper for visible defects like missing components and solder bridges.
- X-ray reveals internal solder joints that optical cameras cannot see, especially in BGAs.
- Most production lines use both methods for layered quality control.
- Match your inspection method to the component type and defect risk.
Why one method does not replace the other
AOI and X-ray inspection answer different questions about a board. AOI uses cameras and illumination to check what is visible on the surface. X-ray penetrates the board to examine solder joints buried under components. A board can pass AOI with a missing component and still fail X-ray with a voided BGA joint.
This distinction matters when you choose a quality control strategy. Many buyers assume one inspection method covers all defects. It does not. The right method depends on the component footprint, the defect you are trying to catch, and the stage in the assembly line.
Consider a standard control board. It may contain a mix of 0603 resistors, a microcontroller in a QFN package, and a connector on the edge. AOI will see the resistors, the microcontroller body, and the connector pins. It will check for missing parts and solder bridges. However, if the microcontroller has a cracked internal solder joint, AOI will mark the board as good. X-ray is required to expose that hidden defect. Understanding this split prevents over-reliance on a single technology.
What AOI actually checks
Automated optical inspection works with high-resolution cameras, structured light, and sometimes stereo vision. It compares the real board against the design file. The system flags missing parts, shifted components, rotated resistors, solder bridges, excess solder, and insufficient solder.
AOI handles SMT assembly well because most components sit on the surface. It runs fast. A typical line can inspect hundreds of boards per hour. The software triages findings into pass, fail, or review. Operators then verify flagged images.
The main limitation is the surface. AOI cannot see a solder ball under a QFN package. It cannot detect a void inside a BGA joint. If the defect is hidden, the camera does not care.
To understand what AOI really sees, look at a standard 0805 capacitor. The camera can verify the component is present and centered. It can measure the fillet height of the solder joint on the left and right sides. If the fillet on the right side is too small, the system flags it. If a drop of solder connects the top and bottom pads, the system flags a bridge. These are physical, visible changes that the camera captures instantly.
AOI also checks for component rotation. A resistor that is placed upside down may not look different to the human eye if it is symmetric, but the camera compares the component image to the reference. If the part is rotated 90 degrees, the software detects the mismatch. This is a common error in high-speed pick and place machines. AOI catches it before the board moves to reflow.
The lighting setup is critical here. Structured light projects a pattern onto the board. The camera captures the distortion of that pattern. This allows the system to measure depth and volume. Without structured light, the system might miss a slight depression in a solder joint. With it, the system can detect a small void that is visible as a dip in the surface profile.
What X-ray inspection actually checks
X-ray inspection uses high-energy radiation that passes through the board and creates an image of the internal structure. Software converts that image into a 2D or 3D view. Technicians look for solder balls, fillets, voids, cracks, and misaligned internal connections.
This method shines with BGAs, QFNs, and other components where the solder joint is not visible. A BGA with 250 pins may have one bad joint that AOI will never flag. X-ray can show a missing solder ball or a collapsed joint at pin 142.
The cost and speed are different. X-ray is slower than AOI. It is also more expensive per board. Many facilities reserve it for high-value boards or for 100 percent sampling of complex packages.
When you look at an X-ray image of a BGA, you are looking through the substrate. The solder balls appear as dense, circular shapes. A good joint has a smooth, uniform profile. A bad joint looks different. A void appears as a dark spot inside the solder ball. A crack appears as a thin line splitting the joint. A missing ball is simply an empty space where a ball should be.
X-ray also detects internal cracks in the solder itself. This is a failure mode that AOI cannot see. A solder joint can look perfect from the top but have a crack running through the middle. This crack might form during thermal cycling in the field. The board works in the factory, but it fails after months in the customer’s environment. X-ray catches these cracks before the board leaves the factory.
The process also varies by machine type. Through-transmission X-ray views the board from the top and bottom. It is fast and good for general inspection. C-axis X-ray moves the board in the vertical axis. This allows the system to build a 3D model of the internal structure. 3D X-ray is more expensive but provides much more detail. It can measure the volume of a solder joint and detect small voids that 2D X-ray might miss.
AOI vs X-ray comparison
| Option | Best for | Limitations |
|---|---|---|
| AOI | Surface defects, high-speed lines, low-cost boards | Cannot see internal solder joints or hidden defects |
| X-ray | BGAs, QFNs, hidden defects, high-value boards | Slower, higher cost, needs trained operators |
| AOI plus X-ray | Mixed assemblies, critical products, full traceability | Higher cost, longer cycle time |
| Manual inspection | Low-volume work, unusual defects | Subjective, slow, inconsistent |
| X-ray plus AOI plus manual | Critical aerospace and medical boards | Highest cost and cycle time |
When to choose AOI first
Pick AOI when your board is mostly surface-mount devices with visible solder pads. A consumer board with 0603 resistors and a few QFP chips is a good example. The solder joints are exposed. AOI catches the defects that matter most in volume production.
AOI also fits when you need to feed data to the next process. A pass or fail signal from AOI can stop the line before a defective board moves to rework. This keeps rework costs low. The system also creates a record of every board. That record helps you trace a defect back to a specific feeder or reflow oven.
If your budget is tight, AOI is the standard starting point. It gives you the most defects caught per dollar.
Consider a board that carries only SMD resistors, capacitors, and a single QFP memory chip. The solder joints are all on the surface. AOI can inspect the entire board in under a minute. It will catch a missing resistor or a shifted capacitor. It will not catch a bad joint inside the QFP, but in this case, the QFP has fewer pins and lower risk. The cost of adding X-ray for a few pins may not justify the expense.
AOI is also the best choice for high-volume production. If you are building ten thousand boards a day, you cannot send each one through a slow X-ray machine. AOI can run in parallel with the assembly line. It can inspect every board without adding significant cycle time. This is the standard approach for consumer electronics, automotive electronics, and industrial controls.
When to choose X-ray
Choose X-ray when the board carries BGAs, QFNs, or other packages with hidden solder. A processor board, a power module, or a dense RF board is a good example. The solder joints are under the package. AOI will not see them.
X-ray also fits when a single defect can cause a field failure. A void in a BGA joint might not show up in initial testing but can crack after thermal cycling. X-ray catches that before the board ships.
If your board has a mix of surface and hidden joints, X-ray may not be worth 100 percent inspection. A common approach is to inspect 100 percent of BGA areas and sample the rest. That balances cost and risk.
Look at a power supply board. It often contains a BGA for the controller and a QFN for the power stage. These components carry high current and high voltage. A single bad joint can cause a short circuit or a fire. X-ray is the only way to verify the integrity of these joints. The cost of X-ray is small compared to the cost of a single field failure.
X-ray is also useful for detecting warpage. If the board warps during reflow, the solder joints may be under stress. X-ray can show the shape of the solder fillets. If the fillets are too flat or too curved, the joint is not good. This information helps you adjust the reflow profile.
When to use both methods
Most professional lines use both. AOI runs every board. It catches visible defects fast. X-ray runs a defined subset. It catches hidden defects. This layered approach gives you strong quality control without paying X-ray costs for every board.
The subset can be based on risk. High-value boards get full X-ray. Lower-risk boards get sampled X-ray. The process also depends on the component mix. A board with ten BGAs and two hundred resistors needs a different plan than a board with five BGAs and two thousand resistors.
Using both methods also creates a better data story. If AOI flags a solder bridge and X-ray flags a void, you can track each defect type separately. That data helps you improve the process. You can adjust the reflow profile, the stencil, or the component placement.
Consider a board that has a BGA and a large amount of SMD passives. AOI inspects every board. It catches missing resistors and solder bridges. X-ray inspects only the BGA area. It catches voids and missing balls. This approach is faster than X-ray inspecting the whole board. It is also cheaper than AOI alone. The quality is higher because you catch both visible and hidden defects.
The integration of the two systems is key. If AOI finds a defect, the board should be flagged. If X-ray finds a defect, the board should be flagged. The data should be combined in a single report. This gives you a complete picture of the board’s quality.
How to read the results and make decisions
AOI reports list each defect with a location, a severity level, and an image. An operator reviews the image. If the defect is real, the board goes to rework. If it is a false positive, the operator marks it and the board moves on.
X-ray reports are different. A technician views the internal image and marks joints that do not meet the acceptance criteria. The report usually lists the package, the pin number, and the defect type. A missing solder ball, a void, or a cracked joint is a clear fail. A small void may be acceptable depending on the standard.
Do not treat the two reports the same. AOI findings are usually objective. X-ray findings require judgment. A trained operator or engineer should review X-ray results, especially for borderline cases.
When you receive an AOI report, look at the defect count first. If the count is high, there is a process problem. If the count is low, the process is stable. Look at the type of defect. If you see many missing components, check the feeder. If you see many solder bridges, check the stencil. The report is a diagnostic tool.
When you receive an X-ray report, look at the void size. A void smaller than a certain percentage of the solder ball volume is usually acceptable. A void larger than that is a fail. Look at the fillet shape. It should be concave. If it is convex, the joint is not good. Look for cracks. A crack is always a fail.
The decision to rework depends on the defect. A missing component is easy to rework. A bad BGA joint is hard to rework. If the BGA joint is bad, you may have to replace the whole board. This is why X-ray is best done before the board is packaged.
Practical mistakes to avoid
One mistake is buying X-ray and assuming AOI is no longer needed. X-ray is slower and more expensive. It does not catch missing components or solder bridges on the surface. Keep AOI for visible defects.
Another mistake is using AOI alone on a board with many BGAs. The line will ship boards with hidden defects. Those defects will show up in the field. The cost of field failures is higher than the cost of X-ray.
A third mistake is not defining the inspection plan. Do not decide after a problem occurs. Write the plan. Say which boards get AOI, which boards get X-ray, and what the acceptance criteria are. That plan becomes part of the quality control process.
A fourth mistake is not calibrating the X-ray machine. X-ray machines need regular calibration. If the machine is out of calibration, the images will be wrong. You may miss defects or flag good joints as bad. Follow the manufacturer’s calibration schedule.
A fifth mistake is not training the operators. X-ray inspection requires skill. A new operator may miss a small void or flag a good joint as bad. Train your operators on how to read X-ray images. Give them access to training materials and practice boards.
Final selection
AOI vs X-ray is not a choice between good and bad. It is a choice between visible and hidden defects. AOI is the workhorse for surface assembly. X-ray is the tool for hidden joints. Most boards need both.
Start with the component mix. If the board is mostly surface devices, AOI first. If the board has BGAs or QFNs, add X-ray. If the product is critical, use both and document the results.
The final decision should be based on your specific board design and your risk tolerance. A low-cost consumer board may only need AOI. A high-value medical board may need AOI and X-ray and manual inspection. The best choice is the one that gives you the quality you need at the cost you can afford.
Frequently asked questions
Can AOI replace X-ray on a BGA board?
No. AOI cannot see solder joints under the package. BGA boards need X-ray or another internal inspection method.
Is X-ray faster than AOI?
No. AOI is faster per board. X-ray is slower and more expensive, so it is usually reserved for high-risk packages.
How do I decide which boards get X-ray?
Use the component mix and the risk of failure. BGAs and QFNs need X-ray. High-value boards often get full X-ray. Lower-risk boards may get sampled X-ray.
Can I use manual inspection instead of AOI?
Manual inspection works for low-volume work but is slower and less consistent. AOI is better for volume production and traceability.
What if AOI and X-ray find different defects?
That is normal. AOI finds surface defects. X-ray finds hidden defects. Review both reports and rework the board for each defect type.


