What Happens If You Fail a Drug Test at Court?

If you fail a court-ordered drug test, what happens depends on why the court ordered it: a positive result can tighten your bail conditions or send you back to jail before trial, trigger a probation or supervised-release violation, cost you custody time with your children, get you removed from a drug court program, or, under federal law, force a judge to send you to prison outright. Across every one of those settings, the court treats a positive result as a broken promise, and the response scales with how many promises you’ve already broken.

If You’re Out on Pretrial Release

When a judge lets you out before trial, avoiding controlled substances and submitting to drug testing are conditions the court is authorized to impose.1Office of the Law Revision Counsel. 18 USC 3142 – Release or Detention of a Defendant Pending Trial A failed test breaks that condition, and the government can move to revoke your release.

At the revocation hearing, a federal judge can order you detained if there is clear and convincing evidence that you violated a condition and no new set of conditions would reasonably assure community safety or your appearance at trial.2Office of the Law Revision Counsel. 18 US Code 3148 – Sanctions for Violation of a Release Condition In practical terms: a positive test can put you back in jail to wait for your trial date. You can also face a separate contempt prosecution for defying the release order.

Short of revocation, expect the conditions to get tighter. More frequent testing. Curfews. Required treatment. Electronic monitoring. The court can amend your release conditions at any time.1Office of the Law Revision Counsel. 18 USC 3142 – Release or Detention of a Defendant Pending Trial And because a failed test lives in the record, prosecutors tend to bring it up during plea talks and at sentencing to argue you’re still a risk.

If You’re on Probation

Drug testing is a standard condition of federal probation. The statute requires at least one test within 15 days of being placed on probation and at least two more periodic tests after that, unless the judge waives the requirement based on a low-risk presentence report.3Office of the Law Revision Counsel. 18 US Code 3563 – Conditions of Probation Reporting to your probation officer and maintaining employment are typical companion conditions.4United States Probation Office. Conditions of Supervision

For a single positive test, the court has options. It can add or modify conditions, extend your probation term, or revoke probation and resentence you. Your probation officer usually has some room to decide whether a first violation gets a warning or a formal hearing.

That discretion runs out at a hard line written into the statute. If you test positive for illegal controlled substances more than three times in one year, the court is required to revoke probation and resentence you to a term that includes prison.5Office of the Law Revision Counsel. 18 USC 3565 – Revocation of Probation The statute uses “shall,” which means the judge has no room to decide otherwise. A fourth positive test inside 12 months equals incarceration.

Revocation is also mandatory if you possess a controlled substance or refuse to submit to drug testing at all.5Office of the Law Revision Counsel. 18 USC 3565 – Revocation of Probation

If You’re on Supervised Release

Supervised release is what follows federal prison time, and the drug-testing rules mirror probation with steeper penalties for violation. The same three-strikes trigger applies: more than three positive tests in one year forces the court to revoke supervised release and return you to prison.6Office of the Law Revision Counsel. 18 USC 3583 – Inclusion of a Term of Supervised Release After Imprisonment Possession and refusal to test also require revocation.

How much prison time you can face on revocation depends on the class of your original offense: up to five years for a Class A felony, up to three years for a Class B, up to two years for a Class C or D, and up to one year for anything else.6Office of the Law Revision Counsel. 18 USC 3583 – Inclusion of a Term of Supervised Release After Imprisonment That time is on top of whatever you already served.

If You’re in a Drug Court Program

Drug courts are built around intensive supervision, treatment, and frequent testing — sometimes several times a week. Because the point of the program is recovery, a single positive test rarely means immediate expulsion. But it always brings a consequence.

Most drug courts use graduated sanctions. A first positive might mean a verbal warning from the judge in open court, more testing, or added counseling. Repeated positives escalate to community service, short “flash” jail stays of roughly three to five days, or a demotion to an earlier phase of the program. The brief jail stays are meant to be a sharp correction without wrecking your job or treatment progress.

