Windows already measures how much power your laptop draws. It just doesn't show it as watts. If you run powercfg /batteryreport, the Battery usage section lists each recent stretch on battery with its duration and the energy drained. Divide one by the other and you have a real, measured power draw, which is a much better input for "how long will this battery last?" than a guess.
Here's the math, a small JavaScript version, and the gotchas I hit when I built a calculator around it.
The two formulas
Capacity in the report is energy, in milliwatt-hours (mWh). So:
average watts = energy drained (Wh) / duration (h) runtime (h) = Full Charge Capacity (Wh) × start % / average watts Wh = mWh / 1000. That's all of it.
A real example
From the battery report of the office ThinkPad I use (3 November 2026):
- Full Charge Capacity: 27,380 mWh
- Design Capacity: 47,520 mWh
- One Battery usage row: 19,080 mWh drained in 0:48:05
19.08 Wh ÷ 0.801 h ≈ 23.8 W. Then 27.38 Wh ÷ 23.8 W ≈ 1 h 9 min from 100%, and about 2 h 0 min on a new battery (47.52 Wh).
The report's own Battery life estimates table said 1:14:05 at full charge, averaged since the OS was installed. Five minutes apart, from two very different methods. Good enough to trust.
In JavaScript
function parseDuration(text) { // "0:48:05" -> hours const [h, m, s] = text.split(':').map(Number); return h + m / 60 + s / 3600; } function toNumber(text) { // "19,080 mWh" -> 19080 return Number(String(text).replace(/[^0-9.]/g, '')); } function averageWatts(energyDrained, duration) { return (toNumber(energyDrained) / 1000) / parseDuration(duration); } function runtimeHours(capacity, watts, startPercent = 100) { return (toNumber(capacity) / 1000) * (startPercent / 100) / watts; } function formatHours(hours) { let h = Math.floor(hours); let m = Math.round((hours - h) * 60); if (m === 60) { h += 1; m = 0; } return `${h} h ${m} min`; } const watts = averageWatts('19,080 mWh', '0:48:05'); console.log(watts.toFixed(1)); // 23.8 console.log(formatHours(runtimeHours('27,380 mWh', watts))); // 1 h 9 min console.log(formatHours(runtimeHours('47,520 mWh', watts))); // 2 h 0 min console.log(formatHours(runtimeHours('27,380 mWh', watts, 50))); // 0 h 35 min Gotchas
1. Numbers come with thousands separators and units. 19,080 mWh, not 19080. Strip everything that isn't a digit or a dot before parsing. (On a non-English Windows the separator can be a dot or a space, so don't rely on the comma.)
2. Short rows lie. A 40-second row that drained 310 mWh works out to about 28 W. Wake-up spikes, Windows updates and the screen coming on make tiny rows noisy. Pick a row that's at least 20–30 minutes long and matches how you normally use the laptop.
3. Use Full Charge Capacity, not Design Capacity. Design is what the battery held when new. On a worn battery the difference is huge: on my ThinkPad, the same workload is 1 h 9 min today versus 2 h on a new battery.
4. Battery health scales runtime directly. At 57.6% health, the battery holds 57.6% of its original energy, so the same workload runs for about 57.6% as long.
5. Real life ends before 0%. Windows usually sleeps or hibernates at a low battery level, so the usable time is a bit shorter than the formula says.
6. mAh needs voltage. If someone gives you a battery in mAh, you need the pack voltage: Wh = mAh × V / 1000. Never divide mAh by watts.
Why not just trust Windows' estimate?
Windows averages every battery session since the OS install. That's a good long-term number. The formula above answers a more specific question: how long will it last at this workload, from this charge, or after a battery replacement?
I wrapped this into a free calculator that runs entirely in the browser (enter the energy and duration from one Battery usage row and it works out the watts for you): Laptop battery life calculator. Disclosure: it's my site.