Adjusted gross income (AGI) and MAGI calculator

US

Type your income lines and the adjustments you claim to get the adjusted gross income of Form 1040 line 11a, in the order the IRS worksheets use. The result also lists the modified AGI of each rule, because each one adds back something different.

The year of the return. 2025 uses the final forms; 2026 uses the amounts the IRS has published for 2026, with forms and instructions still in draft.
The status on Form 1040. A married person filing separately says whether they lived with their spouse at any time of the year, which changes the IRA and Roth ranges.
$
Form 1040 line 1z: the total of your W-2 wages and the other earned income lines. On a joint return, both spouses’ together.

Result

Summary

Adjusted gross income (Form 1040 line 11a)

$64,150.00

Total income (line 9)
$72,650.00
Adjustments to income (line 10)
$8,500.00
Traditional IRA deduction (Schedule 1 line 20)
$4,000.00
Student loan interest deduction (line 21)
$1,500.00
Modified AGI for the traditional IRA
$69,650.00
Modified AGI for the Roth IRA
$69,650.00
Modified AGI for student loan interest
$65,650.00
Modified AGI for the premium tax credit
$64,150.00
Modified AGI for the net investment income tax
$64,150.00
Modified AGI for Schedule 1-A
$64,150.00
Roth IRA contribution limit, yours
$3,000.00
Modified AGI above the net investment income tax threshold
$0.00

A calculation of a US federal return from the IRS forms, instructions and publications, for tax year 2025 and the 2026 amounts. It computes no tax, and it does not say what to claim or contribute: your own return decides. The adjustments of lines 12, 14, 23 and 24a to 24k are one figure to type, not worked out. It leaves out partial-year health savings accounts, the self-employed plan and health insurance iteration of Publication 974, the computation of taxable social security (type line 6b), dependents’ income on the premium tax credit form, state AGI, passive activity, at-risk and excess business loss limits (a loss you type is taken as allowed), and every country but the United States. A return filed in whole dollars rounds each line, so its figure can come out a dollar away from the one here.

A single filer with a plan at work, and a joint return in the IRA phase-out

A single filer of 38, covered by a plan at work, has $68,000 of wages, $450 of interest, $1,200 of dividends and a $3,000 capital gain: total income of $72,650.00. A $3,000 contribution to a health savings account is an adjustment before the IRA, so the modified AGI for the IRA is $69,650.00, under the $79,000 where the deduction starts to shrink. The $4,000 IRA contribution is deducted in full, the student loan interest of $1,500 too, and the adjusted gross income is $64,150.00. The Roth IRA modified AGI is $69,650.00, and the Roth limit of $3,000.00 is what remains of the $7,000 after the traditional contribution.

A joint return with $126,000 of wages and $6,000 of interest has a modified AGI of $132,000.00 for the IRA. Both spouses are covered, so the range is $126,000 to $146,000: each $7,000 contribution is cut to $4,900.00, $9,800.00 in all. That lowers the income the student loan worksheet reads to $122,200.00, under its range, so the $2,500 is deducted in full and the adjusted gross income is $119,700.00.

How the adjusted gross income is built, and in which order

Total income, Form 1040 line 9, is the sum of the wages (1z), the taxable interest (2b), the ordinary dividends (3b), the taxable retirement payments (4b and 5b), the taxable social security (6b), the capital gain (7a) and the additional income of Schedule 1 line 10. Only the taxable amounts count: tax-exempt interest and the untaxed part of social security are left out. The foreign earned income exclusion is a negative on Schedule 1 line 8d. The adjustments of Schedule 1 part II are then subtracted: adjusted gross income is total income less adjustments, and it has no floor, so a loss makes it negative.

Some adjustments depend on the income left after others, and the IRS orders them so that no step needs its own result. The adjustments of lines 11 to 19a, 23 and 25 come first, the self-employed health insurance after the half of the self-employment tax and the plan contribution. The IRA deduction is figured next, on the income those leave. The student loan interest deduction is figured after it, on an income that already counts the IRA deduction. Adjusted gross income comes last. Taxable social security would come into that order too, which is why the page takes line 6b as a figure to type.

Each cap is the year’s figure: $300 for an educator in 2025 and $350 in 2026, $4,300 and $8,550 for a health savings account in 2025 ($4,400 and $8,750 in 2026) with $1,000 more from age 55, $70,000 for a self-employed plan contribution ($72,000 in 2026) and $2,500 of student loan interest. The IRA limit is $7,000, $8,000 from age 50, and $7,500 and $8,600 in 2026.

