1099-B OCR can read every lot on a brokerage statement, from a long PDF or a clean scan, when it treats the statement as a table instead of a form. A good pass captures each lot's dates, proceeds and basis, keeps subtotal rows out, and proves the result by checking lot totals against the summary page.
Why 1099-B OCR is harder than reading single-box forms
1099-B OCR is harder than reading a W-2 or a 1099-NEC because a brokerage statement is mostly a table. OCR (optical character recognition) turns a page image into text. On a simple form each value sits in a fixed box. On a 1099-B, lots run across pages, and the meaning of a number depends on its row and column.
A W-2 has one wages box, one withholding box and a few more, each in a known place. A 1099-B on a consolidated statement can run to dozens of pages of transaction detail. The 2026 Instructions for Form 1099-B tell brokers to report short-term covered, long-term covered and noncovered sales on separate forms, so a statement repeats the same table layout under several headings.
Plain OCR reads text line by line. That works for a paragraph and breaks on a table in several ways:
- Tables that span pages. A block of short-term lots starts on page 6 and ends on page 11. The column headers may repeat on each page or appear only once. Text OCR has no idea that the row at the top of page 7 belongs to the table on page 6.
- Continued rows. A lot with a long security description can wrap onto two lines, with the numbers on the first line and the rest of the name on the second. Read naively, that becomes two half-lots.
- Subtotal rows. Each block ends with a total line, and some statements add a subtotal per security. A subtotal looks like a lot with a large amount and no date.
- Section headings that carry meaning. The term and covered status often live in the block heading, not on each row. Lose the heading and every lot under it loses its term.
- Blanks that matter. The IRS instructions let a broker leave dates, basis and term blank for a noncovered security. A blank cell is data, not a reading failure.
General OCR concepts, such as how a page image becomes characters, are covered in the tax form OCR category. This post stays on what is specific to brokerage statements.
What a 1099-B OCR pass should capture for each lot
A 1099-B OCR pass should capture, for each lot, the fields the IRS instructions define plus the context the statement prints around them. A lot is complete when it has its description, dates, proceeds, basis, wash sale amount, gain or loss, term and covered status, each tied to the right row.
The 2026 IRS instructions name the boxes that make up a lot:
| Box | Label in the IRS instructions | What a lot record needs |
|---|---|---|
| 1a | Description of Property | Security name and quantity |
| 1b | Date Acquired | A date, or blank for shares bought on several dates and for some noncovered lots |
| 1c | Date Sold or Disposed | A date |
| 1d | Proceeds | An amount, net of commissions |
| 1e | Cost or Other Basis | An amount, or blank |
| 1f | Accrued Market Discount | An amount, usually blank |
| 1g | Wash Sale Loss Disallowed | An amount, usually blank |
| 2 | Type of Gain or Loss | Short term, long term, ordinary, or blank |
| 5 | Check if a Noncovered Security | Yes or no |
| 12 | Check if Basis Reported to IRS | Yes or no |
Some statements also print a gain or loss column and a CUSIP number. Gain or loss is useful as a check, because it should equal proceeds minus basis plus any wash sale amount. The CUSIP helps match lots of the same security.
Context matters as much as the cells. If the term comes from a block heading, the OCR pass has to carry that heading down to every lot under it. If box 5 is shown once per block instead of per row, the same applies. A lot record without its term or covered status cannot be routed onto Form 8949, as the 2025 Instructions for Form 8949 assign boxes A through F by exactly those two facts.
Blanks need their own value. A missing basis on a noncovered lot should come out as empty, not as zero, because zero is a claim that the shares cost nothing. The post on a 1099-B with no cost basis covers why that difference matters.
How does 1099-B OCR keep subtotal rows from becoming lots?
1099-B OCR keeps subtotal rows out by recognizing what a lot row looks like and testing the result against the statement's own totals. A lot has a sale date and usually a quantity; a subtotal row usually has neither and sits at the end of a block. If extracted lots add up to the printed total, no subtotal slipped in.
Row shape is the first filter. Total lines often carry words such as "Total" or a security name with no dates, and they sit directly under a run of rows for the same security or block. A row with proceeds but no date sold is suspect.
Totals checks are the proof. Each block on the transaction detail has a matching line on the summary page. Add the extracted lots in a block, and the sums of proceeds, basis and wash sale amounts should equal the summary figures. A subtotal counted as a lot pushes the sum above the summary by exactly the subtotal amount, which makes it easy to find.
A checklist of per-lot checks
Run these checks on any 1099-B extraction, whether it came from software or from your own typing:
- Lot count. Count the lots per block. If the statement prints a count, they should match; if not, compare with the number of rows on the pages.
- Lot totals equal summary totals. For each block, the sum of proceeds, basis and wash sale amounts equals the summary line for that block.
- Date acquired not after date sold. For every lot with both dates, date acquired is on or before date sold.
- Term consistent with holding period. A lot held more than one year should be long term, and one held one year or less short term. The post on 1099-B short term vs long term has a table of boundary dates.
- Gain or loss recomputes. Proceeds minus basis plus wash sale disallowed equals the printed gain or loss, where the statement prints one.
- Blanks only where allowed. Blank basis and term appear only on noncovered lots. A blank date acquired appears only on noncovered lots or on lines that combine shares bought on several dates.
The reconciliation section of the summary vs transaction detail post walks through check 2 in more detail.
Can 1099-B OCR read scanned or photographed statements?
1099-B OCR can read scanned and photographed statements when the pages are legible, but they need more care than a broker's PDF. A crooked page shifts rows into the wrong columns, and a faint or blurred digit can change an amount. Straightening the page first and flagging uncertain digits for a person to check keeps the result trustworthy.
A broker's downloaded PDF often holds real text that can be read directly. A scan or a phone photo holds only an image, so every character has to be recognized. That is where tilt, shadows and low resolution cause trouble.
Tilt is the biggest problem for tables. A few degrees of rotation across a wide page can move a number from one row to the next by the time it reaches the right edge. Proceeds from one lot then sit beside the basis of another, and the gain column stops adding up. Straightening the page before reading prevents most of it.
Uncertain digits are the second problem. A 3 that might be an 8, or a 1 that might be a 7, changes an amount without making it look wrong. The useful response is to mark the value as uncertain and ask a person, not to guess. The totals checks in the section above then confirm whether the confirmed digit was right, because a single misread digit breaks the block total.
Multi-page photos add a third problem: a missing or repeated page. The lot count check catches both.
1099-B OCR in Schema Tax: identify, extract, validate, review, export
Schema Tax handles a brokerage PDF in five steps: identify, extract, validate, review and export. It classifies each page by form type and tax year, reads every 1099-B lot into named fields, recomputes totals, flags uncertain values on an editable view of the form, and exports the result as JSON, CSV or Excel.
Identify. Each page is classified by form type and tax year, even when one PDF mixes several forms. On a consolidated statement that holds a 1099-DIV, a 1099-INT and a 1099-B, each page is classified as the form it belongs to.
Extract. Every box is read into a typed field with a fixed name. For a 1099-B that means every lot, with dates acquired and sold, proceeds, cost basis and wash sales. Each form has its own schema, so a 1099-B from one broker produces the same output as one from another.
Validate. Totals are recomputed, rates are checked, and TINs are tested against their patterns. Every value keeps its box number, its field name and the checks it passed.
Review. Anything uncertain is flagged on an editable view of the form, to fix in place. Crooked scans are straightened before reading, and boxes the model is unsure about are flagged for you to confirm instead of guessed.
Export. You download JSON, CSV or Excel, or pull the same typed JSON from an API billed per page. The 1099-B to Excel post and the 1099-B to CSV post cover the spreadsheet layouts.
Schema Tax does not prepare or file returns and does not give tax advice. It gets the lots off the statement and into a format you, a preparer or your software can use. The five steps from paper to checked data are laid out on the homepage.
When 1099-B OCR is not worth it: the broker already offers a file download
1099-B OCR is not worth running when the broker already gives you the same lots as a file. If the account site offers a CSV or spreadsheet download of realized gains, that file holds the data without any reading step. OCR earns its place on PDFs, scans and paper that come with no such file.
A download still needs checks. Compare its totals with the summary page of the official statement, because a gains report on an account site and the 1099-B can differ, for example when the download is pulled before a corrected statement is issued. The checklist above works on a download as well as on OCR output.
Several cases point back to OCR. The broker may offer only a PDF. An account may be closed, so the site is gone and only the statement remains. A client may hand a preparer paper copies. Or a folder may hold statements from several brokers, each with its own download layout, where one consistent schema across all of them saves the work of mapping each file by hand.
Old years are a common case. A statement from an account closed long ago may exist only as a printed copy, and its lots can still matter, for example when they hold the purchase dates and basis for shares sold later. Reading those pages is the job OCR was built for.
The choice is practical, not a matter of principle. Use the file when it exists and matches the statement. Use OCR when the statement is all you have.