# K-1 Data Extraction for 1065 and 1120S Schedules

- Canonical: https://schematax.com/blog/k-1-data-extraction
- Author: Schema Tax (https://schematax.com)
- Published: 2025-07-30T02:14:32.000Z
- Updated: 2025-07-30T02:14:32.000Z

K-1 data extraction turns a Schedule K-1 PDF into structured fields: the entity and owner details from Parts I and II, every Part III amount, and each coded box as separate code and amount pairs. A good extract also keeps the checkboxes, the percentages, the capital account lines and any "STMT" reference that points to an attached statement.

## What fields should K-1 data extraction capture?

K-1 data extraction should capture three groups of fields. Part I identifies the partnership or S corporation, Part II identifies the partner or shareholder, and Part III holds the income, deduction and credit amounts. Coded boxes need a list of code and amount pairs rather than a single number per box.

The 2025 [Schedule K-1 (Form 1065)](https://www.irs.gov/pub/irs-pdf/f1065sk1.pdf) and the 2025 [Schedule K-1 (Form 1120-S)](https://www.irs.gov/pub/irs-pdf/f1120ssk.pdf) share a top section. Both carry the tax year dates, a "Final K-1" checkbox and an "Amended K-1" checkbox. An extract that drops those two checkboxes loses the fact that a form replaces an earlier one or closes out an interest.

### Part I and Part II identity fields

Part I on both forms names the entity: item A is its employer identification number (EIN), item B its name and address, and item C the IRS center where it filed. Part II names the owner: on the 1065 version item E is the partner's SSN or TIN, and on the 1120-S version item E is the shareholder's identifying number.

The owner's TIN often arrives masked. The [2025 Partner's Instructions for Schedule K-1 (Form 1065)](https://www.irs.gov/instructions/i1065sk1) say the last four digits of the identifying number may be shown. An extract should store whatever is printed, such as `XXX-XX-1234`, and should not try to fill in the missing digits.

### Part III amounts

Part III is the money. Boxes such as ordinary business income, interest and dividends hold one amount each. Boxes such as other deductions, credits and other information hold any number of lettered codes, each with its own amount. The two kinds need different field shapes: a single number for the first, and a list of code and amount pairs for the second.

### An example field list

The field list below shows what an extract of one fictional 1065 K-1 might contain. It is an illustration of the shape of the data, not Schema Tax's schema. Every name, number and amount is made up.

| Field | Example value |
| --- | --- |
| form | Schedule K-1 (Form 1065) |
| tax_year | 2025 |
| final_k1 | false |
| amended_k1 | false |
| entity_ein | XX-XXX4821 |
| entity_name | Bayside Example Fund LP |
| owner_tin | XXX-XX-1234 |
| owner_name | Jordan Sample |
| partner_type | limited partner |
| box_1_ordinary_business_income | -3,150 |
| box_5_interest_income | 412 |
| box_6a_ordinary_dividends | 1,086 |
| box_9a_net_long_term_capital_gain | 7,940 |
| box_13 | [A: 220] |
| box_20 | [A: 1,498; B: 220; Z: STMT] |
| box_23_more_than_one_activity_passive | true |

Two details in that list matter. The Box 1 loss is a negative number, not the text "(3,150)". And Box 20 is a list of pairs, one of which points to a statement instead of a dollar amount.

## 1065 K-1 extraction: capital account, liabilities and Box 20

A 1065 K-1 extraction needs fields that an S corporation K-1 never has: the partner's profit, loss and capital percentages in item J, the liability split in item K1, the capital account analysis in item L, and the codes in Box 20, other information. Each of these has several values, often with beginning and ending columns.

Item J on the 2025 form holds three percentage pairs, Profit, Loss and Capital, each with a Beginning and an Ending column. It also has two checkboxes, Sale and Exchange, for when a decrease comes from a transfer of the partnership interest. That makes eight values for one lettered item.

Item K1, "Partner's share of liabilities," splits liabilities into nonrecourse, qualified nonrecourse financing and recourse, again with beginning and ending amounts. Item K2 is a checkbox for liability amounts from lower-tier partnerships, and K3 a checkbox for liabilities subject to guarantees or other payment obligations.

### The capital account analysis

Item L, "Partner's Capital Account Analysis," has six lines on the form: beginning capital account, capital contributed during the year, current year net income (loss), other increase (decrease), withdrawals and distributions, and ending capital account. The withdrawals line prints with parentheses already on the form. An extract should store that line as a positive amount with a clear field name, or as a negative, and say which.

The partner's instructions caution that this analysis may not equal the partner's adjusted tax basis, which also reflects the partner's share of partnership liabilities. An extract only records what is printed. It should not label item L as basis.

### Items M and N and the 1065 checkboxes

Item M asks whether the partner contributed property with a built-in gain or loss, with Yes and No boxes and a note to attach a statement. Item N gives the partner's share of net unrecognized section 704(c) gain or loss at the beginning and end of the year. Part III adds Box 16, a checkbox for an attached Schedule K-3, and Boxes 22 and 23 for more than one activity.

### Box 20 codes

Box 20, "Other information," carries the longest code list on the form. The partner's instructions list code A as investment income, code B as investment expenses, code Z as section 199A information, and code ZZ as other. Code Z breaks into sub-items such as W-2 wages, so one dollar figure in the box cannot carry all of it, and the detail often sits on a statement.

## 1120S K-1 extraction: shares, allocation percentage and Box 17

An 1120S K-1 extraction replaces the partnership's percentages and capital account with share counts and one allocation percentage. The fields to add are the corporation's total shares in item D, the shareholder's allocation percentage in item G, the shareholder's shares in item H, loans from the shareholder in item I, and the codes in Box 17.

On the 2025 Schedule K-1 (Form 1120-S), item D gives the corporation's total number of shares at the beginning and end of the tax year. Item H gives the shareholder's own number of shares for the same two dates. Item G, "Current year allocation percentage," is a single percentage. Item I gives loans from the shareholder at the beginning and end of the year.

These fields take the place of item J on a partnership K-1. Because items D, G and H describe the same ownership, a simple test divides H by D and compares the result with G. A large gap points to a misread digit in one of the three, though a change in ownership during the year can make the figures differ for a valid reason, so the test should flag rather than reject.

### Box numbering shifts on the 1120-S form

The 1120-S K-1 has fewer Part III boxes, and the same item often sits one number lower. Interest is Box 4 rather than Box 5, ordinary dividends Box 5a rather than 6a, and long-term capital gain Box 8a rather than 9a. Box 16 is "Items affecting shareholder basis," Box 17 is "Other information," and Boxes 18 and 19 flag more than one activity.

An extract that reuses partnership field names by box number would put S corporation interest into a "box 5" field and label it dividends. Field names should come from the item, not the box number, with the box number kept alongside.

### Box 17 codes

The [2025 Shareholder's Instructions for Schedule K-1 (Form 1120-S)](https://www.irs.gov/instructions/i1120ssk) list Box 17 codes that include A for investment income, B for investment expenses, V for section 199A information, AB for excess business interest income, BA for domestic research or experimental expenditures, and ZZ for other. Code V does the job that code Z does on a partnership K-1.

## How should a coded K-1 box become data?

A coded K-1 box should become one record per code and amount, not one field per box. Each record holds the box number, the code letter, the amount or a statement flag, and the description. That shape handles a box with one code, a box with five, and a code that appears in a box only once a decade.

The alternative, one column per possible code, breaks quickly. The 1120-S instructions describe Box 17 codes running from A to ZZ, and Box 20 on the 1065 version also ends at ZZ. A table with a column for every code is mostly empty, and it has to change whenever the IRS adds a code, as the 2025 instructions did with code BA in Box 17.

A record per pair looks like this in JSON. The values are fictional.

```json
[
  { "box": "13", "code": "A", "amount": 220.00, "statement": false },
  { "box": "20", "code": "A", "amount": 1498.00, "statement": false },
  { "box": "20", "code": "B", "amount": 220.00, "statement": false },
  { "box": "20", "code": "Z", "amount": null, "statement": true }
]
```

### Keep the code and its amount together

The code letter and its amount sit side by side in two narrow columns on the printed form. A tool that reads the amounts in a box but not the letters, or reads them in a different order, produces amounts with the wrong meaning. Every amount needs its own letter in the same record.

What each letter means is a separate question from how to store it. The [list of Schedule K-1 boxes that carry letter codes](/blog/schedule-k-1-box-codes#which-schedule-k-1-boxes-carry-letter-codes) explains the codes themselves. For the spreadsheet version of these records, the [K-1 to Excel layout with one row per box and code](/blog/k-1-to-excel#k-1-to-excel-layout-one-row-per-box-and-code) gives the column names.

## K-1 extraction edge case: several codes and STMT in one box

A single K-1 box can hold several codes, and some codes hold "STMT" instead of an amount. "STMT" means the detail is on an attached statement page. An extraction that expects one number per box either drops the extra codes or tries to parse "STMT" as a number, and both lose data.

The 2025 shareholder's instructions describe the convention for S corporations. The corporation "will enter an asterisk (*) after the code, if any," for each item with an attached statement. For informational items "that can't be reported as a single dollar amount," it enters an asterisk in the left column and "STMT" in the dollar amount space. The 1065 form carries the same footnote as the 1120-S: "See attached statement for additional information."

### How to store a statement reference

Store a code with "STMT" as a record with no amount and a statement flag set to true. Keep the asterisk too, as its own flag, because an asterisk can sit next to a code that also has an amount. That combination means the box has a figure plus more detail elsewhere.

Then link the record to the statement pages. A K-1 package often runs to many pages after the form face, and the statement for Box 20 code Z may be on page six. A record that says "statement: true, page: 6" lets a reviewer find the detail without paging through the whole PDF.

### Other edge cases that break simple tools

- **Negative amounts in parentheses.** A loss printed as `(3,150)` has to become -3,150, not 3,150 and not text.
- **Codes read as digits.** A code letter O, I or S misread as 0, 1 or 5 changes what the record means. The [post on K-1 OCR](/blog/k-1-ocr) covers these misreads on scans.
- **Boxes that continue.** When a box runs out of room, the issuer puts the rest on a statement, and the form face shows only some of the codes.
- **More than one K-1 in one file.** A fund may send one PDF with K-1s for several entities. Each needs its own record set, keyed by entity EIN.

## K-1 data extraction with Schema Tax

Schema Tax's K-1 support covers partner and shareholder shares, which means the 1065 and 1120-S versions, plus the Part III line items and codes. Each value is read into a typed field with a fixed name, checked, and exported as JSON, CSV or Excel.

The process follows the same steps Schema Tax uses for every supported form. Each page is first classified by form type and tax year, which matters when one PDF mixes a K-1 with other forms. Every box is then read into a named field, and values the model is unsure about are flagged for review on an editable view of the form instead of being guessed.

Each value keeps its box number, its field name and the checks it passed. Keeping the box number beside a field name taken from the item is what lets 1065 and 1120-S K-1s share one output without their box numbers colliding. SSNs and TINs are masked to the last four digits before storage, so the owner TIN on a K-1 is stored as the last four only.

### Export and API

The output comes as a file download or from an API that takes a file and returns the same typed JSON, billed per page. API access is by request. The [posts on tax form APIs](/blog/category/tax-form-api) cover how developers use that kind of output. The [five steps from paper to checked data](/#how) on the homepage show the same flow for every form.

Schema Tax does not prepare returns, decide where a K-1 item goes on a return, or give tax advice. It gets the K-1 values into data you can check and use.
