What Is an IMD Facility and Why Does It Matter?

An IMD, or Institution for Mental Diseases, is a federal classification for any hospital, nursing facility, or residential treatment center with more than 16 beds that primarily treats people with mental illness or substance use disorders. The designation matters because it triggers a decades-old Medicaid rule that blocks federal funding for care provided to adults ages 21 through 64 in these facilities. If you’ve encountered this term, it’s likely because it affects how psychiatric or addiction treatment gets paid for.

How a Facility Gets Classified as an IMD

The federal definition, found in Medicaid regulations, is intentionally broad. An IMD is any institution of more than 16 beds that is “primarily engaged in providing diagnosis, treatment, or care of persons with mental diseases, including medical attention, nursing care, and related services.” The classification isn’t based on what a facility calls itself or how it’s licensed by the state. It’s based on the facility’s overall character: if the place exists mainly to treat mental health or substance use conditions, it can be labeled an IMD.

A key threshold involves patient mix. Having more than 16 beds and more than 50% of residents with a mental health diagnosis can be enough to trigger the classification. This means facilities that don’t think of themselves as psychiatric institutions, like certain nursing homes or residential programs, can still fall under the IMD umbrella if most of their patients carry mental health diagnoses.

The types of facilities most commonly classified as IMDs include freestanding psychiatric hospitals, residential treatment centers for adults, and standalone addiction treatment facilities. Psychiatric units within general hospitals typically avoid the classification because the hospital as a whole isn’t primarily focused on mental health care. Small facilities with 16 or fewer beds also fall outside the definition, regardless of what they treat.

The IMD Exclusion and Why It Matters

The real significance of the IMD label is financial. Since Medicaid was created in 1965, federal law has prohibited federal Medicaid dollars from covering services provided to adults ages 21 to 64 who are patients in IMDs. This is known as the IMD exclusion, and it’s written into the Social Security Act. Children under 21 and adults 65 and older are exempt from this restriction.

The original rationale was to prevent the federal government from taking over funding for state-run psychiatric institutions, which were considered a state responsibility. At the time, large state mental hospitals housed hundreds of thousands of patients. Congress didn’t want Medicaid to become a backdoor way for states to shift those costs to the federal government. But the policy has had lasting consequences that reach well beyond its original intent.

For the roughly 90 million Americans on Medicaid, the exclusion creates a coverage gap during what are often the most acute episodes of mental illness or addiction. A Medicaid enrollee in crisis who needs inpatient psychiatric care at a freestanding psychiatric hospital may find that the facility can’t be reimbursed for their stay. This doesn’t mean Medicaid covers nothing for mental health, but it severely limits which facilities can provide that care and get paid.

Impact on Psychiatric Bed Shortages

The IMD exclusion is widely cited as a contributor to the national shortage of psychiatric inpatient beds. Because larger freestanding psychiatric facilities can’t reliably collect Medicaid reimbursement for working-age adults, there’s less financial incentive to build or maintain those beds. Many experts consider the current supply of psychiatric beds in the United States to be significantly below what’s needed.

One visible consequence shows up in emergency departments. Patients who need psychiatric inpatient care are frequently “boarded” in ERs, sometimes for three to five days or longer, while waiting for an available bed. This happens partly because of raw capacity shortages, but also because of the complications around payer acceptance. A psychiatric facility may have open beds but be unwilling or unable to admit a Medicaid patient because of reimbursement barriers tied to the IMD exclusion.

Research suggests that eliminating the exclusion could open up reimbursement pathways for inpatient psychiatric services to a large, underserved population, potentially spurring expansion in bed capacity. The restriction effectively discourages investment in the exact type of facility that many patients in crisis need most.

Exceptions and Workarounds

Over the years, federal policy has created several pathways around the IMD exclusion, though none fully eliminate it.

Section 1115 Waivers

States can apply to the Centers for Medicare and Medicaid Services (CMS) for demonstration waivers that allow federal Medicaid funds to cover short-term stays in IMDs. These waivers exist for both serious mental illness and substance use disorders. To get approved, states must show they’re also improving access to community-based mental health services and ensuring quality of care inside IMD facilities. The intent is to allow acute inpatient treatment while building up outpatient alternatives so patients aren’t stuck in institutional settings long-term. Many states have pursued these waivers, particularly for substance use treatment.

Managed Care Flexibility

States that run their Medicaid programs through managed care organizations have another option. Federal rules allow managed care plans to cover short-term IMD stays as an “in lieu of” service, meaning the plan pays for the IMD stay as a substitute for a covered service like a general hospital admission. This provision has given managed care states more flexibility to get Medicaid enrollees into psychiatric facilities when needed, though it comes with its own set of rules and limitations.

The 16-Bed Threshold

Some providers have structured their facilities to stay at or below 16 beds specifically to avoid IMD classification. A small residential treatment program with 16 beds can accept Medicaid patients without triggering the exclusion. This has shaped the landscape of behavioral health facilities in ways that don’t always align with what communities need. A region might benefit from a 50-bed psychiatric hospital, but the financial math under current rules pushes providers toward smaller, fragmented programs instead.

Legislative Efforts to Change the Rule

There is active interest in Congress to modify or repeal the IMD exclusion. A bill introduced in December 2025, the Repealing the IMD Exclusion Act, would remove the age limitation entirely and allow any institution to qualify as an IMD regardless of bed count, as long as it primarily treats mental illness and meets nationally recognized standards approved by CMS. If passed, this would represent the most significant change to IMD policy since Medicaid’s creation.

The debate over the exclusion reflects a broader tension in mental health policy. Supporters of repeal argue that the rule is an outdated barrier that worsens psychiatric bed shortages and leaves some of the most vulnerable patients without care. Those who urge caution worry that removing the exclusion without investing in community-based services could lead to a return to over-reliance on institutional settings. Both sides generally agree that the current system leaves significant gaps in care for people with serious mental illness and addiction.