Battery Size Calculator: Calculate Which Battery to Use


Battery Size Calculator

An expert tool to calculate which battery to use for any application.



Enter the average power your device uses in Watts (W).

Please enter a valid power value.



How many hours you need the device to run on a single charge.

Please enter a valid number of hours.



Select the nominal voltage of the battery or battery bank.


Recommended 20-30% to account for battery age, temperature, and inverter losses.

Please enter a valid percentage.

Calculation Results

Required Battery Capacity
— Ah
(– mAh)

Total Energy Needed
— Wh

Average Current Draw
— A

Projections & Analysis

Estimated Runtime with Standard Battery Sizes
Battery Size Estimated Runtime (Hours)

Chart: Runtime vs. Battery Capacity

What Does It Mean to Calculate Which Battery to Use?

To calculate which battery to use means determining the required energy storage capacity for a specific application. It’s not just about picking a battery off the shelf; it’s a systematic process of matching a battery’s power reserves to your device’s energy demands over a desired period. The primary unit of battery capacity is the Amp-hour (Ah), which tells you how many amps a battery can deliver for one hour. [1, 2] A higher Ah rating means a longer runtime for a given load. This calculation is crucial for anyone from hobbyists building small electronics to engineers designing off-grid power systems.

A common misunderstanding is confusing energy (Watt-hours) with capacity (Amp-hours). While related, they are not the same. Watt-hours (Wh) represent the total amount of energy stored, while Amp-hours (Ah) represent the charge capacity at a specific voltage. Our power consumption estimator can help you first determine your device’s energy usage.

The Formula to Calculate Which Battery to Use

The core of battery sizing is a straightforward formula that connects power, time, and voltage to determine capacity. The basic formula is:

Required Capacity (in Amp-hours) = (Device Power (Watts) × Runtime (Hours)) / Battery Voltage (Volts)

However, for real-world accuracy, it’s essential to include a safety margin. This accounts for factors like inverter inefficiency, voltage drop, and battery degradation over time. The more complete formula this calculator uses is:

Adjusted Capacity (Ah) = [(Power (W) × Time (h)) / Voltage (V)] × (1 + Safety Margin %)

Variables Table

Variable Meaning Unit Typical Range
Device Power The average power consumption of the connected device or load. Watts (W) 0.1W (small sensor) – 2000W+ (large appliance)
Runtime The number of hours you require the battery to power the device. Hours (h) 1 – 100+
Battery Voltage The nominal voltage of the battery system. Volts (V) 3.7V, 12V, 24V, 48V
Safety Margin A buffer to account for real-world inefficiencies and battery health decline. Percentage (%) 15% – 50%
Result: Capacity The calculated minimum battery capacity required. Amp-hours (Ah) 1Ah – 1000Ah+

Practical Examples

Example 1: Powering a Small DIY Electronics Project

  • Inputs:
    • Device Power: 2 Watts (e.g., a Raspberry Pi Zero project)
    • Desired Runtime: 24 Hours
    • Battery Voltage: 3.7 Volts (a standard lithium-ion cell)
    • Safety Margin: 20%
  • Calculation:
    • Energy Needed = 2W * 24h = 48 Wh
    • Adjusted Energy = 48 Wh * 1.20 = 57.6 Wh
    • Required Capacity = 57.6 Wh / 3.7V = 15.57 Ah
  • Result: You would need a battery with at least 15.57 Ah (or 15,570 mAh) capacity.

Example 2: Sizing a Battery for a Camper Van Fridge

  • Inputs:
    • Device Power: 45 Watts (a typical 12V compressor fridge, averaged)
    • Desired Runtime: 72 Hours (3 days off-grid)
    • Battery Voltage: 12 Volts
    • Safety Margin: 25%
  • Calculation:
    • Energy Needed = 45W * 72h = 3240 Wh
    • Adjusted Energy = 3240 Wh * 1.25 = 4050 Wh
    • Required Capacity = 4050 Wh / 12V = 337.5 Ah
  • Result: To reliably run the fridge for 3 days, you should install a battery bank of at least 337.5 Ah. This is why a proper amp hour calculator is essential for van builds.

