Blucalculator Open Tool

AGI Calculator

Calculate your Adjusted Gross Income (AGI) from wages, business income, investment income, and deductions.

Income Sources

Above-the-Line Deductions

Embed This Calculator

Copy the code and paste it into any webpage to embed this calculator.

WordPress users: add a Custom HTML block (not the Embed block) and paste the code there.

More embed options

Free to use. A small "Powered by Blucalculator" credit is appreciated but not required.

How to use this calculator

Five minutes and your last tax return. That’s all you need to get an accurate AGI estimate.

Start by selecting your tax year and filing status. These two fields control the standard deduction shown in the final step, because taxable income is AGI minus that standard deduction. If you’re planning next year’s taxes, use 2024. If you’re reconciling last year, use 2023 or 2022.

Then enter your income sources:

Wages / Salary is the amount shown in Box 1 of your W-2. If you have multiple W-2s from different employers, add them together.

Business income is your net profit from self-employment, a sole proprietorship, or a single-member LLC reported on Schedule C. Use net profit after deducting your business expenses, not gross revenue.

Investment income includes interest, dividends, and capital gains. For most people this is the total from 1099-INT, 1099-DIV, and any Schedule D capital gains.

Other income covers rental income (net of expenses), gambling winnings, unemployment compensation, alimony received for divorces finalized before 2019, and any other taxable income.

Next, enter your above-the-line deductions:

Retirement contributions covers traditional 401(k) and traditional IRA contributions. Roth contributions don’t reduce your AGI. For 2024, the 401(k) limit is $23,000 ($30,500 if you’re 50 or older). The traditional IRA limit is $7,000 ($8,000 if 50+).

Student loan interest is capped at $2,500. The calculator enforces this cap automatically. Note that this deduction phases out at higher income levels, so if your MAGI exceeds $80,000 as a single filer in 2024, it may be partially or fully unavailable to you.

HSA contributions are fully deductible if you’re enrolled in a qualifying high-deductible health plan. For 2024, the limit is $4,150 for self-only coverage or $8,300 for family coverage.

Other adjustments catches everything else: alimony paid under pre-2019 divorce agreements, educator expenses (up to $300), moving expenses for active-duty military, and self-employed health insurance premiums.

Hit Calculate and you’ll see your AGI, total gross income, total deductions, and an estimated taxable income using the standard deduction.

This calculator estimates your federal AGI. State AGI can differ because some states have their own add-backs or additional deductions. Always verify with your actual tax software or a qualified tax professional before filing.


What AGI actually is, and why it matters so much

AGI stands for Adjusted Gross Income. It’s the number on line 11 of Form 1040, and it’s one of the most influential numbers on your entire tax return.

Think of it this way. The tax code has two levels of deductions. Above-the-line deductions reduce your income down to AGI. Below-the-line deductions (your standard or itemized deductions) then reduce your AGI down to taxable income. AGI is the threshold between those two stages.

Why does that threshold matter? Because dozens of tax calculations use AGI as their starting point:

  • Medical expenses are only deductible to the extent they exceed 7.5% of your AGI
  • The limit on charitable deductions is typically 60% of your AGI
  • Passive activity loss rules reference your AGI to determine rental loss deductibility
  • Eligibility for the Earned Income Tax Credit phases out above certain AGI levels
  • Medicare Part B premiums (IRMAA surcharges) are based on your AGI from two years prior

A lower AGI doesn’t just reduce your taxes directly. It can unlock credits and deductions you’d otherwise miss entirely. That’s why above-the-line deductions are so valuable: they reduce AGI first, which then cascades into better treatment everywhere else on your return.

Your AGI is the gatekeeper to most of the tax code's most generous breaks. Every dollar you reduce it has ripple effects through your entire return.

The formula explained

AGI calculation follows a straightforward two-step process.

Step 1: Add up all income sources

Total Gross Income = Wages + Business Income + Investment Income + Other Income

Step 2: Subtract above-the-line deductions

AGI = Total Gross Income - Above-the-Line Deductions

Where above-the-line deductions include:

Deductions = Retirement Contributions + Student Loan Interest + HSA Contributions + Other Adjustments

After you have your AGI, taxable income is one more step:

Taxable Income = AGI - Standard Deduction (or Itemized Deductions, whichever is larger)

The standard deduction for 2024:

Filing Status2024 Standard Deduction2023 Standard Deduction2022 Standard Deduction
Single$14,600$13,850$12,950
Married Filing Jointly$29,200$27,700$25,900
Married Filing Separately$14,600$13,850$12,950
Head of Household$21,900$20,800$19,400

