The short answer: no federal law gives you a general right to use cannabis and keep your job. Your protection comes from three things, in this order: your state's law, your job type, and whether you use cannabis as a registered patient or off the clock. The first move is to identify which bucket you fall into, because each one changes the outcome.

can employers test for cannabis legally

Step 1: Read your state law

States sit in three broad groups on cannabis and drug testing.

Can You Refuse a Drug Test for Weed? US Guide

  • Off-duty and pre-employment limits: California, Washington, Nevada, New York, New Jersey, Connecticut, Rhode Island, Montana, and Minnesota have laws that restrict cannabis testing or adverse action for off-duty use. Exceptions usually exist for safety-sensitive roles, federal contracts, and positions that require testing under federal rules.
  • Medical-only protection: Several states require employers to accommodate registered medical cannabis patients unless it creates an undue hardship or a safety risk. The scope varies by state.
  • No state protection: In many states, an employer can test for cannabis, refuse to hire, or fire you for a positive result even if cannabis is legal for adults.

State law changes often. Confirm the current statute and any court decisions in your state before you rely on a protection.

more on this topic

Step 2: Know your job type

Federal law treats cannabis as a Schedule I controlled substance. That matters for three groups:

read more

  • Federal employees and applicants.
  • Workers in DOT-regulated safety-sensitive jobs, such as commercial drivers, pilots, rail workers, transit operators, and pipeline workers. Under DOT rules, a medical cannabis card is not a valid excuse for a positive test.
  • Employees of federal contractors covered by the Drug-Free Workplace Act, plus workers in state-defined safety-sensitive roles.

If you fall into one of those groups, assume your state's cannabis protection does not apply. A positive test can end your employment or your candidacy.

Step 3: Medical patients have separate rules

Registered medical cannabis patients sometimes get more protection than recreational users, but the ADA does not cover current illegal drug use under federal law. State medical cannabis laws and state disability laws may require a reasonable accommodation, such as allowing off-duty use or waiving a pre-employment test. The employer can still deny the accommodation if it can show undue hardship or a direct safety threat. Ask for the accommodation in writing and follow your HR process.

What a test actually measures

Most workplace screens use urine, which detects THC metabolites for days to weeks after use. Those metabolites stay in the body long after any impairment ends, so a positive result does not prove you were high at work. Saliva tests have a shorter window. Hair tests have a longer one. Some states, including California, now bar employers from using tests that detect nonpsychoactive metabolites. If you get a positive result, you can usually request a confirmation test, and under DOT rules you can ask for a split-sample test of the second vial.

Weighing your options if you are asked to test

Request an accommodation or challenge the result

  • Pros: May preserve your job, creates a record, and forces the employer to state its policy and the business reason for the test.
  • Cons: Takes time, may require a lawyer, and the employer can still win if the role is safety-sensitive or covered by federal rules.

Comply and deal with the outcome

  • Pros: Avoids a refusal charge, which many employers treat as a positive result. Keeps the process simple.
  • Cons: A positive result can cost you the job or the offer, and you may lose leverage to negotiate.

Refusing a test is rarely a safe move unless you have legal advice. Many policies classify refusal as a positive result.

A practical recommendation

If you use cannabis off duty and work for a private employer in a state with off-duty protections, do three things: get the written drug testing policy, confirm your state's current law and exceptions, and ask HR how it handles medical accommodations before a test is scheduled. If you work in a federal, DOT, or safety-sensitive role, plan for a zero-tolerance rule and do not count on a medical card. When the stakes are high, talk to an employment attorney licensed in your state.