Which Deduction Is Calculated First for Taxable Income? (2027)

I used to treat my tax return like a pile of deductions. I would add them up, subtract the total, and hope for the best. Then I hit a rule that let me deduct medical costs only above 7.5% of my AGI. That raised a question I had never asked: which deduction is calculated first when determining taxable income? The order turns out to matter more than I expected.

Here is what you will learn. You will see the order step by step, with a 2027 example. You will see why AGI has to come before your standard or itemized deduction. You will also see how self-employed filers handle the order inside their own adjustments. One note first: this is general information, not personal tax advice. Check IRS.gov or a tax pro for your own case.

Which Deduction Is Calculated First When Determining Taxable Income? The Short Answer

The first deductions you calculate are the above-the-line adjustments to income. Think of HSA deductions, deductible IRA contributions, student loan interest, and half of self-employment tax. They take your total income down to your AGI. Everything else comes after that.

After AGI, you subtract the standard deduction or your itemized deductions. Then you subtract the qualified business income deduction and any Schedule 1-A deductions, if you qualify. What is left is your taxable income.

The Order in One Sentence

Adjustments come first, the standard or itemized deduction comes second, and the special deductions come last. That is the whole order in plain words.

There is one more step that happens even earlier. Pre-tax payroll deductions, like a traditional 401(k) contribution, come out of your pay before your return even starts. I explain that “step zero” below.

As an Amazon Associate I earn from qualifying purchases.
DeductionCalculated FirstTaxable Income
Deduction Calculated First Taxable Income
Income DeductionDeductions
Income Deduction Deductions

If You Saw This Question on a Quiz

If this is a homework or exam question, the usual answer is above-the-line deductions. Some books call them adjustments to income or deductions for AGI. Check your course material, because wording can differ.

A teacher might ask about a narrower order, like the order of lines on Schedule A or on a business return. In that case, the answer could change. Read the question closely before you pick.

Why the Order Is Not Random

The order is not just paperwork. AGI acts as a checkpoint. Many rules use it, so it must be set before the next step begins.

For example, medical costs count only above 7.5% of AGI. Many income limits use a version of AGI called MAGI. You cannot apply those rules until you know your AGI.

The Path From Income to Taxable Income, Step by Step

Think of the process as five steps. The first one happens before you open your return. It is also the one most people forget.

Step Zero: The Deductions You Never See

Pre-tax payroll deductions come first of all. A traditional 401(k) deferral comes out of your paycheck before the IRS counts your wages. Health premiums paid through a payroll plan and payroll HSA or FSA contributions work the same way. For 2027, the 401(k) limit is $25,500, according to the IRS.

DeductionCalculated FirstTaxable Income
Deduction Calculated First Taxable Income
Income DeductionDeductions
Income Deduction Deductions

Your W-2 box 1 shows the smaller wage number. So by the time you start your return, these deductions are already baked in. I missed this for years. I kept looking for my 401(k) on the return and could not find it.

Step One: Total Income

Next, you add up your income. That includes wages from box 1 of your W-2, interest, dividends, business income, retirement withdrawals, and gains. On the 2025 Form 1040, this total sits on line 9.

This number is your starting point on the return. It is not your AGI yet. Nothing has been adjusted.

Step Two: Adjustments to Income, Which Give You AGI

Now come the first true deductions on your return. The IRS calls them adjustments to income. You list them on Schedule 1, and the total flows to Form 1040.

Common ones include the HSA deduction, the deductible part of a traditional IRA contribution, student loan interest, and half of self-employment tax. Self-employed health insurance counts too. Subtract the total from your total income, and you get AGI.

Step Three: The Standard or Itemized Deduction

Now you pick one. You take the standard deduction or you itemize, whichever is bigger. You cannot take both. For 2027, the standard deduction is $16,600 for single filers, $33,200 for married couples filing jointly, and $24,925 for heads of household.

DeductionCalculated FirstTaxable Income
Deduction Calculated First Taxable Income
Income DeductionDeductions
Income Deduction Deductions

This step comes after AGI for a reason. Several itemized deductions depend on your AGI. The standard deduction does not, but it still sits in this slot on the form.

Step Four: QBI and Schedule 1-A Deductions

Two more deductions come after that. The first is the qualified business income deduction, which can be up to 20% of qualified business income for some owners. The second is Schedule 1-A, which covers tips, overtime, car loan interest, and the senior deduction.

