Section 38Y. (a) Every business corporation which is exempt from taxation under section 501 of the Code shall be subject to tax under section 39 on its unrelated business taxable income, as defined in section 512 of the Code. The property or net worth of those corporations shall not be subject to tax under this chapter, and the minimum excise under section 39 shall not apply. If a corporation has unrelated business taxable income that is taxable both within and without the commonwealth, it may apportion its net income to the commonwealth under section 38, but its apportionment factors shall be determined by reference only to the unrelated business activity of the corporation. The credits allowed under this chapter shall be determined only with respect to the unrelated business activity of the corporation.
(b) An entity that is exempt from taxation under section 501 of the Code shall not be considered to be a business corporation for purposes of chapter 59.