Back to Blog
Law & Compliance

Drug Testing in the Workplace: Legal Framework for HR

Navigate the complex legal landscape of workplace drug testing for SHRM exam preparation, including federal requirements, state laws, and best practices.

May 1, 2026

The Legal Landscape of Workplace Drug Testing

Workplace drug testing sits at the intersection of employer safety interests and employee privacy rights. Unlike many employment laws, there is no single comprehensive federal statute governing private-sector drug testing. Instead, the legal framework is a patchwork of federal regulations (primarily for safety-sensitive industries), state laws, and court decisions.

For HR professionals studying for the SHRM-CP or SHRM-SCP exam, understanding the legal framework for drug testing is important within the broader context of workplace safety, employee relations, and compliance. The SHRM exam tests your ability to balance employer interests with employee rights in this complex area.

The Drug-Free Workplace Act of 1988 requires certain federal contractors and all federal grantees to maintain drug-free workplace policies, but it does not mandate drug testing. Testing requirements come from other federal regulations and vary significantly by industry and state.

Federal Drug Testing Requirements

Federal law mandates drug testing for employees in specific safety-sensitive positions:

  • Department of Transportation (DOT): Requires drug and alcohol testing for safety-sensitive transportation employees, including commercial drivers, pilots, railroad workers, and pipeline workers. DOT testing follows strict protocols under 49 CFR Part 40.
  • Nuclear Regulatory Commission: Requires testing for employees with access to nuclear facilities.
  • Department of Defense: Requires testing for certain contractor employees.

DOT testing is the most commonly tested federal program on the SHRM exam. Key features include:

  • Pre-employment testing
  • Random testing (at specified rates)
  • Post-accident testing
  • Reasonable suspicion testing
  • Return-to-duty and follow-up testing

All DOT tests must use a certified laboratory and follow chain-of-custody procedures. A Medical Review Officer (MRO) must review and verify all results before they are reported to the employer.

State Laws and Evolving Cannabis Regulations

State drug testing laws vary widely. Some states have detailed statutes governing when and how employers can test, while others have minimal regulation. Key considerations include:

  • Timing restrictions: Some states limit testing to pre-employment, reasonable suspicion, or post-accident situations. Random testing may be restricted to safety-sensitive positions.
  • Procedural requirements: Many states require written policies, advance notice to employees, confirmatory testing, and opportunities to explain positive results.
  • Cannabis legalization: As more states legalize recreational and medical marijuana, employers face new challenges. Some states prohibit adverse employment actions based on off-duty cannabis use or positive tests for cannabis metabolites. Others protect medical marijuana users from discrimination.
  • Workers' compensation implications: Some states allow employers to deny workers' compensation benefits if the employee tests positive after a workplace injury, though this varies by jurisdiction.

On the SHRM exam, expect questions that test your understanding of how state cannabis legalization affects employer drug testing policies, particularly the tension between federal illegality and state-level protections.

Best Practices for HR

HR professionals should implement drug testing programs thoughtfully and legally:

  1. Develop a clear written policy: Define what substances are tested, when testing occurs, consequences of positive results, and employee rights. Distribute the policy to all employees and obtain acknowledgment.
  2. Apply testing consistently: Avoid selective enforcement that could lead to discrimination claims. If random testing is used, the selection method must be truly random.
  3. Use certified laboratories: All testing should be performed by laboratories certified by the Substance Abuse and Mental Health Services Administration (SAMHSA).
  4. Maintain confidentiality: Test results are sensitive medical information and should be kept confidential, with access limited to those with a legitimate need to know.
  5. Offer Employee Assistance Programs (EAPs): Providing access to treatment and support reflects a balanced approach to substance abuse issues.
  6. Stay current with state laws: Monitor changes in state drug testing and cannabis laws that may affect your policies.

Start Practicing Today

Drug testing compliance involves navigating federal and state requirements. The SHRM exam, with 134 questions over 4 hours at Prometric or OnVUE, may include scenarios on DOT testing, cannabis policy, and balancing safety with employee rights.

SHRMpractice.com provides practice questions on workplace drug testing and related safety compliance topics. Take our diagnostic to find your weak spots, then sign up for targeted exam preparation.

Ready to put this into practice?

SHRMpractice has 400 original flashcards, 30 timed mini exams, and 3 full-length simulations for every SHRM content domain.

Content is protected