The final sanction is termination. If the judge concludes you aren’t making a genuine effort, you can be removed from drug court and sent back to the regular criminal docket. From there you may be sentenced on the original charges, have probation revoked, or receive a jail or prison term. Whether you get credit for time already spent in the drug court program depends on the jurisdiction. The drug court was the alternative to prison, and losing it puts prison back on the table.

If You’re in a Custody or Family Law Case

A positive test in family court is measured against a different standard than in criminal court. The judge’s focus is what’s safest for the child, and a failed test forces the question of whether your home is stable enough for one.

The most common response is supervised visitation, meaning a third party has to be present whenever you see your children. If the drug use looks like a pattern rather than a one-time lapse, the court can cut back visitation hours, end overnight stays, or grant sole custody to the other parent. In severe cases, especially where the substances involved raise safety concerns, visitation can be suspended entirely until you show sustained sobriety.

The damage doesn’t stop at the visitation schedule. Judges weigh a parent’s overall judgment when deciding custody, and a positive test colors the court’s view of your reliability on every other issue in the case. A parent seen as having an unaddressed substance problem can lose input on major decisions about the child’s education, healthcare, and religious upbringing.

Expect the other side’s attorney to use the result aggressively, often combining it with missed visits, unstable housing, or erratic behavior to build a narrative that’s hard to overcome. The most effective response is an immediate, documented commitment to treatment rather than an attempt to explain the result away.

Refusing the Test

Refusing to give a sample is not a workaround. In most legal settings it’s treated as seriously as failing, and often more so.

On federal probation, refusal to comply with drug testing is grounds for mandatory revocation and a prison sentence.5Office of the Law Revision Counsel. 18 USC 3565 – Revocation of Probation The same mandatory revocation applies on supervised release.6Office of the Law Revision Counsel. 18 USC 3583 – Inclusion of a Term of Supervised Release After Imprisonment In a custody case, refusal lets the court draw a negative inference — essentially assuming you would have failed — which can cost you custody or contact with your children. For commercial drivers under federal rules, refusal is treated the same as a positive test and triggers immediate removal from driving duties.7Federal Motor Carrier Safety Administration. What if I Fail or Refuse a Test?

No one can physically force you to give a sample, so the right to refuse exists in a literal sense. But the court will treat that refusal as defiance of a judicial order. A failed test at least leaves room to argue false positives, prescription medications, or lab errors. A refusal leaves nothing to argue with.

What a Failed Test Can Cost You Beyond the Courtroom

Your Commercial Driver’s License

If you drive commercially, a positive test disqualifies you from operating commercial vehicles and pulls you off safety-sensitive duties until you finish the full return-to-duty process.7Federal Motor Carrier Safety Administration. What if I Fail or Refuse a Test? That process requires evaluation by a DOT-qualified Substance Abuse Professional, completion of whatever treatment or education the SAP prescribes, a re-evaluation, and a passing return-to-duty test before you can drive again, followed by a multi-year follow-up testing plan.8FMCSA Drug and Alcohol Clearinghouse. The Return-to-Duty Process and the Clearinghouse

The violation stays in the FMCSA Clearinghouse for five years from the date of the violation, or until you finish the follow-up testing plan, whichever is later.8FMCSA Drug and Alcohol Clearinghouse. The Return-to-Duty Process and the Clearinghouse Every prospective employer who queries the Clearinghouse will see it.

Your Professional License

Licensing boards for healthcare workers, attorneys, pilots, and other regulated professions typically require self-reporting of drug-related legal issues, and healthcare employers may have their own reporting duties. Boards usually open an investigation and can refer you to a monitoring program that runs for years and involves random testing, counseling, and regular check-ins. Your license may be restricted or suspended during that period. In the most serious cases the board can revoke it, and reinstatement generally requires documented sobriety over an extended period.

Federal Benefits and Housing

