TIN ComplianceA resource from TIN Comply
IRIS form rules

IRIS Form 1042-S: rules and XML elements

What IRIS checks on Form 1042-S, Foreign Person's U.S. Source Income Subject to Withholding: the 35 business rules specific to this form for tax year 2026, with each rule's severity and what it checks, and the 29 elements of Form1042SDetail in the tax year 2026 XML record.

Submission group 3XML element Form1042SDetailElements 29, 16 required

These are errors and rejects every filer can get when sending information returns to IRIS, whether through the free IRIS Taxpayer Portal or through filing software. IRIS reports each one on the acknowledgment by rule number.

Form 1042-S business rules

Besides the rules on this page, IRIS checks the issuer and contact rules for its submission; those are on the cross-form error code pages. The IRIS Taxpayer Portal also takes Form 1042-S as a CSV upload, using the IRS template for the form.

In the tax year 2026 rule set: 15 reject, 10 report error and reject over the threshold, 10 report error. A reject stops the submission; a report error is accepted with errors and counts as filed; past an unpublished threshold, report errors reject the submission. The descriptions are our own summaries; your acknowledgment gives the rule number.

RuleSeverityWhat it checks
F1042S002RejectAn amended Form 1042-S must carry a nonzero amendment number.
F1042S003RejectAn original (not amended) Form 1042-S must leave the amendment number empty.
F1042S005RejectThe income code must be one of the valid Form 1042-S income codes.
F1042S006Report error, reject over thresholdGross income must be more than zero.
F1042S008RejectIf a chapter 3 exemption code is given, it must be a valid code.
F1042S009Report errorWhen the chapter 3 tax rate is 0%, a chapter 3 exemption code is required.
F1042S010Report error, reject over thresholdThe chapter 4 exemption code must be a valid code.
F1042S011Report errorThe chapter 4 tax rate must be 0% or 30%.
F1042S012Report errorWhen the form is filed under chapter 4, the chapter 4 exemption code must be 00 and the rate 30%.
F1042S013Report error, reject over thresholdA withholding allowance is only allowed with income codes 16, 17, 18, 19, 20 or 42.
F1042S014RejectThe withholding allowance cannot be more than gross income.
F1042S017RejectIf tax withheld by other agents is reported, the primary withholding agent's information is required.
F1042S018Report errorThe amount repaid to the recipient cannot be more than the federal tax withheld plus tax withheld by other agents.
F1042S019RejectThe total withholding credit must equal federal tax withheld plus tax withheld by other agents, minus any amount repaid to the recipient.
F1042S020Report errorThe recipient's individual name and TIN must match IRS records.
F1042S021Report errorThe recipient's business name and TIN must match IRS records.
F1042S022RejectThe recipient's country code is required, except for certain chapter 3 status codes (09, 11, 12, 13, 21 and 27 to 32).
F1042S023_001RejectWhen chapter 3 exemption code 04 (treaty) is used, the recipient's country must be a treaty country, unless the recipient's chapter 3 status code is 12 or 27 to 32.
F1042S024Report errorThe recipient's address is required, except when the chapter 3 status code is 00 and the chapter 4 status code is 42 to 48.
F1042S025Report errorThe recipient's address is required, except for chapter 3 status codes 21 and 27 to 32.
F1042S026Report error, reject over thresholdThe recipient's chapter 3 status code, if given, must be a valid code.
F1042S027Report error, reject over thresholdThe recipient's chapter 4 status code, if given, must be a valid code.
F1042S028Report error, reject over thresholdThe limitation on benefits (LOB) code, if given, must be a valid code.
F1042S030Report error, reject over thresholdThe intermediary or flow-through entity's chapter 3 status code must be valid.
F1042S031Report error, reject over thresholdThe intermediary or flow-through entity's chapter 4 status code must be valid.
F1042S032Report error, reject over thresholdThe payer's chapter 3 status code must be valid.
F1042S033Report error, reject over thresholdThe payer's chapter 4 status code must be valid.
F1042S034RejectWith chapter 3 exemption code 01 and any of a listed set of recipient chapter 3 status codes, the recipient's U.S. TIN is required.
F1042S035RejectWith exemption code 04 (treaty) and income code 16, the recipient's U.S. TIN is required.
F1042S036RejectWith chapter 3 exemption code 08, the recipient's U.S. TIN is required.
F1042S037RejectWith chapter 3 exemption code 06, 07, 10, 11 or 22, the recipient's TIN must begin with 98.
F1042S038RejectWith recipient chapter 3 status code 09, 11, 12, 13, 14, 35 or 40, the recipient's TIN must begin with 98.
F1042S039RejectWith recipient chapter 3 status code 05 or 07, the recipient's U.S. TIN is required.
F1042S040Report errorOn a chapter 3 form, the recipient's chapter 3 status code is required.
F1042S050Report errorThe recipient's address is required unless the chapter 4 status code is 29.

