Does capital gains count as income for Obamacare subsidies?

Trying to figure out if does capital gains count as income for Obamacare before I sell some inherited stock this year. I'm retired, Social Security is my main income, and I'm on a marketplace plan with a pretty good subsidy. My broker says the stock has gone up a lot since the person I inherited it from passed. I went to the marketplace site and it mentions MAGI but doesn't spell out every income type. I looked at my last 8962 and it uses a MAGI number but I can't find exactly what feeds into it. If I sell enough shares to push my income way up, does that change my subsidy? Could it wipe it out entirely? Trying to plan the sale before I do something I can't undo.

35 comments

Yes, capital gains absolutely count as income for ACA premium tax credit purposes. The credit is based on your MAGI, and for marketplace purposes MAGI includes net capital gains. Long-term gains, short-term gains, all of it flows into that number. If a big sale pushes your MAGI above the threshold where your subsidy phases out, you'd have to repay part or all of the advance credit when you file. The repayment calculation happens on Form 8962.

Omar V.

Author

Thanks, that's the confirmation I needed. So I should be running the 8962 math before I sell, not after. Going to look at last year's 8962 to understand the income ranges.

Worth being specific: for the ACA the MAGI definition adds back things like tax-exempt interest and nontaxable Social Security to your adjusted gross income. Capital gains are already in AGI so they don't need to be "added back" separately - they just sit in AGI and flow straight into MAGI. Selling a large lot of stock in one year can be a real cliff situation depending on where your baseline income is.

The cliff effect caught me off guard last year. I had a relatively modest gain but it was enough to bump me into a repayment situation. Definitely worth projecting the full year number before you sell.

Omar V.

Author

Good to understand the mechanics. My Social Security plus the gains could add up fast. I'll map it out.

I had a similar inherited stock situation last year and the basis question alone was complicated enough that I uploaded my 1099-B and the account statements to taxr.ai. It read through the cost basis entries, flagged which lots were showing the estate's date-of-death value as basis and which weren't, and laid out what I'd actually owe versus what the broker was showing. Saved me from assuming the broker's numbers were right. For the ACA income piece, once I had the real gain figured out I could see exactly how it would hit my MAGI and whether I needed to stagger the sale across two years.

Omar V.

Author

The basis piece is actually another thing I wasn't sure about. Inherited property gets stepped-up basis to date of death value right? Good to know the broker numbers might not reflect that correctly.

Right, inherited property generally takes the fair market value at the date of death as the basis under Publication 551. And it's treated as long-term automatically regardless of how long you hold it. But you have to verify the broker has the right number - mine didn't.

Key question for your situation: are you getting advance payments of the premium tax credit sent directly to your insurer each month? If yes, any income you didn't project when you enrolled gets reconciled on Form 8962 at tax time. A large capital gain in the same year can mean you have to pay back some or all of the advance payments.

Omar V.

Author

Yes, the subsidy goes directly to the insurer. So I really do need to project this before selling. Is there a cap on repayment or is it unlimited?

There used to be repayment caps depending on your income relative to the federal poverty level, but they were eliminated for tax years starting in 2026. So for a sale this year there's no cap at all - any excess advance credit has to be repaid in full on Form 8962. The repayment limitation table in older Form 8962 instructions doesn't apply to 2026.

Retired here with a similar setup. Spread my sale over two tax years specifically because of this. Sold half in December, half in January. Kept each year's MAGI in a range where I didn't lose the full subsidy. Not perfect but better than one giant gain year.

Omar V.

Author

That's the approach I'm leaning toward. December and January split makes sense if the gain is large enough to cause problems all at once.

The IRS topic at irs.gov/taxtopics/tc409 is about the limit on deducting and carrying over capital losses, but long-term gains are taxable regardless - they don't disappear just because you're retired or on a fixed income. And since they're taxable they're in AGI and therefore in MAGI for 8962 purposes. No way around it.

Something I'd double check: inherited stock is long-term automatically per the holding period rules in Publication 550. The holding period rule says inherited property from a decedent is long-term regardless of how long you personally held it. So at least you're not looking at short-term rates on top of the subsidy problem.

Correct, and for the ACA MAGI calculation it doesn't matter whether the gain is long or short term - both count the same way for income purposes. The tax rate differs but the MAGI impact is the same.