On the 2025 Form 1040, these show up on lines 13a and 13b. Line 14 adds lines 12e, 13a, and 13b together. Line 15 subtracts line 14 from your AGI and gives you taxable income. If the result is zero or less, you enter zero. Line numbers can change from year to year, so check the current form.

A 2027 Example in the Right Order

Numbers help me more than words. Say a single filer earns $100,000 in gross pay in 2027. They put $8,000 into a pre-tax 401(k). They also earn $500 in interest and deduct a $3,000 HSA contribution that they made outside payroll. This example is made up, and it ignores credits and other taxes.

StepWhat happensRunning total
Step zero$8,000 pre-tax 401(k) comes out of pay$92,000 W-2 wages
Total incomeAdd $500 of interest$92,500
AdjustmentsSubtract $3,000 HSA deduction$89,500 AGI
Standard deductionSubtract 2027 single amount of $16,600$72,900
QBI and Schedule 1-ANothing applies here$72,900 taxable income

Notice that AGI is $89,500, but taxable income is $72,900. Using the 2027 single brackets, the tax comes to $10,579.50. That is $1,280 at 10%, $4,707 at 12%, and $4,592.50 at 22%. Their marginal rate is 22%.

A common slip is starting with the $100,000 gross pay number. That double counts the 401(k) deduction. Start with the wages on your W-2 instead.

Above-the-Line vs. Below-the-Line Deductions

You will hear these two phrases all the time. They describe where a deduction sits on your return. The “line” is AGI.

Above-the-line deductions come off before AGI. Below-the-line deductions come off after it. Here is how they compare.

Comparison pointAbove-the-lineBelow-the-line
When it comes offBefore AGIAfter AGI
Lowers AGI?YesNo
Need to itemize?NoOnly for itemized items
ExamplesHSA, IRA, student loan interestStandard deduction, Schedule A, QBI

The table shows why the first group gets so much attention. It does more work for you. It also happens first.

Why Above-the-Line Deductions Often Feel More Powerful

Both types reduce taxable income. At the same bracket, a dollar of either saves the same tax. So the difference is not the tax rate. The difference is AGI.

A lower AGI can help you with other limits. It can help you qualify for credits and deductions that phase out at higher income. It can also make a medical or charitable deduction easier to claim. I did not understand that benefit until I tried to claim a deduction and missed the floor.

Where Each Deduction Lands on Form 1040

Here is a map of common deductions and where they fall in the order. The line references come from the 2025 Form 1040. The 2027 form has not been published, so verify the lines on the current version.

DeductionStageWhere on the 2025 return
Pre-tax 401(k)Before the returnAlready out of W-2 wages
HSA deductionAdjustmentSchedule 1, then line 10
Student loan interestAdjustmentSchedule 1, then line 10
Half of self-employment taxAdjustmentSchedule 1, then line 10
Standard or itemizedAfter AGILine 12e
QBI deductionAfter AGILine 13a
Schedule 1-A deductionsAfter AGILine 13b

Line 11 holds your AGI. Line 15 holds your taxable income. Everything in the table sits between your total income and that final number.

The Order Inside the Adjustments for Self-Employed Filers

If you work for yourself, the order matters even inside the adjustments. Some self-employed deductions depend on others. They cannot all be calculated at once.

Here is the order I have seen for a sole proprietor. It matches the order of lines on Schedule 1. Verify it against the current instructions, since forms can change.

OrderSelf-employed itemWhy it goes here
FirstHalf of self-employment taxIt is figured from your net profit
SecondSelf-employed retirement planIt is limited by earnings after the first item
ThirdSelf-employed health insuranceIt is limited by net profit minus the first two

Why Half of Self-Employment Tax Comes First

The deductible half of self-employment tax gets calculated from your net profit. Then the retirement plan deduction is limited by your earnings after that. The health insurance deduction comes last, and its limit is your net profit minus both of the earlier items.

As I understand it, the retirement plan math can feel circular for some plan types. That is a big reason people use tax software or a pro. I tried doing it by hand once and gave up after one confusing loop.

A Freelancer Example: Why QBI Comes Last

