> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# 26 U.S.C. § 873 — Deductions

- **Citation**: 26 U.S.C. § 873
- **Node Type**: section
- **Jurisdiction**: United States (federal)
- **Code Body**: United States Code (USC)
- **Official Source**: [https://uscode.house.gov/download/releasepoints/us/pl/119/95/xml_usc26@119-95.zip](https://uscode.house.gov/download/releasepoints/us/pl/119/95/xml_usc26@119-95.zip)
- **Canonical URL**: [https://corpuslaw.us/codes/federal/us-code/title-26/subtitle-a/chapter-1/subchapter-n/subpart-a/section-873](https://corpuslaw.us/codes/federal/us-code/title-26/subtitle-a/chapter-1/subchapter-n/subpart-a/section-873)
- **Semantic URL**: [https://corpuslaw.us/codes/federal/us-code/title-26/subtitle-a/chapter-1/subchapter-n/subpart-a/section-873](https://corpuslaw.us/codes/federal/us-code/title-26/subtitle-a/chapter-1/subchapter-n/subpart-a/section-873)

## Hierarchy

Title 26 — Internal Revenue Code > Subtitle A > Chapter 1 > Subchapter N > Subpart A

## Text

(a) General ruleIn the case of a nonresident alien individual, the deductions shall be allowed only for purposes of section 871(b) and (except as provided by subsection (b)) only if and to the extent that they are connected with income which is effectively connected with the conduct of a trade or business within the United States; and the proper apportionment and allocation of the deductions for this purpose shall be determined as provided in regulations prescribed by the Secretary.

(b) ExceptionsThe following deductions shall be allowed whether or not they are connected with income which is effectively connected with the conduct of a trade or business within the United States:(1) LossesThe deduction allowed by section 165 for casualty or theft losses described in paragraph (2) or (3) of section 165(c), but only if the loss is of property located within the United States. (2) Charitable contributionsThe deduction for charitable contributions and gifts allowed by section 170. (3) Personal exemptionThe deduction for personal exemptions allowed by section 151, except that only one exemption shall be allowed under section 151 unless the taxpayer is a resident of a contiguous country or is a national of the United States.

(c) Cross referenceFor rule that certain foreign taxes are not to be taken into account in determining deduction or credit, see section 906(b)(1).
