To avoid paying taxes on a divorce settlement involving a TFSA, ensure that transfers of TFSA funds between spouses are conducted under a properly structured separation agreement or court order, which allows for tax-free rollovers.