Whether you can leave rehab whenever you want depends almost entirely on how you got there. If you checked yourself in voluntarily, you keep the legal right to leave, though the facility can hold you briefly to make sure it’s safe to release you. If a court committed you involuntarily or ordered treatment as part of a criminal case, walking out isn’t a personal decision anymore. It’s a legal violation that can send you back before a judge or into jail.
Leaving a Voluntary Admission
Voluntary admission means you chose to be there, and you keep the right to un-choose. Federal law recognizes that a person admitted to a mental health program should receive treatment “in a setting and under conditions that are the most supportive of such person’s personal liberty” and that restrict that liberty “only to the extent necessary.”1Office of the Law Revision Counsel. 42 U.S. Code 9501 – Bill of Rights To start the discharge process, tell staff you want to leave and submit a written request.
The door won’t open the moment you ask. Most facilities hold you for an evaluation period, commonly 72 hours, though the exact timeframe depends on state law. During that window, the clinical team assesses whether you can leave safely or whether your condition has worsened enough to justify involuntary proceedings. Staff will almost certainly try to talk you into staying. They’ll walk you through where you are in your treatment plan, what you stand to lose by leaving early, and what risks lie ahead. But at the end of the evaluation period, if the facility can’t show grounds to commit you, you walk out.
When a Voluntary Stay Can Turn Involuntary
Checking in voluntarily doesn’t guarantee you stay voluntary. If the treatment team evaluates you during that notice period and decides you meet the criteria for involuntary commitment — a danger to yourself or others, or unable to meet your own basic needs — the facility can petition a court to change your status. Once that happens, you’re no longer a voluntary patient.
Separately, if a crisis develops during your stay, such as a psychotic episode, a suicide attempt, or a medical emergency, the facility can place you on a short-term emergency hold without a court order. Maximum durations vary widely by state, ranging from 23 hours in one state to 10 days in two others, with 22 states setting the limit at 72 hours.2Psychiatric Services. State Laws on Emergency Holds for Mental Health Stabilization During the hold, you’ll be evaluated, and if the facility wants to keep you beyond the emergency period, it must go to court.
What Involuntary Commitment Means for Your Ability to Leave
Involuntary commitment removes your ability to leave. It’s a legal process, not a medical one, that requires a court to authorize your continued treatment against your wishes. The U.S. Supreme Court has set two guardrails on that power. In O’Connor v. Donaldson, the Court ruled that a state cannot confine a nondangerous person who can survive safely on their own or with the help of family and friends.3Justia US Supreme Court. O’Connor v. Donaldson, 422 U.S. 563 (1975) Having a mental illness or a substance use disorder, by itself, is not enough. In Addington v. Texas, the Court held that the government must prove the case for commitment by “clear and convincing evidence.”4Justia US Supreme Court. Addington v. Texas, 441 U.S. 418 (1979)
Within those constitutional boundaries, each state sets its own commitment criteria. The general categories include:
- Danger to self or others, such as suicidal or violent behavior linked to a mental health condition.
- Grave disability, meaning the person cannot meet basic survival needs like eating, finding shelter, or maintaining personal safety.
- Likelihood that treatment in a facility would actually help the person’s condition.
Many states also allow involuntary commitment specifically for severe substance use disorders, not just mental illness. The process usually begins when a family member, healthcare provider, or law enforcement officer files a petition. A judge reviews medical evaluations, holds a hearing, and decides whether commitment is warranted. If the judge orders it, you stay until the court says otherwise. Leaving without authorization means violating a court order.
If a Court Ordered You Into Treatment
A separate path into mandatory rehab runs through the criminal justice system. Courts often order substance abuse treatment as a condition of probation, parole, or a diversion program. Drug courts are the most structured version, recognizing “the need for treatment instead of incarceration for individuals with SUDs.”5SAMHSA. Grants to Expand Substance Use Disorder Treatment Capacity in Drug Courts
The incentives are built to keep you there. In the Drug Treatment Alternative to Prison program, defendants plead guilty to a felony but have their prison sentence deferred while they complete residential treatment. Finish, and the guilty plea can be withdrawn and the case dismissed. Drop out or fail, and you’re brought back to court and sentenced on the original plea. Treatment providers submit monthly progress reports, and participants who receive poor marks face a court appearance and a formal warning about noncompliance.6CrimeSolutions, National Institute of Justice. Program Profile: Drug Treatment Alternative to Prison (DTAP)
Outside formal drug court programs, leaving court-ordered treatment still carries real consequences. Depending on the terms of your sentence, a judge may impose the original jail or prison term, revoke probation or parole, extend your treatment requirements, add community service, or issue fines. The court has broad discretion, and your criminal history and the nature of the violation both factor into the outcome.
Leaving Against Medical Advice
If you’re a voluntary patient and you insist on leaving before the treatment team thinks you’re ready, the facility will categorize your departure as leaving against medical advice, or AMA. You’ll be asked to sign a form confirming that you understand the risks and that the staff recommended you stay. The form exists mainly to protect the facility from liability, but it also creates a record that the decision was yours.
A common belief is that leaving AMA means your insurance won’t pay for the treatment you already received. Research doesn’t back that up. A study of 453 insured patients who left AMA found that initial payment was refused in only about 4% of cases, and every one of those refusals traced to an administrative billing error, not the patient’s decision to leave.7PubMed. Financial Responsibility of Hospitalized Patients Who Left Against Medical Advice No patients were denied coverage specifically because they left against doctors’ orders. Insurance contracts do vary, so check your specific plan.
The real costs of leaving AMA tend to be medical and practical. Patients who leave treatment early face a higher risk of relapse and readmission. If your rehab stay was a condition of keeping your job, some professions in healthcare and transportation require completion to maintain licensure, and leaving early could cost you your career. And if a court or probation officer mandated your treatment, AMA isn’t really an option at all. It’s a violation that sends you back before a judge.
When an AMA departure is going to happen anyway, the facility still has an obligation to make it as safe as possible. That includes arranging follow-up care, providing outpatient referrals, and sometimes helping arrange transportation.
Rights That Stay With You While You’re There
Being in rehab, whether by choice or by court order, doesn’t strip you of control over what happens to you. Federal law lays out a set of rights for people receiving mental health services that apply regardless of admission status.
You have the right to an individualized, written treatment plan developed shortly after admission, along with periodic reviews and revisions. You have the right to participate in planning your own treatment, including clear explanations of your condition, the recommended treatments, possible side effects, and available alternatives.1Office of the Law Revision Counsel. 42 U.S. Code 9501 – Bill of Rights
One right that surprises patients: you can refuse specific treatments. Federal law protects your right not to receive any treatment without your informed, voluntary, written consent.1Office of the Law Revision Counsel. 42 U.S. Code 9501 – Bill of Rights There are two exceptions. A doctor can override your refusal during a genuine emergency, and a court-committed patient can be treated as permitted by applicable law, meaning if a judge ordered your treatment, the facility has more latitude. Outside those situations, you can say no to a specific medication or therapy even if the staff disagrees.
If the facility moves to convert your status to involuntary or you’re facing a commitment hearing, you have the right to a lawyer. Procedures vary by state, but the principle is consistent: because involuntary commitment restricts your liberty, you’re entitled to counsel at any court hearing, and if you can’t afford one, the court will appoint one. Some states also provide a patient rights advocate during the evaluation process, separate from legal counsel.
Your treatment records carry extra privacy protections beyond standard medical privacy rules. Under federal law, records identifying you as a patient in a substance use disorder program, including your diagnosis, treatment, and prognosis, are confidential and can only be disclosed under limited circumstances.8Office of the Law Revision Counsel. 42 USC 290dd-2 – Confidentiality of Records The facility generally needs your written consent before sharing anything, with exceptions for medical emergencies, court orders backed by a showing of good cause, and certain research or audit purposes where your identity is protected.9eCFR. 42 CFR Part 2 – Confidentiality of Substance Use Disorder Patient Records Your employer, your family, and anyone else generally cannot find out you’re in rehab unless you authorize it.
A Note on Minors
The rules above apply to adults. For minors, parents, guardians, and the state hold competing authority over treatment decisions, and the outcome depends on whether the minor consented to treatment independently or was admitted by a parent. A national review of state laws found that most states don’t set a specific minimum age for a minor to consent to substance abuse treatment. Among those that do, the most common threshold is 12. For mental health treatment, thresholds tend to sit higher, around 14 for outpatient and 15 for inpatient care. In states where a minor legally consented to enter treatment, that minor also has the right to refuse treatment and discharge themselves.10PMC. What Can Parents Do? A Review of State Laws Regarding Decision Making for Adolescent Drug Abuse and Mental Health Treatment When a parent admitted a younger child who didn’t independently consent, the child generally cannot demand discharge alone. Some states require an independent review before allowing a parent to override the child’s objection to staying. If you’re a minor or the parent of one navigating a discharge dispute, get legal advice specific to your state.