Adjusted gross income (AGI) and MAGI calculator
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.
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.
How this was calculated
Step by step, with the figures above.
- Total incomewages + interest + dividends + retirement income + social security + capital gain + business income + other income − foreign earned income exclusion. wages and salaries: $68,000.00 · taxable interest: $450.00 · ordinary dividends: $1,200.00 · taxable pensions and IRA distributions: $0.00 · taxable social security: $0.00 · capital gain or loss: $3,000.00 · business income or loss: $0.00 · other additional income: $0.00 · foreign earned income exclusion: $0.00
- Health savings account deductionthe smaller of your contributions and the limit, less employer contributions. your contributions: $3,000.00 · employer contributions: $0.00 · limit for your coverage and age: $4,300.00
- Adjustments before the IRA and student loan interesteducator expenses + HSA + half of self-employment tax + plan contribution + health insurance + early withdrawal penalty + alimony paid + other adjustments + housing deduction. educator expenses: $0.00 · health savings account: $3,000.00 · half of self-employment tax: $0.00 · plan contribution: $0.00 · self-employed health insurance: $0.00 · early withdrawal penalty: $0.00 · alimony paid: $0.00 · other adjustments: $0.00 · foreign housing deduction: $0.00
- Modified AGI for the traditional IRAtotal income − adjustments before the IRA + foreign earned income exclusion + housing deduction + savings bond and adoption exclusions. total income: $72,650.00 · adjustments before the IRA: $3,000.00 · foreign earned income exclusion: $0.00 · foreign housing deduction: $0.00 · savings bond and adoption exclusions: $0.00
- Traditional IRA deductionthe smaller of the limit after the phase-out (limit × (end of range − modified AGI) ÷ width of range), the compensation and the contribution. modified AGI: $69,650.00 · start of the range: $79,000.00 · end of the range: $89,000.00 · dollar limit: $7,000.00 · limit after the phase-out: $7,000.00 · compensation: $68,000.00 · contribution: $4,000.00. Rounded the limit after the phase-out goes up to the next $10, and is at least $200 inside the range.
- Modified AGI for student loan interesttotal income − adjustments before the IRA − IRA deduction + foreign earned income exclusion + housing deduction + Puerto Rico and American Samoa exclusions. total income: $72,650.00 · adjustments before the IRA: $3,000.00 · IRA deduction: $4,000.00 · foreign earned income exclusion: $0.00 · foreign housing deduction: $0.00 · Puerto Rico and American Samoa exclusions: $0.00
- Student loan interest deductioninterest up to the cap − interest × (modified AGI − start of the range) ÷ width of the range, the ratio to three decimals, at most 1. interest: $1,500.00 · cap on the interest: $2,500.00 · modified AGI: $65,650.00 · start of the range: $85,000.00 · end of the range: $100,000.00. Rounded to 2 decimal places, halves away from zero.
- Adjusted gross incometotal income − adjustments (the adjustments before the IRA + IRA deduction + student loan interest deduction). total income: $72,650.00 · adjustments before the IRA: $3,000.00 · IRA deduction: $4,000.00 · student loan interest deduction: $1,500.00
- Modified AGI for the Roth IRAAGI − Roth conversion income + IRA deduction + student loan interest deduction + foreign earned income exclusion + housing deduction + savings bond and adoption exclusions. adjusted gross income: $64,150.00 · Roth conversion income: $0.00 · IRA deduction: $4,000.00 · student loan interest deduction: $1,500.00 · foreign earned income exclusion: $0.00 · foreign housing deduction: $0.00 · savings bond and adoption exclusions: $0.00
- Roth IRA contribution limitthe smaller of the dollar limit and compensation, less the phase-out (ratio to three decimals), less contributions to other IRAs. modified AGI: $69,650.00 · start of the range: $150,000.00 · end of the range: $165,000.00 · dollar limit: $7,000.00 · compensation: $68,000.00 · contributions to traditional IRAs: $4,000.00. Rounded the limit after the phase-out goes up to the next $10, and is at least $200 inside the range.
- Modified AGI for the premium tax creditAGI + tax-exempt interest + foreign earned income exclusion + housing deduction + social security that is not taxed. adjusted gross income: $64,150.00 · tax-exempt interest: $0.00 · foreign earned income exclusion: $0.00 · foreign housing deduction: $0.00 · social security that is not taxed: $0.00
- Modified AGI for the net investment income taxAGI + foreign earned income exclusion less the deductions allocable to it. adjusted gross income: $64,150.00 · excluded foreign earned income, net: $0.00
- Amount over the net investment income tax thresholdmodified AGI − threshold of the filing status, never below 0. modified AGI: $64,150.00 · threshold: $200,000.00
- Modified AGI for Schedule 1-AAGI + Puerto Rico and American Samoa exclusions + foreign earned income exclusion + housing deduction. adjusted gross income: $64,150.00 · Puerto Rico and American Samoa exclusions: $0.00 · foreign earned income exclusion: $0.00 · foreign housing deduction: $0.00
Instructions for Form 1040 (2025), Schedule 1. Schedule 1 lines 11 to 26, the IRA Deduction Worksheet, the Student Loan Interest Deduction Worksheet and the rounding to whole dollars; read on 2026-11-27.
Form 1040 (2025) and Schedule 1 (2025). Lines 1a to 11b of the Form and parts I and II of the Schedule; read on 2026-11-27.
Publication 590-A, Contributions to Individual Retirement Arrangements (IRAs). Worksheets 1-1 and 1-2, the Roth Worksheets 2-1 and 2-2, Table 2-1, Appendix B and the ranges of 2025 and 2026; read on 2026-11-27.
Publication 970, Tax Benefits for Education. Chapter 4, student loan interest: the phase-out, Worksheet 4-1 and two examples; read on 2026-11-27.
Notice 2025-67, 2026 amounts for retirement plans and IRAs. The IRA, Roth IRA and plan limits and ranges for 2026; read on 2026-11-27.
Revenue Procedure 2025-32, 2026 inflation adjustments. The 2026 educator expense limit and student loan interest range; read on 2026-11-27.
Revenue Procedure 2025-19, 2026 limits on health savings accounts. The 2026 health savings account limits; read on 2026-11-27.
Instructions for Form 8962, Premium Tax Credit. Modified AGI and household income, Worksheet 1-1; read on 2026-11-27.
Instructions for Form 8960, Net Investment Income Tax. Line 13, the MAGI worksheet, and the thresholds of line 14; read on 2026-11-27.
Schedule 1-A (Form 1040), Additional Deductions. Part I, the modified AGI of the new deductions, and the phase-out thresholds; read on 2026-11-27.
Publication 560, Retirement Plans for Small Business. The defined contribution limits of 2025 and 2026; read on 2026-11-27.
26 U.S.C. 219(g), the limit on the deduction for active participants (Cornell Law School). The ratio, the $200 floor and the rounding of the reduction to $10; read on 2026-11-27.
Schedule D (Form 1040) (2025), Capital Gains and Losses. Line 21, the loss limit of line 7a for 2025; the 2025 Instructions for Form 1040 name no figure for it; read on 2026-11-27.
26 U.S.C. 1211(b), limitation on capital losses (Cornell Law School). Subsection (b), the same limit in the statute, used for 2026; read on 2026-11-27.
Instructions for Form 1040 (2025), Schedule 1: data for January 2025
Revenue Procedure 2024-25, 2025 limits on health savings accounts: data for January 2025
Publication 590-A, Contributions to Individual Retirement Arrangements (IRAs): data for January 2025
Revenue Procedure 2024-40, 2025 inflation adjustments: data for January 2025
Instructions for Form 8962, Premium Tax Credit: data for January 2025
Instructions for Form 8960, Net Investment Income Tax: data for January 2025
Schedule 1-A (Form 1040), Additional Deductions: data for January 2025
Instructions for Form 1040 (2025), Schedule 1: data for January 2025
Revenue Procedure 2024-25, 2025 limits on health savings accounts: data for January 2025
Publication 590-A, Contributions to Individual Retirement Arrangements (IRAs): data for January 2025
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
- Instructions for Form 1040 (2025), Schedule 1. Schedule 1 lines 11 to 26, the IRA Deduction Worksheet, the Student Loan Interest Deduction Worksheet and the rounding to whole dollars; read on 2026-11-27.
- Form 1040 (2025) and Schedule 1 (2025). Lines 1a to 11b of the Form and parts I and II of the Schedule; read on 2026-11-27.
- Publication 590-A, Contributions to Individual Retirement Arrangements (IRAs). Worksheets 1-1 and 1-2, the Roth Worksheets 2-1 and 2-2, Table 2-1, Appendix B and the ranges of 2025 and 2026; read on 2026-11-27.
- Publication 970, Tax Benefits for Education. Chapter 4, student loan interest: the phase-out, Worksheet 4-1 and two examples; read on 2026-11-27.
- Notice 2025-67, 2026 amounts for retirement plans and IRAs. The IRA, Roth IRA and plan limits and ranges for 2026; read on 2026-11-27.
- Revenue Procedure 2025-32, 2026 inflation adjustments. The 2026 educator expense limit and student loan interest range; read on 2026-11-27.
- Revenue Procedure 2025-19, 2026 limits on health savings accounts. The 2026 health savings account limits; read on 2026-11-27.
- Instructions for Form 8962, Premium Tax Credit. Modified AGI and household income, Worksheet 1-1; read on 2026-11-27.
- Instructions for Form 8960, Net Investment Income Tax. Line 13, the MAGI worksheet, and the thresholds of line 14; read on 2026-11-27.
- Schedule 1-A (Form 1040), Additional Deductions. Part I, the modified AGI of the new deductions, and the phase-out thresholds; read on 2026-11-27.
- Publication 560, Retirement Plans for Small Business. The defined contribution limits of 2025 and 2026; read on 2026-11-27.
- 26 U.S.C. 219(g), the limit on the deduction for active participants (Cornell Law School). The ratio, the $200 floor and the rounding of the reduction to $10; read on 2026-11-27.
- Schedule D (Form 1040) (2025), Capital Gains and Losses. Line 21, the loss limit of line 7a for 2025; the 2025 Instructions for Form 1040 name no figure for it; read on 2026-11-27.
- 26 U.S.C. 1211(b), limitation on capital losses (Cornell Law School). Subsection (b), the same limit in the statute, used for 2026; read on 2026-11-27.
- Instructions for Form 1040 (2025), Schedule 1: data for January 2025
- Revenue Procedure 2024-25, 2025 limits on health savings accounts: data for January 2025
- Publication 590-A, Contributions to Individual Retirement Arrangements (IRAs): data for January 2025
- Revenue Procedure 2024-40, 2025 inflation adjustments: data for January 2025
- Instructions for Form 8962, Premium Tax Credit: data for January 2025
- Instructions for Form 8960, Net Investment Income Tax: data for January 2025
- Schedule 1-A (Form 1040), Additional Deductions: data for January 2025
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.
Related calculators
- Discount calculator: stacked percent off and price before
- Tip and bill split calculator with round-up shares
- Unit price comparison: cost per kilo, litre, pound or piece
- Net worth calculator: assets, debts and home equity
- Price per square foot and square meter: compare two homes
- Basis points to percent: new rate and yearly interest
- Return on investment calculator: ROI and annualized return
- CAGR calculator: compound annual growth rate
- Stock profit calculator with fees and dividends
- Average share cost calculator for several purchases
- Return on equity calculator with DuPont breakdown
- Loan to value calculator: LTV, CLTV and HCLTV
- Net effective rent calculator with free months and credits
- Prorated rent calculator by day for a partial month
- Loan payment calculator with amortization schedule
- Loan payoff calculator: extra payments and interest saved
- Credit card payoff calculator: minimum or fixed payment
- Time value of money calculator: PV, FV, payment and rate
- Annuity payout calculator: income from savings
- Compound interest calculator with monthly deposits
- Effective annual rate calculator (APR to APY)
- CD calculator: interest, APY and a ladder for term deposits
- Simple interest calculator by days, months or years
- Rule of 72 calculator: years to double or the rate needed
- Net present value calculator: NPV and discounted cash flow
- IRR calculator: internal rate of return on yearly flows
- Payback period calculator: simple and discounted
- WACC calculator: weighted average cost of capital
- Price elasticity calculator: demand, supply, cross-price
- Rent affordability calculator: what rent a standard allows
- Debt to income ratio calculator: your DTI against a limit
- Real estate commission calculator: fee, VAT and split
- Sales tax calculator: add tax or find the price before it
- Loan APR calculator: the true yearly cost with fees
- Bond price and yield to maturity calculator
- Student loan repayment calculator for US federal loans
- Depreciation calculator: MACRS, straight line, declining
- Rental property depreciation calculator by country
- Cash rounding calculator: the cash total by country
- Coin counter: the value and weight of your coins
- PTO accrual calculator: leave earned per pay period
- PayPal fee calculator: what you keep from a payment
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.