If you've ever tried to figure out whether you qualify for a Roth IRA, a health insurance subsidy, or a tax credit, you've probably run into the term MAGI, Modified Adjusted Gross Income. It sounds intimidating, but once you understand the formula, it's actually one of the more straightforward numbers on your tax return.
This guide breaks down exactly what MAGI is, how it differs from AGI, and how to calculate it step by step for the specific benefit you're trying to qualify for. Whether you're checking Roth IRA eligibility, applying for ACA health subsidies, or figuring out Medicare premium surcharges, the calculation changes slightly depending on the purpose, and we'll cover each one.
What Is MAGI (Modified Adjusted Gross Income)?
MAGI is your Adjusted Gross Income (AGI) with certain deductions and exclusions added back in. The IRS uses this number to determine your eligibility for a wide range of tax benefits, including Roth IRA contributions, premium tax credits under the Affordable Care Act, and certain education credits.
The key thing to understand: MAGI isn't a single fixed number. It changes slightly depending on which tax benefit you're calculating it for, because different IRS programs add back different deductions. This is exactly why so many people get confused when comparing MAGI calculations for different purposes.
MAGI vs. AGI: What's the Difference?
This is the single most common point of confusion, so let's clear it up first.
Adjusted Gross Income (AGI) is your total gross income minus specific above-the-line deductions, things like traditional IRA contributions, student loan interest, and certain retirement plan contributions. You'll find your AGI on your Form 1040.
Modified Adjusted Gross Income (MAGI) starts with your AGI and adds certain items back in, most commonly:
- Traditional IRA deduction
- Student loan interest deduction
- Foreign earned income exclusion
- Tax-exempt interest income
- Excluded foreign housing costs
For most taxpayers who don't have these specific deductions or exclusions, MAGI and AGI end up being the same number. But if you do have any of these items, your MAGI will typically be higher than your AGI.
Term
What It Is Where to Find It
Gross Income Total income before any deductions Sum of all income sources
AGI Gross income minus above-the-line deductions Form 1040, specific line
MAGI AGI plus certain add-backs (varies by purpose) Calculated manually based on AGI.
How to Calculate MAGI: The Basic Formula
Here's the general formula that applies to most MAGI calculations:
MAGI = AGI + Traditional IRA deduction + Student loan interest deduction + Foreign earned income exclusion + Tax-exempt interest + Excluded foreign housing costs
Not every taxpayer will have all these add-backs. If you don't have any of them, your MAGI simply equals your AGI. The exact add-back list can shift slightly depending on which tax benefit you're calculating for, which is why we're breaking down the most common ones separately below.
For the most current and official add-back rules, always cross-reference with the IRS guidance on MAGI, since thresholds and specific add-back items are adjusted periodically.
How to Calculate MAGI for Roth IRA Contributions
If you're checking whether you're eligible to contribute to a Roth IRA, your MAGI calculation starts with your AGI and adds back:
- Traditional IRA deduction
- Student loan interest deduction
- Foreign earned income and housing exclusions
- Savings bond interest excluded for education expenses
- Employer-provided adoption benefits excluded from income
This number is then compared against the IRS's annual Roth IRA income phase-out thresholds. If your MAGI falls above the upper limit for your filing status, your ability to contribute directly to a Roth IRA phases out completely. This directly connects to the broader 401(k) vs IRA tax benefits comparison, since your MAGI can determine whether a Roth IRA is even available to you as an option.
How to Calculate MAGI for ACA Health Insurance Subsidies
For Affordable Care Act premium tax credits, MAGI calculation adds back a slightly different set of items to your AGI:
- Tax-exempt interest income
- Foreign earned income exclusion
- Non-taxable Social Security benefits
This MAGI figure determines your eligibility for premium tax credits on the Health Insurance Marketplace, as well as the size of the subsidy you receive. A common misconception here is that MAGI for ACA purposes is identical to MAGI for Roth IRA purposes, it isn't. The add-back list is different, so it's worth calculating each separately rather than assuming one number applies everywhere.
How to Calculate MAGI for IRMAA (Medicare Premiums)
If you're on Medicare, your MAGI directly affects what you pay for Part B and Part D premiums through the Income-Related Monthly Adjustment Amount (IRMAA). For this calculation, MAGI adds back:
- Tax-exempt interest income
- Foreign earned income exclusion
The twist here is timing: Medicare uses your MAGI from two years prior to determine your current premium. So your 2026 Medicare premiums are typically based on your MAGI from your 2024 tax return, not your current year's income.
Does MAGI Include Standard Deduction?
No. The standard deduction is already factored into your AGI calculation, since it's subtracted from your gross income before you arrive at AGI. When you calculate MAGI by adding back specific items to your AGI, the standard deduction stays subtracted, it's not one of the items added back.
Is MAGI Calculated Before or After Taxes?
MAGI is calculated before you determine your final tax liability. It's used earlier in the process, specifically to determine eligibility for certain deductions, credits, and contribution limits, not to calculate the tax you actually owe. Think of MAGI as an eligibility checkpoint that happens before your final tax bill is calculated.
Does MAGI Include 401(k) Contributions?
Traditional 401(k) contributions are made pre-tax, meaning they're already excluded from your gross income before you even reach the AGI calculation. Because of this, 401(k) contributions don't get added back when calculating MAGI, they're simply never included in the first place. This is different from a Traditional IRA deduction, which is subtracted from gross income to reach AGI, and then added back when calculating MAGI for certain purposes.
Is Social Security Income Included in MAGI?
For most standard MAGI calculations, taxable Social Security benefits are already included in your AGI, so they carry through to your MAGI automatically. However, for ACA and some Medicaid MAGI calculations specifically, non-taxable Social Security benefits get added back in as well, even though they wouldn't normally appear in your AGI at all.
How to Lower Your MAGI (Legally)
If your MAGI is sitting just above a critical threshold, whether for Roth IRA eligibility, ACA subsidies, or IRMAA, there are a few legitimate strategies worth understanding:
- Increase pre-tax retirement contributions. Contributing more to a Traditional 401(k) reduces your gross income before it ever reaches AGI or MAGI.
- Contribute to a Health Savings Account (HSA). HSA contributions are typically an above-the-line deduction, lowering AGI directly.
- Time capital gains carefully. Since capital gains count toward MAGI, spreading large gains across multiple tax years can help you stay under key thresholds.
- Review timing of income recognition. If you're self-employed or have flexible income timing, shifting income between tax years can sometimes help manage which year your MAGI falls into.
These strategies get more complex quickly, especially when multiple tax benefits with different thresholds are involved. If your situation involves significant income near these phase-out lines, it's worth reviewing your options with a tax professional rather than guessing. Our comparison of CPA vs tax software can help you decide which approach fits your complexity level.
MAGI and Capital Gains: What You Need to Know
Capital gains, both short-term and long-term, count toward your AGI and therefore your MAGI. This matters significantly if you're near a Roth IRA or ACA subsidy threshold, since a large one-time capital gain (from selling stock or property, for example) could unexpectedly push your MAGI above a critical line. If you're planning a significant sale, it's worth understanding how short-term vs long-term capital gains tax rules apply, since the type of gain affects both your tax rate and your MAGI calculation.
MAGI for Business Owners and the Self-Employed
If you run a business, whether as a sole proprietor, LLC owner, or through an S-corp structure, your MAGI calculation includes your net business income after standard business deductions, but before certain personal above-the-line deductions are added back. This is another area where business structure choices can ripple into personal tax outcomes. If you're still deciding on your entity structure, our guide on sole proprietorship vs LLC tax differences is a useful starting point, since it directly affects how your business income flows into your personal MAGI calculation.
Why Choose Brandora Services for MAGI and Tax Planning
MAGI calculations touch nearly every major financial decision, from retirement contributions to health insurance costs to Medicare premiums, and getting the number wrong can mean missing out on a tax credit or accidentally over-contributing to a Roth IRA. At Brandora Services, our team helps individuals and business owners calculate these numbers accurately and plan proactively around key thresholds, rather than discovering a problem after filing.
If you're managing both business and personal tax planning together, explore our full range of services to see how we help simplify these overlapping calculations into one coherent strategy.
Frequently Asked Questions
What is Modified Adjusted Gross Income (MAGI)? MAGI is your Adjusted Gross Income with certain deductions and exclusions added back, and the IRS uses it to determine eligibility for benefits like Roth IRA contributions, ACA subsidies, and Medicare premium calculations.
How do I calculate my MAGI? Start with your AGI from Form 1040, then add back specific items like Traditional IRA deductions, student loan interest deductions, and foreign earned income exclusions, the exact add-backs depend on which tax benefit you're calculating for.
What is the difference between AGI and MAGI? AGI is your gross income minus above-the-line deductions, while MAGI takes that AGI and adds certain deductions and exclusions back in. For many taxpayers without these specific items, AGI and MAGI are identical.
Does MAGI include standard deduction? No, the standard deduction is already factored into your AGI before you calculate MAGI, so it isn't one of the items added back.
How does MAGI affect Roth IRA eligibility? Your MAGI is compared against annual IRS income thresholds for your filing status, and if your MAGI exceeds the upper limit, your ability to contribute directly to a Roth IRA phases out completely.
Is MAGI calculated before or after taxes? MAGI is calculated before your final tax liability is determined. It's used as an eligibility checkpoint for credits, deductions, and contribution limits, not to calculate the tax you owe.
Final Thoughts: Getting Your MAGI Calculation Right
MAGI isn't one single number, it shifts slightly depending on whether you're calculating Roth IRA eligibility, ACA subsidies, or Medicare premiums. Getting it right matters, since a miscalculation can mean an accidental excess Roth contribution, a smaller-than-expected health insurance subsidy, or an unwelcome Medicare premium surcharge.
If your income sits near any of these thresholds, or if you're juggling business income alongside personal tax planning, get in touch with Brandora Services to work through your specific numbers. You can also explore more tax planning guides on our blog, including our breakdown of federal tax vs state tax obligations, which pairs well with understanding how MAGI fits into your broader tax picture.
A quick honest note: MAGI calculations get genuinely complex once multiple tax benefits are in play, and the add-back rules shift depending on the specific credit or program. I'd keep a visible disclaimer on the published page reminding readers this is educational content, not personalized tax advice, and that current-year thresholds should always be verified directly against IRS.gov before filing. Want me to also draft the title tag, meta description, and URL slug for this piece?

