The only things to add to what Arebelspy said:
-The depreciation recapture portion may be taxed at a higher rate (25%) than the rest of the capital gains.
-You may also see a tax reduction when you sell if you had unclaimed losses carried over from prior years
-If you keep the property and pass it to your estate (or if you do a 1031, and that property is eventually passed to an estate), then, if I'm not mistaken all the capital gains can magically disappear when it goes to your heirs, up to 1.3 million. I may be wrong as all this estate tax stuff keeps changing, and I'm planning to live for at least 50 more years so I don't watch it that closely...