How to Calculate AGI
Adjusted gross income is the single most consequential number on your return. Here is how it is built, and a calculator that shows you the math.
A guide by Taxstra Tax & Accounting · CPA-led tax strategy for business owners
Written by Bryan Martin, CPA, Managing Partner and Founder of Taxstra. Last updated August 15, 2026.
Quick answer
Adjusted gross income is total income minus above-the-line adjustments. Add wages, interest, dividends, business profit, capital gains, rental income, and taxable retirement distributions, then subtract items like deductible retirement contributions, HSA contributions, and student loan interest. AGI appears on line 11 of Form 1040.
Adjusted gross income sits in the middle of your tax return and quietly decides more than the numbers around it. It is not what you are taxed on, and it is not what you earned. It is the figure the tax code uses to decide what you qualify for.
Two people with identical gross income and identical tax bills can have very different AGIs, and the one with the lower figure will be eligible for benefits the other is phased out of. That is the whole reason this number is worth understanding.
Calculate Your AGI
Enter what you have. The math updates as you type.
AGI Calculator
Enter the amounts you have. Anything left blank counts as zero.
Step 1: Total income
Box 1 of every W-2
Forms 1099-INT and 1099-DIV
Net profit from Schedule C
Net gain from Schedule D
Schedule E, including K-1 income
Taxable portion from Form 1099-R
Unemployment, taxable Social Security, and similar
Step 2: Above the line adjustments
Traditional IRA, SEP, SIMPLE, or solo 401(k) employer portion
Payroll contributions are already excluded from W-2 box 1
Roughly half of the self-employment tax you owe
Available only if not eligible for an employer plan
Subject to an income phase-out
Eligible K-12 educators only
Early withdrawal penalty, qualifying alimony paid, and similar
Educational estimate only, not a filing figure. Several adjustments carry their own income phase-outs and eligibility tests that this tool does not apply.
What Counts as Income
Broader than most people assume, with a few notable exclusions.
Counts toward AGI
- Wages, salary, tips, and bonuses
- Interest and dividend income
- Net business profit and gig income
- Capital gains, short and long term
- Rental and pass-through income
- Taxable retirement distributions
- Unemployment compensation
- The taxable portion of Social Security
- Gambling and prize winnings
Does not count
- Qualified Roth distributions
- Municipal bond interest, for AGI purposes
- Gifts and inheritances received
- Life insurance death benefits
- Qualified HSA withdrawals for medical costs
- Most personal injury settlements
- Employer health insurance premiums
- Return of your own capital
Tax-exempt does not always mean invisible
Municipal bond interest is excluded from AGI, but it is added back for the provisional income test that determines how much of your Social Security is taxable, and it appears in several modified AGI calculations. Excluded from one figure is not excluded from all of them.The Adjustments That Come Off First
Above the line, meaning they reduce AGI itself.
These live in Part II of Schedule 1. They are available whether you itemize or take the standard deduction, which is what makes them structurally more valuable than itemized deductions of the same size.
| Adjustment | Who it applies to |
|---|---|
| Traditional IRA contributions | Deductibility phases out if you or a spouse is covered by a workplace plan |
| SEP, SIMPLE, and qualified plan contributions | Self-employed filers, including the employer side of a solo 401(k) |
| HSA contributions | Anyone with a qualifying high deductible plan, if made outside payroll |
| Deductible part of self-employment tax | Every filer with self-employment income |
| Self-employed health insurance | Self-employed filers not eligible for an employer plan |
| Student loan interest | Subject to an income phase-out that excludes most high earners |
| Educator expenses | Eligible K-12 educators, up to an annual cap |
| Early withdrawal penalty | Anyone charged a penalty for cashing a CD early, from 1099-INT box 2 |
Taxstra Tip
For a self-employed high earner, the single largest available AGI adjustment is usually the retirement plan contribution, and the plan type sets the ceiling. The gap between what an IRA allows and what a properly structured solo plan allows is often an order of magnitude.AGI vs MAGI vs Taxable Income
Three different numbers doing three different jobs.
| Figure | How it is built | What it does |
|---|---|---|
| AGI | Total income minus above-the-line adjustments | Sets eligibility thresholds and deduction floors |
| MAGI | AGI plus specific add-backs, defined separately for each provision | Roth eligibility, IRA deductibility, net investment income tax, Medicare surcharges |
| Taxable income | AGI minus the standard or itemized deduction, minus the QBI deduction | The figure the tax rate schedule is actually applied to |
There is no single MAGI
MAGI is not a line on your return. Each provision that uses it defines its own add-back list, so the MAGI that determines whether you can contribute to a Roth IRA is a different figure from the MAGI that triggers the net investment income tax. Software handles this; mental math usually does not.Why AGI Controls So Much
The list of things keyed to this one number is longer than most people realize.
Deduction floors
Medical expenses are only deductible above a percentage of AGI. A lower AGI means more of the same expense clears the floor.
Credit phase-outs
Education credits, the child tax credit, the adoption credit, and the retirement savings credit all phase out over income ranges keyed to AGI or a MAGI variant.
Retirement account access
Whether you can deduct a traditional IRA contribution, and whether you can contribute to a Roth IRA at all, both turn on modified AGI.
Surtaxes and premiums
The net investment income tax and Medicare premium tiers are both driven by modified AGI, and both are cliff-shaped rather than gradual.
Identity verification
Prior year AGI is what the IRS uses to authenticate an electronically filed return. Getting it wrong causes a rejection, and it is retrievable free from a tax transcript.
The practical takeaway is that lowering AGI does double duty: it reduces taxable income and it improves your position against every threshold above. The full set of moves is in the taxable income playbook. For deductions that sit below the line and therefore cannot help these tests, bunching is the usual answer. If you need a prior year figure, pull it from a free IRS transcript, and if you want to see where line 11 sits in the overall return, start with the Form 1040 walkthrough. State and local tax deductibility interacts with all of this through the SALT cap, which has its own AGI-based phase-down.
Every Dollar Above the AGI Line Is Worth More
Retirement plan selection, entity structure, and HSA strategy all subtract before AGI, which means they also unlock credits and thresholds below it. Book a free initial consultation.
Frequently Asked Questions
Lowering AGI Is a Planning Exercise, Not a Filing One
By the time you are entering numbers in April, the year is closed. A Taxstra CPA will map the moves that are still available to you. The initial consultation is free.
Next Steps
Filing it yourself is fine. Optimizing it is where the money is.
Getting the form right keeps you out of trouble. The strategies below are what actually lower the bill.
Reduce your taxable income
The levers that move AGI, ranked by what they are actually worth to a high earner.
Bunching deductions
A timing strategy for the deductions that sit below the AGI line.
The medical expense deduction
A deduction with an AGI floor, which is exactly why lowering AGI can unlock it.
Want a CPA to run the numbers for you?
Free 30-minute call with a Taxstra CPA. No pressure, just the math for your situation.
Authoritative Sources
- IRS Definition of Adjusted Gross Income
- IRS Schedule 1 (Form 1040), Additional Income and Adjustments to Income
- IRS Instructions for Form 1040 and 1040-SR
- IRS Publication 17, Your Federal Income Tax
- IRC Section 62, Adjusted Gross Income Defined
Citations reflect U.S. federal tax law as of the article's last reviewed date.
Related Income and Deduction Guides
Form 1040 Walkthrough
Where AGI sits in the overall structure of the return.
How to Reduce Taxable Income
The full set of levers, above and below the AGI line.
Medical Expense Deduction
The AGI floor that makes this deduction unreachable for most high earners.
Is Social Security Taxable?
The provisional income test that pulls tax-exempt interest back into the calculation.
