to compute AGI and MAGI
IRC §62 · Form 1040 Line 11 · MAGI Add-Backs · TY 2025 & 2026
Compute your Adjusted Gross Income under IRC §62, then see the seven different Modified Adjusted Gross Income figures the Code uses - for the IRA deduction, Roth IRA limit, Premium Tax Credit, education credits, student loan interest, NIIT, and Medicare IRMAA. Each MAGI applies a different set of add-backs.
Want the full rules - exactly which items are added back for each MAGI, why the OBBBA tips/overtime/senior deductions do NOT change AGI, and how to lower your MAGI to qualify for a credit? Read the companion guide.
Read the Modified Adjusted Gross Income (MAGI) Guide →Adjusted Gross Income (AGI) is your total income (Form 1040 line 9) minus the above-the-line adjustments in IRC §62 - it lands on Form 1040 line 11. Modified Adjusted Gross Income (MAGI) is AGI with certain items added back, and there is no single MAGI: each tax benefit defines its own. The IRA-deduction and Roth MAGI add back the IRA deduction, student loan interest, foreign exclusions, savings bond interest, and adoption benefits (Roth also subtracts conversion income). The Premium Tax Credit MAGI adds tax-exempt interest, foreign income, and non-taxable Social Security. Education credits and student loan interest add foreign income and Puerto Rico/American Samoa income. NIIT adds net foreign income; Medicare IRMAA adds tax-exempt interest and uses your MAGI from two years prior. For most filers with no foreign income, tax-exempt interest, or IRA/student loan deduction, MAGI equals AGI. The new OBBBA tips, overtime, car loan, and senior deductions are below-the-line and do not reduce AGI or MAGI.
Every MAGI starts from AGI (Form 1040 line 11) and adds back a provision-specific list of items. The table below summarizes what each MAGI adds back. The calculator above applies these automatically.
| Provision (Code section) | MAGI = AGI plus | Statutory source |
|---|---|---|
| Traditional IRA deduction (§219) | IRA deduction + student loan interest + foreign exclusion + savings bond interest + adoption benefits | Pub 590-A Worksheet 1-1 |
| Roth IRA contribution (§408A) | Same as IRA MAGI, then − Roth conversion/rollover income | Pub 590-A Worksheet 2-1 |
| Premium Tax Credit (§36B) | Tax-exempt interest + foreign exclusion + non-taxable Social Security | §36B(d)(2)(B) |
| Education credits AOTC / LLC (§25A) | Foreign exclusion + Puerto Rico / American Samoa income | §25A(d)(3) |
| Student loan interest (§221) | Student loan interest deduction + foreign exclusion + Puerto Rico / American Samoa income | §221(b)(2)(D) |
| Net Investment Income Tax (§1411) | Net foreign earned income exclusion | §1411(d) |
| Medicare IRMAA | Tax-exempt interest (using MAGI from 2 years prior) | SSA POMS HI 01101.010 |
Note the asymmetry: the IRA deduction and the student loan interest deduction reduce AGI, but they are added back for the IRA and Roth MAGI - so claiming them does not help you qualify for those two specific limits. They DO help the Premium Tax Credit, education credit, NIIT, and IRMAA MAGI, because those definitions do not add them back. For full rules see the MAGI Guide.
The calculator runs in three stages: build AGI from income and adjustments, apply each provision-specific add-back to compute the seven MAGIs, then compare each MAGI to the threshold for your filing status and tax year.
AGI = Total Income (Form 1040 line 9) − Above-the-Line Adjustments. The adjustments allowed in computing AGI are listed in IRC §62(a) and reported on Schedule 1 Part II: the deductible part of self-employment tax, HSA deduction (§223), self-employed health insurance (§162(l)), self-employed retirement contributions (§404), the traditional IRA deduction (§219), student loan interest (§221), educator expenses up to $300 (§62(a)(2)(D)), the penalty on early withdrawal of savings, and a few others. AGI lands on Form 1040 line 11.
Each MAGI = AGI + provision-specific add-backs. The calculator computes all seven: IRA-deduction MAGI and Roth MAGI (Pub 590-A Worksheets 1-1 and 2-1), Premium Tax Credit MAGI (§36B), education credit MAGI (§25A), student loan interest MAGI (§221), NIIT MAGI (§1411), and Medicare IRMAA MAGI. The Roth MAGI additionally subtracts income from Roth conversions and rollovers. For a filer with no foreign income, no tax-exempt interest, no savings bond or adoption exclusion, and no IRA or student loan deduction, every MAGI equals AGI.
Each MAGI is compared to the relevant phase-out range for your filing status and tax year. The IRA and Roth ranges come from IRS Notice 2025-67 (2026) and Notice 2024-80 (2025). The student loan range comes from Rev. Proc. 2025-32 §4.29 (2026). The education credit range ($80K-$90K single / $160K-$180K MFJ) is frozen by FCAA 2020 §104. The NIIT thresholds ($200K / $250K / $125K) are statutory and not indexed. The Premium Tax Credit uses a percentage of the federal poverty line, and IRMAA uses a CMS bracket table with a two-year lookback, so the calculator reports those MAGI figures and links to the dedicated tools rather than applying a single dollar threshold.
The standard deduction, itemized deductions (Schedule A), and the §199A QBI deduction are subtracted AFTER AGI to reach taxable income - they do not reduce AGI. The four OBBBA Schedule 1-A deductions (no tax on tips under §224, no tax on overtime under §225, car loan interest under §163(h)(4), and the $6,000 senior deduction) are also below the line: the Schedule 1-A total flows to Form 1040 line 13b, after the AGI line. Per IRS guidance, these "Additional Deductions" are not used in computing AGI, so they do not change any MAGI figure either.
The thresholds below are what the calculator compares your MAGI against. The IRA and Roth ranges are inflation-indexed; the education credit and NIIT thresholds are fixed.
| Provision | Single / HOH | MFJ / QSS | MFS |
|---|---|---|---|
| Traditional IRA deduction (covered), 2026 | $81,000 - $91,000 | $129,000 - $149,000 | $0 - $10,000 |
| Traditional IRA deduction (covered), 2025 | $79,000 - $89,000 | $126,000 - $146,000 | $0 - $10,000 |
| Roth IRA contribution, 2026 | $153,000 - $168,000 | $242,000 - $252,000 | $0 - $10,000 |
| Roth IRA contribution, 2025 | $150,000 - $165,000 | $236,000 - $246,000 | $0 - $10,000 |
| Education credits AOTC / LLC (both years) | $80,000 - $90,000 | $160,000 - $180,000 | Ineligible |
| Student loan interest, 2026 | $85,000 - $100,000 | $175,000 - $205,000 | Ineligible |
| Student loan interest, 2025 | $85,000 - $100,000 | $170,000 - $200,000 | Ineligible |
| NIIT 3.8% threshold (both years) | $200,000 | $250,000 | $125,000 |
For the traditional IRA deduction, a contributor who is NOT covered by a workplace plan but is married to someone who IS uses a separate MFJ range of $242,000-$252,000 for 2026 ($236,000-$246,000 for 2025). A contributor not covered by any plan and not married to a covered spouse has no income limit on deductibility. See the Roth IRA Contribution Calculator and Roth IRA Limits Guide for the full IRA and Roth phase-out math.
The most common MAGI mistake we see is treating AGI and MAGI as interchangeable. They are equal for a large share of W-2 filers, which lulls people into assuming they always match. The moment a client has tax-exempt municipal bond interest, a foreign earned income exclusion, or non-taxable Social Security, the MAGI for at least one benefit jumps above AGI - and the client who was "comfortably under" a threshold on AGI is suddenly over it on MAGI. We always recompute the specific MAGI for the specific benefit at issue, never assume AGI is a safe proxy.
The second pattern is the IRA and Roth add-back trap. Clients near the Roth phase-out often ask whether maxing their traditional IRA deduction or claiming student loan interest will pull their MAGI under the Roth limit. It will not - Pub 590-A Worksheet 2-1 adds both items back. The levers that actually reduce Roth MAGI are the ones that reduce AGI without being added back: a bigger pre-tax 401(k) deferral, an HSA contribution, or (for the self-employed) a larger SEP or Solo 401(k) contribution. We model those instead.
The third pattern is the Roth conversion versus IRMAA timing conflict. A Roth conversion raises AGI (and therefore the IRMAA MAGI) in the conversion year, but because IRMAA uses MAGI from two years prior, the Medicare premium hit lands two years later. We map this out for clients age 63 and up before any large conversion, because a conversion at 63 raises premiums at 65 when they first enroll in Medicare. The Roth MAGI itself subtracts conversion income, so the conversion does not block future Roth contributions - but the IRMAA surcharge two years out is a real and often-missed cost.
The fourth pattern is the expat AGI illusion. A client with $80,000 of foreign earned income excluded shows a tiny AGI, but every MAGI adds the exclusion back. For the education credit and student loan interest MAGI, that $80,000 add-back routinely pushes an otherwise-eligible expat completely out of the benefit. We flag the foreign exclusion as a MAGI add-back on every expat return so the client is not surprised when the credit disappears.
The fifth pattern is the OBBBA Schedule 1-A misconception. Since 2025, clients with tips or overtime income assume those new deductions lower their AGI and therefore help them qualify for AGI-driven benefits. They do not. The Schedule 1-A deductions sit on Form 1040 line 13b, below the AGI line, so they reduce taxable income but never AGI or MAGI. We correct this at intake because a client who plans around a "lower AGI" from tips can badly misjudge their Premium Tax Credit or IRA deductibility.
If you have no tax-exempt interest, no foreign income, no IRA or student loan deduction, and no savings bond or adoption exclusion, your MAGI equals your AGI for every purpose. Use the single AGI figure against the relevant threshold. Confirm your filing status with the Filing Status Calculator.
Remember the IRA deduction and student loan interest are added back for the IRA and Roth MAGI. The levers that actually lower those MAGIs are AGI reductions that are not added back: a larger pre-tax 401(k) deferral, an HSA contribution, or a self-employed retirement plan. Run the numbers with the Roth IRA Contribution Calculator and 401(k) Contribution Calculator.
A Roth conversion raises your IRMAA MAGI in the conversion year, and IRMAA uses MAGI from two years prior - so a conversion at age 63 can raise premiums at 65. Model the conversion against the IRMAA two-year lookback before you convert. The Roth MAGI itself subtracts conversion income, so the conversion does not block future Roth contributions.
Foreign earned income exclusion and tax-exempt interest are added back for most MAGI figures, so a low AGI can still mean a disqualifying MAGI. Enter those amounts in Step 2 above and check each benefit's MAGI individually before assuming you qualify. Read the MAGI Guide for the full add-back rules.