The Texas Mental Health Code, found in Subtitle C of the Health and Safety Code, governs how a person can be admitted to mental health treatment in Texas, how they can be held against their will, and what rights they keep while in care. It sets a graduated path: voluntary admission at one end, emergency detention and protective custody in the middle, and court-ordered inpatient or outpatient commitment at the far end. Each step raises the evidence required and shortens the leash on the facility holding the person.
Who the Code Applies To
Everything in the subtitle turns on a single definition in Chapter 571. A “person with mental illness” is someone whose mental health is substantially impaired, a definition broad enough to cover schizophrenia, bipolar disorder, and severe depression when they affect how a person thinks, feels, or functions.1State of Texas. Texas Health and Safety Code Chapter 571 – General Provisions Intellectual disability, standing alone, is not included.
For any involuntary step, the diagnosis by itself is never enough. A court must also find that the illness creates a risk of serious harm to the person or others, or that the person is deteriorating to the point of being unable to meet basic needs like food, shelter, or safety. Temporary emotional distress, or a substance use disorder without a co-occurring mental illness, will not meet the threshold.
Voluntary Admission
Anyone 16 or older can request admission to an inpatient mental health facility or outpatient services by filing a request with the facility administrator.2State of Texas. Texas Health and Safety Code Chapter 572 – Voluntary Mental Health Services A child under 16 needs a parent or guardian to apply. Voluntary admission requires informed consent: the person has to understand what treatment involves and agree to it.
Leaving is supposed to be straightforward. A voluntarily admitted patient can file a written request for discharge at any time. The facility then has four hours to notify the treating physician, who either signs off on the release or flags concerns.3State of Texas. Texas Health and Safety Code Section 572.004 – Discharge If the physician believes the patient poses a danger, the facility can start involuntary commitment proceedings instead of releasing them. That is how voluntary admissions turn involuntary, and it catches many patients and families off guard.
Emergency Detention
Emergency detention is the quickest path to involuntary hospitalization, and it works two ways depending on who starts the process.
Peace Officer Apprehension Without a Warrant
A peace officer can take someone into custody without paperwork if the officer has reason to believe the person has a mental illness and poses a substantial risk of serious harm unless immediately restrained, and there isn’t enough time to get a warrant.4State of Texas. Texas Health and Safety Code Section 573.001 – Apprehension by Peace Officer Without Warrant The officer can form that belief from personal observation or from information given by a credible person.
Written Application for Emergency Detention
When a peace officer isn’t already involved, any adult can file a sworn written application with a judge or magistrate asking for emergency detention of another person. The application has to describe specific recent behavior showing that the person has a mental illness, faces a substantial risk of serious harm, and that the risk is imminent without immediate restraint.5State of Texas. Texas Health and Safety Code Chapter 573 – Emergency Detention If the magistrate is satisfied, a warrant issues directing a peace officer to apprehend the person and transport them to a facility.
However the detention starts, the clock begins when the person arrives at the facility. They cannot be held for more than 48 hours unless a judge signs a protective custody order. If that 48-hour window ends on a weekend or legal holiday, the facility may hold the person until 4 p.m. on the next business day.
Protective Custody
Protective custody bridges emergency detention and a full commitment hearing. If a physician at the facility believes the person still meets the criteria for detention, the facility files for a protective custody order. A judge issues it only if credible evidence shows the person presents a substantial risk of serious harm and cannot be safely released.
A person taken into protective custody has to be transported to a designated facility in a way that minimizes distress. They must be told why they are being detained and informed of their rights, including the right to an attorney and the right to contact a family member. Protective custody is not a criminal matter, and no one is charged with a crime simply for being in a mental health crisis.
A probable cause hearing must be held within 72 hours of the start of the protective custody order, pushed to the next business day if that deadline falls on a weekend or legal holiday.6State of Texas. Texas Health and Safety Code Section 574.025 – Probable Cause Hearing At the hearing, the person and their attorney can present evidence challenging the detention, and the state can rely on the physician’s certificate of medical examination. If the magistrate finds probable cause, the person stays in custody pending a full commitment hearing.
Court-Ordered Commitment
Court-ordered inpatient commitment is the most serious step in the process, and the code splits it into two levels.
Temporary Inpatient Commitment
A county attorney, district attorney, or any other adult can file a sworn application for temporary court-ordered inpatient services. The judge or jury has to find, by clear and convincing evidence, that the person has a mental illness and is likely to cause serious harm to themselves or others, or is suffering severe mental and physical deterioration and cannot make a rational decision about treatment.7State of Texas. Texas Health and Safety Code Section 574.034 – Order for Temporary Inpatient Mental Health Services
The evidence must include expert testimony and, unless waived, evidence of a recent overt act or a continuing pattern of behavior. A temporary order lasts up to 45 days, or up to 90 days if the judge finds a longer period necessary. A judge cannot issue a temporary inpatient order for someone charged with a criminal offense that involves an act, attempt, or threat of serious bodily injury to another person.
Extended Inpatient Commitment
Extended commitment allows treatment for up to 12 months but demands a higher showing. The court must find, by clear and convincing evidence, all of the temporary-commitment criteria plus that the person’s condition is expected to continue for more than 90 days.8State of Texas. Texas Health and Safety Code Section 574.035 – Order for Extended Inpatient Mental Health Services The person has a right to a jury trial. If that right is waived, the judge decides alone.
Assisted Outpatient Treatment as an Alternative
Judges are required to consider less restrictive options before ordering inpatient commitment, and Texas has three paths to court-ordered outpatient treatment.
A temporary assisted outpatient treatment (AOT) order under Section 574.0345 can last up to 45 days, or up to 90 days if the judge finds a longer period necessary. The court must find, by clear and convincing evidence, that the person has a severe and persistent mental illness, that without treatment they will deteriorate to the point of being unable to live safely in the community, and that they are unable to participate voluntarily in outpatient treatment.9Texas Judicial Commission on Mental Health. Texas AOT Practitioners Guide
Extended AOT orders under Section 574.0355 can run up to one year, but require additional proof that the person’s condition is expected to continue beyond 90 days and that they have a recent history of court-ordered services or involuntary hospitalization. A third route lets a judge convert an existing inpatient order to outpatient treatment under Section 574.061, with the new outpatient order lasting for the remainder of the inpatient order plus up to 60 additional days.
Patient Rights During Treatment
Whether admitted voluntarily or by court order, patients keep a core set of rights under Chapter 576. Facilities have to give written notice of these rights at admission.
- Care in a safe environment, free from abuse, neglect, and exploitation, provided in the least restrictive setting appropriate to the patient’s condition.
- Physical restraint and seclusion only when a patient poses an immediate risk of harm, with every use documented and reviewed.
- The right to refuse psychoactive medication, with the refusal documented in the medical record. If the patient is under a court order and refuses, the facility can seek a separate court order authorizing forced medication under Section 574.106.10State of Texas. Texas Health and Safety Code Section 576.025 – Administration of Psychoactive Medication11State of Texas. Texas Health and Safety Code Section 574.106 – Administration of Medication to Patient Under Court-Ordered Mental Health Services
- The right to participate in developing and reviewing the treatment plan.
A patient who believes they are being unlawfully detained can file a writ of habeas corpus to challenge the confinement before a judge.12State of Texas. Texas Health and Safety Code Section 571.023 – Habeas Corpus That is a separate proceeding from the commitment case and gives an independent check on the facility’s authority to hold someone.
Right to an Attorney
Anyone facing involuntary commitment, protective custody, or a forced medication order has a right to counsel. If the person cannot afford an attorney, the court must appoint one. The role is not ceremonial: the attorney cross-examines the physician who filed the certificate, tests the sufficiency of the state’s evidence, and argues for less restrictive alternatives like outpatient treatment.
Representation matters most at the probable cause hearing and the full commitment hearing. If the state cannot meet the clear-and-convincing-evidence standard, the attorney can move to dismiss the petition. A patient who believes the commitment was unjustified can also appeal, adding another layer of judicial review.
Confidentiality of Mental Health Records
Communications with a mental health professional, and records of diagnosis, evaluation, and treatment, are confidential under Chapter 611. They cannot be disclosed without the patient’s written consent except in specific circumstances listed in the statute.13State of Texas. Texas Health and Safety Code Section 611.002 – Confidentiality of Information and Prohibition Against Disclosure
A professional may disclose records without consent when there is a probability of immediate physical injury to the patient or others or immediate mental or emotional injury to the patient; when a government agency requests information under a law that authorizes or requires disclosure; when other professionals involved in the patient’s care need the information for treatment; when an entity paying for or collecting payment for services needs the records; when Texas Family Code Section 261.101 requires reporting suspected child abuse or neglect; or when a judge orders disclosure in a legal proceeding. Unauthorized disclosure can lead to civil penalties and professional discipline against the provider.14State of Texas. Texas Health and Safety Code Chapter 611 – Mental Health Records
The Firearm Consequence of Involuntary Commitment
This is the piece of the code’s fallout that catches the most people by surprise. Under federal law, anyone who has been “committed to a mental institution” is permanently prohibited from possessing firearms or ammunition. The ban covers purchasing, receiving, transporting, and possessing any firearm, and it also makes it illegal for anyone to knowingly sell or give a firearm to a person who has been committed.15Office of the Law Revision Counsel. 18 U.S. Code 922 – Unlawful Acts
The federal prohibition attaches to involuntary commitment, not voluntary admission. The line can blur in practice. If someone enters a facility voluntarily and is then converted to involuntary status because the physician flagged them as a danger during the four-hour discharge assessment, that involuntary order counts. Anyone weighing a voluntary admission, or anyone whose family member is facing commitment proceedings, should understand this consequence before the case moves forward.