How AGI Is Calculated: Understanding Adjusted Gross Income

Adjusted Gross Income (AGI) is one of the most important numbers on your tax return. It determines which deductions and credits you can claim, what you owe in taxes, and eligibility for various government benefits. Understanding how it's calculated helps you see the full picture of your tax situation. 📊

What Is AGI?

AGI starts with your total income and then subtracts specific deductions allowed by the IRS. It's the number that sits between your gross income and your taxable income on your federal tax return—and it's the reference point for many tax rules.

Think of it as a filtered version of what you earned. The IRS recognizes that not all money you receive is truly available to spend, and AGI reflects that reality more accurately than raw income.

How AGI Is Calculated: The Basic Formula

The calculation follows this straightforward path:

Total Income − Above-the-Line Deductions = AGI

What Counts as Total Income?

Income includes any money you receive that the IRS considers taxable:

  • Wages and salary (W-2 income from employers)
  • Self-employment income (net profit from a business or freelance work)
  • Investment income (interest, dividends, capital gains)
  • Retirement account distributions (withdrawals from IRAs, 401(k)s, pensions)
  • Social Security benefits (partially taxable in many cases)
  • Rental income
  • Alimony received
  • Other sources (gambling winnings, prizes, etc.)

Some income is exempt—like municipal bond interest or certain disability payments—but the default assumption is that income counts unless the tax code specifically excludes it.

What Are Above-the-Line Deductions?

Above-the-line deductions (also called "adjustments to income") reduce your total income to arrive at AGI. These are deductions you can claim whether or not you itemize deductions on Schedule A. Common ones include:

  • Educator expenses (up to a limit for teachers who buy classroom supplies)
  • Student loan interest (up to a limit)
  • IRA contributions (traditional IRAs; Roth contributions don't reduce AGI)
  • Self-employment tax deduction (half of what self-employed people pay in Social Security and Medicare taxes)
  • Health savings account (HSA) contributions
  • Qualified tuition and education expenses (in some cases)
  • Moving expenses (military-related, in some cases)
  • Alimony paid (for divorces finalized before 2019)

The key distinction: these deductions apply to everyone who qualifies, regardless of whether they take the standard deduction or itemize.

Why AGI Matters 💡

Your AGI is the threshold for numerous tax rules and benefit programs:

What It AffectsHow
Tax creditsMany credits phase out above certain AGI levels (Child Tax Credit, Earned Income Tax Credit, education credits)
Deduction limitsSome itemized deductions (like medical expenses) are only deductible above a percentage of AGI
Roth IRA eligibilityHigh earners face contribution limits or phase-outs based on AGI
Medicare premiumsHigher-income retirees pay more in premiums; AGI is part of the calculation
Social Security taxationHow much of your benefits are taxable depends partly on AGI
Government benefitsPrograms like Medicaid, subsidized health insurance, and housing assistance use AGI to determine eligibility

A lower AGI can save you money across multiple areas—not just in taxes owed, but in premiums, benefit eligibility, and deduction availability.

Key Variables That Shape Your AGI

Your specific AGI depends on:

  • How much you earned from all sources
  • What types of income you received (some sources may be partially non-taxable)
  • Which above-the-line deductions you qualify for
  • Life events like retirement distributions, self-employment, or education expenses

Two people with the same gross income can have very different AGIs if one qualifies for more above-the-line deductions than the other.

What AGI Is Not

  • Not the same as your taxable income. After calculating AGI, you subtract either the standard deduction or itemized deductions to get taxable income.
  • Not the same as what you owe in taxes. Taxable income is used to calculate tax liability.
  • Not the same as gross income. Gross income is your raw earnings before any deductions.

Taking the Next Step

If you're working with a tax professional, ask them to walk you through your AGI calculation and explain which deductions applied to your situation. If you're filing on your own, tax software typically highlights your AGI on the return summary—and many benefits and loan applications reference it, so knowing the number helps you understand eligibility thresholds.

Understanding AGI gives you visibility into how the tax system actually works in your case, rather than guessing about which rules apply to you.