How long can you last at a job you hate?

I've been at my job about 5 years and that last year I realized that I hate it. I'm currently looking for something else and I'm willing to take a paycut. This place makes me hate my life seriously. I'm just venting here and looking for some tips on staying until I find something else.