Investors & landlords

There are no special rules to offset capital gains on the sale of a home that was not your own personal residence.  There is the general rule that if you have investments with a loss (stocks that have gone down, etc.), sometimes it can be a good idea to sell them to realize the loss against the gain, but that depends on the investment and your overall investment strategy.