@Captain78
First of all, just about all EV’s have an 8 year warranty for the battery pack. New car buyers can keep the car 3-6 years and sell it with the warranty still in force. It is reasonable to expect 10-15 years life from modern EV batteries, but always be prepared for a failure one day after the warranty expires.
Mileage should not affect battery life, except for very high milage cars with 300,000-500,000 miles.
You do need to select an EV with a well designed pack. Nissan Leaf packs have no active cooling system, and they are prone to early failure, espically in hot climates. Early Tesla Model S packs had issues with corrosion allowing water into the pack, which damaged the circuit boards. That forced early pack replacements even though the cells were still good.
When it does come time to replace the pack, it might make sense despite the cost. If the car has been well maintained over the years, it can have a good second life with a new pack. Tesla has been able to reduce pricing for replacement packs over the years. IIRC it cost over $40k in 2013 for a Model S ”85 kWh” pack. In 2021 it cost $24k, and it was reduced fruther to $16k last year. I think I saw $12k this year, IIRC.
Hopefully, when my 2018 M3 needs a new ”82 kWh” pack in 2028-33 the cost will be $8k or less. Anyone buying a new Tesla today with the intent of keeping it for 15 years or more could reasonably expect to pay ”only” $4k in 2038. Even if the cost ends up higher, 2038 seems pretty far away to me.
GSP