How to Use This Battery Sizing Calculator

  1. Enter Device Power: Input the average power consumption of all devices you intend to run in Watts. If you know the amps, you can convert using the formula: Watts = Amps × Volts.
  2. Set Desired Runtime: Define how many hours your system needs to operate without recharging.
  3. Select System Voltage: Choose the nominal voltage of your battery setup. 12V is common for vehicles, while 48V is often used in a solar battery bank calculator setup.
  4. Adjust Safety Margin: Increase this from the 20% default if you are in extreme temperatures or using older batteries.
  5. Interpret the Results: The primary result is the minimum Amp-hour (Ah) capacity you should purchase. The intermediate values show the total energy (Wh) and average current draw, which are useful for sizing wires and fuses. Explore our voltage drop calculator to ensure your wiring is sufficient.

Key Factors That Affect Battery Choice

Simply using an amp hour calculator is the first step. Several other factors influence the right battery choice:

  • Battery Chemistry: Lithium-ion (especially LiFePO4) offers a long cycle life and deep depth of discharge but at a higher upfront cost. Lead-acid (AGM, Gel) is cheaper but heavier and has a shorter lifespan. [4] Our battery chemistry guide provides a detailed comparison.
  • Depth of Discharge (DoD): This is how much of the battery’s capacity you can safely use. Lithium batteries can often be discharged to 80-90%, while lead-acid batteries should only be discharged to 50% to preserve their lifespan. [13, 15]
  • C-Rating (Discharge Rate): The C-rate defines the maximum safe rate at which a battery can be discharged. [13] A high-power device like a microwave needs a battery with a high C-rating.
  • Temperature: Extreme cold or heat significantly reduces a battery’s effective capacity and lifespan. [12] If you operate in harsh climates, you must oversize your battery bank to compensate.
  • Cycle Life: This indicates how many charge/discharge cycles a battery can endure before its capacity drops significantly. [15, 17] A battery with a higher cycle life is a better long-term investment.
  • Physical Size and Weight: For mobile applications like RVs or boats, the physical constraints of the battery are a critical consideration. Lithium is much lighter and more compact than lead-acid for the same capacity.

Frequently Asked Questions (FAQ)

What is the difference between Ah and mAh?
mAh stands for milliamp-hours. 1 Ah is equal to 1000 mAh. [2] Smaller batteries for electronics are often rated in mAh, while larger batteries for vehicles or solar systems are rated in Ah.
Can I just use a bigger battery than the calculator suggests?
Yes, oversizing your battery bank is generally safe and can lead to a longer lifespan, as you won’t be discharging it as deeply. The main downsides are higher cost and greater size/weight.
How do I calculate which battery to use if I only know the Amps?
If you know the current draw in Amps, you can use a simpler formula: Capacity (Ah) = Current (Amps) × Runtime (Hours). Remember to still add the safety margin.
Does this calculator work for both lithium and lead-acid batteries?
The calculation for required capacity (Ah) is the same regardless of chemistry. However, the usable capacity differs. For a 100Ah lead-acid battery, you should only plan on using 50Ah. For a 100Ah lithium (LiFePO4) battery, you can typically use 80-90Ah. Adjust your final choice accordingly.
What is a C-Rate and why does it matter?
The C-Rate measures how quickly a battery can be charged or discharged relative to its capacity. A 1C rate on a 100Ah battery means it can safely provide 100A for one hour. A 2C rate means it can provide 200A for 30 minutes. High-power appliances require a battery with an adequate C-Rate. Check out our guide on what C-rate is.
How does temperature affect my battery calculation?
Cold temperatures can reduce a battery’s effective capacity by up to 50%. [12] If you’ll be operating in consistently cold environments, you should significantly increase your safety margin (e.g., to 40-50%) to ensure you have enough power.
Does this calculator account for solar charging?
This calculator determines the raw battery capacity needed to sustain a load for a set time without any recharging. To factor in solar, you would typically calculate your nightly energy usage and ensure your battery bank can cover that, assuming your solar panels replenish it during the day. Use a solar battery bank calculator for more advanced scenarios.
Why is a safety margin so important?
A safety margin accounts for several real-world factors: batteries lose capacity as they age, power inverters are not 100% efficient, and actual power draw can be higher than the average. Without a margin, your system could shut down unexpectedly. [16]

Related Tools and Internal Resources

To continue planning your power system, explore these related resources:

© 2026 Your Website. All rights reserved. Calculations are for estimation purposes only.



Leave a Reply

Your email address will not be published. Required fields are marked *