Have you talked to a fee-only financial planner or CPA about Roth conversion laddering combined with this? Some people in the retired-on-marketplace-plan situation manage their MAGI very intentionally across years. Might be worth a conversation with an enrolled agent or CPA who works with retirees specifically.

Omar V.

Author

Haven't yet, but I'm thinking I should before I do anything. Good suggestion on finding someone who works with retirees specifically.

Before my sale last year I ran my whole tax picture by Taxr - gave it my prior year 1040, the 8962, and the projected 1099-B. It compared the MAGI on the 8962 to what the new gain would add, showed me the line-by-line difference, and flagged that I was close to a repayment cliff I hadn't noticed. I ended up splitting the sale. Helped me walk into the conversation with my CPA already knowing where the problem was.

Omar V.

Author

Prep work like that is what I've been missing. I'll pull last year's forms together first.

Pulling the 8962 is key because it shows the household income percentage on line 5 - that tells you how close to the edge you already are before any new income hits.

The 8962 instructions walk through the MAGI calculation step by step. Line 2a on the 1040 for tax-exempt interest and the nontaxable Social Security (line 6a minus line 6b) are what get added back. If your SS is partly nontaxable that portion gets added into MAGI even though it isn't in your AGI. Worth checking your 1040 lines before you project anything.

The 8962 instructions walk through the MAGI calculation step by step. Line 2a and 2b on the 1040 for tax-exempt interest and nontaxable Social Security are what get added back. If your SS is partly nontaxable that portion gets added into MAGI even though it isn't in your AGI. Worth checking your 1040 lines before you project anything.

Omar V.

Author

I didn't realize the nontaxable SS portion gets added back. That means my MAGI is already higher than my AGI before any stock sale. Good to know.

Exactly. Some people are already closer to the cliff than their AGI suggests. Run the MAGI number first, then layer in the projected gain on top.

Uploaded last year's 8962 and 1040 together to Taxr and it mapped out every line that feeds into the household income percentage - including the nontaxable SS add-back I'd been ignoring. It also drafted a simple worksheet showing what different sale amounts would do to that percentage so I could pick a number and see the subsidy impact before committing. Really useful when you're trying to decide between selling all at once or splitting.

Omar V.

Author

A worksheet like that is exactly what I need. I always do better when I can see numbers laid out rather than trying to track it in my head.

Just want to flag one thing that sometimes trips people up: if you sell at a loss it can offset gains, which lowers the net capital gain flowing into MAGI. If you have any losing positions in taxable accounts, reviewing them before year-end alongside your winning inherited shares could reduce the ACA income hit. Talk to a CPA or enrolled agent about whether that makes sense for your overall situation.

Omar V.

Author

I do have a couple of positions that are underwater. Worth looking at them together with the inherited shares before deciding how much to sell.

One more data point: Publication 550 at irs.gov/publications/p550 covers holding periods and what counts as a capital gain. And Publication 525 covers what goes into income generally. Between those two and the 8962 instructions you can piece together the full picture, it's just tedious to do manually.

The wash sale rules are worth keeping in mind if you do sell losing positions to offset your inherited stock gain. If you sell a losing position and buy it back within 30 days before or after the sale, the loss is disallowed and you can't use it to bring down your MAGI. The disallowed loss gets added to the basis of the repurchased shares instead. That's straight from Publication 550.

This is a solid summary of everything. I'm going to map out the MAGI, keep in mind there's no repayment cap on the 8962 for 2026, and talk to an enrolled agent before I sell anything. Thanks everyone.

Omar V.

Author

Noted. I'd probably want to wait the full period before rebuying anything I sold at a loss. Good to have this flagged before I start selling.

Bottom line from this thread as I read it: yes, net capital gains count toward your MAGI for the ACA premium tax credit on Form 8962. Project your full-year MAGI including the nontaxable SS add-back before selling. Consider splitting the sale across years. Watch wash sale rules if you're harvesting losses. And get a CPA or enrolled agent involved if the numbers are large enough that a mistake would cost you significantly.

Omar V.

Author

This is a solid summary of everything. I'm going to map out the MAGI, look at the 8962 repayment table in the instructions, and talk to an enrolled agent before I sell anything. Thanks everyone.