With the use of ethanol added to gasoline which is made from corn which is renewable we will likely have gasoline for 200 or even 1,000 more years.
But it's hard to say exactly but for the people alive today and born not long ago they will likely never live to see the depletion or complete running out of gasoline or oil.
It's estimated that there are around 50 to 60 years of gasoline and crude oil left in the world.
However that's just an estimate and as the years go on more and more oil and gasoline reserves will likely be found.
Also a lot of gasoline now has ethanol mixed in with it which makes the gasoline go further than it would so it makes the gasoline reserves last longer.
The ethanol that is added to gasoline is made from corn which is a renewable resource and can be replenished for many years to come.
The corn is turned into ethanol through a distillation process as well as fermentation in an ethanol plant.
So we likely have over 100 years or more of gasoline and oil left in the world and likely more will be found over the years as they drill for more oil and go back to the old oil wells eventually.
So it's very unlikely we would run out of oil and gasoline in the next 100 or 200 years but anything is possible.
But we will never run out of ethanol as long as corn is grown and then processed into ethanol.