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.

32 comments

The sale of your fund shares is a completely separate event from the dividends and distributions the fund paid out. The capital gain you realized when you sold the shares goes on Form 8949 and flows to Schedule D. The box 2a capital gain distribution on your 1099-DIV is something the fund itself distributed — also Schedule D, line 13 — but it's not the same as the gain from your sale.

Nina S.

Author

Okay that distinction helps a lot. So the box 2a amount from the fund's own distributions goes to Schedule D line 13, and then separately I report the proceeds from actually selling my shares on Form 8949 with my purchase date and cost basis. Got it.

For the state exemption piece: the percentage from the fund's supplemental statement applies only to the ordinary dividends (box 1a), not to the capital gain distributions. Capital gains don't become US government interest just because the fund holds Treasuries — the fund has to actually earn and pass through interest income for the exemption to apply. I uploaded my 1099-DIV and the fund's percentage breakdown to taxr.ai and it identified exactly which dollar amount to carry to Virginia's subtraction line, checking it against the fund's statement. That part saved me from guessing.

Nina S.

Author

That's the clarification I needed most. I was second-guessing whether box 2a could carry any of the exemption and apparently it can't. Will just apply the 34% to box 1a and use that subtraction on the state return.

Confirmed this is correct. Virginia Schedule ADJ is where the subtraction goes, and it's sourced only from dividends derived from US obligations, not capital gains from the fund.

I work in finance and can add one wrinkle: some funds also have a portion of their capital gain distributions that come from selling US Treasuries inside the fund. That does NOT pass through the state exemption to you as a shareholder. The exemption for US government obligations only covers interest income, not capital gains the fund itself realized on those obligations.

Nina S.

Author

Good to know — my fund's statement only shows a percentage for interest income anyway, so it sounds like I'm in the clear there.

My situation last year was similar. Held a Treasury bond fund for two years, sold it, got a 1099-DIV plus a 1099-B. The 1099-B covered my actual sale — proceeds and cost basis for the shares I sold. The 1099-DIV covered distributions the fund paid me while I owned it. Two separate forms, two separate places on the return.

Next step I'm on: figuring out whether my fund's 1099-B shows basis reported to the IRS (box 12 checked on the 1099-B). If it does, it goes in Part II of Form 8949 with box D checked since you held more than a year. If the fund acquired your shares before 2012 it might show basis as not reported and you'd use box E instead.

Nina S.

Author

Mine shows basis reported and the shares were acquired in 2021, so box D it is. The holding period is well over a year so definitely long-term.

I had Taxr read through my fund's supplemental percentage breakdown alongside my 1099-DIV line by line. It flagged that one fund I owned listed the government obligation percentage based on income earned, not income distributed, which would have given me a slightly overstated subtraction if I hadn't caught it. Worth double-checking which basis your fund used. The subtraction on my state return ended up being a few hundred dollars less than I first calculated.

Nina S.

Author

That's a nuance I never would have caught on my own. I'll go back and re-read the fund's methodology note before I finalize the state subtraction.

For the Schedule D side: when you enter the sale of your fund shares on Form 8949, you'll put the cost basis shown on your 1099-B in column (e); if that reported basis is wrong, you fix it with an adjustment in column (g) rather than changing column (e). If the 1099-B shows the right basis and no adjustments are needed, nothing goes in column (g). The long-term gain (or loss) flows to Schedule D Part II and eventually to line 15.

Something I confirmed with my own fund: the percentage breakdown they give you in the supplemental is usually based on the full calendar year of the fund's income. If you only owned the fund for part of the year you still use their percentage — you apply it to whatever dividends you personally received, not to what the fund earned in total.

Next step I ran into: some states require the fund to exceed a minimum threshold of US government income before you can claim any subtraction at all. Virginia currently has such a rule. Worth reading your state's instructions before claiming any amount.

Nina S.

Author

Virginia's threshold — I need to look that up. My fund is well above 50% US obligations so I think I'm fine but I'll confirm in the state instructions.

The holding period for shares you receive through a reinvested dividend starts fresh on the day after that reinvestment, not on the date of your original purchase. So if any of your shares came from dividend reinvestment you might have a mix of long-term and short-term lots depending on when each one was reinvested.

Nina S.

Author

I do have a few reinvested dividend shares from 2023. Those would still be long-term since I sold in 2025 though — over a year for all of them.

My accountant pointed out that box 2a on the 1099-DIV (long-term capital gain distributions) goes to Schedule D line 13 but it also gets included on your Form 1040 Schedule D Part II regardless of how long you personally held the fund. The fund's own holding period determines it's long-term — yours doesn't matter for that box.

Circling back to the state piece — most states that exempt US government obligation income follow the same logic Virginia does: only interest income qualifies, not dividends from stocks held by the fund, not capital gains. If your fund holds agencies like Fannie Mae or Freddie Mac those are NOT exempt in most states even though they might look similar to Treasuries.

Correct on agencies. GNMA, Fannie, Freddie — most states don't allow the exemption for those. Only direct obligations of the US Treasury generally qualify. The fund's supplemental should break them out separately.

Nina S.

Author

My fund's breakdown separates direct Treasury obligations from agency bonds. The 34% figure is only the Treasury portion, so I should be okay using that number.

I sold a bond fund two years ago and had the same 1099-DIV plus 1099-B situation. The piece that tripped me up was entering my adjusted cost basis correctly on Form 8949 when I had reinvested dividends. Each reinvestment creates a new lot at the NAV on that date. Your brokerage's cost basis statement should list all of them.

Nina S.

Author

My brokerage does show every reinvested lot with its own date and basis. I just need to make sure I'm reporting each one correctly on 8949 or at least confirming the totals match.

One broker-side thing: if your fund's 1099-B uses average cost basis (which many mutual funds default to), that average is across all your shares. You can't then pick individual lots. If average cost is on the 1099-B that's what goes in column (e) of Form 8949, and the adjustment column (g) stays blank if it's accurate.

Publication 550 on the IRS site (irs.gov/publications/p550) covers holding period rules and how capital gain distributions work in some detail if you want the primary source. Chapter 1 covers investment income including mutual fund distributions.

Topic no. 409 at irs.gov/taxtopics/tc409 is a shorter read on the capital gains and losses side if you just need that piece.

Worth noting: if you end up with a net capital loss after everything washes out on Schedule D, there's a limit on how much of that loss you can use against ordinary income in a single year. Publication 550 and the Schedule D instructions cover the carryover worksheet if that applies to you.

Nina S.

Author

In my case I have a gain not a loss, but useful to flag for anyone else reading this thread who might be in that position.

To summarize the flow for anyone following: US government interest from the fund → apply the fund's percentage to box 1a dividends → state subtraction line. Box 2a capital gain distributions → Schedule D line 13. Sale of your fund shares → Form 8949 → Schedule D Part II. Three separate buckets, all from one fund, all handled differently.

Next step once you have those three buckets sorted: double-check that the total capital gain on Schedule D matches the sum of line 13 (distributions) plus whatever flows in from Form 8949 for the actual sale. Easy place for a discrepancy to hide.

If your state return software asks for the EIN of the fund paying the US government obligation dividends, that's on the 1099-DIV itself in the payer's box. Some state programs pull it automatically but some require manual entry for the subtraction to calculate.