A gas cap typically lasts about 50,000 miles, but you should replace it sooner if it gets damaged.