I don't understand how this part works. Your estate has to pay off the accumulated debt before distributing the rest to your heirs. To do this, the estate must sell the underlying assets, which will realize gains. Those gains are subject to CG tax. What is this "stepped-up basis" wizardry? Does the cost basis of your assets reset to their market value the day you die?