A 12V battery can last between 10 to 17 hours with an inverter. There’s a formula that one can use which will depend on watt load and the ampere-hour of the battery. Before you can know how long the battery will last, you will need to understand its size and type. Find out whether it’s a deep cycle or lead-acid battery.