54F. (1) Subject to the provisions of sub-section (4), where, in the case of an assessee being an individual or a Hindu undivided family, the capital gain arises from the transfer of any long-term capital asset, not being a residential house (hereafter in this section referred to as the original asset), and the assessee has, within a period of one year before or two years after the date on which the transfer took place purchased, or has within a period of three years after that date constructed, one residential house in India (hereafter in this section referred to as the new asset), the capital gain shall be dealt with in accordance with the following provisions of this section, that is to say,—
(a) if the cost of the new asset is not less than the net consideration in respect of the original asset, the whole of such capital gain shall not be charged under section 45 ;
(b) if the cost of the new asset is less than the net consideration in respect of the original asset, so much of the capital gain as bears to the whole of the capital gain the same proportion as the cost of the new asset bears to the net consideration, shall not be charged under section 45:
Provided that nothing contained in this sub-section shall apply where—
(a) the assessee,—
(i) owns more than one residential house, other than the new asset, on the date of transfer of the original asset; or
(ii) purchases any residential house, other than the new asset, within a period of one year after the date of transfer of the original asset; or
(iii) constructs any residential house, other than the new asset, within a period of three years after the date of transfer of the original asset; and
(b) the income from such residential house, other than the one residential house owned on the date of transfer of the original asset, is chargeable under the head "Income from house property".
if all conditions are satisfied you can claim exemption.