Just because you spend $40,000 a year from your $1M portfolio doesn't necessarily mean that your MAGI is $40,000 a year.
Here is an example for a couple that has $200,000 of already taxed money in CD ladders, $200,000 in a taxable brokerage account, and $600,000 in a IRA or 401K:
Say they are...