The order shows up clearly for freelancers. Take a made-up sole proprietor with $60,000 of net profit in 2027. I will round the numbers and keep things simple. I will also assume they qualify for every deduction below.

  • Half of self-employment tax: about $4,239. Self-employment tax is roughly 15.3% of 92.35% of net profit, or about $8,478.
  • Solo 401(k) contribution: $6,000.
  • Self-employed health insurance: $5,000.
  • AGI: $60,000 minus those three items is $44,761.
  • Standard deduction: $16,600 brings the total to $28,161 before QBI.
  • QBI deduction: 20% of business income after those items would be about $8,952. But the deduction cannot top 20% of taxable income before QBI, which is $5,632. So the QBI deduction is $5,632.
  • Taxable income: $28,161 minus $5,632 is $22,529.

That cap is why QBI comes last. It needs your taxable income before QBI, so everything else must be figured first. This example assumes no capital gains. Real returns add more rules, including limits for higher incomes and certain businesses. Use the official forms or good software.

Why the Order Matters: Rules That Use AGI

You might wonder if all this order talk changes anything. For a simple return, the final taxable income may come out the same either way. The order matters because many rules key off AGI or a version of it.

RuleWhat it looks atWhy order matters
Medical expense deduction7.5% of AGIAGI must be set first
Charitable deduction floor0.5% of AGIAGI must be set first
Traditional IRA deductionMAGI phase-outMAGI is figured before the IRA deduction
Student loan interestMAGI phase-outMAGI is figured before this deduction
Schedule 1-A deductionsMAGI phase-outThey phase out by income
QBI deductionTaxable income before QBIQBI is figured last

A Medical Expense Example

Take the AGI from our example: $89,500. Seven and a half percent of that is $6,712.50. Say you paid $10,000 in medical costs. Only $3,287.50 counts toward itemizing.

Now suppose you used your total income of $92,500 by mistake. The floor would be $6,937.50, and only $3,062.50 would count. That is a $225 error from using the wrong number. In this case, you would probably take the standard deduction anyway, but the example shows why AGI comes first.

The Charitable Floor and the IRA Loop

Starting in 2026, itemizers can deduct charitable gifts only above 0.5% of AGI. On an AGI of $89,500, that floor is $447.50. Gifts below it do not help you when you itemize.

The IRA deduction has its own twist. Its phase-out uses MAGI, and that number is figured without the IRA deduction itself. For 2027, a single filer covered by a workplace plan sees the deduction phase out between $83,000 and $93,000. In our example, the MAGI sits inside that range, so only part of an IRA contribution would be deductible.

Which Deduction Is Calculated First When You Itemize?

Itemizing has its own order. Schedule A groups your expenses into sections, and several sections have limits. You work through each category, apply its limit, and only then add up the total.

Apply the Floors and Caps First

Medical costs come first on Schedule A, and they face the 7.5% of AGI floor. State and local taxes face a cap. It was $40,400 for 2026, and one summary I found puts 2027 near $40,804. Verify the 2027 number, since I found it in only one source. The cap also shrinks at high income.

Mortgage interest is limited to interest on $750,000 of loan debt. Charitable gifts face the 0.5% floor. Only after each category passes its limit do you add the totals together.

High earners in the 37% bracket face one more rule starting in 2026. I believe it trims the tax benefit of itemized deductions after the total is set. If that is you, a tax pro is worth the fee.

Compare Your Itemized Total to the Standard Deduction

Now you compare. Since 2026, people who take the standard deduction can also deduct up to $1,000 of cash gifts to charity, or $2,000 on a joint return. So the fair comparison is your itemized total against the standard deduction plus that gift deduction.

Here is a made-up case. A married couple filing jointly has an AGI of $140,000 in 2027. They pay $18,000 in state and local taxes and $14,000 in mortgage interest. They give $2,500 in cash to charity. The 0.5% floor is $700, so $1,800 of their gifts counts. Their itemized total is $33,800.

The standard route is $33,200 plus a $2,000 gift deduction, which is $35,200. That beats itemizing by $1,400. This assumes the gifts are cash to qualifying charities, not a donor-advised fund. I almost itemized in a year like this before I ran the comparison.

A Five-Line Check You Can Run on Your Own Return

When you wonder which deduction is calculated first when determining taxable income, this check gives you the answer on your own numbers. It takes about ten minutes. Last year’s return works fine.

  1. Start with total income, using W-2 box 1 wages plus other income.
  2. Subtract your adjustments to reach AGI.
  3. Subtract the larger of the standard deduction or your itemized total.
  4. Subtract any QBI and Schedule 1-A deductions.
  5. Compare your answer to the taxable income line on your return.

