Buying & Selling Real Estate
Market News & Data
General Info
Real Estate Strategies
Short-Term & Vacation Rental Discussions
presented by
![](http://bpimg.biggerpockets.com/assets/forums/sponsors/hospitable-deef083b895516ce26951b0ca48cf8f170861d742d4a4cb6cf5d19396b5eaac6.png)
Landlording & Rental Properties
Real Estate Professionals
Financial, Tax, & Legal
Tax, SDIRAs & Cost Segregation
presented by
![](http://bpimg.biggerpockets.com/assets/forums/sponsors/equity_trust-2bcce80d03411a9e99a3cbcf4201c034562e18a3fc6eecd3fd22ecd5350c3aa5.avif)
1031 Exchanges
presented by
![](http://bpimg.biggerpockets.com/assets/forums/sponsors/equity_1031_exchange-96bbcda3f8ad2d724c0ac759709c7e295979badd52e428240d6eaad5c8eff385.avif)
Real Estate Classifieds
Reviews & Feedback
Updated almost 7 years ago on . Most recent reply
period to avoid capital gain tax
We bought our new house before selling the old building. We used to live in that building for more than 10 years. How many years do we have to sell the old building to avoid capital gain? I remember we should have three years. Is that right?
Most Popular Reply
![Josh C.'s profile image](https://bpimg.biggerpockets.com/no_overlay/uploads/social_user/user_avatar/58587/1621412684-avatar-compton.jpg?twic=v1/output=image/crop=211x211@43x11/cover=128x128&v=2)
2 of the last 5 years for personal residence. You keep saying building? Is it a whole building? You have to occupy the whole thing to get the 250/500k deduction. Otherwise you’d pay capital gains on the part that was a rental or investment.