(1) In general A taxpayer shall be treated as having made a constructive sale of an appreciated financial position if the taxpayer (or a related person)
(A) enters into a short sale of the same or substantially identical property,
(B) enters into an offsetting notional principal contract with respect to the same or substantially identical property,
(C) enters into a futures or forward contract to deliver the same or substantially identical property,
(D) in the case of an appreciated financial position that is a short sale or a contract described in subparagraph (B) or (C) with respect to any property, acquires the same or substantially identical property, or
(E) to the extent prescribed by the Secretary in regulations, enters into 1 or more other transactions (or acquires 1 or more positions) that have substantially the same effect as a transaction described in any of the preceding subparagraphs.
(2) Exception for sales of nonpublicly traded property A taxpayer shall not be treated as having made a constructive sale solely because the taxpayer enters into a contract for sale of any stock, debt instrument, or partnership interest which is not a marketable security (as defined in section
453 (f)) if the contract settles within 1 year after the date such contract is entered into.
(3) Exception for certain closed transactions
(A) In general In applying this section, there shall be disregarded any transaction (which would otherwise cause a constructive sale) during the taxable year if
(i) such transaction is closed on or before the 30th day after the close of such taxable year,
(ii) the taxpayer holds the appreciated financial position throughout the 60-day period beginning on the date such transaction is closed, and
(iii) at no time during such 60-day period is the taxpayers risk of loss with respect to such position reduced by reason of a circumstance which would be described in section
246 (c)(4) if references to stock included references to such position.
(B) Treatment of certain closed transactions where risk of loss on appreciated financial position diminished If
(i) a transaction, which would otherwise cause a constructive sale of an appreciated financial position, is closed during the taxable year or during the 30 days thereafter, and
(ii) another transaction is entered into during the 60-day period beginning on the date the transaction referred to in clause (i) is closed
(I) which would (but for this subparagraph) cause the requirement of subparagraph (A)(iii) not to be met with respect to the transaction described in clause (i) of this subparagraph,
(II) which is closed on or before the 30th day after the close of the taxable year in which the transaction referred to in clause (i) occurs, and
(III) which meets the requirements of clauses (ii) and (iii) of subparagraph (A),
the transaction referred to in clause (ii) shall be disregarded for purposes of determining whether the requirements of subparagraph (A)(iii) are met with respect to the transaction described in clause (i).
(4) Related person A person is related to another person with respect to a transaction if
(A) the relationship is described in section
267 (b) or
707 (b), and
(B) such transaction is entered into with a view toward avoiding the purposes of this section.