If you have ever sized a battery bank, calculated the operating cost of a heater, or estimated the runtime of an ESP32 on a coin cell, you have relied on the electric energy formula. While power tells you how fast a circuit is consuming work at any given millisecond, energy tells you the total volume of work consumed over time. Think of power as the flow rate of water through a pipe (gallons per minute), and energy as the total volume of water that fills the bucket (gallons).
Getting this calculation right is the difference between a solar setup that runs all weekend and one that dies at 2:00 AM. Below, we break down the formula, map out every variable, and walk through real-world bench and jobsite scenarios where unit tracking saves you from expensive mistakes.
The Core Electric Energy Formula and Symbol Definitions
The fundamental electric energy formula is deceptively simple:
E = P × t
Because power (P) in a DC circuit is the product of voltage and current (P = V × I), the formula is frequently expanded to:
E = V × I × t
Here is the complete spec-sheet-table defining every symbol, its standard SI unit, and the practical unit you will actually see on utility bills and battery spec sheets.
| Symbol | Quantity | Standard SI Unit | Practical Utility Unit |
|---|---|---|---|
| E | Energy | Joule (J) | Watt-hour (Wh) or Kilowatt-hour (kWh) |
| P | Power | Watt (W) | Kilowatt (kW) |
| t | Time | Second (s) | Hour (h) |
| V | Voltage | Volt (V) | Volt (V) |
| I | Current | Ampere (A) | Ampere (A) or milliampere (mA) |
| R | Resistance | Ohm (Ω) | Ohm (Ω) |
Rearranged Forms: Solving for Any Variable
On the bench, you rarely have all the variables handed to you. You might know your battery capacity in Watt-hours and your load current, but need to find the runtime. Here are the rearranged forms solving for each primary variable, including expansions using Ohm's Law (V = I × R):
- Solving for Power: P = E / t
- Solving for Time: t = E / P
- Solving for Current (DC): I = E / (V × t)
- Solving for Voltage (DC): V = E / (I × t)
- Solving for Resistance (using E = I² × R × t): R = E / (I² × t)
- Solving for Current (using Resistance): I = √(E / (R × t))
When the Formula Applies (and When It Breaks)
The basic E = V × I × t formula assumes a Direct Current (DC) circuit or a purely resistive Alternating Current (AC) load, like an incandescent bulb or a resistive space heater. In these cases, the Power Factor (PF) is exactly 1.0.
When it breaks: If you are calculating energy for reactive AC loads—like induction motors, transformers, or fluorescent lighting ballasts—the voltage and current waveforms are out of phase. You must multiply by the Power Factor: E = V × I × PF × t. If you ignore a motor's PF of 0.8, your calculated energy will be 20% lower than what the utility meter actually records.
Unit mistakes that break the math: The most common failure mode is mixing time bases. If you multiply Watts by minutes, you get Watt-minutes, not Watt-hours. If you multiply Kilowatts by seconds, you get Kilojoules, not Kilowatt-hours. Always convert time to hours when targeting Wh/kWh, or convert time to seconds when targeting Joules.
Realistic answer magnitudes: To build intuition, a standard AA alkaline battery holds roughly 10,000 Joules (about 2.7 Wh). A 100Ah 12V LiFePO4 battery holds 1,200 Wh (4.32 Megajoules). The average US household consumes about 30 kWh per day (108 Megajoules), according to the U.S. Energy Information Administration. If your calculation says a toaster used 500 kWh in ten minutes, you have dropped a decimal or mixed up Watts and Kilowatts.
Worked Problems: Tracking Units from Bench to Breaker Panel
Let's run through two distinct scenarios. Notice how every intermediate step explicitly tracks units to prevent conversion errors.
Problem 1: The Jobsite Space Heater (AC Resistive)
Prompt: A 1500W space heater is plugged into a 120V outlet and runs for 45 minutes. Calculate the energy consumed in kWh, and find the cost if electricity is $0.16 per kWh.
- Identify knowns: P = 1500 W, t = 45 minutes, Rate = $0.16 / kWh.
- Convert units to match the target (kWh):
P = 1500 W ÷ 1000 = 1.5 kW.
t = 45 minutes ÷ 60 = 0.75 hours. - Apply the formula:
E = P × t
E = 1.5 kW × 0.75 h = 1.125 kWh. - Calculate cost:
Cost = 1.125 kWh × $0.16/kWh = $0.18.
Problem 2: The ESP32 Deep Sleep Cycle (Low-Power DC)
Prompt: An ESP32 dev board runs a sensor read at 5V drawing 80mA for 2 minutes, then enters deep sleep at 3.3V drawing 10 µA for 58 minutes. Find the total energy for this 1-hour cycle in milliwatt-hours (mWh).
- Calculate Active Energy (E_active):
V = 5V, I = 80 mA, t = 2 mins ÷ 60 = 0.0333 hours.
P_active = 5V × 80mA = 400 mW.
E_active = 400 mW × 0.0333 h = 13.33 mWh. - Calculate Sleep Energy (E_sleep):
V = 3.3V, I = 10 µA = 0.01 mA, t = 58 mins ÷ 60 = 0.9667 hours.
P_sleep = 3.3V × 0.01 mA = 0.033 mW.
E_sleep = 0.033 mW × 0.9667 h = 0.0319 mWh. - Sum the cycle energy:
E_total = 13.33 mWh + 0.0319 mWh = 13.36 mWh.
Bench Insight: Notice that the sleep phase consumes virtually zero energy compared to the active phase. This is why optimizing deep-sleep wake times is vastly more impactful for battery life than shaving microamps off the sleep current. For a deeper look at SI unit standardization in these measurements, refer to the BIPM SI Defining Constants.
Real-World Scenario: Sizing an Off-Grid Battery Bank
Formulas are useless if you misinterpret the physical hardware. Here is a walkthrough of a very common off-grid solar mistake where the electric energy formula was applied correctly, but the hardware specs were misread.
The Setup
A maker wants to power a 12V DC camping fridge (60W average) and a 12V DC Wi-Fi router (15W) for 24 hours using a single 12V LiFePO4 battery. They need to know what Amp-hour (Ah) battery to buy.
The Numbers
- Total Power: 60W (fridge) + 15W (router) = 75W.
- Total Time: 24 hours.
- Total Energy Required: E = 75W × 24h = 1800 Wh.
- Convert to Battery Amp-hours: Since E = V × I × t, and Battery Capacity in Ah is essentially (I × t), we divide Energy by Voltage.
Capacity = 1800 Wh / 12V = 150 Ah.
The Outcome
The maker goes online and buys a '12V 100Ah LiFePO4 Battery' because 100 Amps sounds like a massive amount of current, easily covering a 75W load (which only pulls about 6.25 Amps at 12V). They wire it up. The battery dies completely in 16 hours, and the BMS (Battery Management System) triggers a low-voltage disconnect, crashing the Wi-Fi network.
What Went Wrong
The maker fell victim to two distinct errors:
- Confusing Amps with Amp-hours: A 100Ah battery cannot deliver 150Ah of energy. The '100A' number is a measure of capacity over time, not instantaneous current delivery. They needed a 150Ah battery, minimum.
- Ignoring Depth of Discharge (DoD) and Efficiency: Even if they had bought a 150Ah battery, LiFePO4 chemistry should not be regularly drained to 0%. To preserve cycle life, you should limit DoD to 80%. Furthermore, if they were using an inverter for any AC loads, inverter efficiency (typically 85-90%) would eat into the budget.
The Corrected Calculation:
Required Usable Capacity = 150 Ah.
Actual Battery Size = 150 Ah / 0.80 (DoD limit) = 187.5 Ah.
The maker should have purchased a 200Ah LiFePO4 battery to safely meet the 1800 Wh energy requirement without triggering the BMS low-voltage cutoff.
Mastering the electric energy formula is not just about memorizing E = P × t. It is about rigorously tracking your units, understanding the physical limitations of your power source, and applying the right derating factors for the real world.






