Schema Tax

1040 to Excel: Turn a Filed Return Into a Spreadsheet

By Schema TaxPublished Updated

To get a filed 1040 to Excel, extract its key lines as named fields, export them as a CSV or Excel file, and paste them into a sheet with one column per line. Add a tab for any K-1s, keyed by tax year. Then recompute adjusted gross income and taxable income in Excel and compare them with the PDF.

1040 to Excel: which lines become columns

Moving a 1040 to Excel works best with one row per return and one column per line worth keeping: tax year, filing status, total income, adjusted gross income (AGI), taxable income, total tax, withholding, and the refund or amount owed. Detail lines such as wages, interest and capital gains earn a column when the sheet needs to explain a total.

The shape matters more than it seems. With one row per return, a second year is just another row, and Excel's filters, sorting and charts all work without rearranging anything. With one column per line, each column holds one kind of number, so a formula or a total can run down it safely.

Column names should describe the figure, not the line number. A header such as adjusted_gross_income or "Adjusted gross income" stays correct across years. A header such as "Line 11" does not: the 2024 Form 1040 puts AGI on line 11, while the 2025 Form 1040 puts it on line 11a and repeats it on line 11b. If the line number is useful, keep it in a second header row or in a cell comment, labelled with the year it applies to.

A practical first set of columns for one return looks like this, using the 2025 line numbers as the reference:

Column header (example)2025 Form 1040 line
Tax yearForm header
Filing statusFiling Status checkboxes
Wages1z
Total income9
Adjustments to income10
Adjusted gross income11a
Deductions14
Taxable income15
Total tax24
Federal income tax withheld25d
Total payments33
Refund or amount owed34 or 37

Store money as numbers, not text. A cell that holds "$84,000.00" as text will not add up; a cell that holds 84000 formatted as currency will. Keep negative amounts negative: a capital loss shown in parentheses on the form should become a minus sign in the cell.

The full list of fields a return can yield, with types, is in the post on 1040 data extraction. A layout that holds many years with rows by line label instead of columns is covered in the section on rows by line label.

Tax return to Excel with K-1s and schedules in one workbook

Putting a tax return to Excel along with its K-1s and schedules works best as one workbook with one tab per form type, where every row carries the tax year. The 1040 tab holds one row per return. The K-1 tab holds one row per K-1. A shared tax year column ties them together.

A K-1 is a statement from a partnership, S corporation or trust that reports one owner's share of income, deductions and credits. A single return can come with several of them, one per business, and each can carry many coded items. Squeezing them into the 1040 tab would mean dozens of mostly empty columns. A separate tab keeps both tables tidy.

The Partner's Instructions for Schedule K-1 (Form 1065) title Part III "Partner's Share of Current Year Income, Deductions, Credits, and Other Items", and many of its boxes use letter codes with attached statements. That structure suits a long table: one row per box and code, with columns for tax year, issuing entity, box, code and amount. The K-1 to Excel layout with one row per box and code shows that tab in full, and the guide to reading a K-1 explains what each part reports.

Example workbook layout

TabOne row perKey columns
ReturnsForm 1040, one per tax yearTax year, filing status, total income, AGI, taxable income, total tax
K-1sK-1 box and codeTax year, entity name, entity TIN (last four digits), box, code, amount
SchedulesSchedule line you choose to keepTax year, schedule, line label, amount
ChecksTax yearRecomputed AGI, recomputed taxable income, differences

The Schedules tab is optional. The 1040 already carries the totals that schedules pass to it: the 2025 Schedule 1, for example, tells the filer to enter its additional income total on Form 1040, line 8. Add schedule lines only when a question needs the detail behind one of those totals.

With a tax year column on every tab, a pivot table or a SUMIFS formula can pull together, say, all K-1 box 1 amounts for 2025 and set them next to that year's line 8 on the Returns tab.

Can you copy a 1040 PDF into Excel without retyping?

Copying a 1040 PDF into Excel with copy and paste rarely works cleanly. Form layouts put labels, line numbers, dotted leaders and amounts in separate pieces, and a paste usually dumps them into one column, out of order, or with each amount on a different row from its label. A scanned 1040 holds no text to copy at all.

A digital PDF from tax software does carry text, which is why copy and paste seems worth a try. The trouble is the order. A viewer often copies the pieces of a form in an order that has little to do with how a person reads it. The label "Add lines 22 and 23. This is your total tax" can paste on one row and its amount several rows away, next to a different label.

