Most modern home batteries use lithium iron phosphate (LiFePO4) chemistry, which typically lasts 10–15 years, or several thousand charge–discharge cycles, before capacity drops noticeably.
Battery warranties are usually stated in cycles and/or years, often guaranteeing around 70% of usable capacity at the end of the term. Deep, frequent cycling and high temperatures shorten life; moderate use extends it.
Older lead-acid batteries are much cheaper upfront but last far fewer cycles (often under 1,000) and need more care, which usually makes lithium cheaper per usable unit over its life.
This is general guidance — figures vary by location, tariff, equipment and installer. Always confirm details for your own home before deciding.