Loading the AGI Calculator...
- Calculates your adjusted gross income (AGI) from total income minus above-the-line adjustments.
- Calculates modified AGI (MAGI) using the Roth IRA definition.
- Shows the 2026 Roth IRA contribution you are allowed at that MAGI.
- Covers IRA, HSA, student loan interest, half of self-employment tax and other adjustments.
How to use the AGI calculator
Enter wages and other income
Use W-2 Box 1 wages, which already leave out pre-tax 401(k) and health insurance, plus interest, dividends, business profit and gains.
Enter your adjustments
Deductible traditional IRA contributions, HSA contributions you made yourself and student loan interest.
Add advanced items if they apply
Half of self-employment tax, other adjustments and any foreign earned income you excluded.
Choose filing status and age
These set your Roth IRA limit: $7,500, or $8,600 at age 50 or older.
AGI and MAGI explained
AGI is your total income minus certain adjustments that you can take whether or not you itemize. It appears on line 11 of Form 1040 and decides whether you qualify for many credits and deductions. MAGI, or modified AGI, starts from AGI and adds some items back. Different programs use different add-backs, so this tool uses the Roth IRA version.
AGI and MAGI formulas
AGI = total income − IRA deduction − HSA deduction − student loan interest (up to $2,500) − half of SE tax − other adjustments
Roth IRA MAGI = AGI + IRA deduction + student loan interest deduction + foreign earned income exclusion
Reduced Roth limit = full limit × (phase-out end − MAGI) ÷ phase-out width, rounded up to the next $10
2026 Roth IRA phase-outs: $153,000 to $168,000 for single and head of household, $242,000 to $252,000 for married filing jointly.
Worked examples
Example 1: $85,000 wages and $2,000 other income
No adjustments.
- Total income $87,000
- AGI $87,000
- Roth IRA MAGI $87,000
- Roth IRA contribution allowed $7,500
Below the single phase-out, so the full limit applies.
Example 2: adjustments lower AGI
$100,000 wages, $2,000 other income, $7,500 IRA, $2,000 HSA and $3,000 student loan interest.
- Total adjustments $12,000 (student loan interest capped at $2,500)
- AGI $90,000
- Roth IRA MAGI $100,000
The IRA deduction and student loan interest are added back for MAGI.
Example 3: inside the Roth phase-out
Single, MAGI of $160,000.
- Phase-out range $153,000 to $168,000
- Allowed Roth IRA contribution $4,000
$7,500 × ($168,000 − $160,000) ÷ $15,000 = $4,000.
Common above-the-line deductions
- Traditional IRA contributions, if eligible.
- Health savings account (HSA) contributions made outside payroll.
- Student loan interest, up to the limit.
- Half of self-employment tax.
- Self-employed health insurance premiums.
- Educator expenses for eligible teachers.
These lower your AGI even if you take the standard deduction, which can also help you qualify for credits and Roth IRA contributions.
Where an AGI calculator helps
Roth IRA eligibility
Check whether you can contribute directly.
Tax planning
See your tax with the income tax calculator.
Retirement savings
Plan contributions with the Roth IRA calculator.
Self-employed
Find half of SE tax with the 1099 tax calculator.
The student loan interest deduction phases out at higher incomes, which is not modeled here. Health insurance premium tax credits, Medicare premiums and other programs each use their own MAGI definition. This is an estimate, not tax advice.
AGI calculator FAQ
What is adjusted gross income?
Your total income minus above-the-line adjustments such as deductible IRA contributions, HSA contributions and student loan interest. It is on line 11 of Form 1040.
How do I calculate my AGI?
Add up all taxable income, then subtract the adjustments you qualify for. The standard deduction comes after AGI, not before.
What is the difference between AGI and MAGI?
MAGI starts from AGI and adds certain deductions or exclusions back. The exact add-backs depend on which tax rule or program is using it.
What is the Roth IRA income limit for 2026?
The contribution phases out between $153,000 and $168,000 of MAGI for single filers and between $242,000 and $252,000 for married filing jointly.
Is AGI the same as taxable income?
No. Taxable income is AGI minus the standard or itemized deduction and some other deductions.
Does a 401(k) contribution lower AGI?
Yes. Traditional 401(k) contributions through payroll are already removed from W-2 wages, so they lower AGI.
What deductions lower AGI?
Above-the-line deductions, such as traditional IRA and HSA contributions, student loan interest and half of self-employment tax.