A tax return parsing API reads a copy of a filed Form 1040 and returns its key lines as named fields: filing status, the income lines, adjusted gross income, taxable income and total tax. It reads what the uploaded return says, and keys each value on meaning because 1040 line numbers move between years.
Which Form 1040 lines does a tax return parsing API return?
A tax return parsing API returns the Form 1040 lines that summarise a household's year: the filing status checkbox, wage and other income lines, total income, adjusted gross income (AGI), taxable income and total tax. Those few lines answer most questions people bring to a return, from loan files to year-over-year planning.
Each of those lines has a clear place on the form. On the 2025 Form 1040, filing status is a row of checkboxes at the top of page 1: Single, Married filing jointly, Married filing separately, Head of household and Qualifying surviving spouse. The income section starts with line 1a, the total from Forms W-2 box 1, and sums wage-type income on line 1z. Interest, dividends, retirement distributions, Social Security benefits and capital gains follow on lines 2 through 7. Line 9 is total income.
AGI is income after the adjustments carried from Schedule 1. Taxable income subtracts the standard or itemized deduction and a few other deductions from AGI. Total tax adds the tax computed on taxable income to other taxes, such as self-employment tax from Schedule 2. The payments section on page 2 then lists withholding from W-2s and 1099s, estimated payments and refundable credits, which lead to a refund or an amount owed.
A parsing API can read more than the summary lines, but the summary lines are where consistent data lives. Every Form 1040 has them, every year, for every filer. Lines such as the dependent table or the direct-deposit routing number vary widely in whether they are filled in, and some, like bank details, are fields a consumer may not want to store at all.
Schema Tax reads the 1040 lines for filing status, income, AGI, taxable income and total tax, alongside W-2s, 1099s, 1098s and K-1s, and returns them in the same typed JSON or as a spreadsheet; the list of supported forms shows what each form covers. If you are comparing services, the post on choosing a tax form OCR API has a checklist that applies to 1040 parsing as well.
Why do 1040 line numbers shift for a tax return parsing API?
Form 1040 line numbers shift because the IRS adds, splits and moves lines when tax law changes, so the same concept can sit on a different line from one year to the next. A tax return parsing API that keys a field on "line 11" will pull the wrong number in some years. Keying on meaning avoids that.
The change between the 2024 and 2025 forms shows the problem clearly. The table below compares lines read directly from the 2024 Form 1040 and the 2025 Form 1040. The field names in the last column are examples of meaning-based keys, not a published standard.
Form 1040 line numbers for 2024 and 2025
| Concept | 2024 Form 1040 line | 2025 Form 1040 line | Example field name |
|---|---|---|---|
| Filing status | Checkbox row | Checkbox row | filing_status |
| W-2 box 1 wages | 1a | 1a | wages_w2_box1 |
| Total wage-type income | 1z | 1z | wages_total |
| Taxable interest | 2b | 2b | interest_taxable |
| Ordinary dividends | 3b | 3b | dividends_ordinary |
| Capital gain or (loss) | 7 | 7a | capital_gain |
| Additional income from Schedule 1 | 8 | 8 | schedule1_additional_income |
| Total income | 9 | 9 | total_income |
| Adjustments from Schedule 1 | 10 | 10 | adjustments_to_income |
| Adjusted gross income | 11 | 11a (repeated as 11b on page 2) | adjusted_gross_income |
| Standard or itemized deduction | 12 | 12e | deduction_amount |
| Qualified business income deduction | 13 | 13a | qbi_deduction |
| Additional deductions from Schedule 1-A | Not on form | 13b | schedule1a_deductions |
| Taxable income | 15 | 15 | taxable_income |
| Total tax | 24 | 24 | total_tax |
| Federal tax withheld, total | 25d | 25d | withholding_total |
| Earned income credit | 27 | 27a | eic |
| Total payments | 33 | 33 | total_payments |
| Overpaid | 34 | 34 | overpaid |
| Amount you owe | 37 | 37 | amount_owed |
Four summary lines moved in one year. AGI went from line 11 to line 11a, and the 2025 form repeats it as line 11b at the top of page 2. The deduction moved from line 12 to 12e, because the standard-deduction checkboxes that sat in their own block near the top of the 2024 form became lines 12a to 12d. Line 13 split into 13a and a new 13b for deductions from Schedule 1-A. Capital gain moved from 7 to 7a.
Other lines held still. Total income is line 9 and taxable income is line 15 on both forms, and total tax is line 24 on both. That stability is useful but not promised. A parser should look up line numbers in a table keyed by tax year, and the tax year should come from the form itself, not from the file name.
Reading the 2025 AGI line twice
The 2025 form prints AGI on line 11a and again on line 11b as "Amount from line 11a." A parsing API that reads both can use the pair as a check: if the two differ, one of them was misread, or the return was filled in by hand with an error. Either way, the field deserves a review flag instead of a silent pick.
Tax return parsing API data for prior-year comparisons
Prior-year comparisons with a tax return parsing API work by reading two or three years of Form 1040s into the same meaning-based fields and lining them up by field name. AGI from 2024 line 11 and AGI from 2025 line 11a then land in the same column with no per-year mapping in your code.
A worked example makes the shape clear. The household below is fictional, with made-up amounts. It filed jointly in both years.
| Field | 2024 return (example) | 2025 return (example) | Change |
|---|---|---|---|
filing_status | Married filing jointly | Married filing jointly | Same |
wages_total | 96,400.00 | 101,250.00 | +4,850.00 |
total_income | 99,120.00 | 104,880.00 | +5,760.00 |
adjusted_gross_income | 97,300.00 | 102,640.00 | +5,340.00 |
taxable_income | 68,100.00 | 71,140.00 | +3,040.00 |
total_tax | 7,720.00 | 8,050.00 | +330.00 |
Three habits keep a comparison honest. First, carry the source line with each value, so a reviewer can see that the 2024 AGI came from line 11 and the 2025 AGI from line 11a. Second, compare like with like: a change in filing status between years changes what the deduction and tax lines mean, so flag the row instead of computing a difference. Third, keep money as decimal strings or integer cents, never floats, so a difference of a few cents does not appear from rounding.
A comparison also needs the right document for each year. If the 2024 copy is an amended return or a draft that was never filed, its numbers can differ from what the IRS processed. A parser reads what is printed; it cannot tell a final copy from a draft unless the document says so. Record where each copy came from next to the parsed data.
Lenders and underwriters often run exactly this comparison when they look at income across years. The post on an income verification API built on tax documents covers how to link returns to an applicant and where returns are not enough.
Is a tax return parsing API the same as an IRS transcript?
A tax return parsing API is not the same as an IRS transcript. A parsing API reads a copy of a Form 1040 that someone uploads. A transcript is a record the IRS produces from its own systems. The two can hold similar numbers, but they come from different places and answer different questions.
The IRS page on transcript types and ways to order them says a tax return transcript shows "most line items from your original Form 1040-series tax return as filed," and does not reflect changes made after the original filing. An account transcript shows basic data such as filing status and taxable income, and does reflect later changes. A wage and income transcript shows data from information returns the IRS received, such as Forms W-2, 1098 and 1099. The same page says plainly that "A transcript isn't a photocopy of your return," and that a copy of the original return is ordered with Form 4506.
That difference matters for trust. An uploaded 1040 copy shows what the filer, or their preparer, says was filed. A transcript shows what the IRS has on record. For many uses, such as organising your own records or comparing years, the copy is enough. Where a third party needs the IRS's own figures, a transcript is the document that carries them.
Schema Tax reads filed 1040 copies and does not read IRS transcripts. The side-by-side post on a tax transcript vs a tax return explains when each document is the one to ask for.
Schedules and attachments a tax return parsing API leaves out
A tax return parsing API that targets Form 1040 lines leaves out most of what lives on schedules and attachments. The 1040 shows totals carried from Schedules 1, 2 and 3, and from Schedules B and D, but not the detail behind them. Business income, rental income and itemized deductions sit on their own pages.
The 2025 Form 1040 points to its schedules by line. Line 8 is "Additional income from Schedule 1, line 10." Line 10 is "Adjustments to income from Schedule 1, line 26." Line 17 is the amount from Schedule 2, line 3, and line 23 is other taxes, including self-employment tax, from Schedule 2, line 21. Line 20 is the amount from Schedule 3, line 8. Interest and dividend detail goes on Schedule B, and capital gains detail on Schedule D.
So a parsed 1040 might tell you that a household had, for example, $8,000 of additional income, but not whether it came from a business, a rental or something else. If your use case needs that split, the schedule itself has to be read, and each schedule has its own lines and its own year-to-year changes.
Attachments go further still. The 2025 Form 1040 itself names Form 8995 or 8995-A for line 13a and Schedule 8812 for line 19, and a full return can carry many more forms plus statements the preparer wrote. A K-1 is a separate document with its own codes; the post on a K-1 JSON schema for boxes, codes and Part III shows how those rows are modelled.
Two practical rules follow. First, decide up front which schedules your product needs, and test the parser on returns that include them. Second, treat a 1040 total that points to a schedule as a summary, not as detail you can break down. If you are deciding whether you need a service that reads returns or one that prepares and files them, the comparison of a tax filing API vs an extraction API sets out the difference. Line-by-line help reading a 1040 as a taxpayer is in the Form 1040 and K-1 category.