How it works
First the inverter. Take the running watts, divide by a power factor of 0.8 to get volt-amps, then add 25% for the surge when a motor starts. Then the battery. Multiply watts by hours to get watt-hours, divide by efficiency and depth of discharge, and divide again by the system voltage to get amp-hours. A 12 V system uses one 12 V battery per string, 24 V uses two in series and 48 V uses four. Divide the amp-hours you need by one battery and round up to get the number of strings.
Formula
Energy needed = watts x hours.
Battery energy = energy / (0.85 x depth of discharge).
Amp-hours = battery energy / system volts.
Batteries in series = system volts / 12.
Strings in parallel = amp-hours / battery amp-hours, rounded up.
Recharge hours = amp-hours / (charger amps x 0.85).
Example
Running load in watts: 300; Hours of backup: 2; One battery, amp-hours: 100; Charger amps (0 if none): 20. Inverter size you need (VA): 470
Frequently asked questions
Why is the inverter rated in VA and not watts?
Because appliances draw more volt-amps than watts when the power factor is below 1. A 300 W load at 0.8 power factor needs 375 VA before the surge margin.
Can I use a smaller battery and charge it more often?
You can, but the run time falls in proportion. Doubling the battery bank doubles the backup time at the same load, and the recharge time grows with it.