Get your taxes done using TurboTax

There is Capital Gains reported in box 2a.   Don't worry about it.   Just enter the 1099B and 1099-Div forms and Turbo Tax will calculate it.   But losses on sales won't offset Dividends.   They are on separate lines on the tax return.