Buying & Selling Real Estate
Market News & Data
General Info
Real Estate Strategies
![](http://bpimg.biggerpockets.com/assets/forums/sponsors/hospitable-deef083b895516ce26951b0ca48cf8f170861d742d4a4cb6cf5d19396b5eaac6.png)
Landlording & Rental Properties
Real Estate Professionals
Financial, Tax, & Legal
![](http://bpimg.biggerpockets.com/assets/forums/sponsors/equity_trust-2bcce80d03411a9e99a3cbcf4201c034562e18a3fc6eecd3fd22ecd5350c3aa5.avif)
![](http://bpimg.biggerpockets.com/assets/forums/sponsors/equity_1031_exchange-96bbcda3f8ad2d724c0ac759709c7e295979badd52e428240d6eaad5c8eff385.avif)
Real Estate Classifieds
Reviews & Feedback
Updated about 5 years ago on . Most recent reply
![Brian Ellis's profile image](https://bpimg.biggerpockets.com/no_overlay/uploads/social_user/user_avatar/692285/1648680381-avatar-bellis.jpg?twic=v1/output=image/crop=1170x1170@0x359/cover=128x128&v=2)
Avoiding Capital gains tax
Hello friends,
What are the rules to avoiding capital gains tax?
I believe it’s a minimum of living in a primary residence for two years. But what about turning it into a rental after the 2 years?
My first house I house hacked and lived in for a little over two years as I fixed it up, I currently have it rented out and their one year lease is up in the summer. Can I still sell it and avoid the capital gains tax?
thank you in advance!
Most Popular Reply
![Mike S.'s profile image](https://bpimg.biggerpockets.com/no_overlay/uploads/social_user/user_avatar/1047229/1694574169-avatar-mikes518.jpg?twic=v1/output=image/cover=128x128&v=2)
@Brian Ellis
The 121 exclusion of capital gain of up to $250,000 single or $500,000 for married filing jointly requires you to have lived in the property as your primary residence for two years within the last 5 years. You can have rented it out for rest without any problem.