Their shelf life, however, is quite similar to one another. As long as your vegetable oil is unopened and stored properly, it should be fine for at least two years, probably for a lot longer. Once you'll open the bottle, the oil in it should be fine for at least a year. Olive oil will last another one year!