Battery Capacity Calculator

Estimate required battery capacity in mAh from device power, desired runtime, and battery voltage.

967.8K uses Updated · 2026-05-21 Runs locally · zero upload
AD

How to Use Battery Capacity Calculator

The Battery Capacity Calculator estimates how large a battery must be to power a device for a target runtime. It converts watts and hours into watt-hours, then into mAh at the selected voltage.

  1. Enter the average device power in watts. If a device has peaks and idle periods, use a realistic average rather than the maximum rating.
  2. Enter the desired operating time in hours.
  3. Enter the nominal battery voltage, such as 3.7V for a single lithium cell or 12V for many small battery packs.
  4. Read the required mAh and Ah values, then add a safety margin for real-world losses.

Formula & Theory - Battery Capacity Calculator

The Battery Capacity Calculator uses the following formula or calculation model:

Battery capacity (mAh) ≈ (device power (W) × use time (hours) × 1000) / voltage (V)
Energy needed (Wh) = power × time

Battery capacity in amp-hours is energy divided by voltage. Because many small batteries are labeled in milliamp-hours, the calculator multiplies by 1000 after converting watt-hours into amp-hours. The supporting energy result in Wh is useful when comparing battery packs with different voltages.

Assumptions and Limits

Converters, inverters, cold temperature, aging, discharge limits, and manufacturer capacity ratings can reduce usable runtime.

Use Cases for Battery Capacity Calculator

Specific use cases include:

  • Size a battery for an IoT sensor, camera, fan, router, or LED project.
  • Compare 3.7V and 12V pack requirements for the same power load.
  • Estimate whether a power bank has enough usable capacity.
  • Plan backup runtime before buying cells or modules.

Frequently asked questions about Battery Capacity Calculator

How does the Battery Capacity Calculator work?

It applies the formula shown on the page to your inputs and calculates the result directly in your browser.

What inputs do I need?

The required inputs are listed in the form and explained in the how-to section, including any unit, range, or option choices.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.

Can I use the result as a final professional answer?

Use it as a fast planning and checking tool. For official, safety-critical, or contractual decisions, confirm the result with the relevant standard or expert.