Blog · November 30, 2026

How long will a battery last? Volts, mAh and the sum that sets the hours

Home › Blog › How long will a battery last? Volts, mAh and the sum that sets the hours

You are building a small gadget, such as a sensor, a light or a data logger, and it will run from batteries. The first question is always the same: how long will it run before the batteries are flat? Guess too high and your project dies in the middle of the night. Guess too low and you carry a bigger pack than you need.

The answer is one division, with a few honest corrections. Once you have it you can size a pack before you buy anything, compare two different packs fairly, and see at a glance whether a load is gentle or hard on the cells. (This post stays at low voltage and is arithmetic only, not a safety guide.)

The one sum behind battery life

A battery’s capacity is printed in milliamp-hours (mAh). A 2,500 mAh cell can, in principle, supply 2,500 milliamps for one hour, or 250 milliamps for ten hours, or 25 milliamps for 100 hours. So:

hours = capacity in mAh ÷ current drawn in mA

Your project draws a certain current, and the cells hold a certain capacity. Divide one by the other. Everything else in this post is about getting those two numbers right.

Series adds volts, parallel adds hours

Cells are combined in two ways:

Three 1.5 volt cells of 2,500 milliamp-hours in series make 4.5 volts and still 2,500 milliamp-hours. Two such cells in parallel make 1.5 volts and 5,000 milliamp-hours. Series adds volts. Parallel adds hours. 3 in series 1.5 V 1.5 V 1.5 V = 4.5 V, still 2,500 mAh 2 in parallel 1.5 V 1.5 V = 1.5 V, but 5,000 mAh Energy = volts × amp-hours. 3 in series: 4.5 × 2.5 = 11.25 Wh.
Three 1.5 V cells of 2,500 mAh in series make 4.5 V and 2,500 mAh. Two of them in parallel make 1.5 V and 5,000 mAh.

Most projects need a certain voltage first (to run the electronics), then enough capacity (to run long enough). Series gets you the volts, parallel gets you the hours.

The example: three AA cells and a 900 mA load

Say you have three alkaline AA cells in series. Each is 1.5 V and printed as 2,500 mAh. Your gadget draws 900 mA while it is running. Follow the steps.

  1. Pack voltage and capacity. 3 × 1.5 V = 4.5 V. Parallel strings: just one, so the capacity stays 2,500 mAh.
  2. Energy in watt-hours. Wh = volts × amp-hours = 4.5 V × 2.5 Ah = 11.25 Wh.
  3. Take the usable share. The printed capacity assumes the cell is drained all the way down to about 0.8 V. Your circuit will stop working long before that, and capacity below your cutoff is capacity you never get. The calculator uses 80% as a starting point: 2,500 × 0.80 = 2,000 mAh usable. (The book works this carefully for its project, with a cutoff of 1.167 V per cell. Your own figure depends on where your circuit gives up, so treat 80% as a planning value, not a promise.)
  4. Divide by the current. 2,000 mAh ÷ 900 mA = 2.22 hours, about 2 hours 13 minutes.
  5. Compare with the label. Using the printed 2,500 mAh would have said 2,500 ÷ 900 = 2.78 hours, about 2 hours 47 minutes. That is more than half an hour too optimistic.
From 2,000 milliamp-hours of usable capacity, a 100 milliamp load runs 20 hours, 250 milliamps runs 8 hours, 500 milliamps runs 4 hours, and 900 milliamps runs about 2.2 hours. Hours from 2,000 mAh usable (3 × AA, 80%) 100 mA 20 h 250 mA 8 h 500 mA 4 h 900 mA 2.2 h Double the current, half the hours. At 900 mA the load is 0.45C.
From 2,000 mAh usable, a 100 mA load runs 20 hours, 250 mA runs 8 hours, 500 mA runs 4 hours and 900 mA runs about 2.2 hours.

Notice how fast the hours fall as the current rises. Halve the current and you double the runtime, so cutting what the circuit draws is the cheapest way to get more hours: lower the brightness, sleep between readings, or switch the load off when it is not needed.

The C-rate: is this load gentle or hard?

The C-rate is the load current divided by the capacity. For our pack: 900 mA ÷ 2,000 mAh = 0.45C. Under 1C is gentle for alkaline cells, with some voltage sag. Well over 1C is hard: the voltage drops, and the cells deliver much less than their printed capacity at that rate. If your C-rate comes out high, the runtime from the simple division is an overestimate, so use a bigger pack or a cell type built for high current.

The calculator rates the load against the usable capacity, not the printed one. The printed figure includes capacity you cannot reach, so using it would make a load look gentler than it is.

Compare packs in watt-hours, not mAh

mAh on its own is a trap when the voltages differ. A single 3.7 V lithium-ion cell sold as 3,000 mAh sounds bigger than three AAs at 2,500 mAh. Convert both to energy:

They hold nearly the same energy. (The lithium figures here are example values for the arithmetic, not a product recommendation.)

Three AA cells in series are 4.5 volts and 2,500 milliamp-hours, which is 11.25 watt-hours. One 3.7 volt lithium-ion cell of 3,000 milliamp-hours is 11.1 watt-hours. The bigger milliamp-hour number holds slightly less energy. Same energy, very different mAh Printed mAh Energy in watt-hours 3 × AA in series: 4.5 V, 2,500 mAh 2,500 11.25 Wh 1 Li-ion cell: 3.7 V, 3,000 mAh 3,000 11.1 Wh Compare packs in Wh, not mAh: the 3000 mAh cell holds no more energy than three AAs at 2500 mAh.
Three AAs at 4.5 V and 2,500 mAh hold 11.25 Wh. One 3.7 V, 3,000 mAh cell holds 11.1 Wh. The larger mAh number is the slightly smaller pack.

Watt-hours let you compare any packs on one scale. mAh only compares packs at the same voltage.

Common mistakes

Rule of thumb

Hours = usable mAh ÷ current in mA. Usable is roughly 80% of printed. Double the current, halve the hours. Compare packs in watt-hours.

Try it with your own numbers

The free Battery Capacity, Watt-Hours and C-Rate calculator takes the volts and mAh per cell, how many cells in series and in parallel, the usable share and your load, and shows the pack, the energy, the design capacity and the C-rate. It comes from Chapter 2 of Maker Electronics Math.

maker-electronics-math cover
Maker Electronics MathSee the chapters, free calculators and printable sheets.

This is arithmetic for planning a low-voltage project, not a safety guide. Check each part’s datasheet and keep away from mains electricity.

Follow on Bluesky or by RSS.