Technology / Batteries & electronics
Energy through the circuit

Size the battery from the load and the losses.

Connect voltage, capacity, power draw, efficiency and safe discharge into a realistic runtime.

74%
Battery
1,200 Wh
Converter
12% loss
Load
180 W
Estimated usable runtime
4 h 42 min
Usable energy845 Wh
Current draw17.0 A
Reserve20%
Real runtime falls with temperature, battery age, high discharge rates and inverter standby. Verify chemistry-specific limits.

How to use this tool

Direct answer

Usable watt-hours = amp-hours × volts × depth of discharge × efficiency. Divide by your load in watts for hours of runtime.

Bench-side arithmetic for anything that draws current. Real battery runtime once depth of discharge and conversion losses are taken out, the supply rating a circuit actually needs, whether a speaker wiring plan will cook the amplifier, the pulse and step maths behind servos and stepper motors, reactance at a given frequency, and what a printed part costs once you count the electricity.

What the answer includes

  • Nominal energy in watt-hours from the amp-hour rating
  • Usable energy after depth of discharge and losses
  • Runtime in hours at your load
  • How much of the label capacity you never get to use

What can change it

  • Engineering estimate based on the values you enter. Verify units, assumptions and rounding against the datasheet of your actual parts before wiring anything up — and treat mains voltage, lithium cells and anything that gets hot as the hazards they are.
  • Never plan on the nameplate capacity. A lead-acid battery discharged past 50% has its cycle life cut dramatically, and even LiFePO4 is normally limited to 80–90% depth of discharge. The energy you can actually take out is well below the number on the label.
  • Conversion losses come off on top. An inverter running at 90% efficiency takes another tenth away, and inverters are least efficient at very light loads — a 2,000 W inverter powering a 30 W load can waste more in its own idle draw than the load consumes.
  • Amp-hours mean nothing without a voltage. A 100 Ah battery at 12 V is 1,200 Wh; the same 100 Ah at 48 V is 4,800 Wh. Always compare in watt-hours, never in amp-hours.

Deadline or next step: Size the bank for the depth of discharge you intend to use, not the capacity you bought — that is the difference between a bank that lasts a decade and one that lasts two years.

Answer supported by: U.S. Energy Information Administration · U.S. Department of Energy

Fill in the fields for the case you picked — everything else is ignored.

Last reviewed:

Responsible editor:

Formula and sources verified. Educational guidance only. It does not replace qualified professional advice.

Editorial policyMethodology

Frequently asked questions

How long will a 100 Ah battery run a 100 W load?

Not the 12 hours the nameplate suggests. A 100 Ah 12 V battery holds 1,200 Wh nominally, but at 80% depth of discharge and 95% inverter efficiency only about 912 Wh is usable — around 9.1 hours at 100 W. On lead-acid limited to 50% depth of discharge it is closer to 5.7 hours.

Why can’t I use the full capacity of a battery?

Because deep discharge destroys cycle life. A lead-acid battery routinely taken below 50% may last only a couple of hundred cycles instead of a thousand or more. LiFePO4 tolerates 80–90% comfortably, which is a large part of why it is worth its higher price. On top of that, converting DC to AC costs another 5–15% in the inverter.

What is the difference between amp-hours and watt-hours?

Watt-hours measure energy; amp-hours measure charge and are meaningless without a voltage. A 100 Ah battery at 12 V holds 1,200 Wh, while 100 Ah at 48 V holds 4,800 Wh — four times the energy from the same amp-hour figure. Always compare batteries in watt-hours.

How long does a 3000 mAh battery last?

Divide capacity by draw: 3,000 mAh at 150 mA is 20 hours in ideal conditions, realistically about 17 after inefficiency. But most devices do not draw a constant current — anything that sleeps needs an average worked out from its duty cycle, and getting that wrong is why battery-life estimates for small devices are so often out by an order of magnitude.

What size DC power supply do I need?

Divide the load in watts by the voltage to get current, then add about 30%. A 30 W load at 12 V draws 2.5 A, so you want a 12 V supply rated at 3.25 A or more. Running a supply continuously at its rated maximum is how it ends up hot and short-lived, especially with inexpensive units rated for peak rather than sustained output.

Can I use a power supply with a higher amp rating than my device needs?

Yes, and it is usually a good idea. A device draws only the current it needs, so a 12 V 5 A supply on a 12 V 2 A device simply runs cooler and lasts longer. Voltage is the parameter that must match exactly — and so must the polarity, which is a far more common cause of destroyed equipment than the current rating.

What happens if I wire speakers in parallel?

The total impedance divides by the number of speakers, so two 8 Ω speakers in parallel present 4 Ω and four present 2 Ω. That draws more current from the amplifier, and once you go below its minimum rated impedance the amplifier either trips into protection or fails outright. Check the amp’s minimum rating before wiring anything.

Series or parallel for speakers — which should I use?

Parallel gives each speaker the full voltage and more power, but lowers the impedance the amplifier sees, which is the risky direction. Series raises the impedance, which is safe but delivers less power and lets the speakers interact through their back-EMF. If neither gives a load your amplifier likes, use another channel rather than compromising.

What pulse width do I send a servo?

By the usual convention, 1 ms drives it to one end of its travel, 1.5 ms centres it and 2 ms drives it to the other end, mapped linearly across the rated range. It is only a convention though: many servos actually accept 0.5 ms to 2.5 ms, and pushing one past its true mechanical limit makes it buzz, draw heavy current and eventually strip its gears.

How many steps per revolution does a stepper motor have?

360 divided by the step angle, multiplied by the microstepping factor. The common 1.8° motor gives 200 full steps per revolution, which becomes 3,200 at 1/16 microstepping. The extra resolution buys smoothness and quiet rather than genuine accuracy, since the holding torque of a single microstep is very small.

Does microstepping make a stepper more accurate?

Not meaningfully. It makes motion smoother and much quieter, which is why 3D printers use it, but the torque holding any individual microstep is a fraction of a full step, so the rotor can be pushed off the commanded position without the controller noticing. Positional accuracy still comes down to the motor’s inherent step error and the mechanics around it.

How do I calculate inductive and capacitive reactance?

XL = 2πfL, with L in henries, and XC = 1 ÷ (2πfC), with C in farads. Inductive reactance rises with frequency and capacitive reactance falls, which is the whole basis of filtering. They are equal at the resonant frequency, f = 1 ÷ (2π√(LC)), where they cancel and the circuit becomes purely resistive.

How much does a 3D printed part cost to make?

Filament plus electricity plus wear. A 50 g part at $20 per kilo is $1.00 of filament; four hours at 150 W and $0.17 per kWh is about $0.10 of electricity; add roughly 10% for machine wear and the running cost is around $1.21. What that leaves out is the part that actually costs money: your time, failed prints and post-processing.

What margin should I charge on a printed part?

Enough to absorb the print that fails at hour nine, which a 0% margin does not. Material and power are the small part of the real cost — labour, design time, support removal, sanding and the occasional total loss dominate. Pricing by machine hour as well as by gram is the usual way to make a light but slow part pay for itself.

Editorial transparency

Who is responsible for this page

Editorial status explained in methodology
Author and responsible editorFounder and responsible editor of Hacé Cuentas.
How it is checkedAuthorship and methodology are explained on our editorial pages.
Sources and methodThis page explains its assumptions and limitations.View methodology →

Choose your situation

What do you want to solve?

Related tools in other countries and languages

Check the language, units and assumptions of each tool.