Understanding Battery Capacity: mAh vs Wh
Battery capacity is the amount of electrical energy a battery can store and deliver. You'll encounter two main units: milliamp-hours (mAh) and watt-hours (Wh). Understanding the difference is crucial for calculating how long a battery will power your devices.
Milliamp-hours (mAh) measure current capacity. A 5000 mAh battery can theoretically deliver 5000 milliamps for 1 hour, or 2500 milliamps for 2 hours, or 1000 milliamps for 5 hours. This unit is common on smartphone and portable power bank specs.
Watt-hours (Wh) measure energy capacity more directly. One watt-hour equals one watt of power consumed for one hour. This unit appears frequently on laptops, tablets, and larger battery systems. A 60 Wh laptop battery, for example, can deliver 60 watts for 1 hour, or 30 watts for 2 hours.
The relationship between mAh and Wh depends on voltage. The conversion formula is: Wh = (mAh x Voltage) / 1000. A smartphone with a 5000 mAh battery at 3.7V nominal voltage equals approximately 18.5 Wh (5000 x 3.7 / 1000).
The Battery Runtime Formula
Calculating how long a battery lasts requires knowing three things: battery capacity, device power consumption, and efficiency losses.
The basic formula is:
Runtime (hours) = (Battery Capacity / Power Drain) x Efficiency Factor
Breaking this down:
Battery Capacity is your total energy supply (mAh or Wh).
Power Drain is how much power your device uses (milliamps or watts).
Efficiency Factor accounts for real-world losses (typically 0.8 to 0.9, or 80-90% efficiency).
Let's work through practical examples.
Real-World Example: Smartphone Battery
A typical modern smartphone has a 5000 mAh battery at 3.7V nominal voltage, which equals 18.5 Wh of energy.
Your phone's display, processor, and wireless radios consume power differently depending on usage. During typical mixed use (some browsing, messaging, light video), assume an average drain rate of 400 mA.
Using the mAh formula: Runtime = (5000 mAh / 400 mA) x 0.85 efficiency = 10.625 hours
This aligns with real-world experience: a heavily used smartphone typically lasts through a day of normal use before needing a charge.
If you switch to light use (mostly idle with occasional messages), the drain might drop to 150 mA. The same 5000 mAh battery now lasts: (5000 / 150) x 0.85 = 28.3 hours. Heavy use (continuous video, gaming, maximum brightness) might draw 800 mA, reducing runtime to just (5000 / 800) x 0.85 = 5.3 hours.
Laptop Battery Example
A laptop with a 60 Wh battery provides different runtimes based on workload.
Under light use (web browsing, word processing), a typical laptop might draw 12 watts of power. The calculation is straightforward: Runtime = 60 Wh / 12 W = 5 hours
During moderate use (video calls, development work, multiple browser tabs), power consumption rises to about 25 watts: Runtime = 60 Wh / 25 W = 2.4 hours
Under heavy load (video editing, rendering, gaming), consumption jumps to 45 watts: Runtime = 60 Wh / 45 W = 1.33 hours (about 80 minutes)
Manufacturers often claim 8-10 hours of battery life because they base estimates on very light usage patterns. Real-world performance varies significantly based on what you're actually doing.
Flashlight and Portable Device Example
A flashlight using four AA batteries provides a clear calculation example. Four AA alkaline batteries in series deliver approximately 6 volts and 2500 mAh capacity (3000 mAh per battery divided by the series configuration).
A typical LED flashlight draws 500 mA when the LED is on at full brightness. The runtime is: Runtime = (2500 mAh / 500 mA) x 0.9 = 4.5 hours
If you reduce brightness to 200 mA (many LED flashlights support this), you extend runtime to: Runtime = (2500 mAh / 200 mA) x 0.9 = 11.25 hours
Series vs Parallel Battery Configuration
Understanding how batteries connect affects total capacity and voltage.
Series configuration connects the positive terminal of one battery to the negative terminal of the next. This increases voltage while maintaining capacity. Four AA batteries in series produce 6 volts and 2500 mAh (same as one battery).
Parallel configuration connects all positive terminals together and all negative terminals together. This increases capacity while maintaining voltage. Two 2500 mAh batteries in parallel produce 1.5 volts and 5000 mAh.
A DIY project needing 12V and high capacity might use four 3.7V 5000 mAh lithium cells in series (12V, 5000 mAh) or eight cells arranged as two parallel series strings (12V, 10000 mAh total).
Efficiency and Real-World Losses
The efficiency factor accounts for several losses:
- Voltage sag: Battery voltage drops as it drains, reducing usable energy
- Conversion losses: DC-DC converters and charging circuits lose 5-20% of energy as heat
- Temperature effects: Cold reduces capacity; heat increases self-discharge
- Internal resistance: All batteries have internal resistance that causes power loss
A realistic efficiency factor ranges from 0.8 to 0.9 (80-90%). Some high-quality systems reach 0.95, while devices with simple circuits or in cold conditions might see only 0.7-0.75.
Conservative calculations use 0.8, while optimistic estimates use 0.9. Most consumer electronics deliver results around 0.85.
Charging Time Estimation
Charging time depends on battery capacity, charger output, and efficiency.
Formula: Charging Time (hours) = (Battery Capacity / Charger Output) / Efficiency
A 5000 mAh smartphone charged with a 10W charger (assuming 5V / 2A output) takes approximately: Charging Time = (5000 mAh / 2000 mA) / 0.9 = 2.78 hours (about 2 hours 47 minutes)
A 60 Wh laptop with a 65W charger takes roughly: Charging Time = (60 Wh / 65 W) / 0.9 = 1.02 hours (about 1 hour)
However, charging curves are non-linear. Most devices charge quickly initially, then slow down in the final 20% to protect battery health. Real charging times are typically 10-20% longer than these calculations suggest.
Practical Tips to Extend Battery Life
Reduce power consumption: Lower screen brightness, close background apps, disable wireless radios when unused. This is the most effective strategy.
Manage temperature: Keep batteries at room temperature. Cold dramatically reduces capacity; heat accelerates aging.
Use shallow charge cycles: Regularly charging between 20-80% instead of 0-100% can extend battery lifespan from 3-4 years to 5-6 years on lithium batteries.
Enable power-saving modes: These limit processor speed, reduce refresh rates, and disable features, often cutting power consumption in half.
Upgrade components: Replacing an old battery restores original capacity. For devices with removable batteries, this extends usable life significantly.
Putting It All Together
When you need to calculate battery runtime, follow this process:
- Identify battery capacity in mAh or Wh (check device specs or the battery label)
- Estimate power consumption in mA or W based on typical usage
- Apply the formula with a 0.85 efficiency factor as a reasonable middle ground
- Adjust based on conditions: reduce by 0.9 for cold weather, boost to 0.9 for light use in warm conditions
This approach gives you reliable estimates that match real-world performance. Whether you're choosing a power bank, selecting a laptop, or designing a custom electronics project, understanding battery runtime helps you make informed decisions about capacity and device usage patterns.
Battery calculations seem complex initially, but they reduce to a simple division: energy available divided by energy consumed. Master this single concept, and you'll understand battery behavior across all devices.