Gasoline can last for about six months to a year in a gas can without going bad. However, this depends on several factors such as the quality of the gasoline, the type of container used, and the storage conditions.