The fundamental formula for kWh (kilowatt-hours) is kWh = (P × t) / 1000, where P is power in watts and t is time in hours. For single-phase AC circuits driving inductive or capacitive loads (like motors or transformers), the formula expands to account for real power: kWh = (V × I × PF × t) / 1000. This metric is the universal standard for electrical energy billing and battery capacity sizing.
The Core Formula for kWh and Symbol Definitions
Energy is the capacity to do work over time. While power (Watts) tells you the instantaneous rate of energy transfer, energy (kWh) tells you the total volume of work completed. The U.S. Energy Information Administration (EIA) defines the kilowatt-hour as the standard unit of electrical energy equivalent to one kilowatt (1,000 watts) of power expended for one hour.
Below is the spec-sheet breakdown of every variable in the expanded AC energy equation. Understanding these symbols prevents the most common calculation errors on the bench and in the field.
| Symbol | Quantity | Standard Unit | Field Notes & Assumptions |
|---|---|---|---|
| E | Energy | kWh | The final billing, consumption, or battery capacity metric. |
| P | Real Power | Watts (W) | The actual work-producing power. For DC or purely resistive AC, P = V × I. |
| V | Voltage | Volts (V) | Use RMS voltage for AC circuits. Use nominal voltage for battery banks. |
| I | Current | Amps (A) | Use RMS current for AC. Measured via clamp meter or shunt. |
| t | Time | Hours (h) | Must be strictly in hours. Minutes or seconds will break the equation. |
| PF | Power Factor | Dimensionless (0 to 1) | The ratio of real power to apparent power. Resistive loads = 1.0. Motors = 0.7 to 0.9. |
Rearranged Forms: Solving for Power, Time, and Current
On a jobsite or when sizing a solar array, you rarely just solve for E. You usually know your energy budget and need to find out how long a load can run, or what size wire and breaker you need for a given energy draw. Here are the algebraic rearrangements of the core formula:
- Solve for Real Power (Watts):
P = (kWh × 1000) / t
Use case: You have a 5 kWh daily budget and need to run a heater for 4 hours. What is the max wattage? (1250W). - Solve for Time (Hours):
t = (kWh × 1000) / P
Use case: Sizing runtime for a portable power station. How long will a 1.5 kWh Jackery run a 60W fan? (25 hours). - Solve for Current (Amps, AC):
I = (kWh × 1000) / (V × PF × t)
Use case: Back-calculating the ampacity requirement for a feeder cable based on a machine's daily energy consumption log. - Solve for Power Factor (Dimensionless):
PF = (kWh × 1000) / (V × I × t)
Use case: Diagnosing motor health. If your calculated PF drops below 0.6 under load, the motor may be severely oversized or failing.
Worked Examples with Strict Unit Tracking
The most common reason DIYers and junior technicians get wrong answers is dropping a zero or failing to convert time units. Let's track the units explicitly through two distinct scenarios.
Problem 1: Resistive DC/AC Load (Space Heater)
Scenario: You run a 1500W ceramic space heater on a 120V circuit for 4.5 hours. Calculate the energy consumed.
- Identify Knowns: P = 1500 W, t = 4.5 h. (Because it is a resistive load, PF = 1.0, so we use the simplified formula).
- Setup Equation: E = (P × t) / 1000
- Substitute with Units: E = (1500 W × 4.5 h) / 1000 W/kW
- Calculate Numerator: 1500 × 4.5 = 6750 Wh (Watt-hours)
- Apply Denominator: 6750 Wh / 1000 = 6.75 kWh
Problem 2: Inductive AC Load (Well Pump Motor)
Scenario: A 240V single-phase submersible well pump draws 12A on its nameplate. The motor datasheet lists a Power Factor (PF) of 0.85. The pressure switch cycles the pump on for a total of 45 minutes over the course of the day. Calculate the daily energy use.
- Identify Knowns: V = 240 V, I = 12 A, PF = 0.85, t = 45 minutes.
- Convert Time (Critical Step): The formula demands hours. t = 45 min / 60 min/h = 0.75 h.
- Setup Equation: E = (V × I × PF × t) / 1000
- Substitute with Units: E = (240 V × 12 A × 0.85 × 0.75 h) / 1000
- Calculate Numerator: 240 × 12 = 2880 VA (Apparent Power). 2880 × 0.85 = 2448 W (Real Power). 2448 W × 0.75 h = 1836 Wh.
- Apply Denominator: 1836 Wh / 1000 = 1.836 kWh
Assumptions, Unit Traps, and Realistic Magnitudes
When the Formula Applies (and When it Doesn't)
The standard formula assumes a steady-state load. If your voltage, current, or power factor remains constant over time t, the algebraic formula is perfectly accurate. However, if the load is highly variable—like an air conditioner compressor cycling on and off, or a wind turbine charging a battery—the algebraic formula fails. For variable loads, energy is the integral of power over time. In practice, you must use a smart plug or energy monitor (like a Shelly EM or Emporia Vue) that samples the circuit at 1Hz or higher and performs numerical integration (Riemann sums) to calculate the true kWh.
Unit Mistakes That Break the Math
- The kW vs W Trap: If your appliance nameplate already says "1.5 kW", do not divide by 1000 again. The formula becomes
kWh = kW × t. Dividing 1.5 by 1000 yields 0.0015, shrinking your result by a factor of 1000. - The Minutes Trap: Plugging "45" directly into the t variable instead of "0.75" will inflate your energy calculation by 60 times.
- The 3-Phase Trap: The formulas above are for DC and single-phase AC. For 3-phase AC, you must multiply the numerator by √3 (1.732) and use the line-to-line voltage:
kWh = (√3 × V_LL × I × PF × t) / 1000.
What a Realistic Answer Magnitude Looks Like
Developing an intuition for kWh prevents catastrophic sizing errors. According to the EIA's residential consumption data, the average U.S. home uses about 30 kWh per day (roughly 900 kWh per month). Use these benchmarks to sanity-check your math:
- LED Bulb (10W) on for 5 hours: 0.05 kWh. (If you calculate 5 kWh, you forgot to divide by 1000).
- Modern Refrigerator: 1.0 to 2.0 kWh per day. (It has a 400W compressor, but it only runs ~25% of the time).
- Level 2 EV Charger (7.2kW) for 8 hours: 57.6 kWh.
- Whole-house AC (4-ton, ~14 SEER): 25 to 40 kWh per day during peak summer.
Frequently Asked Questions About kWh Calculations
How do I apply the formula for kWh to a 12V LiFePO4 battery bank?
When dealing with DC batteries, you rarely measure Watts directly; instead, you read Amp-hours (Ah). The rearranged formula for battery energy is kWh = (V_nominal × Ah) / 1000. A critical mistake DIYers make is using the fully-charged resting voltage (13.6V) instead of the nominal voltage. For a LiFePO4 battery, always use the nominal 12.8V. Therefore, a 12.8V 100Ah server-rack battery holds exactly (12.8 × 100) / 1000 = 1.28 kWh of total energy. For lead-acid, use 12.0V nominal, and remember you can only safely discharge to 50% Depth of Discharge (DoD), effectively halving your usable kWh.
Why does my smart plug's kWh reading differ from my manual calculation?
If you calculate 1.44 kWh for a 1200W microwave run for 1.2 hours, but your smart plug shows 0.85 kWh, your math isn't wrong—your assumption about the load is. Microwaves, refrigerators, and HVAC systems use thermostats or magnetrons that cycle. The nameplate states the peak draw, not the average draw. The smart plug is measuring the actual duty cycle. Furthermore, cheap smart plugs sample at low rates and miss the inrush current of motors, sometimes under-reporting by 5-10% compared to a true-RMS revenue-grade meter.
What is the difference between the formula for kWh and kVAh?
kWh measures real energy (the work actually done, like heat or mechanical rotation). kVAh measures apparent energy (the total current pushed through the wires, including the reactive component that just sloshes back and forth in inductive/capacitive fields). The formula for kVAh drops the Power Factor: kVAh = (V × I × t) / 1000. Residential utility meters only bill for kWh. However, if you are sizing an inverter, transformer, or UPS, you must size the equipment's kVA capacity to handle the apparent power, even though you only pay the utility for the kWh.