Most taxpayers take the standard deduction rather than itemizing, so these numbers give you a good estimate of your taxable income once you know your AGI.


Worked examples

Example 1: Single freelancer with student loans

Sarah is a freelance designer. Here’s her income picture for 2024:

  • Wages from a part-time W-2 job: $22,000
  • Net business income from freelance work: $48,000
  • Investment income (dividends): $1,200
  • Traditional IRA contribution: $7,000
  • Student loan interest paid: $2,100
  • HSA contribution (self-only): $4,150

Total Gross Income = $22,000 + $48,000 + $1,200 = $71,200

Total Deductions = $7,000 + $2,100 + $4,150 = $13,250

AGI = $71,200 - $13,250 = $57,950

Taxable Income = $57,950 - $14,600 (standard deduction) = $43,350

Notice how the IRA contribution, student loan interest, and HSA together knocked her AGI down by over $13,000. That’s real money.

Example 2: Married couple maximizing retirement contributions

Mike and Lisa file jointly. They both work and contribute the maximum to their 401(k)s.

  • Mike’s wages: $95,000
  • Lisa’s wages: $78,000
  • Investment income: $3,400
  • Mike’s 401(k) contribution: $23,000
  • Lisa’s 401(k) contribution: $23,000
  • HSA (family plan): $8,300

Total Gross Income = $95,000 + $78,000 + $3,400 = $176,400

Total Deductions = $23,000 + $23,000 + $8,300 = $54,300

AGI = $176,400 - $54,300 = $122,100

Taxable Income = $122,100 - $29,200 (MFJ standard deduction) = $92,900

By maxing their retirement accounts and using an HSA, they reduced their AGI by $54,300. At a marginal federal rate of 22%, that’s roughly $11,946 in federal tax savings.


Common above-the-line deductions and their limits

Not all deductions are equal. Here’s a practical summary of the most commonly used above-the-line deductions:

Deduction2024 LimitKey Rule
401(k) employee contribution$23,000 ($30,500 if 50+)Must be traditional, not Roth
Traditional IRA$7,000 ($8,000 if 50+)Deductibility phases out at higher incomes if you have a workplace plan
SEP-IRA (self-employed)25% of net earnings, max $69,000Based on Schedule C net profit
Student loan interest$2,500Phases out: $80,000-$95,000 single / $165,000-$195,000 MFJ
HSA (self-only)$4,150Must be enrolled in qualifying HDHP
HSA (family)$8,300Must be enrolled in qualifying HDHP
Educator expenses$300For eligible K-12 teachers
Alimony paidActual amountOnly for divorces finalized before January 1, 2019

One thing people often miss: the traditional IRA deduction phases out if you (or your spouse) participate in an employer retirement plan AND your income exceeds certain thresholds. For 2024, that phase-out starts at $77,000 for single filers and $123,000 for MFJ. If you’re in the phase-out range, the calculator may overstate your deduction slightly — worth checking with your tax software.

If you’re self-employed, you can also deduct 50% of your self-employment tax and 100% of your self-employed health insurance premiums above the line. These aren’t in this calculator’s scope but they’re meaningful deductions worth tracking.


AGI vs. MAGI: What’s the difference?

You’ll often hear MAGI alongside AGI. They’re related but distinct.

AGI is the number you calculate on your Form 1040, line 11.

MAGI (Modified Adjusted Gross Income) is AGI with certain deductions added back. The frustrating part: the add-backs differ depending on what you’re calculating MAGI for. There’s no single MAGI; there are multiple versions.

Common MAGI calculations:

  • Roth IRA eligibility: AGI + traditional IRA deduction + student loan interest + certain other items
  • Premium Tax Credit (ACA): AGI + non-taxable Social Security + tax-exempt interest
  • Child Tax Credit: AGI with few modifications (usually close to AGI)
  • Net Investment Income Tax (NIIT): AGI + foreign earned income exclusion

For Roth IRA contributions in 2024, the phase-out starts at $146,000 MAGI for single filers and $230,000 for MFJ. If you’re near those thresholds, knowing your exact MAGI matters more than knowing your AGI.

For most people in ordinary income ranges, MAGI and AGI are nearly identical. The differences show up mainly when you have foreign income, tax-exempt bond interest, or are trying to qualify for specific programs.


Practical strategies to reduce your AGI

Reducing your AGI before year-end can have outsized benefits. Here are strategies worth considering:

Max out your 401(k). The employee contribution limit is $23,000 in 2024 ($30,500 if 50+). If your employer offers a traditional 401(k), every dollar you contribute reduces your AGI dollar for dollar.

