https://turbotax.intuit.com/tax-tips/jobs-and-career/changing-jobs/L5ElUIrh6 Moving for a job may have tax implications Moving for a new job may entail selling your primary residence, which can have capital gains tax implications. Normally, tax law allows you to avoid capital gains tax on the first $250,000 of gain on the sale of your home ($500,000 for married couples) as long as you've lived there for at least two out of the past five years. What happens if you have to sell your home and move within that two-year time frame for a new job? As long as the sale results from a job change and your new work location is at least 50 miles farther from the home than your old work location, the IRS allows you to take a partial exclusion. This partial exclusion is based on the amount of time you used the house as your primary residence. For example, if you owned and lived in the home for just one year, you'd get half the exclusion available to people who meet the two-year test. That doesn't mean half the profit is tax-free; it means all of the profit up to $125,000 ($250,000 if married filing jointly) would be tax-free.
卖了马上再买好像可以无限延期这笔税。