How a battery works
A battery stores chemical energy and delivers electrical energy. Voltage, capacity and usable energy are related but not the same number on the label.
Charge and discharge
During discharge, a chemical reaction inside the cell drives current out through the load. During charge, an external source forces current the other way and reverses that reaction (within the limits of the chemistry and the charger).
Real cells also have internal resistance and side reactions. Those show up as heat, voltage sag under load, and losses that mean you do not get every watt-hour of nameplate energy out as useful work. Loss figures belong on the cell or pack datasheet.
Voltage
Voltage is the electrical “pressure” the pack presents. A pack’s stated (nominal) voltage is a label value used for capacity math; the live terminal voltage rises while charging and falls while discharging.
The mAh to Wh calculator uses the voltage you type: the stated nominal value, not a live discharge curve.
Ah vs Wh
Amp-hours (Ah) and milliamp-hours (mAh) measure charge. Watt-hours (Wh) measure energy. Energy is charge times voltage: Wh = Ah × V, or Wh = mAh × V / 1000. Use the mAh to Wh calculator for that conversion.
Two packs with the same Ah at different voltages do not hold the same energy. Prefer Wh (or Ah plus the pack voltage) when comparing runtime or sizing a load.
Usable energy: nameplate × DoD × efficiency
Nameplate Wh is the manufacturer’s stated energy. Depth of discharge (DoD) is the fraction of that energy you choose to use before stopping. Efficiency η folds in conversion and other losses you decide to model. Usable energy in the linear model is nameplate × DoD × η. Runtime at a constant load is that usable energy divided by watts, the same model as the battery runtime calculator.
That calculator is a linear estimate only. It does not implement Peukert’s law. Real runtime varies with discharge rate, temperature and chemistry. You enter depth of discharge and efficiency; there are no built-in chemistry defaults.
Depth of discharge and cycle-life limits vary by chemistry and product. Use the figures from the manufacturer’s datasheet when you have them.
C-rate and cycle life (qualitative)
C-rate describes discharge (or charge) current relative to the pack’s capacity: a 1C discharge would empty the rated Ah in about one hour if the rating held at that rate. Higher C-rate usually means more voltage sag and heat; lower C-rate is gentler. Hours at a given C-rate belong on the datasheet.
Cycle life is how many charge-discharge cycles a pack can usefully deliver before capacity falls below a manufacturer’s end-of-life criterion. Harder depth of discharge, higher rate and extreme temperature generally shorten life; exact numbers belong on a datasheet.
For a comparison of flooded lead-acid, AGM, gel, LiFePO4, lithium-ion and NiMH, see types of batteries. For days of autonomy and bank size from a daily load, use the solar battery calculator; for discharge time at a given load, use the runtime tool above with your own DoD and η.