Elements of Form1042SDetail

IRTransmission › IRSubmission3Grp › Form1042SDetail

Each Form 1042-S return is one Form1042SDetail record in a submission of group 3. The table lists its 29 elements in schema order for tax year 2026: whether each is required, and the format IRIS accepts. Element names are the ones the IRS uses in its IRIS ATS examples and Publication 5718; the IRS revises the schema each year.

ElementRequiredFormat
TaxYrRequiredFour-digit year
RecordIdRequiredWhole number, up to 8 digits
IssuerOfficeCdOptionalExactly 4 characters
FormIdRequired
AmendedIndRequired1 (yes) or 0 (no)
AmendmentNumOptionalWhole number, 1 or more
PrevSubmittedRecRecipientGrpOptionalGroup of elements
IncomeTypeCdRequiredTwo digits
GrossIncomeAmtRequiredWhole-dollar amount, zero or more
ChapterTypeCdRequiredOne of: 3, 4
Chapter3GrpOptional
ExemptionCdOptionalTwo digits
TaxRtRequired in the groupDecimal, up to 4 decimal places
Chapter4GrpRequired
ExemptionCdRequired in the groupTwo digits
TaxRtRequired in the groupDecimal, up to 4 decimal places
WithholdingAllowanceAmtOptionalWhole-dollar amount, zero or more
NetIncomeAmtOptionalWhole-dollar amount, zero or more
FederalIncomeTaxWithheldAmtRequiredWhole-dollar amount, zero or more
TaxNotDepositPerEscrowProcIndRequired1 (yes) or 0 (no)
SubsqYrWithholdingPrtshpIntIndRequired1 (yes) or 0 (no)
QIOrWPOrWTRevisingReportingIndRequired1 (yes) or 0 (no)
OtherAgentsTaxWithheldAmtRequiredWhole-dollar amount, zero or more
RecipientRepaidAmtOptionalWhole-dollar amount, zero or more
TotalTaxWithholdingCreditAmtRequiredWhole-dollar amount, zero or more
WithholdingAgentTaxPaidAmtOptionalWhole-dollar amount, zero or more
Form1042SRecipientDetailRequired
PersonNameControlTxtOptionalName control, up to 4 characters
PersonNameRequired in the groupGroup of elements
BusinessNameControlTxtOptionalName control, up to 4 characters
BusinessNameRequired in the groupGroup of elements
AdditionalRecipientTxtOptionalText, up to 75 characters
CountryCdOptional
MailingAddressGrpOptionalGroup of elements
TINOptional9 digits, no dashes
TINSubmittedTypeCdOptionalOne of: INDIVIDUAL_TIN, BUSINESS_TIN, UNKNOWN
Chapter3StatusCdOptionalTwo digits
Chapter4StatusCdOptionalTwo digits
GIINOptionalText, up to 19 characters
FTINOptionalText, up to 50 characters
LOBCdOptionalTwo digits
BirthDtOptionalDate, YYYY-MM-DD
RecipientAccountNumOptionalText, up to 30 characters
PrimaryWithholdingAgentGrpOptional
PersonNmRequired in the groupText, up to 35 characters
BusinessNameRequired in the groupGroup of elements
AdditionalTxtOptionalText, up to 75 characters
EINRequired in the group9 digits, no dashes
ProRataBasisIndRequired1 (yes) or 0 (no)
IntermediaryOrFlowThruEntGrpOptional
EINOptional9 digits, no dashes
Chapter3StatusCdRequired in the groupTwo digits
Chapter4StatusCdRequired in the groupTwo digits
PersonNmRequired in the groupText, up to 35 characters
BusinessNameRequired in the groupGroup of elements
AdditionalTxtOptionalText, up to 75 characters
GIINOptionalText, up to 19 characters
CountryCdRequired in the group
FTINOptionalText, up to 50 characters
MailingAddressGrpRequired in the groupGroup of elements
PayerGrpOptional
PersonNmRequired in the groupText, up to 35 characters
BusinessNameRequired in the groupGroup of elements
AdditionalTxtOptionalText, up to 75 characters
EINRequired in the group9 digits, no dashes
GIINOptionalText, up to 19 characters
Chapter3StatusCdRequired in the groupTwo digits
Chapter4StatusCdRequired in the groupTwo digits
Form1042SStateTaxGrpOptional, repeats
StateTaxWithheldAmtOptionalWhole-dollar amount, zero or more
StateIdNumOptional
StateAbbreviationCdRequired in the groupTwo-letter state or territory code