Two-column rows make it worse. The 2025 form puts line 2a "Tax-exempt interest" and line 2b "Taxable interest" on the same row, in an inner box and an outer column. A paste can merge them into one cell or split them apart from their labels, and only the outer amount counts toward total income.

A form is also not a table. Any tool that turns a PDF page into a grid has to decide which cells line up, and a form's mix of labels, boxes and leaders gives it little to go on. The usual result is labels and values scattered across many cells, still to be rearranged by hand.

Scans fail entirely: an image has no characters to copy, so it first needs OCR. The post on tax return OCR covers what to expect from that step.

The reliable route is extraction to named fields, then export. Schema Tax reads a filed 1040 into fields such as filing status, income lines, AGI, taxable income and total tax, and exports them as CSV or Excel, with Excel export on the paid plans listed in its pricing section. The workbook then starts from typed numbers rather than from a paste to clean up.

When an IRS 1040 Excel calculator is not what you need

An IRS 1040 Excel calculator, meaning a spreadsheet that works out a return from numbers typed into it, is a tool for preparing a return. It is not what you need when the return is already filed and the goal is to get its figures into Excel. That job is extraction, not calculation.

Calculator spreadsheets start blank. They ask for wages, interest and deductions, then apply formulas to estimate taxable income and tax. That is useful while working out a return, and the formulas they use depend on the year's rules, deductions and tax tables, which change from year to year.

A filed return already contains the answers. Its taxable income and total tax were worked out when it was prepared and printed on the form. Feeding the same inputs into a calculator might reproduce those figures, or might not: the calculator may use a different year's rules or leave out a schedule. For a record of what was filed, the printed figures are the ones to keep.

The two can still meet. Once the filed figures sit in a sheet, a few formulas that recompute totals from the lines above them act as a check on the extraction. That is a much smaller job than a full calculator, and it relies only on the arithmetic printed on the form itself, such as "Subtract line 10 from line 9."

Schema Tax is not tax software, and it does not calculate a return or give tax advice. It reads the figures from a filed form and hands them over as data, leaving the preparing, the filing and the advice to the filer, a preparer or their software.

How do you check a 1040 Excel sheet against the return?

To check a 1040 Excel sheet against the return, recompute adjusted gross income and taxable income from the lines the form combines, compare each result with the value in the sheet, and look up any mismatch on the PDF. A few formulas on a Checks tab catch most misreads and typos.

The 2025 form prints the arithmetic beside each line. Line 11a is "Subtract line 10 from line 9." Line 15 is "Subtract line 14 from line 11b. If zero or less, enter -0-." Those two sentences become two formulas. With total income in column D, adjustments in E, AGI in F, deductions in G and taxable income in H, the checks are:

  • Recomputed AGI: =D2-E2, compared with F2.
  • Recomputed taxable income: =MAX(0,F2-G2), compared with H2.
  • Difference flag: =IF(ABS(D2-E2-F2)>2,"check AGI","").

The tolerance of two dollars allows for rounding. The 2025 Instructions for Form 1040 let a filer round off cents to whole dollars, and a sum of rounded lines can land a dollar away from a rounded total.

A step list from filed PDF to checked sheet

  1. Confirm the document. Open the PDF and read the tax year from the form header. Check that it is the 1040 itself, not a 1040-X, a worksheet or a transcript.
  2. Check the file type. Try to select a dollar amount. If it highlights, the PDF has text. If not, it is a scan and needs OCR.
  3. Extract the fields. Read the return into named fields and export them as CSV or Excel.
  4. Paste by label. Add the row to the Returns tab, matching each value to its column by name rather than by position.
  5. Add K-1 rows. Put each K-1's boxes and codes on the K-1s tab with the same tax year.
  6. Run the checks. Fill the Checks tab formulas down for the new row.
  7. Resolve mismatches. For any flagged row, find the line on the PDF and correct the cell.
  8. Record the source. Note the file name and whether the figures came from an original or an amended return.

As an example with fictional figures, a 2025 row with total income of $92,300, adjustments of $1,800 and AGI of $90,500 passes the AGI check. If taxable income reads $74,750 and deductions read $15,750, the taxable income check passes too. A taxable income of $79,750 would flag a $5,000 gap, most likely a misread 4 as a 9.

The finished sheet holds one year. To keep many years side by side, the post on a tax return template in Excel sets out a layout built to last, and more spreadsheet and export topics sit in the Excel, CSV and JSON category.

All posts in 1040 Returns and K-1s