Battery Capacity Calculator
Calculate the required battery capacity for a desired runtime and power consumption.
This free online battery capacity calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.
Average current draw in milliamps
How long you want the battery to last
Extra capacity for real-world inefficiency
Results
Required Capacity
6000 mAh
Base Capacity (no margin)
5000 mAh
Energy (at 3.7V)
22.2 Wh
How to Use This Calculator
Enter your input values
Fill in all required input fields for the Battery Capacity Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.
Review your inputs
Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The Battery Capacity Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
When to Use This Calculator
- •Use the Battery Capacity Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
- •Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
- •Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
- •Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.
Related Calculators
Battery Life Calculator
Estimate battery life based on battery capacity and device power consumption.
Final Grade Calculator
Calculate the score you need on your final exam to achieve your desired course grade.
RAID Calculator
Calculate usable storage capacity, fault tolerance, and performance characteristics for different RAID levels.
Bandwidth Calculator
Calculate bandwidth requirements and data transfer rates for files and streaming.
Binary to Decimal Converter
Convert between binary (base 2) and decimal (base 10) numbers. Essential for computer science, networking, and digital electronics.
BPM Calculator
Calculate tempo in beats per minute (BPM) and related musical timing values.
About Battery Capacity Calculator
The Battery Capacity Calculator determines the minimum battery capacity needed to power a device for a specified duration. When designing portable electronics, IoT devices, or backup power systems, selecting the right battery capacity is critical. This calculator factors in your device's power consumption, desired runtime, and a safety margin for real-world efficiency losses.
The Math Behind It
Formula Reference
Required Capacity
Capacity = Consumption * Hours * (1 + Margin/100)
Variables: Consumption = current draw in mA, Hours = desired runtime, Margin = safety margin percentage
Worked Examples
Example 1: Portable device battery sizing
A device draws 500mA average and needs to run for 10 hours with a 20% safety margin.
A 6000mAh (22.2 Wh) battery is needed. Choose the nearest available size, such as a 6200mAh cell.
Common Mistakes & Tips
- !Not including a safety margin, leading to shorter-than-expected runtime.
- !Using peak current draw instead of average, oversizing the battery unnecessarily.
- !Forgetting that voltage affects energy capacity; mAh comparisons are only valid at the same voltage.
Related Concepts
Used in These Calculators
Calculators that build on or apply the concepts from this page:
Frequently Asked Questions
What safety margin should I use?
A 20% margin is standard for most applications. Use 30% for critical devices, outdoor use in extreme temperatures, or batteries expected to age significantly during the product lifetime.
How do I convert between mAh and Wh?
Wh = mAh * V / 1000, where V is the nominal voltage. For a 3.7V lithium-ion battery: 5000 mAh = 18.5 Wh. For a 1.5V AA battery: 2500 mAh = 3.75 Wh.
Embed this calculator on your site
Paste this snippet into your blog, course page, or documentation to drop a live, interactive Battery Capacity Calculator into your page.
Free to embed — includes a link back to MegaCalc.