It depends on why the gas is bad. Does it have water in it? Sugar? Deisel? Paint thinner? Feces? We gotta know what you put in the tank to answer your question.
How do you know it's bad gas? Did your engine die and that was your first guess?