Monitor your investment portfolio and consider selling poorly performing assets to offset capital gains. Be aware of the "wash sale" rule, which disallows the deduction of a loss if you repurchase the same security within 30 days.