Short answer: not automatically, but sometimes yes. Filing for bankruptcy does not, by itself, erase student loans the way it typically erases credit card debt or medical bills. To get your student loans discharged, you have to file a separate lawsuit inside your bankruptcy case and prove that repaying them would cause you "undue hardship." It's a real path - and it has gotten meaningfully more attainable in the last few years - but it's not automatic, and it's not simple.
If you're staring at student loan statements while also drowning in other debt, take a breath. This is a well-worn area of law, you're far from the only person dealing with it, and there is no shame in exploring your options. Here's what actually happens.
Why student loans are treated differently
Under the Bankruptcy Code, most debts are discharged when your case is completed - that's the fresh-start promise of bankruptcy. But Congress carved out several categories of debt that survive bankruptcy unless you can prove something extra. Student loans are one of them, under 11 U.S.C. § 523(a)(8). Along with things like certain taxes and domestic support obligations, they don't disappear just because your overall case is granted a discharge.
The exception: if you can show that paying the loan back would impose "undue hardship" on you, a bankruptcy judge can order the loan discharged in whole or in part. That's the door you have to walk through.
The adversary proceeding: a lawsuit inside your case
You don't get an undue-hardship ruling just by checking a box on your bankruptcy forms. You have to file what's called an adversary proceeding - essentially a separate lawsuit within your bankruptcy case, naming your loan holder (often the U.S. Department of Education or its loan servicer) as the defendant. It involves its own complaint, its own deadlines, and potentially a trial or evidentiary hearing.
This is a genuinely procedural, document-heavy piece of litigation. The U.S. Courts' bankruptcy basics pages at uscourts.gov explain adversary proceedings generally, but the practical reality is that most people need a bankruptcy attorney or a legal aid/law-school clinic to do this well. Get it wrong procedurally, and you can lose the chance without ever getting a real hearing on the merits.
How courts decide "undue hardship": the Brunner test
Most federal circuits use some version of a three-part test that originated in a 1987 case, Brunner v. New York State Higher Education Services Corp. Courts applying it generally look at whether:
You cannot currently maintain a minimal standard of living for yourself and your dependents if forced to repay the loan;
Additional circumstances exist indicating this situation is likely to persist for a significant part of the loan's repayment period (not just a temporary rough patch); and
You have made good-faith efforts to repay the loan in the past - for example, by using income-driven repayment, deferment, or forbearance options when you could.
Not every circuit uses this exact test. Some, including the Eighth Circuit, instead weigh a broader "totality of the circumstances," without rigid prongs. Which test applies to you can depend on which federal circuit your case is filed in, so this is genuinely a "check with an attorney in your area" situation rather than a one-size-fits-all rule.
What changed in 2022 - and why it matters now
For years, the reality on the ground was that even sympathetic cases were often contested hard by government attorneys, making undue-hardship discharges rare and expensive to pursue. That shifted in November 2022, when the Department of Justice, working with the Department of Education, announced new guidance for how government attorneys handle these cases.
The centerpiece is a detailed attestation form that borrowers complete, laying out their income, expenses, health, employment history, and past repayment efforts. Government attorneys use that information to evaluate the case against consistent published factors - rather than reflexively opposing every claim - and can agree to a discharge or partial discharge without a full trial when the facts support it. This has led to a meaningful increase in discharges and settlements for borrowers who are genuinely struggling.
Two important hedges:
This is not automatic approval. Every case is still individually reviewed, and the attestation process applies most directly to federal loans handled by government attorneys. Private loans and some loan types may not fit neatly into this same process.
The guidance has been updated since it was first issued, and practice continues to evolve. Don't rely on secondhand summaries (including this one) for the current mechanics - check the source documents at justice.gov (the U.S. Trustee Program keeps a student-loan guidance page at justice.gov/ust) and the Federal Student Aid guidance pages at studentaid.gov for what's current as of when you're reading this.
What to do if you think your loans might qualify
Talk to a bankruptcy attorney or legal aid office before you file, if possible. Whether an undue-hardship discharge is realistic depends heavily on your income, health, dependents, and repayment history - an attorney can give you an honest read before you commit time and money to the process.
Don't skip the basics of your main bankruptcy case. You still need to complete the required pre-filing credit counseling and, later, a debtor education course, and you still need to qualify for and complete whichever chapter (7 or 13) fits your situation. The undue-hardship discharge sits on top of that, not instead of it.
Gather your student loan documentation early - loan statements, repayment plan history, any deferment or forbearance you've used, medical records if health is a factor, and proof of income and necessary expenses. The attestation process and the Brunner-style analysis both hinge on this evidence.
File the adversary proceeding within your bankruptcy case, generally before the case closes. Missing case-specific windows or local procedural rules can cost you the opportunity, so this is not a do-it-yourself step for most people.
Check studentaid.gov for the current attestation form and process if your loans are federal, and confirm with your attorney whether the DOJ/Department of Education approach applies to your specific loans.
A note on for-profit "debt relief" and unauthorized help
If you search around for help with student loan debt, you will run into companies promising fast loan forgiveness or debt "settlement" for an upfront fee. Be skeptical. Legitimate federal loan discharge and repayment programs are free to apply for directly through the government. Non-attorney "petition preparers" can fill out bankruptcy paperwork for a fee, but they are legally barred from giving you legal advice - and an undue-hardship case is exactly the kind of complex legal judgment call where bad advice can cost you the discharge entirely.
Lower-cost, legitimate help does exist: legal aid organizations, law school bankruptcy clinics, your court's self-help resources, and credit counseling agencies approved by the U.S. Trustee Program (listed via justice.gov/ust). Use those instead of paying an upfront fee to a debt-settlement company.
This article is general information, not legal advice, and reading it doesn't create an attorney-client relationship. Bankruptcy and student loan rules are detailed and change over time - talk to a qualified bankruptcy attorney about your specific situation, and be wary of any for-profit debt-relief or debt-settlement company, or non-attorney "petition preparer," asking for money upfront to fix your student loans.
Frequently asked questions
Does filing for bankruptcy automatically get rid of my student loans?
No. Most other unsecured debts (credit cards, medical bills, personal loans) are typically wiped out when your bankruptcy case is granted a discharge. Student loans are treated differently under 11 U.S.C. § 523(a)(8) - they survive bankruptcy unless you separately prove they'd cause you "undue hardship." You have to ask a bankruptcy judge for that finding; it doesn't happen by default.
What is an adversary proceeding, and do I need a lawyer for it?
An adversary proceeding is a lawsuit filed inside your bankruptcy case, separate from the main case itself, naming your loan holder (or the Department of Education) as a defendant. It has its own complaint, deadlines, and possibly a trial. It is not something most people can safely handle alone - the U.S. Courts' bankruptcy basics pages at uscourts.gov describe the process, but a bankruptcy attorney or legal aid clinic can tell you whether it's realistic in your case and help you through it.
What changed with the 2022 DOJ and Department of Education guidance?
In November 2022, the Department of Justice, working with the Department of Education, rolled out a streamlined process built around a detailed attestation form. Borrowers who complete it let government attorneys evaluate their income, expenses, and repayment history against consistent, published factors instead of contesting every case. This has led to more settlements and discharges for borrowers who are genuinely struggling, though every case is still reviewed individually. Details are on justice.gov (including the U.S. Trustee Program's student-loan guidance page at justice.gov/ust) and studentaid.gov, and the guidance has been updated since 2022, so check for the current version.
Do private student loans get discharged the same way as federal loans?
The undue-hardship standard in the Bankruptcy Code applies to "qualified education loans" broadly, which can include many private student loans, not just federal ones. (Some private loans that don't meet the Code's definition of a qualified education loan may not even require an undue-hardship showing - an attorney can tell you which category yours fall into.) But the 2022 DOJ/Department of Education attestation process is specific to federal loans handled by the government's own attorneys. If your loans are private, you still may be able to pursue an undue-hardship discharge, but the settlement process and who you're up against will look different - talk to an attorney about your specific loans.
Is there a deadline for asking to discharge student loans in bankruptcy, like there is for reaffirming a car loan?
There's no fixed calendar deadline tied to loan age. But you generally need to raise this within your bankruptcy case (through the adversary proceeding) before that case closes, and some courts have local rules about timing. If your case has already closed, ask a bankruptcy attorney whether reopening it is an option - waiting or missing case-specific windows can complicate things.
This article is general legal information, not legal advice, and may not reflect the most current law or the law in your jurisdiction. Laws vary by state and change over time. For advice about your specific situation, consult a licensed attorney.
Knowing your rights is the first step
Join thousands committing to calmly and consistently exercise their constitutional rights.