It depends on which you've declared as your primary residence.
You do get a tax break on the sale of your primary residence as long as you've lived there 5 or more years when you sell.
Here's info on the so called exit tax that might help. http://www.nj.com/business/index.ssf/2010/10/nj_exit_tax_has
As you will see, there is a lot of confusion regarding this, but I have some excellent attorneys who can help.