It depends on the situation.
1. The individual of the house to be demolished obtains monetary compensation in accordance with the agreement on demolition compensation and resettlement, and if he buys a new house (i.e. monetary compensation and resettlement), the part of the purchase price that does not exceed the demolition compensation is exempted from deed tax; The part exceeding the compensation for demolition shall be taxed at the applicable tax rate.
2. The units and individuals of the houses to be demolished and relocated shall bear the houses to be rebuilt (i.e. housing property right exchange and resettlement) according to the demolition compensation and resettlement agreement, and the deed tax shall be exempted if they do not pay the property right exchange difference; If the difference of property right exchange should be paid back, the part of the supplementary payment shall be taxed at the applicable tax rate.