Sub topic 15
Tax deductions, credits, and tax treatment of forgiveness
This chapter assumes you know what a loan balance and interest are, and that you know the difference between taxable income and tax owed. It uses US federal rules. Dollar limits and phase-out ranges are adjusted or rewritten often, and the figures below are examples. Confirm current numbers on IRS.gov (Publication 970) before you file.
Deduction versus credit
A deduction lowers the income your tax is calculated on. Its value is the deduction multiplied by your marginal tax rate. A credit lowers the tax itself, dollar for dollar. A refundable credit can pay you money even when you owe no tax. A nonrefundable credit can only reduce your tax to zero.
A $1,000 deduction at a 22% marginal rate saves $220. A $1,000 credit saves $1,000. Credits are usually worth more per dollar, but each has stricter rules about who qualifies.
The student loan interest deduction
You can deduct interest you paid on a qualified student loan during the tax year.
- The maximum is $2,500 per tax return per year, not per loan.
- It is an "above-the-line" deduction. You get it even if you take the standard deduction.
- The loan must have been taken out for qualified education expenses, for you, your spouse, or a dependent.
- You must be legally obligated to pay the loan. A parent who pays your loan voluntarily does not get the deduction. The IRS treats that payment as a gift to you, and you may deduct the interest if you are the one legally obligated and no one claims you as a dependent.
- You cannot claim it if you file as married filing separately, or if someone else can claim you as a dependent.
- The deduction phases out as your modified adjusted gross income (MAGI) rises. For 2025 the range was $85,000 to $100,000 for single filers and $170,000 to $200,000 for joint filers. The ranges are indexed to inflation.
Your servicer sends Form 1098-E if you paid $600 or more in interest. If you paid less, the interest still counts. Check your servicer's website for the amount.
Interest paid includes interest paid by your own payments. It does not include interest that capitalized and has not been paid. Capitalization is covered in the interest chapter.
Education credits
Two credits help with tuition and related costs. They are claimed with Form 8863, using the school's Form 1098-T and your own records of expenses.
| Feature | American Opportunity Tax Credit (AOTC) | Lifetime Learning Credit (LLC) |
|---|---|---|
| Maximum | $2,500 per student per year | $2,000 per return per year |
| Calculation | 100% of first $2,000 and 25% of next $2,000 of expenses | 20% of up to $10,000 of expenses |
| Refundable | 40% (up to $1,000) | No |
| Years available | First four years of postsecondary education | Unlimited years |
| Enrollment | At least half-time, working toward a degree | Any course to gain job skills, even one class |
| Income phase-out (MAGI) | About $80,000–$90,000 single, $160,000–$180,000 joint | Same ranges |
Key rules:
- You cannot claim both credits for the same student in the same year. AOTC is often better for undergraduates.
- A student who can be claimed as a dependent cannot claim the credit. The person who claims the dependent claims it, usually a parent.
- You cannot count the same expense twice. Tuition paid with tax-free grants or scholarships cannot also generate a credit. Sometimes it helps to treat part of a scholarship as taxable income so more expenses qualify for the credit. Run both versions before you decide.
- Married filing separately is generally not eligible.
Other tax-advantaged money
- 529 plans. Earnings are tax-free when you withdraw for qualified education expenses. Up to $10,000 in total can also repay a beneficiary's qualified student loans. Some states do not follow the federal rules for loan repayment.
- Employer assistance. An employer can pay up to $5,250 per year toward your education or loan payments without it counting as your taxable income (Section 127). Confirm the current limit and whether your employer offers it.
- Scholarships and grants. The part used for tuition, fees, and required books is tax-free. The part used for room, board, or travel is taxable income.
Tax treatment of forgiven debt
Normally, when a lender cancels a debt, the canceled amount counts as taxable income. The lender reports it on Form 1099-C. Student loan forgiveness has several exceptions, and they differ by program.
| Type of relief | Federal tax treatment |
|---|---|
| Public Service Loan Forgiveness (PSLF) | Excluded from income by statute |
| Teacher Loan Forgiveness and similar profession-based programs | Generally excluded |
| Death and total and permanent disability discharge | Excluded under current law |
| Closed school, false certification, borrower defense | Generally not taxed under IRS guidance |
| Income-driven repayment (IDR) forgiveness after 20 to 25 years | Taxable at the federal level for discharges after 2025, unless Congress acts |
| Private loan settlement or write-off | Usually taxable, unless an exception applies |
From 2021 through 2025, a temporary federal law made nearly all student loan forgiveness tax-free. That exclusion expired at the end of 2025. If you expect IDR forgiveness, plan for a possible tax bill in the year the balance is canceled, and check whether Congress has changed the rule again.
Two details matter in practice:
- The tax is due in one year. The forgiven balance is added to that year's income and can push you into a higher bracket.
- State tax can differ. Some states tax forgiveness that the federal government does not, and some do the opposite.
If you are insolvent when the debt is canceled, meaning your total debts exceed your total assets, you can exclude forgiven debt up to the amount of insolvency. You report this on Form 982. It is worth checking before you pay the tax.
Estimating the numbers
This script estimates the value of the interest deduction and the possible tax on forgiveness. The default phase-out range and the 22% rate are illustrative. Replace them with current values.
def interest_deduction(interest_paid, magi, phase_start=85000,
phase_end=100000, cap=2500):
"""Student loan interest deduction after the MAGI phase-out."""
allowed = min(interest_paid, cap)
if magi >= phase_end:
return 0.0
if magi <= phase_start:
return float(allowed)
return allowed * (phase_end - magi) / (phase_end - phase_start)
def tax_on_forgiveness(forgiven, marginal_rate):
"""Rough estimate. Real tax depends on how the amount stacks across brackets."""
return forgiven * marginal_rate
deduction = interest_deduction(interest_paid=2000, magi=92500)
print("Deduction:", round(deduction, 2)) # 1000.0
print("Tax saved at 22%:", round(deduction * 0.22, 2)) # 220.0
print("Tax on $40,000 forgiven at 22%:",
round(tax_on_forgiveness(40000, 0.22), 2)) # 8800.0The forgiveness estimate is a floor, not a forecast. A $40,000 cancellation added to a normal year's income could land partly in a higher bracket, so use tax software or the IRS tables for the real figure.
Which benefit applies?
Common errors
- Claiming a credit and a deduction for the same dollars. Interest on a loan can be deducted, but tuition paid from loan proceeds can also support a credit. These are different dollars. You cannot count tuition twice.
- Skipping forms. Keep Form 1098-T, Form 1098-E, and your own receipts. The 1098-T may show amounts billed, and these can differ from amounts you actually paid.
- Ignoring MAGI. Retirement contributions that reduce adjusted gross income can bring you back under a phase-out limit. Check this before the tax year ends.
- Assuming forgiveness is tax-free. Tax-free status depends on the program and the year of discharge.
- Filing separately without checking. Married filing separately can disqualify you from the interest deduction and both credits. It can still make sense for IDR payment calculations, so compare the total effect.
Exercise
You are single with a MAGI of $97,000 and paid $1,800 in student loan interest. Using the phase-out range of $85,000 to $100,000, how much can you deduct? If your marginal rate is 24%, how much tax does the deduction save? Separately, you expect $50,000 of IDR forgiveness in a year with no tax exemption, also at 24%. What is the rough tax cost?
Show answer
Allowed interest is $1,800 (under the $2,500 cap). The phase-out fraction remaining is (100,000 − 97,000) / 15,000 = 0.2, so the deduction is 1,800 × 0.2 = $360. Tax saved is 360 × 0.24 = $86.40. The forgiveness tax is roughly 50,000 × 0.24 = $12,000, and it could be higher if the extra income reaches a higher bracket.