Does anyone have a calculator for modeling capturing capital gains with 0% taxes vs ACA subsidies? Right now we've retired and will have about $40k in income from dividends and interest and I would like to start capturing some capital gains, basically up to about $60k seems possible to stay under $78k and have 0% capital gains tax. (My understanding is the cutoff is post deductions, so $$78k+26k-$40k=$64k). However, we are also getting ACA subsidies and if we have an income of $104k we'll have priced ourselves out of the subsidies. I suspect there is a sweet spot of income to maximize the future tax savings and ACA subsidies. Before I try to throw everything into a spreadsheet, I thought I'd ask if this has already been solved somewhere.