State tax exempt US government dividends after selling fund with long-term capital gains — how do I handle both?
Sold shares in a mutual fund this year that I had held for about four years. Got a 1099-DIV back and it shows ordinary dividends, long-term capital gain distributions, and a percentage of dividends that came from US government obligations. My state (Virginia) lets you deduct dividends sourced from federal obligations, but my tax software is asking me to separate them and I'm not sure how the sale itself fits in. The fund sent a supplemental breakdown saying 34% of dividends qualify as US government interest. Do I apply that percentage only to box 1a on the 1099-DIV, or does it also touch the capital gain distribution in box 2a? And does the long-term gain from actually selling the fund shares go on Schedule D separately from all of this? I've been going in circles and can't find a clear answer on how the sale interacts with the state exemption piece.