The basis of property shall be the cost of such property, except as otherwise provided in this subchapter and subchapters C (relating to corporate distributions and adjustments), K (relating to partners and partnerships), and P (relating to capital gains and losses).
The cost of real property shall not include any amount in respect of real property taxes which are treated under section 164(d) as imposed on the taxpayer.
If a regulated investment company described in subparagraph (A) elects to have this subparagraph apply with respect to one or more of its stockholders—
(1) In general In the case of the sale, exchange, or other disposition of a specified security on or after the applicable date, the conventions prescribed by regulations under this section shall be applied on an account by account basis.
If a regulated investment company described in subparagraph (A) elects to have this subparagraph apply with respect to one or more of its stockholders—
(A) In general Except as provided in subparagraph (B), any stock for which an average basis method is permissible under this section which is acquired before January 1, 2012, shall be treated as a separate account from any such stock acquired on or after such date.
(B) Election for treatment as single accountIf a regulated investment company described in subparagraph (A) elects to have this subparagraph apply with respect to one or more of its stockholders— (i) subparagraph (A) shall not apply with respect to any stock in such regulated investment company held by such stockholders, and (ii) all stock in such regulated investment company which is held by such stockholders shall be treated as covered securities described in section 6045(g)(3) without regard to the date of the acquisition of such stock. A rule similar to the rule of the preceding sentence shall apply with respect to a broker holding such stock as a nominee.
(3) Definitions For purposes of this section, the terms “specified security” and “applicable date” shall have the meaning given such terms in section 6045(g).
For purposes of this subsection—
(1) In general In the case of any stock acquired after December 31, 2011, in connection with a dividend reinvestment plan, the basis of such stock while held as part of such plan shall be determined using one of the methods which may be used for determining the basis of stock in a regulated investment company.
(2) Treatment after transfer In the case of the transfer to another account of stock to which paragraph (1) applies, such stock shall have a cost basis in such other account equal to its basis in the dividend reinvestment plan immediately before such transfer (properly adjusted for any fees or other charges taken into account in connection with such transfer).
Rules similar to the rules of subsection (c)(2) shall apply for purposes of this subsection.
(A) In general Rules similar to the rules of subsection (c)(2) shall apply for purposes of this subsection.
(B) Average basis method Notwithstanding paragraph (1), in the case of an election under rules similar to the rules of subsection (c)(2)(B) with respect to stock held in connection with a dividend reinvestment plan, the average basis method is permissible with respect to all such stock without regard to the date of the acquisition of such stock.
For purposes of this subsection—
(A) In general The term “dividend reinvestment plan” means any arrangement under which dividends on any stock are reinvested in stock identical to the stock with respect to which the dividends are paid.
(B) Initial stock acquisition treated as acquired in connection with plan Stock shall be treated as acquired in connection with a dividend reinvestment plan if such stock is acquired pursuant to such plan or if the dividends paid on such stock are subject to such plan.
(Aug. 16, 1954, ch. 736, 68A Stat. 296; Pub. L. 110–343, div. B, title IV, § 403(b), Oct. 3, 2008, 122 Stat. 3857; Pub. L. 113–295, div. A, title II, §§ 210(f)(1)–(3), 220(n), Dec. 19, 2014, 128 Stat. 4031, 4032, 4036.)