Your heirs inherit your stocks, with their cost basis reset to the current price. This means that they have zero appreciation of your purchase of $RIVN at $67, despite it being at $420. They can then sell the shares, to pay the loans, and not owe capital gains, because there are no gains. Additionally, at this step cash can be extracted for no gains as well if desired.
So you avoid taxes while alive by taking loans (not income), avoiding capital gains (never selling), and then gains evaporate through a stepped up basis. There are some exceptions here - estate taxes, etc with ways around them like trusts, but this is the general mechanism.
Its worth noting though, that its not ironclad. In a significant downturn you can be forced to liquidate and it will hurt (see the news on Musk right after X purchase). Additionally, while people talk about this as being super popular, realize that in practice people who take advantage of these strategies also still have millions in cash flow, so its not a true borrow only $0 tax lifestyle, they will use already taxed money to manage them as well.
https://www.theatlantic.com/economy/archive/2025/03/tax-loop... (viewable by disabling JS)
There is no balloon payment ever due if you simply pay off the interest indefinitely.
Of course there is always the possibility of a margin call against the loan where if you lose X% of value on the securing asset you may be liquidated of it and the proceeds used to pay off said line of credit.
There are a million caveats and different loan structures so I’m sure some finance bro will be along to correct me shortly. But overall for normalish folks this is more or less the correct mental model.
If your assets are growing faster than the interest it would also be possible to payoff the loan with a new (larger) loan, so you are still kicking the can down the road but eventually you would die and never need to pay the taxes while you were alive. I doubt this is done that often in practice, but who knows.
I.e. what kinds of loans can be tax deductible? To be clear theres decent effort into this, you can't just do a cash-out refi on a home, but loopholes exist for those who find it worth the effort.
This is the strategy that people follow.