Bad boss red flags to spot now before you're miserable
Fortune · 10'000 Hours-Getty Images

Few relationships matter more to a worker than the one they have with the person who signs their paychecks.

Feeling equal parts supported, challenged, and encouraged by a boss is often the only barrier between staying the course and scoping out Indeed listings. Research from MIT Sloan School of Management found that toxic work culture is the number-one predictor of attrition—more than 10 times as likely to contribute to employee turnover than low compensation. Worse, hostility, discrimination, and bullying are most likely to affect minorities, women, and disabled people.

But sometimes, you just don’t know your boss sucks until it’s a little too late. After all, it can be difficult to pin down who a manager is before working with them. Experts spoke with Fortune about how to identify a bad boss from the get go—and what to do if it’s too late.

Ask away

Don’t forget: A job interview isn’t just about what you can bring to the table. Asking questions that require a specific answer during this stage can probably give you a better read on what your potential boss has to offer, says Nate Smith, founder and CEO of recruiting software firm Lever.

Consider asking your potential manager how they set expectations for people on their team, he suggests, adding that you should prod for specific examples. He says this typically elicits more useful information because managers are likely anticipating hypothetical questions, and they are armed with canned answers.

Also potentially telling: Asking why the last couple of people on their team left. Smith says every company and every team experiences turnover, which isn’t necessarily bad. “Someone leaving a team because they grew and acquired new skills is the sign of a great manager,” he explains. “A not-so-good manager would probably make excuses.”

But if you really want the scoop on a manager, Smith says you’re best off talking to other people on their team and asking them questions like, “‘How did my future manager really help you grow in your career?’” He adds: “It’s a lot harder to be cagey about answering that; either you have an answer or you don’t.”

The interview stage is less about red flags and more about the green ones, he insists. “There are infinite ways to be a dick. Look for evidence of positive things, and if you can’t find any, there’s your red flag.”

You’re in. Now what?

Say your manager passes Smith’s litmus test, and you’re now in the first few weeks of a new job. This is the critical time to really get a sense of what you’re dealing with, according to Sam DeMase, founder of career coaching service Power Mood.