If your answer matches, you understand your return. If it does not, one of the steps is off. I find the mismatch usually hides in step one or step two.

What Comes After Taxable Income

Taxable income is not the finish line. You apply the bracket rates to it to figure your tax. Then credits reduce that tax bill.

Credits never come off income. They come off the tax. That keeps them out of the order we just covered.

Mistakes I Made (and Still See) With the Order of Deductions

Most of my mistakes came from skipping a step or using the wrong starting number. Here are the big ones in one place.

MistakeBetter approach
Subtracting the standard deduction from gross payStart with total income, then find AGI first
Counting 401(k) deferrals twiceUse W-2 box 1 wages, which already exclude them
Using total income for the medical floorUse AGI
Assuming itemized deductions lower AGIThey lower taxable income only
Taking QBI before other deductionsFigure it after, using the official form
Trusting old line numbersRead the current year’s form instructions

The Double-Count I Made

One year I started with my gross pay. Then I subtracted my 401(k) contribution again. My number came out too low, and I felt great for about ten minutes. Then I checked my W-2 and saw the mistake.

Box 1 had already done the work. Always start with the figure on the form, not the one on your pay stub.

Trusting Old Line Numbers

Form lines move. A line that held one item last year may hold something else this year. The 2025 form added new lines for the newer deductions.

I now search by the label, not the number. Tax software hides this problem, but it shows up fast when you work from last year’s printout.

Putting the Order to Work in Your 2027 Planning

Knowing the order helps you plan. You can see which moves lower AGI and which only lower taxable income. That tells you where to spend your effort.

Start With the Moves That Lower AGI

Adjustments come first, so they do double duty. An HSA deduction lowers AGI and taxable income. For 2027, the HSA limit is $4,500 for self-only coverage and $9,000 for family coverage. A traditional IRA contribution can do the same, up to $7,500, if you meet the income rules. A pre-tax 401(k) deferral is step zero, so it lowers both numbers too.

Lower AGI also helps with the AGI-based limits we covered. That is why I look at these moves before anything else.

Then Compare the Standard Deduction to Itemizing

Do this comparison late in the year, when your numbers are clearer. If your itemized total sits close to the standard deduction, a small change can tip the result. Bunching gifts into one year is one way people do that.

If you are far below the standard deduction, do not stress about it. Take the standard deduction and move on.

Keep a One-Page Order Sheet

I keep a one-page sheet each year with the five steps and my numbers. It takes about ten minutes to fill out. Next year, it becomes a template.

It also makes talking to a tax pro faster. I can point to the exact step where I have a question. That saves time, and it saves money if you pay by the hour.

Quick Answers on Which Deduction Is Calculated First

These are the questions I hear most often. I kept each answer short.

Which deduction is calculated first when determining taxable income for self-employed filers?

Half of self-employment tax comes first. Then comes the retirement plan deduction, and then the health insurance deduction. All three are adjustments, so they come before AGI.

The standard deduction and QBI come after that.

Is the standard deduction calculated before or after AGI?

After. You find your AGI first. Then you subtract the standard deduction or your itemized deductions.

The standard deduction does not depend on your AGI, but it still sits in the step after it.

Do itemized deductions lower AGI?

No. Itemized deductions come off after AGI. They lower taxable income only.

That is why a medical or charitable deduction cannot help you meet its own AGI floor.

Do tax credits come before deductions?

No. Credits come after. You use your taxable income to figure your tax, and then credits reduce that tax bill.

A deduction reduces income. A credit reduces tax.

Does the order change my final taxable income?

On a simple return, it often does not. The same deductions come off either way. But the order decides which limits you can apply.

It also helps you spot mistakes when a number looks wrong.

What should I check first when I plan my taxes?

Check your AGI. It controls many limits, so small changes there can matter. Then compare your itemized total to the standard deduction.

For many people, that two-step check is enough.

Final Thoughts

The biggest lesson I learned is simple. Which deduction is calculated first when determining taxable income? Adjustments to income, the above-the-line deductions, come first. Then comes the standard or itemized deduction. Then QBI and Schedule 1-A come last. And before all of that, pre-tax payroll deductions quietly do their work.

Be realistic, though. Tax rules and forms change, and this is general information. Check the current IRS forms for your tax year, and talk to a pro if your case is complex. For your next step, pull out last year’s return, trace your income down to taxable income, and label each step. That ten-minute exercise makes the order stick.

Scroll to Top