Schema Tax

1098 OCR: Reading Mortgage Interest Forms Into Data

By Schema TaxPublished Updated

1098 OCR reads a mortgage interest statement from a PDF, scan or phone photo and turns each box into a named value: interest in Box 1, principal in Box 2, the origination date in Box 3, points in Box 6 and the property address. Dates, blank boxes and lender layouts are the hard parts, so every result needs checking.

What 1098 OCR captures from a mortgage form

1098 OCR captures the lender and borrower blocks and eleven numbered boxes from Form 1098, the mortgage interest statement a lender sends each year. OCR, short for optical character recognition, turns the printed characters into text. A full reader then pairs each value with its box and gives it a type: money, date, address, count or checkbox.

The IRS Instructions for Form 1098 define what each box holds, and that list is the reader's target. Box 1 is mortgage interest received from the borrower during the calendar year, not counting points. Box 2 is the outstanding mortgage principal as of January 1, or as of the origination or acquisition date for a loan that started during the year. Box 3 is the mortgage origination date with the original lender.

The middle boxes carry smaller amounts that are often blank. Box 4 is a refund of overpaid interest from a prior year. Box 5 is mortgage insurance premiums, which lenders must report only in a year when the premium deduction is in the law; Publication 936 (2025) says it expired for 2025, and a draft 2026 edition says it returns for 2026. Box 6 is points paid on the purchase of a principal residence, which the instructions say are reported for the calendar year of closing.

The bottom of the form describes the property. Box 7 is a checkbox for a property address that matches the borrower's mailing address. Box 8 holds the address or a description of the property, such as a parcel number, and the instructions say to fill it in when the address differs or Box 7 is not checked. Box 9 is the number of properties securing the loan, and the instructions allow it to be blank when only one property does. Box 10, labelled "Other", is free space for items such as real estate taxes or insurance paid from escrow. Box 11 is the mortgage acquisition date, filled only when the current lender acquired the loan during the year.

A reader that captures all of this produces one record per statement. The record below uses example values for a fictional borrower and lender. Every field has a fixed name and keeps its box number, and blank boxes stay in the record as null rather than disappearing.

{
  "form": "1098",
  "tax_year": 2026,
  "lender": {
    "name": "Example Home Loans NA",
    "tin": "XX-XXXXXXX"
  },
  "borrower": {
    "name": "Jordan Sample",
    "tin": "XXX-XX-1234"
  },
  "account_number": "EX-55012",
  "box_1_mortgage_interest": 11842.17,
  "box_2_outstanding_principal": 318450.00,
  "box_3_origination_date": "2021-06-14",
  "box_4_refund_of_overpaid_interest": null,
  "box_5_mortgage_insurance_premiums": 912.00,
  "box_6_points_paid": null,
  "box_7_address_same_as_borrower": true,
  "box_8_property_address": null,
  "box_9_number_of_properties": null,
  "box_10_other": "Real estate taxes paid 4,215.88",
  "box_11_acquisition_date": null
}

Two details in that record matter later. Box 10 stays a text field, because lenders write labels and amounts there in their own words. The borrower TIN is masked, which matches the instructions: filers may truncate the borrower's TIN on the statement they send, but the lender's own TIN may not be truncated on any form.

The record goes straight into a spreadsheet as one row. The post on laying out 1098 data in Excel, one column per box shows the column order and a total row for several lenders.

Substitute 1098 layouts and OCR

Substitute 1098 layouts are statements that lenders design themselves instead of printing the IRS form. They are harder for OCR because box positions move, labels get shortened, and the 1098 often shares a page with an escrow summary. A reader has to find each box by its label, not by where it sits.

A lender does not have to send the IRS-printed form. The IRS General Instructions for Certain Information Returns say a substitute is any statement other than Copy B of the official form. Statements for Form 1098 need not be copies of the paper form, although the form number and title must match the official one. The same instructions let a lender combine the statement with other reports or financial notices.

That permission is why a typical mortgage 1098 looks like a bank letter. The lender's logo sits at the top. The boxes may run in a single column or a two-column grid. The year-end escrow activity, payment history or a loan summary may fill the rest of the page. A reader built on one fixed template finds Box 1 where the IRS puts it and gets the wrong number on the next lender's statement.

Label-based reading avoids that. The reader looks for the printed label, such as "Mortgage interest received from payer(s)/borrower(s)", or a lender's shorter version such as "Mortgage Interest Paid", and takes the value next to it. Box numbers help too, since most substitutes keep them. The post on template OCR versus layout models explains why fixed zones break when an issuer moves a box.

Substitutes also add numbers that look like box values but are not. An escrow summary may list "Interest paid" for a single month, "Taxes disbursed" and "Escrow balance". Only the amount tied to Box 1 belongs in the interest field. A reader that grabs the first number after the word "interest" can return a monthly figure instead of the annual one.

Which 1098 boxes does OCR misread most?

The 1098 boxes OCR misreads most are the dates in Box 3 and Box 11, multi-line property addresses in Box 8, and blank boxes that get filled by mistake. Money amounts in Box 1 and Box 2 read well on clean copies, because they follow a fixed pattern of digits, commas and two decimals.

Dates in Box 3 and Box 11

