In the USA, if you live in your home for 2 out of the 5 years prior to selling, you can qualify to pay 0 capital gains tax up to 500k if you're married and filing a joint return (250k if single)
In the USA, if you live in your home for 2 out of the 5 years prior to selling, you can qualify to pay 0 capital gains tax up to 500k if you're married and filing a joint return (250k if single)