Battery Calculator

Our battery calculator helps you size batteries for solar systems, UPS backup, electric vehicles, and portable electronics. Calculate how long a battery will last, how many batteries you need, charging requirements, and energy storage capacity in Ah or Wh.

star 4.8
auto_awesome AI
New

Battery Calculator calculator

80%
Ah
V
W

Results

19.2
hours runtime
Total Energy
1200 Wh
Usable Energy
960 Wh
C-Rate
0.042C
DoD
80%

battery_charging_full Battery Chemistry

Lead Acid 2.0V/cell
NiMH 1.2V/cell
Li-ion 3.7V/cell
LiFePO4 3.2V/cell

speed C-Rating Guide

  • 🔋 1C = Full discharge in 1 hour
  • 2C = Full discharge in 30 min
  • 🚗 EV batteries: 1-3C typical

How to Use the Battery Calculator

1

Select Mode

Choose to calculate runtime, required capacity, or charging time

2

Enter Battery Specs

Input capacity (Ah), voltage, and battery type

3

Add Load/Charger

Enter power consumption or charger current

4

View Results

See calculated runtime, energy, or charging time

The Formula

Battery capacity in Wh = Ah × Voltage. Runtime depends on load power and usable capacity (DoD). Lead-acid batteries typically use 50% DoD, lithium can use 80-90%.

Runtime (hours) = Battery Capacity (Wh) ÷ Load Power (W)

lightbulb Variables Explained

  • Wh Watt-hours (energy capacity)
  • Ah Amp-hours (charge capacity)
  • V Battery voltage
  • DoD Depth of Discharge (usable capacity %)

tips_and_updates Pro Tips

1

Lithium batteries can discharge to 80-90% DoD safely

2

Lead-acid batteries should only discharge to 50% for longevity

3

Wh = Ah × V (100Ah at 12V = 1200Wh)

4

For solar systems, size for 2-3 days of autonomy

5

Account for inverter efficiency (85-95%) in calculations

6

Cold temperatures reduce effective battery capacity

7

C-rate indicates charge/discharge speed (1C = full charge in 1 hour)

Battery capacity, measured in milliamp-hours (mAh) or watt-hours (Wh), determines how long a device can operate before needing a recharge — but translating raw capacity into actual runtime requires accounting for voltage conversion efficiency, discharge rates, temperature effects, and the device's varying power demands. A 10,000 mAh power bank does not deliver 10,000 mAh to your phone because voltage conversion from the battery's 3.7V to the USB output's 5V loses 20-30% to heat and conversion inefficiency, yielding approximately 6,500-7,000 mAh of usable charge. Our battery calculator computes runtime from capacity and load current, determines required battery size for a target runtime, calculates charging time from charger specifications, and handles series and parallel battery configurations. It supports common battery chemistries (lithium-ion, lithium-polymer, NiMH, lead-acid, alkaline) with their characteristic voltage curves, and accounts for real-world efficiency losses that make theoretical calculations optimistic by 15-35%.

Understanding Battery Capacity

Battery capacity is measured in Amp-hours (Ah) or Watt-hours (Wh). Ah indicates how much current a battery can provide for one hour.

Wh = Ah × Voltage gives total energy storage.

Battery Sizing for Solar Systems

For off-grid solar, size batteries for 2-3 days autonomy. Consider depth of discharge (DoD) to protect battery lifespan.

Lithium batteries offer higher DoD than lead-acid.

How to Calculate Battery Runtime From Capacity and Load

Battery runtime in hours equals the usable energy in watt-hours divided by the load power in watts: Runtime = (Ah x V x DoD) / Load Power (W). First convert capacity to energy with Wh = Ah x V, then multiply by the depth of discharge fraction to get usable energy.

For example, a 100 Ah 12 V lithium battery stores 100 x 12 = 1200 Wh; at 80% DoD, 960 Wh is usable, so a 200 W load runs for 960 / 200 = 4.8 hours.

The watt-hour is a unit of energy equal to 3600 joules, as defined by the SI framework maintained by NIST and BIPM. Real runtime is shorter once inverter and conversion losses are included.

What Are the Units of Battery Capacity: Ah, mAh, and Wh?

Amp-hours (Ah) and milliamp-hours (mAh) measure electric charge capacity, while watt-hours (Wh) measure energy. One Ah equals 1000 mAh and represents a current of one ampere sustained for one hour, equal to 3600 coulombs of charge.

Because charge alone ignores voltage, Wh is the more meaningful energy unit: Wh = Ah x V. The ampere is one of the seven SI base units defined by BIPM, and the joule (1 Wh = 3600 J) is the coherent SI unit of energy per NIST.

This is why a 10,000 mAh power bank at 3.7 V holds only 37 Wh, and comparing two batteries fairly requires converting both to watt-hours rather than trusting mAh alone.

