No you do not have to recognize the entire sale in the first year. You could set-up what is called an installment sale which can be utilized several ways. However, a common way is to agree on a sales price of which a portion is received now and then an installment is received (plus interest on the note) in the next couple years. This can be spread out even further than 2 years if desired. Please see the below attachment which contains IRS Publication 537 which provides further guidance to these types of transactions.
You will need to make sure you have written contract with all the specific agreement included. The calculations can get complex and you may want to consult with your tax adviser who understands these transactions. This service is to help you go in the right direction. However, it cannot cover all the intricacies of complex transactions such as installment sales and guarantee success under an inquiry from a taxing agency.
If you have any further questions, please do not hesitate to contact me.
If you have any questions, please do not hesitate to contact me.