Power and energy are not the same thing, though they are constantly confused on equipment nameplates and utility bills. Power is the rate at which work is done (like the flow rate of water through a pipe), while energy is the total work completed over time (the total volume of water in the bucket). The fundamental power energy formula bridges these two concepts, allowing you to size battery banks, estimate electricity costs, and calculate thermal dissipation on a PCB. Here is the direct answer: the base formula is E = P × t, where Energy equals Power multiplied by time.
But plugging numbers into E = P × t without tracking units is the fastest way to brick a microcontroller or strand an off-grid cabin in the dark. Below, we break down the derivation, the unit traps, and how this formula actually behaves on the workbench.
The Core Power Energy Formula and Symbol Definitions
The foundational relationship between energy, power, and time is expressed as:
To use this correctly, you must align your units. The International System of Units (SI) defines the strict relationship, but practical electrical work often mixes SI and imperial-derived commercial units. According to the NIST Guide to the SI, the joule is the standard unit of energy, but the watt-hour dominates the electrical industry.
| Symbol | Quantity | Strict SI Unit | Common Practical Unit | Conversion Factor |
|---|---|---|---|---|
| E | Energy | Joule (J) | Watt-hour (Wh) or Kilowatt-hour (kWh) | 1 Wh = 3,600 J |
| P | Power | Watt (W) | Watt (W) or Kilowatt (kW) | 1 kW = 1,000 W |
| t | Time | Second (s) | Hour (h) | 1 h = 3,600 s |
Rearranged Forms: Solving for Every Variable
On the bench, you rarely have all three variables handed to you. You usually need to isolate the missing value. Here are the rearranged forms you will use constantly:
- Solving for Power: P = E / t (Use this when you know a battery's total capacity in Wh and need to know the maximum continuous wattage it can supply over a specific discharge window).
- Solving for Time: t = E / P (Use this to calculate runtime. If you have a 500Wh UPS and a 100W router, t = 500 / 100 = 5 hours).
The Electrical Derivation
Because power in a DC circuit is the product of voltage and current (P = V × I), we can substitute this into the base formula to get the expanded electrical energy equation:
E = V × I × t
This expanded form is critical when you are measuring a circuit with a multimeter. If your Fluke reads 12.4V and your clamp meter reads 2.1A, your power is 26.04W. Leave that running for 3 hours, and you have consumed 78.12Wh of energy.
When the Formula Applies (and When It Breaks)
The E = P × t formula is bulletproof, but its assumptions are where DIYers get into trouble.
Assumption 1: Constant Power Draw
The basic formula assumes P is constant. If your load varies—like an ESP32 waking up to transmit MQTT data and then returning to deep sleep—you cannot just use the peak power. You must either calculate the energy for each discrete state and sum them, or use the calculus-based integral of power over time: E = ∫ P(t) dt. In practice, we use a weighted average based on duty cycle.
Assumption 2: AC Real Power vs. Apparent Power
In AC circuits, the formula still applies, but P must be Real Power (measured in Watts), not Apparent Power (measured in Volt-Amps, VA). If you are running an inductive load like an AC motor with a power factor (PF) of 0.8, and your meter reads 120V and 10A, your apparent power is 1200VA. But your real power is 1200 × 0.8 = 960W. Your energy consumption (and what the utility bills you for) is based on the 960W figure. Using VA instead of W in the energy formula will overestimate your energy use by 20%.
Unit Mistakes That Break the Math
The most common fatal error is mixing seconds and hours.
The Trap: Multiplying Watts by seconds gives you Joules. Multiplying Watts by hours gives you Watt-hours.
The Fix: Always convert time to hours if you want Wh, or convert power to kilowatts if you want kWh. Never multiply kilowatts by seconds and expect a useful number without applying the 3600-second conversion factor.
What Does a Realistic Magnitude Look Like?
To build intuition, anchor your mental model to 1 kWh. One kilowatt-hour equals 3.6 Megajoules. In physical terms, 1 kWh will:
- Run a 100W incandescent bulb for 10 hours.
- Run a 1500W space heater for exactly 40 minutes.
- Power a modern Energy Star refrigerator for roughly 24 to 30 hours (depending on ambient temperature and duty cycle).
Solved Problems: Unit Tracking from Milliwatts to Megajoules
Let's run through two distinct scenarios, tracking every unit conversion to ensure the math holds up.
Problem 1: ESP32 Deep Sleep Energy Budget
Setup: An ESP32-WROOM-32 draws 160 mA at 3.3V for 2 seconds while awake (transmitting via WiFi), then drops to 10 µA at 3.3V for 58 seconds in deep sleep. Calculate the total energy consumed in one 60-second cycle, expressed in Joules.
Step-by-Step Solution:
- Convert currents to Amps: 160 mA = 0.160 A; 10 µA = 0.000010 A.
- Calculate Awake Power (P_awake): P = V × I = 3.3V × 0.160A = 0.528 W.
- Calculate Sleep Power (P_sleep): P = V × I = 3.3V × 0.000010A = 0.000033 W.
- Calculate Awake Energy (E_awake): E = P × t = 0.528 W × 2 s = 1.056 J.
- Calculate Sleep Energy (E_sleep): E = P × t = 0.000033 W × 58 s = 0.001914 J.
- Sum Total Energy: E_total = 1.056 J + 0.001914 J = 1.057914 Joules.
Bench Insight: Notice that the sleep phase consumes less than 0.2% of the total energy despite taking 96% of the time. The awake transmission dominates the energy budget.
Problem 2: Level 2 EV Charger Session Cost
Setup: A Level 2 EV charger operates at 240V and draws 32A continuously for 4.5 hours. The local utility charges $0.16 per kWh. Find the total energy in kWh and the session cost. (Assume PF = 1.0 for the resistive/rectifier load profile).
Step-by-Step Solution:
- Calculate Power in Watts: P = V × I = 240V × 32A = 7,680 W.
- Convert Power to Kilowatts: 7,680 W / 1,000 = 7.68 kW.
- Calculate Energy in kWh: E = P × t = 7.68 kW × 4.5 h = 34.56 kWh.
- Calculate Cost: 34.56 kWh × $0.16/kWh = $5.53.
Bench Insight: According to the U.S. Department of Energy, understanding these exact kilowatt-hour figures is essential for sizing residential solar arrays to offset EV charging loads.
Real-World Scenario: Sizing a 12V LiFePO4 Bank for an Off-Grid Fridge
Formulas are clean; real-world loads are messy. Here is a scenario where blindly applying E = P × t using nameplate data leads to an expensive mistake.
The Setup
You are wiring a 12V DC compressor fridge for an off-grid cabin. The nameplate on the back reads: "12V DC, 5.0A (60W)". You want the fridge to run for 24 hours without solar input. You need to size a 12V LiFePO4 battery bank.
The Naive Numbers
- Identify Power: P = 60W.
- Identify Time: t = 24h.
- Calculate Energy: E = 60W × 24h = 1,440 Wh.
- Select Battery: A standard 12V 100Ah LiFePO4 battery holds roughly 1,280Wh. To cover 1,440Wh, you buy two 100Ah batteries in parallel (2,560Wh total) to ensure you don't hit the BMS low-voltage cutoff. Total cost: ~$600.
The Outcome and What Went Wrong
You install the massive battery bank. A week later, you check your battery monitor (shunt) and realize the fridge has only consumed 480 Wh over 24 hours. You massively overspent and over-engineered the system. Here is why the naive math failed:
- The Duty Cycle Trap: The 60W nameplate rating is the peak running wattage when the compressor motor is actively spinning. Compressor fridges do not run continuously; they cycle on and off to maintain temperature. In a 70°F cabin, this fridge might have a 35% duty cycle. The average power is actually 60W × 0.35 = 21W.
- The Inverter Phantom Load (If AC was used): If you had used a 120V AC fridge plugged into a 12V-to-120V inverter, the inverter itself draws idle current just to keep its internal transformers and logic energized. A typical modified sine wave inverter draws 1.5A at 12V (18W) doing absolutely nothing. If you only calculated the fridge's energy and ignored the inverter's 432Wh daily phantom drain (18W × 24h), your battery would die prematurely.
- The Corrected Math: Using the real-world average power of 21W, the true energy requirement is E = 21W × 24h = 504 Wh. A single 12V 50Ah LiFePO4 battery (640Wh) would have handled the job perfectly, saving you $300 and 30 lbs of weight.
The power energy formula is an exact mathematical law, but its output is only as good as the reality of the variables you feed it. Always measure average power with a watt-meter over a full operational cycle before committing to a battery purchase.






