One example of a loan against an unrealised capital gain is mortgage equity. But I think there needs to be some exemption to accommodate many old people who rely on these to live. And unless you tax capital gains on a primary residence taxing a loan made against a primary residence seems unfair.