If you fail to reinvest the capital gains within the stipulated period, the exemption claimed will be reversed, and you will be liable to pay tax on the gains be it a long-term capital or short-term capital.