AGI Calculator

Calculate adjusted gross income and Roth IRA MAGI, and the 2026 Roth IRA contribution you can make.

Loading the AGI Calculator...

AGI calculator in short
On this page

How to use the AGI calculator

1

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.

2

Enter your adjustments

Deductible traditional IRA contributions, HSA contributions you made yourself and student loan interest.

3

Add advanced items if they apply

Half of self-employment tax, other adjustments and any foreign earned income you excluded.

4

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

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.

Different MAGI rules

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

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.

Add up all taxable income, then subtract the adjustments you qualify for. The standard deduction comes after AGI, not before.

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.

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.

No. Taxable income is AGI minus the standard or itemized deduction and some other deductions.

Yes. Traditional 401(k) contributions through payroll are already removed from W-2 wages, so they lower AGI.

Above-the-line deductions, such as traditional IRA and HSA contributions, student loan interest and half of self-employment tax.

Sources and further reading

Embed this calculator on your website

Free to use on any site. Copy the code below and paste it into an HTML block on your page. Please keep the credit link under the calculator.

Show the embed code

Works with WordPress, Wix, Squarespace, Webflow and most site builders that allow HTML. How embedding works.

Estimates, not advice

PureCalculate’s calculators give estimates for planning and education. They aren’t financial, tax or legal advice. Fees and tax rules change, so check the official source before making a decision. Spotted a mistake? Please tell us through the contact page.

Scroll to Top