State and local governments may offer their own deductions ... financial asset, make sure to add in all of the reinvested dividends. That increases the cost basis and reduces your capital gain ...