No universal federal law explicitly says: "Every student may use the bathroom at any second." Instead, authority rests on state education code provisions governing school safety, educator conduct, and administrative discretion.
Teachers operate under the legal doctrine of in loco parentis (in place of a parent). This granting of authority gives educators wide latitude to maintain an orderly environment, including staggering hall traffic or asking a student to wait two minutes while instructions finish.
Trouble begins when delay becomes an outright ban. In late 2024, the Houston Chronicle scrutinized whether Texas educators can lawfully restrict restroom use as a disciplinary tool. The finding was clear: while Texas law gives teachers broad discipline powers, district guidelines overwhelmingly prohibit using bathroom denial as punishment. Depriving a child of toilet facilities to penalize tardiness, missed homework, or talking out of turn directly contradicts basic classroom discipline limits set by major school boards.