Skip to content
Simurq Labs

Learn

What goes in a PCB BOM, and in what format?

By Semih Özbir, Electrical and Electronics Engineer

Published · Last reviewed

In this guide · 7

A PCB bill of materials needs one line for each distinct part, with its designators, quantity, maker and manufacturer part number. A machine can read a BOM with less, but every missing column becomes a guess. Here are the columns, the traps, and a template to download in the format PCB Agent writes.

The columns every BOM needs, and the ones most are missing

Our BOM reader asks for two things before it reads a single line: a column that counts the parts, designators or a quantity, and a column that names them, a part number, a description or a value. Without both, there is nothing to read.

An order needs more. Each line should carry:

  • Designators: where the parts go on the board, such as R1, R2.
  • Quantity: how many go on one board.
  • Manufacturer and part number: the one part to buy.
  • Value and footprint: what the part is, and the land it sits on.
  • Do not populate: a mark for a part that is drawn but not fitted.

We test our reader against seven sample BOMs: three real exports and four written to stand for common tools. Four of them had no column a reader could use for the footprint, and four none for do-not-populate. Two had no part number, and no maker either. A BOM without part numbers can still be read, but it cannot be ordered.

A BOM header row over one line of the template: R1, R2, quantity 2, YAGEO RC0603FR-0710KL, 10k, a KiCad 0603 resistor footprint. Footprint and do not populate are marked: each was missing in 4 of 7 sample BOMs, maker and part number in 2 of 7.

The columns a PCB BOM needs, with a line of Simurq's template under them, and how many of seven sample BOMs had no column for each.

One line for each distinct part

A line is one part, however many times the board uses it. List every designator the part fills on that line, and give the quantity for one board. Our reader takes the quantity from its cell, or counts the designators when there is none. A buy quantity with spares in it is not the quantity per board: one of our real samples had such a column, so its quantities came from the designators.

"Distinct" is the word to watch. KiCad's own BOM export groups parts onto one line when the fields you choose to group by are the same, and its built-in presets group by value, or by value and footprint. Our template shows why that is not always enough. Its C1 and C3 are 4.7 µF in an 0805 case rated 16 V. Its C2 is 4.7 µF in an 0805 case rated 10 V. Grouped by value and footprint, the three become one line, and the voltage is gone. Group by the part number, or by every rating that tells two parts apart.

Part numbers that cannot be ordered

A cell headed "MPN" does not always hold one orderable part number. These turned up in the BOMs we read:

  • A packing code inside the number. 2N7002,215 is one part number, comma and all, and FRC0603J3R9 TS ends in a packing code after a space. A reader that splits at the comma orders the wrong thing.
  • Several numbers in one cell. A list of alternates is useful, but only if its separators are clear: a semicolon, a line break, or the word "or".
  • Something else in the number's place: a colour such as RED, a value, a footprint, a distributor's own stock number, or a placeholder such as TBD.
  • A value that is a part number. One KiCad BOM named a regulator only by its value, AP2112K-3.3.
  • No number at all. A cost-level BOM lists what a board costs, not what to buy.

Our reader scores each candidate from 0 to 1, by rules rather than a lookup or a model's opinion. A word mixing letters and digits scores 0.95. A long all-digit catalogue number, or one with a short packing code, scores 0.75. Values, footprints, words without digits and phrases score low. A line is ready to price from 0.7. Below that it waits for a person, marked as having no part number, or as having one that is not a part number.

CSV or XLSX

Either works, if the reader is careful. KiCad itself exports its BOM as text: comma-separated, tab-separated or semicolon-separated. A spreadsheet saved as XLSX keeps each cell as typed. A CSV depends on the program and the language that wrote it. A Turkish Excel, for one, writes semicolons and decimal commas, so a value reads 4,7k.

Our reader tells the two formats apart by their content, not by the file's name. It detects a CSV's encoding, UTF-8, UTF-16 or one of two Windows code pages, and its delimiter. Its samples include that Turkish CSV and an Excel "Unicode text" export in UTF-16 with tabs. If you can choose, send XLSX. If you send CSV, send UTF-8.

The template, to download

The template is in the format PCB Agent writes: the BOM workbook as it comes in a delivery's package, without our logo. Its lines are an example, not one of our boards: 10 lines for 13 parts, in nine columns: Line, Designators, Quantity, Value, Footprint, Manufacturer, Part number, Alternates and Description. It has no do-not-populate column, since every part on a PCB Agent board is fitted: add one if your board has parts drawn but not fitted. Five lines name a maker and a part number. One of them is a resistor, and one carries two alternates in a column of their own. The other five are capacitors and resistors given by their ratings alone, such as "Resistor 1k, 1 %, 0.1 W", a value, a tolerance and a power rating.

Our reader parses both files to the same BOM, line for line. A test also holds the workbook to what a delivery writes today, so the template cannot drift from the product. Replace the example's lines with yours and keep the header.

What a tool does with it next

Our BOM Optimizer reads a BOM like this one in steps. An agent proposes which column holds what, and you confirm it once: the next BOM with the same headers skips that step. Code then cleans and scores every part number. Each line with an orderable one is priced at two distributors, with price breaks, stock, lifecycle and minimum order, and the purchase is planned for the boards you build.

On the template, the five part numbers go straight to pricing, the header's all-digit catalogue number among them. The five lines given by their ratings wait in the manual match list, because a rating is not a part to buy. Add a part number to each and the whole BOM prices. Or leave the ratings for an assembler that fits passives from its own stock.

Limits

Seven sample BOMs are not a survey: what ours lacked is a pattern, not a measure of every BOM. An assembler may ask for more than these columns, such as its own stock numbers. Where each part sits on the board, its side and its rotation, is the placement file's job, not the BOM's. How an AI PCB design agent works shows where the BOM comes from in a job.

Sources

Have a board in mind?

PCB Agent is not open to the public yet. Leave your email, and we'll write when early access starts.