When people think of job discrimination, they often picture a boss refusing to hire someone because of their race or firing a woman because she is pregnant. But there is another form of illegal discrimination that is less visible and often more confusing: the hostile work environment. This type of claim does not require you to lose your job or miss out on a promotion. Instead, it is about the atmosphere in which you are forced to work. If the workplace is so poisoned by harassment that it interferes with your ability to do your job, you may have a valid civil rights liability case.

A hostile work environment occurs when an employee is subjected to unwelcome conduct based on a protected characteristic — such as race, sex, religion, national origin, age, or disability — and that conduct is severe or pervasive enough to create an abusive working environment. The key words here are “severe or pervasive.“ One offhand comment or a single rude joke generally will not meet the legal threshold. The behavior must be frequent, ongoing, or very serious in nature. For example, a supervisor who repeatedly makes lewd comments about your body, or coworkers who regularly use racial slurs in your presence, could create a hostile environment. A one-time physical assault or a threat of violence might also be severe enough on its own to be actionable.

The law does not expect employees to be babysitters or to endure a constant barrage of offensive behavior. But it also does not ban all unpleasant interactions. Workplaces can be stressful, and people can be rude or insensitive without crossing into illegal territory. The difference is whether the conduct is tied to a protected characteristic and whether it is so bad that a reasonable person in your position would find the environment hostile. Courts look at the frequency of the conduct, its severity, whether it was physically threatening or humiliating, and whether it unreasonably interfered with your work performance. If you have to take time off because of anxiety, if you cannot concentrate, or if you start avoiding certain areas of the office to escape a harasser, those are signs the environment may be legally hostile.

Importantly, the harassment does not have to be directed at you personally. If you witness a coworker being subjected to racist comments, and that conduct makes the overall workplace oppressive for you because of your own race, you may also have a claim. The law protects the entire atmosphere, not just the direct target. However, you must actually be affected by the harassment. A bystander who is not a member of the targeted group may still have a claim if the harassment creates a hostile environment for everyone, but that is a tougher argument.

Employers are not automatically liable for every offensive remark made by one employee to another. The rules differ depending on who the harasser is. If the harasser is your supervisor — meaning someone with the power to hire, fire, promote, or demote you — the company is generally strictly liable. That means the employer is responsible even if they did not know about the harassment. But if the harasser is a coworker, the employer is only liable if they knew or should have known about the behavior and failed to take prompt, appropriate corrective action. This is why reporting harassment is critical. If you never tell anyone in authority, the company can claim they had no reason to know and therefore cannot be held responsible.

You also need to understand that the behavior must be unwelcome. If you participate in crude jokes or use offensive language yourself, you may have a harder time proving that the conduct was truly unwelcome. That does not mean you forfeit your rights entirely — you can still object to behavior that crosses a line — but it is a factor courts consider.

If you believe you are working in a hostile environment, the first step is to document everything. Write down dates, times, names, and what was said or done. Keep copies of emails, text messages, or any other evidence. Report the behavior to your supervisor, human resources, or whoever handles complaints, following your company’s policy. If the company fails to act, or if they retaliate against you for complaining, you may then file a charge with the Equal Employment Opportunity Commission or your state fair employment agency. You generally have 180 or 300 days from the last act of harassment to file, depending on your state.

A hostile work environment claim is not about hurt feelings. It is about a workplace that has become so abusive that it fundamentally changes the terms and conditions of your employment. The law gives you the right to work in an environment free from severe harassment based on who you are. Knowing what that means in practice helps you recognize when your rights have been violated and when you need to take action.