AGI Calculator Explained
Adjusted Gross Income — Line 11 of Form 1040 — is the single most leveraged number on a US tax return. Here is the long version of how it is computed from gross income via the §62 above-the-line adjustments, why so many downstream phase-outs are keyed to it, and the legitimate strategies for reducing it.
The one line on Form 1040 that controls everything else
Adjusted Gross Income — the figure on Line 11 of Form 1040 — is the single most leveraged number on a US tax return. It is not what you earned, not what you pay tax on, and not what shows up on your W-2. It is the number the IRS uses to decide whether you can deduct an IRA contribution, whether you can contribute to a Roth IRA at all, whether you qualify for the Saver's Credit, what portion of your Social Security benefits are taxable, whether you can deduct medical expenses, whether you qualify for the Premium Tax Credit on a marketplace health plan, and — in 41 of the 50 states — what number your state income tax starts from. The AGI calculator walks the Form 1040 arithmetic in one step. This article is the long version of what that arithmetic means and why every phase-out in the tax code is keyed to it.
We walk the §61 definition of gross income, the §62 list of above-the-line adjustments, the difference between AGI and MAGI, the downstream provisions AGI gates, the most common AGI computation mistakes, and the legitimate strategies for reducing it. All figures are 2025 IRS values from Notice 2024-80 and Revenue Procedure 2024-25.
Where AGI sits on Form 1040
AGI is computed mechanically by the first eleven lines of Form 1040. Each line is defined in the IRS instructions; the calculator collapses them into six inputs because most filers' numbers come from the same few sources.
- Lines 1a–1z — wages, salaries, tips. The figure on Line 1a is W-2 Box 1, which is already net of pre-tax 401(k)/403(b)/457(b) contributions and Section 125 cafeteria-plan items.
- Lines 2a–2b — tax-exempt and taxable interest. Only Line 2b (taxable) feeds Line 9.
- Lines 3a–3b — qualified and ordinary dividends. Only Line 3b (ordinary, which includes qualified) feeds Line 9.
- Lines 4a–4b, 5a–5b — IRA distributions and pensions. The taxable portion (4b, 5b) flows to Line 9.
- Lines 6a–6b — Social Security benefits. Only the taxable portion (6b) feeds Line 9.
- Line 7 — capital gain or loss from Schedule D.
- Line 8 — other income from Schedule 1 Part I (business income, rental, unemployment, gambling, alimony for pre-2019 divorces).
- Line 9 — total income (sum of 1z + 2b + 3b + 4b + 5b + 6b + 7 + 8).
- Line 10 — adjustments to income from Schedule 1 Part II (the §62 list — IRA deduction, HSA deduction, student loan interest, half of self-employment tax, etc).
- Line 11 — AGI = Line 9 − Line 10.
Everything from Line 12 onward — the standard or itemised deduction, the QBI deduction, taxable income, tax owed — sits below AGI. AGI is the pivot. The AGI calculator computes Lines 1 through 11 from six grouped inputs so you can see the figure without filling in a full 1040 worksheet.
The §62 above-the-line adjustments
IRC §62 defines AGI as gross income minus a specific, closed list of deductions. They are called "above the line" because they sit above Line 11 on Form 1040, in contrast to "below the line" itemised or standard deductions on Schedule A. The list, per Schedule 1 Part II, 2024 version:
- Educator expenses — up to $300 per eligible educator (K-12 teachers, instructors, counsellors, principals, aides working at least 900 hours).
- Certain business expenses — reservists, performing artists, fee-basis government officials.
- HSA deduction — contributions to a Health Savings Account made outside payroll. 2025 limit: $4,300 self-only / $8,550 family, plus $1,000 catch-up at age 55+.
- Moving expenses — active-duty military only post-TCJA.
- Self-employment tax deduction — half of the SE tax on Schedule SE.
- SEP, SIMPLE, and qualified plans — self-employed retirement contributions.
- Self-employed health insurance — premiums for self-employed filers.
- Penalty on early withdrawal of savings — bank CD breakage fees.
- Alimony paid — pre-2019 divorces only (TCJA eliminated this for 2019+ agreements).
- IRA deduction — Traditional IRA contributions. 2025 cap: $7,000 under 50, $8,000 with the §219(b) catch-up.
- Student loan interest deduction — up to $2,500 under §221.
- Archer MSA deduction — legacy account; mostly closed to new contributions.
Below-the-line deductions — mortgage interest, state and local taxes (capped at $10,000), charitable contributions, medical expenses above 7.5% of AGI — sit on Schedule A and reduce taxable income, not AGI. This distinction is the single most useful thing to internalise about the tax code: a deduction that lowers AGI is worth more than a same- sized deduction that only lowers taxable income, because the AGI version also reduces the phase-out exposure on everything below.
Worked example: single filer, $75,500 total income
Take the calculator's default inputs. A single filer at a nonprofit earns $75,000 of W-2 wages and $500 of bank interest. They contributed $6,000 to a Traditional IRA, $3,650 to an HSA outside payroll, and paid $1,500 of student loan interest during the year.
- Line 1z (wages) = $75,000
- Line 2b (taxable interest) = $500
- Lines 3b–8 (other) = $0
- Line 9 (total income) = $75,500
- Schedule 1 line 13 (HSA) = $3,650
- Schedule 1 line 20 (IRA deduction) = $6,000
- Schedule 1 line 21 (student loan interest) = $1,500 (under the $2,500 §221 cap)
- Line 10 (total adjustments) = $11,150
- Line 11 (AGI) = $75,500 − $11,150 = $64,350
This $64,350 is what the filer enters on Form 1040 Line 11, and it is what every downstream phase-out in the tax code is keyed to. Open the AGI calculator and change any of the six inputs to see how the figure shifts. Notice that adding $1,000 to the Traditional IRA contribution reduces AGI by $1,000 — a one-for-one leverage — whereas adding $1,000 of itemised charitable giving would not touch AGI at all. That is the above-the-line vs below-the-line distinction in dollar terms.
AGI vs MAGI: same number, twelve different definitions
Modified Adjusted Gross Income (MAGI) is AGI with specific items added back, and the add-back list depends on which provision you are testing. There is no single MAGI on the tax return — Form 1040 has no MAGI line — it is recomputed per-purpose on the worksheet for whichever rule applies.
- Roth IRA contribution MAGI — AGI + Traditional IRA deduction + student loan interest deduction + foreign earned income exclusion + foreign housing exclusion/deduction + savings bond interest exclusion + adoption assistance exclusion. Used for the §408A(c)(3) phase-out: $150,000–$165,000 single / $236,000–$246,000 joint for 2025.
- Traditional IRA deduction MAGI — same items as Roth MAGI, used to test §219(g) phase-outs when covered by a workplace plan.
- Premium Tax Credit MAGI — AGI + tax-exempt interest + non-taxable Social Security + foreign earned income exclusion. Used for §36B eligibility on marketplace health plans.
- Net Investment Income Tax MAGI — AGI + foreign earned income exclusion. Used for the §1411 3.8% surtax on investment income above $200,000 single / $250,000 joint.
- §221 student loan interest MAGI — AGI + student loan interest deduction itself (so the deduction is computed against MAGI before claiming).
- Education credits MAGI — AGI + foreign earned income exclusion + similar foreign exclusions. American Opportunity and Lifetime Learning credits.
For most filers, MAGI is within a few hundred dollars of AGI — the common add-backs (tax-exempt interest, foreign earned income exclusion) are zero for the majority of US taxpayers. But always check the specific rule's worksheet before assuming AGI = MAGI; the Roth IRA phase-out in particular catches filers who deduct a Traditional IRA contribution and then forget to add it back when testing Roth eligibility.
What AGI controls
AGI is the gating variable on a surprisingly long list of provisions. A non-exhaustive map:
Retirement contribution eligibility
Roth IRA contribution limit phases out by MAGI (derived from AGI). Traditional IRA deductibility phases out by MAGI when covered by a workplace plan. Saver's Credit (§25B) tops out at $39,500 AGI single / $79,000 joint for 2025 — pull AGI under those thresholds and you pick up a 10–50% credit on the first $2,000 of contributions. See the Roth IRA calculator for the contribution-limit interaction.
Itemised deduction floors
Medical expenses are deductible on Schedule A only to the extent they exceed 7.5% of AGI. Casualty losses (federally declared disasters only, post-TCJA) face a similar AGI-floor. Higher AGI raises the floor, lowers the deduction.
Social Security taxation
Up to 85% of Social Security benefits become taxable as "combined income" — AGI excluding SS, plus tax-exempt interest, plus half of SS benefits — crosses $34,000 single / $44,000 joint. Between $25,000–$34,000 single (or $32,000–$44,000 joint) up to 50% is taxable; below those thresholds, none is taxable.
Premium Tax Credit
Marketplace health plan subsidies under §36B are computed against household MAGI (derived from AGI) as a percentage of the Federal Poverty Level. Cliff effects were softened by the American Rescue Plan and extended by the Inflation Reduction Act through 2025.
State income tax
Most state income tax returns start with federal AGI on line 1. The state then layers its own additions (state-taxable municipal bond interest) and subtractions (state-exempt retirement income) before applying the state's own brackets. A few states — Pennsylvania, New Jersey, Alabama, Arkansas — compute taxable income independently rather than from federal AGI. Nine states have no broad-based income tax: Florida, Texas, Washington, Nevada, South Dakota, Wyoming, Alaska, Tennessee, and New Hampshire.
Strategies to reduce AGI legally
Because AGI gates so many downstream benefits, every dollar that moves from below-the-line to above-the-line is a high-leverage dollar. The legitimate AGI-reduction levers, in rough order of accessibility:
- Max the Traditional 401(k) / 403(b) / 457(b) elective deferral. $23,500 in 2025 ($31,000 at 50+, $34,750 at 60–63 under SECURE 2.0). These never show on Form 1040 at all — they are excluded from Box 1 wages under §402(g), which lowers Line 1z and therefore Line 9 and therefore Line 11. The biggest single AGI lever for most W-2 earners. See the 403(b) calculator or 401(k) calculator for the projection.
- Max HSA contributions if eligible. $4,300 self-only / $8,550 family in 2025, plus $1,000 catch-up at 55+. Triple tax-advantaged: deductible going in, growth tax-free, qualified medical withdrawals tax-free. Requires an HDHP.
- Deductible Traditional IRA. $7,000 under 50, $8,000 with catch-up. Subject to §219(g) phase-out if covered by a workplace plan.
- Self-employed retirement plans. SEP-IRA up to 25% of net earnings (cap $70,000 in 2025). Solo 401(k) employer contribution up to 25% plus employee deferral up to $23,500. Defined-benefit plans for high-earning sole proprietors can shelter $200,000+ per year.
- QCD from IRA at age 70½+. Qualified Charitable Distributions of up to $108,000 (2025) directly from a Traditional IRA to charity are excluded from gross income — never enter AGI in the first place — and count toward the year's RMD. Strictly better than donating cash and itemising for anyone over 70½ who would not otherwise itemise.
- Tax-loss harvesting. Realised capital losses offset realised gains dollar-for-dollar, with up to $3,000 of net loss deductible against ordinary income per year ($1,500 if married filing separately) and the remainder carried forward indefinitely.
Common mistakes
Double-counting pre-tax 401(k) contributions. W-2 Box 1 is already net of §402(g) deferrals. If you enter Box 1 as wages and then try to subtract your 401(k) contributions again as an adjustment, you have lowered AGI by twice the contribution amount. The IRS computers catch this immediately; you get a CP2000 notice. The calculator's wage input expects Box 1, not Box 5 (Medicare wages) or Box 3 (Social Security wages) — Box 1 has the deferral already excluded.
Confusing AGI with taxable income. Taxable income is Line 15, after the standard or itemised deduction and the QBI deduction. AGI is Line 11. The downstream phase-outs in this article are keyed to AGI (or MAGI), not to taxable income, so the standard deduction does not help you qualify for them.
Forgetting the Schedule 1 step. Adjustments to income live on Schedule 1 Part II, which feeds Form 1040 Line 10. Filers who use tax software get this automatically; filers who hand-prep can miss the schedule entirely if they have no business income on Part I to prompt them. If you contributed to a Traditional IRA, an HSA outside payroll, or paid student loan interest, you need Schedule 1.
Roth IRA over-contribution from forgetting the MAGI add-back. A filer with AGI of $148,000 and a $6,000 Traditional IRA deduction has a MAGI for Roth IRA purposes of $154,000 — inside the $150,000– $165,000 single phase-out, not below it. Contributing the full $7,000 to a Roth IRA in this case triggers a 6% excise tax under §4973 every year until the excess is removed.
When to seek professional advice
The AGI calculator is enough for the question "what is my AGI?". For the questions that decide what to do next — whether a Roth conversion makes sense in a given year, whether to switch from Traditional to Roth 401(k) deferrals, whether a QCD or a donor-advised fund is the better charitable vehicle, whether the §199A QBI deduction applies to a side business, or whether you should be making estimated payments to avoid the §6654 underpayment penalty — talk to a CPA or an Enrolled Agent. For bigger-picture planning, a fee-only fiduciary financial planner (CFP designation, NAPFA membership) coordinates the tax and investment sides. This article and the calculator are informational only and do not constitute personalised tax or financial advice.
Frequently asked questions
See the FAQ section on the AGI calculator page for the gross income vs AGI vs taxable income distinction, MAGI add-backs, the common 401(k) double-count mistake, the §219(g) IRA deduction phase-out, the Social Security taxability formula, and the federal- AGI-to-state-tax linkage.
Related calculators
- AGI Calculator — Adjusted Gross Income from Form 1040 Lines 1–11
- 401(k) Calculator — Retirement projection with 2025 §402(g) limits, plus the AGI-reducing effect of elective deferrals
- 403(b) Calculator — Same projection for teachers and nonprofit employees
- Roth IRA Calculator — Tax-free retirement balance with the §408A(c)(3) MAGI phase-out applied
- Salary Calculator — Hourly, weekly, monthly and annual pay conversions
- Capital Gains Tax Calculator — Long-term vs short-term capital gains tax with the §1411 NIIT MAGI threshold
Frequently asked questions
What is the difference between gross income, AGI and taxable income?
Gross income is the broadest measure — all income from all sources before any tax deductions, including amounts excluded from W-2 Box 1 like pre-tax 401(k) contributions. Total income on Form 1040 Line 9 is gross income minus those Code-excluded items, so it is already lower than true gross. AGI (Line 11) subtracts the §62 "above-the-line" adjustments — IRA deduction, HSA deduction, student loan interest, half of self-employment tax, and the rest of the Schedule 1 Part II list. Taxable income (Line 15) goes one step further and subtracts either the standard deduction or itemised deductions plus the QBI deduction. AGI is what most phase-outs and credits are keyed to; taxable income is what the bracket-by-bracket tax tables apply to.
What is MAGI and how is it different from AGI?
Modified Adjusted Gross Income (MAGI) is AGI with specific items added back, and the add-back list depends on which rule you are testing. Roth IRA contribution eligibility adds back the Traditional IRA deduction, student loan interest deduction, and several foreign income exclusions. Premium Tax Credit eligibility adds back tax-exempt interest and non-taxable Social Security. The §221 student loan deduction phase-out adds back the student loan deduction itself. Net Investment Income Tax MAGI adds back only the foreign earned income exclusion. There is no single MAGI line on Form 1040; it is computed per-purpose on the relevant worksheet. For most filers MAGI is within a few hundred dollars of AGI, but always check the specific rule first.
Are pre-tax 401(k) or 403(b) contributions an "adjustment" to income?
No — and double-counting them is the most common AGI mistake. Pre-tax workplace retirement contributions are already excluded from W-2 Box 1 wages (they are an exclusion from gross income under §402(g), not a §62 adjustment). If you enter your W-2 Box 1 figure as wages, you have already deducted those contributions. The same applies to Section 125 cafeteria-plan items — pre-tax health insurance, FSA, HSA payroll deductions, transit/parking — all already excluded from Box 1. Traditional IRA contributions, by contrast, are made with after-tax money and are an above-the-line adjustment on Schedule 1 line 20.
How does the IRA deduction phase out if I am covered by a workplace plan?
The Traditional IRA deduction is phased out by your filing status and whether you (or your spouse) are an "active participant" in a workplace retirement plan. For 2025, an active participant filing single phases out between $79,000 and $89,000 MAGI; married filing jointly is $126,000–$146,000 if the contributing spouse is covered, or $236,000–$246,000 if only the non-contributing spouse is covered (IRS Notice 2024-80). The calculator does not apply the phase-out — it uses the full $8,000 cap — because the phase-out depends on MAGI, which is itself derived from AGI. Cross-check the IRA Deduction Worksheet in the Form 1040 instructions once you have your AGI.
Where does Social Security fit in AGI?
Only the taxable portion of Social Security benefits is included in total income (Form 1040 Line 6b), not the full benefit (Line 6a). For 2025, up to 85% of benefits can be taxable depending on "combined income" — AGI excluding Social Security, plus tax-exempt interest, plus half of Social Security benefits. If combined income exceeds $34,000 single / $44,000 joint, up to 85% is taxable; between $25,000–$34,000 single ($32,000–$44,000 joint), up to 50% is taxable; below those thresholds, none of it is taxable. Enter the taxable portion (from the Social Security Benefits Worksheet) under "other taxable income".
Why does AGI matter for state taxes?
Most US states with an income tax use federal AGI as the starting point on the state return — line 1 of the state form is literally "federal AGI from Form 1040 Line 11". The state then adds and subtracts its own modifications (state-tax-exempt municipal bond interest, retirement income exclusions, etc.) before applying state-specific deductions and brackets. A handful of states (Pennsylvania, New Jersey, Alabama, Arkansas) compute taxable income independently rather than from federal AGI, and nine states (Florida, Texas, Washington, Nevada, South Dakota, Wyoming, Alaska, Tennessee, New Hampshire) have no broad-based state income tax. Even in the latter group, AGI still drives federal tax and any federal-AGI-keyed benefits.
What are the legitimate ways to reduce AGI?
The highest-leverage levers are pre-tax workplace plan contributions (401(k)/403(b)/457(b) up to $23,500 in 2025, $31,000 at age 50+, $34,750 at age 60–63 under SECURE 2.0), HSA contributions for HDHP holders ($4,300 self-only / $8,550 family in 2025), deductible Traditional IRA contributions (up to $8,000), self-employed retirement plans (SEP-IRA, Solo 401(k), defined-benefit), tax-loss harvesting (up to $3,000/yr ordinary loss), and Qualified Charitable Distributions from a Traditional IRA at age 70½+ (up to $108,000 in 2025). Each of these reduces AGI dollar-for-dollar, which compounds through every downstream phase-out — Roth IRA, Saver's Credit, medical-expense floor, Premium Tax Credit, NIIT, and state tax.
Is AGI the same as taxable income on a W-2?
No. A W-2 has no AGI line. W-2 Box 1 is wages for federal income tax purposes — already net of pre-tax 401(k) and Section 125 cafeteria-plan items, but before the §62 adjustments. AGI is computed on Form 1040 by adding Box 1 to any other income (interest, dividends, capital gains, etc) to get Line 9, then subtracting the Schedule 1 Part II adjustments to get Line 11. The closest thing to AGI on the W-2 itself is Box 1, but Box 1 only captures your wages from that single employer and excludes everything else feeding total income.
Informational only. Not personalised financial, legal, or tax advice.