Contribute to an HSA. If you have a high-deductible health plan, you can contribute $4,150 (self) or $8,300 (family) and deduct the full amount. Unused funds roll over year to year, and the money grows tax-free for qualified medical expenses. It’s genuinely one of the best tax-advantaged accounts available.

Open or contribute to a traditional IRA. Even if you have a 401(k), you may still deduct traditional IRA contributions depending on your income. Check the phase-out thresholds for your situation.

Time your deductible expenses. If you know you’ll pay student loan interest this year, confirm you’re tracking it. Your servicer will send a 1098-E if you paid more than $600 in interest.

Bunch business deductions. If you’re self-employed, expenses you deduct on Schedule C reduce your net business income, which reduces your gross income before you even get to the above-the-line deductions. Those aren’t “above the line” deductions per se, but they reduce the income that flows into your AGI calculation.

Consider a SEP-IRA if you’re self-employed. For 2024 you can contribute up to 25% of net self-employment earnings or $69,000, whichever is less. That’s a potentially massive reduction for high-earning freelancers.

The most effective AGI reduction strategies involve putting money in accounts that benefit you anyway. Retirement savings and health savings aren't sacrifices; they're just smarter timing.

The bottom line

Your AGI sits at the center of your federal tax picture. It determines which credits you can access, how much of your deductions you can actually claim, and what your Medicare premiums will cost years down the road.

You don’t need to be a tax expert to manage it. You need to know which income sources count, which deductions are available to you, and where the phase-out thresholds are for your situation.

Use this calculator to get a clear estimate before you file. Then take the number to your tax software or your accountant with confidence. Knowing your AGI ahead of time means no surprises on your return, and it gives you time to make last-minute contributions that could lower it further.

Frequently Asked Questions

What is adjusted gross income (AGI)?

AGI is your total gross income minus specific above-the-line deductions allowed by the IRS. It includes wages, business income, investment income, and other sources, reduced by deductions like retirement contributions, student loan interest, and HSA contributions. AGI is the starting point for calculating your taxable income.

How do I calculate my AGI?

AGI = Total Gross Income minus above-the-line deductions. Add all income sources (wages, freelance, investments, rentals), then subtract eligible adjustments such as IRA contributions, student loan interest paid, HSA contributions, and alimony paid for pre-2019 divorces. The result is your AGI.

What is the difference between AGI and taxable income?

AGI is your income after above-the-line deductions but before the standard or itemized deduction. Taxable income = AGI minus the standard deduction (or itemized deductions if higher). Taxable income is what your actual tax rate is applied to.

What deductions reduce my AGI?

Above-the-line deductions that lower AGI include: traditional IRA contributions (up to $7,000 in 2024), HSA contributions (up to $4,150 single / $8,300 family), student loan interest (up to $2,500), and self-employment tax deduction (50% of SE tax). These reduce AGI before you apply the standard deduction.

What is the difference between AGI and MAGI?

AGI is computed by subtracting above-the-line deductions from gross income. MAGI (Modified AGI) adds certain deductions back to AGI to determine eligibility for specific tax benefits. The add-backs vary by benefit: Roth IRA eligibility adds back traditional IRA deductions and student loan interest.

How does AGI affect my tax benefits?

Many tax credits and deductions phase out as AGI rises. The Roth IRA contribution limit phases out starting at $146,000 for single filers (2024). The child tax credit reduces above certain thresholds. Keeping AGI low preserves access to these benefits.

Does AGI include Social Security income?

Social Security income may or may not be taxable depending on your combined income. If combined income (AGI + half of Social Security + tax-exempt interest) exceeds $25,000 (single) or $32,000 (married), up to 85% of Social Security becomes taxable and gets included in gross income.

Can retirement contributions lower my AGI?

Yes. Traditional 401(k) contributions reduce your W-2 taxable wages directly. Traditional IRA contributions are an above-the-line deduction that reduces AGI. Both strategies lower AGI before any other calculations, potentially qualifying you for more deductions and credits.

Can I reduce my AGI after the tax year ends?

Yes. You can make traditional IRA contributions up to the tax filing deadline (April 15) for the prior year. HSA contributions for the prior tax year can also be made until April 15. These are the two main strategies to retroactively lower AGI after December 31.

What is a high AGI?

High AGI is relative to the benefits you want to preserve. For Roth IRA contributions, phase-out starts at $146,000 (single) and $230,000 (married) in 2024. For student loan interest deduction, phase-out begins at $80,000 (single). There is no single threshold that defines high AGI for all purposes.

Related Calculators