How to Convert Amp-Hours to Watt-Hours (Ah to Wh)

To convert amp-hours to watt-hours, multiply the capacity in Ah by the nominal battery voltage: Wh = Ah x V. A 50 Ah battery at 24 V stores 50 x 24 = 1200 Wh.

To reverse the conversion, divide energy by voltage: Ah = Wh / V. For mAh, first divide by 1000 to get Ah, so a 5000 mAh cell at 3.7 V holds (5000 / 1000) x 3.7 = 18.5 Wh.

Khan Academy and HyperPhysics (Georgia State University) both frame this as the electrical-power relationship P = VI integrated over time, giving energy = voltage x charge. Always use nominal voltage, not fully-charged voltage, for realistic comparisons across chemistries.

How to Size a Battery Bank for Off-Grid and Solar Use

To size a battery bank, divide daily energy demand by the usable fraction and system voltage, then scale for days of autonomy: Required Ah = (Daily Wh x Days) / (DoD x V x Efficiency).

Suppose you need 2000 Wh per day, want 2 days of backup, use a 12 V lead-acid bank at 50% DoD with 90% system efficiency: (2000 x 2) / (0.5 x 12 x 0.9) = 4000 / 5.4 = about 741 Ah. Lithium banks at 80% DoD need far less capacity for the same load.

The U.S. Department of Energy recommends sizing for local sun-hours and worst-case cloudy periods, and rounding up to standard battery increments.

How to Calculate Battery Charging Time

Charging time in hours is approximately the battery capacity in amp-hours divided by the charger current in amps, adjusted for efficiency: Charge Time = Ah / (Charger A x Efficiency). A depleted 100 Ah battery with a 10 A charger and 85% charging efficiency takes about 100 / (10 x 0.85) = 11.8 hours.

Lithium chemistries commonly use constant-current then constant-voltage (CC-CV) charging, so the final 10-20% tapers and takes longer than the linear estimate suggests.

IEC and IEEE battery standards specify safe charge rates as a C-rate; charging at 0.5C (half capacity in amps) is gentler and extends cycle life compared with aggressive 1C fast charging.

What Is C-Rate and How Does It Affect Batteries?

C-rate expresses charge or discharge current relative to capacity:

  • a rate of 1C fully charges or discharges the battery in one hour
  • 0.5C takes two hours
  • 2C takes 30 minutes

The current equals C-rate x capacity, so 2C on a 50 Ah cell is 100 A. Higher C-rates generate more internal heat and voltage sag, reducing effective capacity and accelerating degradation, a behavior described by the Peukert effect for lead-acid batteries.

HyperPhysics and Battery University note that manufacturers rate capacity at a specified discharge rate (often 0.05C or the 20-hour rate), so drawing current faster than that rating delivers less usable energy than the label implies.

How Do Series and Parallel Battery Configurations Work?

Wiring batteries in series adds their voltages while capacity in Ah stays the same; wiring in parallel adds capacity while voltage stays the same.

Four 12 V 100 Ah batteries in series give 48 V 100 Ah (4800 Wh), whereas the same four in parallel give 12 V 400 Ah (also 4800 Wh) - total energy is identical either way. Series-parallel combinations set both target voltage and capacity.

This follows the same rules as resistors and cells in circuits described by Khan Academy and HyperPhysics. Always match battery type, age, and state of charge within a bank, because mismatched cells cause uneven current sharing, overcharging, and premature failure.

Real-World Applications of Battery Calculations

Battery calculations underpin many systems:

  • sizing UPS units for server backup
  • designing off-grid and RV solar banks
  • estimating electric-vehicle range from pack energy
  • choosing power banks for travel
  • specifying medical or marine backup power

For a UPS, runtime = (pack Wh x DoD x inverter efficiency) / load W tells you how long equipment survives an outage. EV range roughly equals pack energy in kWh divided by consumption in kWh per mile, so a 60 kWh pack at 0.3 kWh/mi covers about 200 miles.

Encyclopaedia Britannica notes that lithium-ion's high energy density (per unit mass and volume) is why it dominates portable and automotive applications where weight and space matter.

Common Mistakes When Calculating Battery Capacity and Runtime

The most common mistake is comparing batteries by mAh alone while ignoring voltage - always convert to watt-hours (Wh = Ah x V) for a fair comparison.

Others include:

  • forgetting depth of discharge (using full capacity instead of usable capacity)
  • ignoring inverter and conversion losses of 10-30%
  • assuming rated capacity holds at high discharge rates when the Peukert effect reduces it

People also overlook temperature: cold weather can cut usable capacity noticeably, and heat shortens lifespan. Finally, do not confuse charge (Ah, coulombs) with energy (Wh, joules) - they are different SI quantities per NIST.

Building a safety margin of 20-30% into any real design absorbs these combined real-world losses.

Frequently Asked Questions

sell

Tags