How long does a star like the sun last?

Our sun, or another star just like it (there are many more like our sun) has a lifetime of about 10 billion years, give or take 500 million.