The step up in basis happens when you die, so the estate has no capital gain. Then the debts are paid, then the heirs get whatever they're supposed to get.
Ok thank you. That was the key to my misunderstanding.
Ok thank you. That was the key to my misunderstanding.