Code 766 means the IRS has offset your refund to pay a federal debt
Code 766 on your IRS transcript means the IRS took money from your tax refund to pay a debt you owe to a federal agency — typically student loans, back taxes, or an overpayment from a prior year. The offset happens before the refund reaches you, so you will not receive the full amount you expected.
The timing depends on which federal agency holds the debt. If it is a student loan held by the Department of Education, the offset process typically takes 60 to 90 days after the IRS sends your refund to the Treasury Offset Program. If the debt is to the IRS itself (back taxes or an overpayment), the offset is usually immediate. Other agencies like the Department of Veterans Affairs or state tax agencies may take longer.
You will see Code 766 on your IRS account transcript before any money moves. This is your notice that an offset is coming or has already happened. The remaining balance — if any — will be sent to you through your normal refund method (direct deposit or check) after the offset is complete.
Key Takeaways
- Code 766 means the IRS has sent your refund to the Treasury Offset Program to pay a federal debt instead of sending it to you.
- Student loan offsets typically take 60 to 90 days after the IRS initiates the offset, while IRS debts are usually offset immediately.
- You can see Code 766 on your IRS transcript before the offset happens, which gives you time to contact the creditor agency if you believe the debt is wrong.
- Any remaining refund balance after the offset will be sent to you by check or direct deposit, depending on how you filed.
- The offset process is automatic and cannot be stopped once Code 766 appears, but you can dispute the underlying debt with the agency that holds it.
How long the offset actually takes by debt type
The timeline varies significantly depending on which federal agency holds your debt. If you owe student loans through the Department of Education, the offset process begins when the IRS sends your refund to the Treasury Offset Program, and the Department of Education typically receives and processes the payment within 60 to 90 days. During this time, your refund is held in the offset system and not available to you.
If you owe back taxes to the IRS itself, the offset happens much faster — usually within days or weeks. The IRS applies the refund directly to your tax account before sending any remainder to you. If you owe a debt to another agency like the Department of Veterans Affairs, the Social Security Administration, or a state child support enforcement office, the timeline can range from 30 to 120 days depending on how quickly that agency processes the offset.
Once the offset is complete, any leftover refund is released to you. If you filed for direct deposit, the remaining amount will go to your bank account. If you filed for a check, the IRS will mail it to the address on your return. This final step typically takes 5 to 10 business days after the offset agency releases the funds.
Checking your transcript to see Code 766 and the offset status
You can view Code 766 on your IRS account transcript by logging into IRS.gov and selecting "View your tax account." The transcript shows all transaction codes applied to your return, including 766. The code will appear in the transaction history section with the date it was posted and the amount offset.
The IRS transcript does not tell you how much longer the offset will take — it only confirms that the offset has been initiated or completed. To find out the current status of your offset, you need to contact the agency holding the debt directly. For student loans, call the Department of Education's Federal Student Aid office at 1-800-621-3115. For IRS debt, call the IRS at 1-800-829-1040. For other agencies, search for their offset or collections department online.
Keep your IRS transcript handy when you call. The agency will ask for your Social Security number and the amount shown on Code 766 to look up your case in their system. They can tell you whether the offset has been sent to them, whether they have received it, and when you can expect the remaining refund.
What happens if you believe the debt is wrong
If you think the debt being offset is incorrect — for example, you already paid it, or it belongs to someone else — you have the right to dispute it with the agency holding the debt, not with the IRS. The IRS is only following an offset order from that agency. Contact the creditor agency directly and ask for their dispute process. Most agencies have a formal procedure for challenging debts before or after an offset.
For student loan disputes, contact your loan servicer or the Department of Education's ombudsman. For IRS debt disputes, you can request a Collection Due Process hearing by calling the IRS within 30 days of receiving a notice of intent to offset. For other agencies, ask for their appeals or dispute department when you call.
Filing a dispute does not automatically stop the offset if Code 766 has already appeared on your transcript, but it may prevent future offsets if you win the dispute. Keep records of any payments you made, correspondence with the agency, and proof that the debt has been resolved. These documents will support your dispute claim.
When your remaining refund will arrive after offset is complete
Once the offset agency releases your refund (minus the amount they took), the IRS will send the remainder to you using the method you chose on your tax return. If you requested direct deposit, the money will go to your bank account within 5 to 10 business days after the offset is complete. If you requested a check, the IRS will mail it to your address, which typically takes 7 to 14 business days depending on postal delivery.
The exact timing depends on when the offset agency finishes processing. For student loans, this is usually 60 to 90 days after the IRS initiates the offset. For other agencies, it may be faster or slower. You can check the status by logging into your IRS account or calling the creditor agency directly.
If you do not receive your remaining refund within the expected timeframe, contact the IRS at 1-800-829-1040 with your transcript showing Code 766 and the offset amount. The IRS can confirm whether the offset is complete and whether the remainder has been released to you.
Preventing future offsets by resolving the underlying debt
To avoid Code 766 on next year's return, you need to resolve the debt with the agency holding it. For student loans, contact your servicer about setting up a payment plan or exploring income-driven repayment options if you are in default. For IRS debt, you can set up an installment agreement or request an offer in compromise. For other debts, ask the agency about payment options.
Once you have made a payment arrangement or paid the debt in full, notify the agency in writing and ask them to confirm that the debt has been resolved. Request a letter stating that the debt is no longer subject to offset. Keep this letter for your records and provide it to the IRS if you are audited or if you want to verify that the debt will not be offset again.
If you are in a payment plan with the agency, the offset may still happen on future refunds until the debt is fully paid, depending on the agency's policy. Ask specifically whether your refunds will continue to be offset while you are making payments.
Frequently Asked Questions
Can I stop Code 766 from happening once I see it on my transcript?
No. Once Code 766 appears on your transcript, the offset has already been initiated or completed. You cannot stop it through the IRS. However, if you believe the debt is wrong, you can dispute it with the creditor agency directly. If you win the dispute, they may reverse the offset and return the money to you.
Will I get any notice before Code 766 appears on my transcript?
You may receive a notice from the creditor agency before the offset happens, but the IRS does not send a separate notice. The creditor agency is responsible for notifying you that your refund will be offset. Check your mail for notices from the Department of Education, IRS, or other federal agencies. If you see Code 766 on your transcript without prior notice, contact the creditor agency immediately to confirm the debt.
What if Code 766 offset more than I owed?
If the offset amount exceeds the debt, contact the creditor agency and ask them to return the overpayment. Provide documentation of the debt amount and request a refund of the excess. The agency should process this within 30 to 60 days. If they do not, you may file a claim with the agency's inspector general or contact your congressional representative for assistance.
How do I know if my offset is complete?
Check your IRS transcript regularly — if Code 766 no longer appears or if a new code appears (such as Code 846 for a refund issued), the offset is likely complete. You can also call the creditor agency directly and ask whether they have received and processed your offset. The IRS can also confirm the status if you call 1-800-829-1040 with your Social Security number and the offset amount.