Your adjusted gross income (AGI) is one of the most important numbers on a US tax return. It is line 11 of Form 1040: your total income minus a short list of "above-the-line" adjustments. The IRS uses it as the starting point for taxable income, and dozens of tax benefits — the earned income credit, IRA and Roth limits, education credits, the medical expense floor, premium tax credits — switch on or off depending on it.
This AGI calculator follows the form. It adds up wages, interest, dividends, business profit, capital gains and other income to get total income, then subtracts the adjustments from Schedule 1, Part II — and it applies the 2026 legal limits for you:
- the deductible half of self-employment tax, computed from your Schedule C profit;
- traditional IRA contributions ($7,500, plus $1,100 from age 50);
- HSA contributions made outside payroll ($4,400 self-only, $8,750 family);
- student loan interest (up to $2,500, phased out by MAGI);
- educator expenses ($350) and alimony under pre-2019 divorce agreements.
The result is your AGI, the MAGI used for the student-loan test, and an estimate of taxable income after the standard deduction. To go on to the tax itself, use the federal income tax calculator.
How to use this calculator
- Choose your filing status and age (catch-up contributions start at 50 for IRAs and 55 for HSAs).
- Enter wages from W-2 box 1 — already net of pre-tax 401(k) and payroll HSA contributions — plus interest, dividends, business profit, capital gains and other income. Losses can be entered as negative numbers.
- Enter each adjustment: deductible IRA contributions, HSA contributions you made directly, student loan interest from Form 1098-E, educator expenses, pre-2019 alimony and anything else on Schedule 1 Part II.
- Read your AGI. Notes explain any amount that was capped or phased out.
The formula
The deductible half of self-employment tax on a profit is
with a $184,500 Social Security wage base in 2026. Student loan interest (at most $2,500) is reduced when MAGI exceeds $85,000 ($175,000 joint):
using and for joint returns; MAGI here is AGI figured without the student-loan deduction.
Worked example
Single filer, age 38: $68,000 of wages, $400 interest, $600 dividends, a $12,000 side business and a $1,500 capital gain. She put $6,000 in a traditional IRA, $3,000 directly into her HSA and paid $1,800 of student loan interest.
- Total income: 68,000 + 400 + 600 + 12,000 + 1,500 = $82,500.00
- Self-employment tax on $12,000: $1,695.55, so $847.77 is deductible
- MAGI for the student-loan test: $72,652.23 — below $85,000, so the full $1,800 counts
- Adjustments: $847.77 + 6,000 + 3,000 + 1,800 = $11,647.77
- AGI: $70,852.23; taxable income after the $16,100 standard deduction ≈ $54,752.23
Married couple filing jointly with $190,000 of wages, $2,000 of HSA contributions and $2,500 of student loan interest: MAGI is $188,000.00, inside the $175,000–$205,000 band, so only $1,417.50 of interest is deductible and AGI is $186,582.50.
AGI vs MAGI vs taxable income
| Figure | What it is | Used for |
|---|---|---|
| Total income | Every taxable income item (Form 1040 line 9) | Starting point |
| AGI | Total income minus Schedule 1 adjustments (line 11) | Medical expense floor, many credits, state returns |
| MAGI | AGI with certain items added back — the list depends on the benefit | Roth IRA limits, IRA deduction, student loan interest, premium tax credit, NIIT |
| Taxable income | AGI minus the standard or itemized deduction (and the QBI deduction) | Applying the tax brackets |
There is no single MAGI. For student loan interest it is AGI without that deduction (plus excluded foreign income); for Roth IRA contributions it is AGI without traditional IRA deductions and Roth conversions; for the premium tax credit it adds tax-exempt interest and untaxed Social Security. This calculator shows the student-loan version.
How to calculate AGI from a pay stub or W-2
Start from W-2 box 1, not your gross salary: pre-tax 401(k) deferrals, payroll HSA contributions and health premiums paid through a cafeteria plan are already gone from it, so do not subtract them again. Roth 401(k) contributions, on the other hand, are still in box 1 and do not lower AGI. If you only have a final pay stub, take year-to-date gross pay minus year-to-date pre-tax deductions.
Frequently asked questions
Where do I find my AGI on last year’s return?
On Form 1040 line 11. The IRS asks for it to verify your identity when you e-file, and you can also see it in your IRS online account or on a tax return transcript.
Is AGI the same as gross income?
No. Gross income is everything you earned that is taxable; AGI is that amount minus above-the-line adjustments such as deductible IRA contributions, HSA contributions and half of self-employment tax.
Do 401(k) contributions reduce AGI?
Traditional 401(k), 403(b) and 457 deferrals do, but they do it before the number reaches W-2 box 1, so you should not enter them again here. Roth contributions do not reduce AGI.
Do itemized deductions or the standard deduction lower AGI?
No — they come after AGI and lower taxable income instead. The 2026 standard deduction is $16,100 for single filers and $32,200 for married couples filing jointly.
Can my AGI be negative?
Yes, when business or other losses exceed your income. You then owe no income tax, and part of the loss may become a net operating loss carried to future years. Capital losses count only up to $3,000 a year against other income.
Sources
- IRS – Form 1040 and 1040-SR Instructions (Schedule 1, Part II)
- IRS – Schedule 1 (Form 1040), Additional Income and Adjustments to Income
- IRS – Definition of adjusted gross income
- IRS – Rev. Proc. 2025-32 (2026 inflation-adjusted items, §§ 4.12 and 4.29)
- IRS – Rev. Proc. 2025-19 (2026 HSA limits)
- IRS – 401(k) limit increases to $24,500 for 2026, IRA limit increases to $7,500
- IRS – Publication 970, Tax Benefits for Education (student loan interest)
- IRS – Topic no. 554, Self-employment tax
Last updated: