When you inherit a capital asset — stock, farm, real estate — your tax basis steps up to the market value at the time of death. Sell it shortly after inheriting and you could owe zero capital gains. The IRS resets the clock when you receive the inheritance.