You can file bankruptcy when you owe the IRS, and older federal income tax debt can be discharged, but only if it clears a strict set of timing and compliance tests. Debt that fails any of the tests survives your case. Certain tax obligations — payroll taxes, taxes from fraudulent returns, and taxes from returns you never filed — cannot be discharged at any age. Filing does stop most IRS collection activity immediately, which is often the most useful thing bankruptcy does for a tax problem, even when discharge is not available.
The Five Tests for Discharging Income Tax
Federal income tax debt is dischargeable in bankruptcy only if it passes all five of the following. Miss one and the debt stays.
- Three-year rule. The return must have been originally due at least three years before your filing date, including any extension. A 2022 return due April 15, 2023 is not eligible until after April 15, 2026. If you took a six-month extension pushing the due date to October 15, 2023, the clock runs to October 15, 2026.1Office of the Law Revision Counsel. 11 U.S. Code 507 – Priorities
- Two-year rule. If you filed the return late, you must have filed it at least two years before your bankruptcy petition.2Office of the Law Revision Counsel. 11 U.S.C. 523 – Exceptions to Discharge
- 240-day rule. The IRS must have assessed the tax at least 240 days before you file. The clock pauses while an offer in compromise is pending (plus 30 days) and while an automatic stay from a prior bankruptcy is in effect (plus 90 days).3Internal Revenue Service. Publication 908 (2025), Bankruptcy Tax Guide
- No fraud or evasion. The debt cannot come from a fraudulent return or a willful attempt to evade tax.2Office of the Law Revision Counsel. 11 U.S.C. 523 – Exceptions to Discharge
- Return actually filed. If you never filed the return, the tax is not dischargeable.4Internal Revenue Service. Declaring Bankruptcy
Dates matter to the day. Filing one day too early can leave a large tax debt intact. Before you file, pull a tax account transcript from the IRS. It shows the exact assessment date you need for the 240-day calculation and confirms when each return was filed.
Tax Debts Bankruptcy Cannot Touch
Some tax obligations are permanently excluded from discharge no matter how old they are or how long ago they were assessed. If your IRS problem is one of these, bankruptcy will not eliminate the debt, though it may still buy time.
- Payroll and trust fund taxes. Income tax and Social Security tax withheld from employees’ paychecks and not paid over to the IRS cannot be discharged. Neither can the trust fund recovery penalty the IRS assesses personally against officers, directors, and other individuals responsible for collecting and paying those withholdings.1Office of the Law Revision Counsel. 11 U.S. Code 507 – Priorities
- Taxes from fraudulent returns. A return you knew was false, or a deliberate attempt to evade tax, produces debt that is non-dischargeable regardless of age.2Office of the Law Revision Counsel. 11 U.S.C. 523 – Exceptions to Discharge
- Taxes from unfiled returns. If you never filed the required return, the associated tax cannot be discharged.4Internal Revenue Service. Declaring Bankruptcy
Business owners with unpaid employment taxes should take this seriously. The IRS regularly pursues the trust fund recovery penalty against responsible individuals, and bankruptcy will not clear it.
Chapter 7 or Chapter 13 When You Owe the IRS
The two common chapters treat tax debt very differently, and the right one depends on whether your tax debt qualifies for discharge and what you can afford to repay.
Chapter 7
In Chapter 7, qualifying income tax debt is eliminated when the court enters the discharge order. Any tax debt that does not clear all five tests survives the case and remains your personal obligation.5Internal Revenue Service. Bankruptcy Frequently Asked Questions Chapter 7 also requires you to pass a means test comparing your income to your state’s median; if your income is too high, you may be pushed into Chapter 13.
Chapter 13
Chapter 13 puts all debts, including taxes, into a court-supervised repayment plan lasting three to five years. Priority tax debts — those that fail the discharge timing rules — must be paid in full through the plan.6U.S. Courts. Chapter 13 – Bankruptcy Basics Non-priority tax debts get lumped in with unsecured creditors like credit card companies, and you may pay only a fraction. Any remaining non-priority tax debt that meets the discharge rules is wiped out when you finish the plan.7Office of the Law Revision Counsel. 11 U.S.C. 1328 – Discharge
Chapter 13 is often the better fit when you have a mix of old dischargeable tax debt and newer non-dischargeable tax debt. It forces the IRS to accept structured payments on the new debt, stops interest and collection on it during the plan, and discharges the old debt at the end.
What Filing Does to IRS Collection Right Away
The instant you file a petition, an automatic stay stops most IRS collection. No new levies on bank accounts, no wage garnishment, no new liens on estate property.8Office of the Law Revision Counsel. 11 U.S.C. 362 – Automatic Stay For many people that pause is the most valuable thing filing accomplishes.
The stay is not absolute. The IRS can still audit you, demand unfiled returns, issue a notice of deficiency, and assess new taxes while your case is open. A new tax lien from that assessment generally cannot attach to property in the bankruptcy estate unless the tax will not be discharged.9Office of the Law Revision Counsel. 11 U.S. Code 362 – Automatic Stay
If you had a prior bankruptcy case dismissed within the past year, the new stay lasts only 30 days unless the court extends it. If two or more prior cases were dismissed within the past year, no stay takes effect at all without a court order.9Office of the Law Revision Counsel. 11 U.S. Code 362 – Automatic Stay
Your Refund Is at Risk
The automatic stay does not stop the IRS from offsetting a pre-petition income tax refund against a pre-petition income tax liability.10Office of the Law Revision Counsel. 11 U.S. Code 362 – Automatic Stay – Section 362(b)(26) If you owe for 2023 and are owed a refund for 2024 when you file in 2026, the IRS can keep the refund and apply it to the older balance. Even when immediate offset is not available, the IRS may freeze the refund and ask the court for permission to apply it.11Internal Revenue Service. Chapter 11 Bankruptcy (Reorganization)
In Chapter 7, any refund tied to income you earned before filing is generally property of the bankruptcy estate and can be claimed by the trustee. Refunds based on income earned after your filing date belong to you.
Existing Tax Liens Survive Discharge
A federal tax lien recorded before you filed survives the case even when the underlying tax is discharged. Bankruptcy ends your personal obligation to pay, but the lien stays attached to property you owned at filing.12Internal Revenue Service. Understanding a Federal Tax Lien Sell that property later, and the IRS can claim proceeds up to the lien amount.
After the case closes and the tax is discharged, the IRS must release the lien within 30 days of determining the liability is satisfied or legally unenforceable.13Internal Revenue Service. Lien Release and Related Topics For a joint tax liability where only one spouse gets a discharge, the IRS issues a partial release that frees the discharged spouse’s interest and leaves the lien in place against the other.
Penalties and Interest
Penalties tied to dischargeable tax generally follow the underlying tax. If the penalty arose from an event more than three years before your filing date, it can typically be discharged with the tax.14Office of the Law Revision Counsel. 11 U.S. Code 523 – Exceptions to Discharge Penalties tied to non-dischargeable taxes, like the trust fund penalty, stay.
Pre-petition interest on dischargeable tax is generally dischargeable as well. If a federal tax lien survives, interest may continue to accrue on the secured portion. In Chapter 13, the IRS may receive post-petition interest on a secured claim at the rate set in the confirmed plan.15Internal Revenue Service. 5.9.4 Common Bankruptcy Issues
What to Do Before You File
Two things need to be in order before a petition is worth filing. First, all required returns for the four tax years ending before your filing date must be filed. Missing returns can get the case dismissed, so file anything outstanding first.4Internal Revenue Service. Declaring Bankruptcy
Second, verify your dates. Request a tax account transcript from the IRS with Form 4506-T.16Internal Revenue Service. About Form 4506-T, Request for Transcript of Tax Return The transcript shows assessment dates, payment history, and penalty details, which is what you need to confirm the 240-day rule. A record of account transcript combines return data with account activity and helps when the return was later amended or adjusted.17Internal Revenue Service. Transcripts
Federal law also requires every individual filer to complete a credit counseling course from an approved agency within the 180 days before filing, and a separate debtor education course after filing but before discharge.18U.S. Courts. Credit Counseling and Debtor Education Courses
Alternatives Worth Considering First
Bankruptcy is one option among several for IRS debt. Depending on what you owe and why, one of these may resolve the problem with less damage.
- Installment agreement. The IRS lets you pay over time in monthly installments and offers online setup for balances under $50,000. Interest keeps running.
- Offer in compromise. Settle for less than the full balance when full payment is unlikely or would cause hardship. You must be current on required returns and estimated payments, and you cannot have an open bankruptcy case when you apply.19Internal Revenue Service. Offer in Compromise
- Currently not collectible status. The IRS pauses collection when you cannot pay anything. The debt is not forgiven and penalties and interest keep accruing, but levies and garnishments stop while you are in hardship.
Each has trade-offs, and none of them clears debt the way a Chapter 7 discharge can when the timing rules are met. Comparing your specific tax years, assessment dates, and ability to pay against the five discharge tests is the fastest way to see which path fits your situation.