A failed test on its own doesn’t strip you of federal benefits, but if the positive result feeds into a felony drug conviction, federal law imposes a lifetime ban on SNAP and TANF for anyone convicted of a felony involving possession, use, or distribution of a controlled substance. The ban also cuts benefits for family members who did nothing wrong. States can opt out or shorten the ban, and most have to some degree, but where a state has not opted out the ban is permanent.9Office of the Law Revision Counsel. 21 USC 862a – Denial of Assistance and Benefits for Certain Drug-Related Convictions

Public housing is separately exposed. Federal law lets a housing authority terminate your lease for drug-related criminal activity by you, a household member, or a guest, whether it happened on or off the premises, and no conviction is required — the housing authority can act on its own determination that the activity occurred.10Office of the Law Revision Counsel. 42 USC 1437d – Contract Provisions and Requirements – Tenant Lease Provisions Violating probation or parole is separately listed as grounds for eviction.

Money Out of Your Own Pocket

Court-ordered testing is usually at your expense. A standard urine screen typically runs $20 to $105 per test, and a hair follicle test, which covers a longer window of use, generally costs $120 to $350. When a positive result triggers increased testing frequency, those costs compound fast.

Monitoring devices add more. Continuous alcohol monitoring ankle bracelets run roughly $300 to $360 a month plus installation and maintenance, and remote breathalyzer systems range from about $80 to $260 per month. Violations detected by these devices often carry extra fees of $100 or more per incident.

In family cases, supervised visitation ordered after a failed test typically means paying a private provider $24 to $175 per hour for every visit with your children. Stretched over months, the total often reaches into the thousands, before you add attorney fees, evaluation costs, and treatment program fees.

What You Can Do After a Positive Result

A positive result is not the end of the case. What you do in the days after it often matters more than the result itself.

Challenge the Test

The initial screen used in most court-ordered testing is an immunoassay, which is quick and inexpensive but not highly specific, and it can produce false positives when structurally similar substances trigger the same reaction. Any positive screen is supposed to be confirmed with a more precise chromatography–mass spectrometry test and reviewed by a Medical Review Officer, who checks for legitimate medical explanations such as a prescription.11Substance Abuse and Mental Health Services Administration. Medical Review Officer Guidance Manual for Federal Workplace Drug Testing Programs

Common medications are documented triggers for false positives on the screening step: ibuprofen, some antidepressants like sertraline and trazodone, cold medications with dextromethorphan, antihistamines like diphenhydramine, and even certain antibiotics. Chain-of-custody problems — gaps in the paperwork showing who handled your sample and when — can also get a result thrown out.

In federally regulated testing, your sample is typically split into two specimens. If the primary tests positive, you have 72 hours after being notified to request that the second specimen be sent to a different lab.12eCFR. 49 CFR Part 40 Subpart H – Split Specimen Tests Not every court-ordered program follows federal protocols, so the safeguards depend on your jurisdiction.

Get Into Treatment Before the Court Orders It

Where the result is accurate, the most useful thing you can do is enroll in treatment on your own before the court makes you. Judges who still have discretion — meaning anything short of the mandatory revocation triggers — respond to visible accountability, and voluntary treatment can shift the response toward continued supervision and away from incarceration. In family cases, documented enrollment is often the fastest way back to unsupervised time with your children.

Completion is the word that matters. Starting a program and dropping out reads worse than never starting, because it tells the court you can’t follow through. If the judge orders a specific type or length of treatment, partial compliance counts as noncompliance. The people who come out of these situations best are the ones who engage early and can show a consistent record of attendance, clean tests, and aftercare.

Check Whether Procedure Was Followed

Your attorney should also look at how the test was ordered and administered. Was there a valid court order? Was the lab properly certified? Were you given adequate notice of the testing requirement and told about your right to request a retest of a split specimen? Procedural defects don’t erase the underlying substance use, but they can keep the result out of court, and that can be enough leverage to negotiate a better outcome.