No school official can physically force your fingers onto a screen or your face into a camera to unlock your phone. But that doesn't mean you're free to refuse without consequences: most public schools can discipline a student for refusing to comply with a reasonable request to unlock a device, the same way they could discipline a student for refusing to open a locker or backpack. The real question is never "can they make me," it's "what happens if I say no" and "was the search itself legal in the first place."
The baseline rule: T.L.O. and "reasonable suspicion," not a warrant
Students in public schools do not give up their constitutional rights at the schoolhouse gate — that principle comes from Tinker v. Des Moines (1969), the landmark case about student speech. But schools also aren't held to the same standard as police. The controlling case for school searches is New Jersey v. T.L.O. (1985), in which the Supreme Court ruled that public school officials don't need a warrant or even "probable cause" to search a student. Instead, a search is lawful if it is reasonable at its inception (there's a reasonable, articulable suspicion the student violated a law or school rule) and reasonable in scope (the search isn't excessively intrusive given the student's age, sex, and the nature of the suspected violation).
That two-part test — reasonable suspicion, reasonable scope — is the framework courts use when a school demands access to a phone. A vague hunch ("phones are probably being used to cheat") is weaker justification than a specific report ("a teacher saw this student texting answers during the exam" or "another student said this phone has a video of the fight"). The broader and more personal the search, the more suspicion it needs to be considered reasonable.
Why phones are different: Riley v. California
T.L.O. was decided in 1985, long before smartphones existed, and courts have had to figure out how it applies to a device that can hold years of photos, messages, location history, medical and financial information, and more. The most important guidance comes from a case about police, not schools: Riley v. California (2014), in which the Supreme Court unanimously held that police generally need a warrant to search the digital contents of a cell phone, even after a lawful arrest, because phones are categorically different from a wallet or a bag. The Court described modern phones as holding "the privacies of life" — a phrase that shows up constantly in later school-search cases and legal commentary.
Riley was a Fourth Amendment case against police, and T.L.O. explicitly gives schools more leeway than police get. So Riley doesn't directly control what a school can do. But many lower courts and legal scholars treat Riley as a signal that the sheer volume and sensitivity of data on a phone should push school officials toward narrower, more targeted searches — for example, looking only for the specific text thread or photo they have reason to suspect exists, rather than scrolling through someone's entire camera roll, DMs, and search history. This area of the law is genuinely unsettled: there is no single Supreme Court case squarely deciding how far a public school can go once it has a phone in hand, and outcomes vary significantly by state, by federal circuit, and by the specific facts of the case.
Can they force you to enter your passcode? The Fifth Amendment angle
The Fifth Amendment protects people from being compelled to give "testimony" against themselves. Courts across the country are split on whether being forced to type or state a memorized passcode counts as "testimony" (because it comes from your mind) versus something more like handing over a physical key (which isn't protected). This split exists in criminal cases involving police and prosecutors — it is even less settled when the party asking isn't the government's law enforcement arm but a school administrator enforcing a code of conduct.
Here is the distinction that actually matters day-to-day, though: a school is not the police. A teacher or principal cannot arrest you, cannot charge you with a crime, and generally cannot compel testimony in the way a court can. What a school can do is treat your refusal to unlock a phone as a violation of the student code of conduct — the same way refusing to hand over a phone at all, or refusing to go to the office, might be treated as insubordination or defiance under school policy. So the practical protection isn't really "the Fifth Amendment stops the school" — it's "the school can't force your compliance, but it can hand out a consequence for non-compliance, and those are two very different things." If actual police get involved (for example, if a resource officer wants to search the phone for evidence of a crime), the analysis shifts and full Fourth and Fifth Amendment protections against law enforcement should apply — that's a moment to say clearly, "I don't consent to a search," and ask for a parent and a lawyer.
Passcodes vs. face or fingerprint unlock
There's a meaningful legal distinction, at least in the criminal-court context, between typing a memorized passcode (arguably "testimonial," and therefore closer to Fifth Amendment protection) and providing a fingerprint or face scan (which several courts have treated more like a physical characteristic, similar to giving a fingerprint for booking, and therefore not "testimonial"). If this distinction is being litigated by police and prosecutors, it should not be assumed that a school has the power to compel either one — but if you're weighing what to do in the moment, understand that biometric unlock methods have generally received less legal protection in court than a typed passcode. That's a reason many privacy advocates recommend disabling face/fingerprint unlock and using a passcode instead, precisely so that no one — school official, police officer, or anyone else — can use your face or thumb against your will while the phone is in their possession.
Public schools vs. private schools
Everything above applies to public schools, because they are government actors bound by the Constitution. If you attend a private school, the Fourth Amendment generally does not apply at all, because the Constitution restrains government action, not private institutions. A private school's authority to search your phone (and to discipline you for refusing) is instead governed by whatever contract, enrollment agreement, or handbook you and your parents signed when you enrolled — and those documents can give the school far broader search authority than T.L.O. would allow a public school. Always check your school's specific enrollment contract and handbook language if you're at a private, parochial, or charter school (charter schools are public schools and are bound by the Constitution, even though they're often privately operated).
What discipline can actually look like
Because a school can't physically compel your compliance, the leverage schools use is discipline under their code of conduct. Depending on your district's policies, refusing a reasonable request to unlock a device might lead to:
Confiscation of the phone until a parent picks it up
Detention, in-school suspension, or (in more serious or repeated cases) out-of-school suspension for insubordination
A referral to a dean or vice principal, or a disciplinary hearing depending on district procedure
In rare cases involving suspected criminal conduct (like threats, weapons, or exchanging explicit images of minors), a report to school police or local law enforcement — at which point your Fourth and Fifth Amendment rights against actual law enforcement come into full force, and you should ask for a parent and legal counsel before saying anything further
None of this means the underlying search request was automatically lawful just because the school has disciplinary power. If the initial suspicion was flimsy, or the school wants to search far beyond what the suspected violation would justify (for example, demanding to scroll through your entire photo library because of an unrelated dress-code issue), that's a legitimate ground to push back and, if necessary, appeal.
What to actually do in the moment
Ask why. You're allowed to calmly ask what specific rule you're suspected of violating and what the school is looking for. This isn't defiance — it's the exact question T.L.O. requires the school to be able to answer.
You can state that you don't consent, while still complying if ordered, to preserve your rights without escalating. Saying "I don't consent to this search, but I understand you're directing me to hand over my phone" preserves your legal position without turning a school disciplinary matter into a bigger confrontation.
Ask for a parent or guardian to be called before handing over a passcode, especially if the request feels broad, unrelated to a specific incident, or if actual police are involved.
Document everything afterward. Write down (or have your parent write down) the date, time, who was present, what you were told the suspicion was, exactly what was searched, and what was found or not found. Ask for a copy of any written disciplinary referral or incident report.
Use the school's appeal process. Every public school district has a student handbook with a discipline appeal procedure — request it in writing and follow the deadlines exactly.
Escalate if the search or the discipline seems disproportionate or discriminatory. Contact your local ACLU affiliate, a student/education rights legal aid organization, or a civil-rights attorney if a school searched far beyond the scope of the suspected violation, singled out a student based on race, disability, religion, or other protected status, or the discipline seems retaliatory rather than related to an actual rule violation.
Know your parallel protections. If the phone search touches on special education records or accommodations, IDEA and Section 504 protections still apply regardless of the phone issue. If school staff share information from the phone search in a student's education record, FERPA governs who that information can be shared with.
The bottom line
A public school generally cannot physically force you to unlock your phone, and the reasonableness of any search request is governed by New Jersey v. T.L.O., not a lower "anything goes" standard. But refusing can still lead to real discipline under the school's code of conduct, because the school's power to punish for insubordination is separate from its power to compel a search. Riley v. California underscores that phones deserve special privacy treatment because of how much personal information they hold, and the Fifth Amendment issue around compelled passcodes remains genuinely unsettled and varies by court. When in doubt: ask why, state that you don't consent while avoiding a bigger confrontation, get a parent involved, write down everything, and use the school's formal appeal process — reaching out to the ACLU or an education-rights attorney if a search or punishment seems excessive.
Free tools for parents
Self-help tools to act on the steps above — private, and nothing you enter leaves your browser:
Special-education letter generator — request an evaluation, an IEP meeting, an IEE, or records, or give 10-day private-placement notice.
Can a teacher force a student to unlock their phone?
No teacher or administrator can physically compel you to type a passcode or place your finger or face on a scanner. What they can do is order you to comply as part of a reasonable, T.L.O.-justified search, and discipline you under the school's code of conduct if you refuse. The lack of physical force doesn't mean there's no consequence for saying no.
Can a school punish a student for refusing to unlock a phone?
Generally yes, in a public school, if the underlying request was reasonable under the New Jersey v. T.L.O. standard (reasonable suspicion, reasonable scope). Refusal is commonly treated like refusing any other reasonable disciplinary directive and can lead to confiscation, detention, or suspension depending on the district's policy. If the search itself was unjustified or overly broad, that's grounds to appeal the discipline, not just refuse it.
Do students have to give the school their passcode?
There's no single national answer. Schools can request it as part of a lawful search and can discipline refusal, but whether they can legally compel a passcode the way police sometimes try to is a live, unsettled legal question tied to the Fifth Amendment's protection against compelled testimony. Courts are split even in criminal cases involving police, so treat this as genuinely unresolved territory that a civil-rights or education attorney can advise on for your specific state.
Is there a difference between a passcode and using my fingerprint or face to unlock the phone?
Yes, potentially. Courts have more often treated a memorized passcode as "testimonial" (something from your mind, closer to Fifth Amendment protection) while treating fingerprints and face scans more like physical characteristics with less protection. That's part of why privacy advocates suggest using a passcode rather than biometric unlock as your primary method, since it's harder for anyone to use your face or thumb against your will.
Does any of this apply at a private school?
Not in the same way. The Constitution restrains government action, so Fourth Amendment protections and the T.L.O. standard generally don't apply at private schools. Your rights there depend on the enrollment contract and student handbook you or your parents signed, which can give the school much broader authority to search devices and discipline refusal.
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.