The page rounds only where a worksheet rounds. The IRA limit after the phase-out is the dollar limit times the part of the range that is left, raised to the next $10, and never under $200 while some of it is left; the deduction is the smallest of that, your compensation and your contribution. The student loan phase-out ratio is rounded half up to three decimals and capped at 1, and the deduction is the interest less that share of it, with cents rounded half up. The Roth limit uses the same three-decimal ratio. Everything else is added to the cent and left as it is.

One modified AGI for each rule, not one for all

There is no single modified AGI: each rule adds back its own items, so the page shows each one. For the traditional IRA it is the income before the IRA deduction and the student loan deduction, plus the foreign exclusion and housing deduction and the savings bond and adoption exclusions; the deduction phases out between $79,000 and $89,000 for a single filer covered by a plan in 2025 ($81,000 and $91,000 in 2026), and between $126,000 and $146,000 on a joint return ($129,000 and $149,000). A person not covered whose spouse is has a range of $236,000 to $246,000 ($242,000 to $252,000), and a married person filing separately who lived with the spouse a range of $0 to $10,000.

For the Roth IRA it starts from adjusted gross income, takes out Roth conversion income, and adds back the IRA and student loan deductions and the same exclusions; the limit phases out from $150,000 to $165,000 for a single filer and $236,000 to $246,000 for a joint return in 2025. The conversion comes out for the Roth only, never for the other rules. For student loan interest it is the income after the IRA deduction plus the foreign and Puerto Rico exclusions, with the deduction phased out from $85,000 to $100,000, or $170,000 to $200,000 jointly, in 2025.

For the premium tax credit it is adjusted gross income plus tax-exempt interest, the foreign exclusions and the part of social security that is not taxed; the form adds the same figure for dependents who must file, which the page leaves out, and counts a total below zero as zero. For the net investment income tax it adds the foreign earned income exclusion less the deductions allocable to it, and the page shows how far it is over the threshold of $200,000 ($250,000 jointly, $125,000 separately), not the tax. For Schedule 1-A it adds back the Puerto Rico and American Samoa exclusions and the foreign exclusions. The tips, overtime, car loan interest and senior deductions of Schedule 1-A are taken below adjusted gross income, on Form 1040 line 13b, and never change it.

What is left out, and what the 2026 figures are

The 2026 amounts are the ones the IRS has published in Revenue Procedures 2025-19 and 2025-32 and Notice 2025-67; the 2026 Form 1040, Schedule 1 and Schedule 1-A are still drafts and the 2026 worksheets are not out, so the 2026 IRA percentages are the limit over the width of the range, as the statute gives them. The page leaves out the other lines of part II that it lumps together, the months of a partial-year health savings account, the computation of taxable social security, the iteration the self-employed health insurance needs when the premium tax credit is claimed, dependents’ income on Form 8962, and state returns. It computes no tax and does not tell you whether to claim, contribute or file: your return, and the instructions to it, decide.

Sources

Questions

Why are there several modified AGIs here?

Because the law defines one for each purpose. The IRA, the Roth IRA, student loan interest, the premium tax credit, the net investment income tax and Schedule 1-A each start from adjusted gross income and add back different things, so a single “MAGI” would be right for one of them at most. The result lists each one under its own name.

Why is the IRA limit after the phase-out a multiple of $10?

The statute and the worksheets raise it to the next $10, and keep it at $200 while any of it is left. A figure printed in a publication that is not a multiple of $10 is an error of the example: the Publication 590-A example of a joint return prints $6,825 where the rule gives $6,830. The page follows the written rule.

Do the standard deduction and the tips or overtime deductions lower my AGI?

No. They come after adjusted gross income, on lines 12e and 13a to 13b of Form 1040, and give taxable income. The page stops at line 11a and shows the modified AGI that Schedule 1-A reads, so that you can see where the phase-outs of those deductions start.

Can adjusted gross income be negative?

Yes. A business or capital loss, or a net operating loss, can bring total income below zero, and the adjustments only lower it further. The page shows it signed. The premium tax credit form is the exception that treats a total below zero as zero.

Why is the Roth conversion subtracted only for the Roth IRA?

Publication 590-A says to take conversion income out of adjusted gross income only to work out the Roth IRA’s modified AGI. It stays in the income that every other phase-out reads, and in the adjusted gross income on the return.

Are the 2026 figures final?

The amounts are: the IRS published them in Revenue Procedures 2025-19 and 2025-32 and in Notice 2025-67. The 2026 forms and instructions are drafts at the time of reading, and the 2026 IRA worksheet is not out, so the page flags the year and applies the statute’s ratio. Check the final forms when they appear.

Reviewed by the DirectCalculators team. The formula is tested against its source’s worked examples, where the source gives any, and cases worked by hand; see how we calculate.