Dates fail in two ways. The first is character confusion: a 1 read as a 7, or a 0 as an 8, which turns 2021 into 2027. The second is format. One lender prints 06/14/2021 and another prints June 14, 2021 or 14-JUN-21, and a two-digit year has to be expanded with care. Box 11 adds a third risk. The instructions say it stays blank unless the lender acquired the loan during the calendar year, so a reader that fills it with the origination date by mistake creates a false acquisition.

Property addresses in Box 8

Box 8 often wraps across two or three lines. OCR may read the lines in the wrong order, merge a unit number into the street, or pull in the borrower's mailing address from the block above. When Box 7 is checked, Box 8 is often empty, and the reader should leave it empty rather than copy an address from somewhere else on the page.

Blank boxes

Blank boxes are the quiet failure. Box 4, Box 5, Box 6, Box 9 and Box 11 are often empty. A smudge, a box border or a stray character can come back as a value. A blank box should produce a null field, not a zero and not a guess. A zero says the lender reported nothing in that box; a null says the box held nothing to read. Keeping the two apart makes later checks honest.

Box 10 free text

Box 10 is not a single amount. Lenders put property tax, hazard insurance, or several labelled lines in it. Reading it as one number loses the label, and a reader that sums the lines loses the meaning. Keeping the raw text and pulling amounts out separately is safer.

General accuracy questions, such as how resolution and print quality affect every form, sit in the post on tax form OCR accuracy.

How do you check 1098 OCR output?

You check 1098 OCR output with a few rules drawn from what each box means: dates that make sense for the tax year, blank boxes that are really blank, points weighed against interest, and a Box 1 figure compared with your own payment records. Each rule is quick and catches a different kind of misread.

Start with the dates. The instructions say Box 11 holds a date only if the lender acquired the loan in the calendar year, so a filled Box 11 should fall inside the statement's tax year. Box 3, the origination date, can be any earlier date but should not be later than the tax year. A Box 3 date in the future almost always means a misread digit.

Next, compare points with interest. Box 6 points are often smaller than a full year of Box 1 interest, so a Box 6 figure larger than Box 1 deserves a second look. Treat it as a flag, not an error. The instructions say points are reported for the year of closing, so a loan that closed in November can show a large Box 6 next to only two months of interest.

Then look at Box 2. Outstanding principal is usually the largest number on the statement. If Box 2 is smaller than Box 1, the reader may have swapped the two values or dropped a digit. The same goes for a principal figure with no cents on a statement that prints cents everywhere else.

Check the identifiers. The lender TIN should follow the employer identification number pattern of two digits, a hyphen and seven digits. The borrower TIN on your copy may show only the last four digits, which the instructions allow.

Finally, compare Box 1 with your own records. Twelve monthly payment statements, or a year-end loan history from the lender, show the interest portion of each payment. Their sum should be close to Box 1. Small gaps can come from late charges or prepayment penalties, which the instructions include in Box 1 in most cases.

A worked example with example values shows the checks together. A statement reads Box 1 $11,842.17, Box 2 $318,450.00, Box 3 06/14/2027 and Box 6 blank, for tax year 2026. The Box 3 date is after the tax year, so it fails. Looking at the image shows the year is 2021, with the 1 misread as a 7. Every other check passes.

1098 OCR on phone photos and scans

1098 OCR on phone photos and scans works when the page is flat, evenly lit and whole. Crooked pages, glare on glossy paper and statements printed with escrow detail cause most problems. A tilted photo bends the rows, glare can erase a digit, and a long escrow table gives the reader more numbers to confuse with the boxes.

Crooked pages are the most common problem. A page photographed at an angle has rows that slope, so a value can line up with the wrong label. Straightening the image before reading helps, and the post on deskewing a scanned document before OCR covers how much tilt matters. For phone capture, the post on how to scan tax documents with your phone has a checklist for light and framing.

Glare is the second problem. Some lenders print on coated paper, and an overhead light can leave a bright patch that wipes out a digit or a decimal point. Turning the page slightly, or moving away from a direct light, fixes it before it reaches the reader.

Escrow detail is the third. A 1098 printed on the same page as a year-end escrow statement can carry two dozen amounts. Many of them, such as monthly interest or taxes disbursed, sound like 1098 boxes. A clean photo of the whole page is still the right input, because the reader needs the labels to separate the 1098 boxes from the escrow lines. Cropping the escrow table away can cut off a box.

Multi-page statements need care too. When the 1098 is page two of a mailing, the first page may be a cover letter. Capturing every page in order and letting software pick out the 1098 page is safer than guessing which page to send.

Reading 1098s with Schema Tax

Schema Tax reads Form 1098 as one of its supported forms. It extracts mortgage interest, points, outstanding principal and the property address into typed fields with fixed names, so a statement from one lender produces the same record as a statement from another. It accepts PDFs, scans and phone photos.

Crooked scans are straightened before reading. When the model is unsure of a box, it flags that value on an editable view of the form so you can confirm or fix it, instead of guessing. Each value keeps its box number and field name. The results download as JSON, CSV or Excel, and the same JSON is available from an API billed per page.

Schema Tax does not read the other forms numbered 1098. The tuition statement and the student loan interest statement are outside its list today, and the post on what 1098-T OCR has to capture from a tuition statement covers that form box by box. More posts on reading forms with software are in the tax form OCR category.

Before uploading a statement, check how Schema Tax handles personal data. TINs are masked to the last four digits before storage, files are encrypted in transit and at rest, and you choose how long originals are kept. The security section on the Schema Tax homepage lists those terms in full.

All posts in Form 1098 and Mortgage Interest