The Core Formula for Energy and Power

The fundamental relationship between electrical power and energy dictates everything from sizing a breaker panel to calculating the battery bank for an off-grid solar array. Power is the rate at which work is done, while energy is the total work accomplished over time.

The direct answer for DC circuits and purely resistive AC circuits relies on two foundational equations:

  • Power: P = V × I
  • Energy: E = P × t

By substituting the power equation into the energy equation, we get the combined formula for energy and power:

E = V × I × t

Below is the spec-sheet table defining every symbol, its standard SI unit, and the practical alternatives you will encounter on the jobsite or in a datasheet.

Symbol Quantity Standard SI Unit Common Practical Units
EEnergyJoule (J)Watt-hour (Wh), kilowatt-hour (kWh)
PPowerWatt (W)Kilowatt (kW), Horsepower (hp)
VVoltage (Potential Difference)Volt (V)Millivolt (mV)
ICurrentAmpere (A)Milliamp (mA), Microamp (μA)
tTimeSecond (s)Hour (h), Minute (min)

Rearranged Forms for Every Variable

On the bench, you rarely have all variables handed to you. Here are the algebraic rearrangements of the combined formula, solving for each individual variable. These assume a constant DC load or a unity power factor AC load.

  • Solving for Energy: E = V × I × t
  • Solving for Power: P = E / t (also P = V × I)
  • Solving for Time: t = E / (V × I) (also t = E / P)
  • Solving for Voltage: V = E / (I × t) (also V = P / I)
  • Solving for Current: I = E / (V × t) (also I = P / V)

Note: By substituting Ohm's Law (V = I × R), you can also express energy as E = I² × R × t or E = (V² / R) × t, which is critical when calculating heat dissipation in resistors or wire losses.

Solved Problems: From Bench to Breaker Panel

Abstract formulas fail when unit conversions are ignored. Below are two worked problems demonstrating strict dimensional analysis (unit tracking) to ensure the final magnitude is correct.

Problem 1: Mains Baseboard Heater (AC Resistive)

Scenario: A 240V AC baseboard heater draws 12.5A. It runs for 45 minutes. Calculate the energy consumed in both kilowatt-hours (kWh) and Megajoules (MJ).

  1. Calculate Power (P):
    P = V × I
    P = 240 V × 12.5 A = 3,000 W (or 3 kW)
  2. Convert Time (t) to Hours:
    t = 45 min × (1 hr / 60 min) = 0.75 hours
  3. Calculate Energy in kWh:
    E = P × t
    E = 3 kW × 0.75 h = 2.25 kWh
  4. Convert to Joules (SI Unit):
    1 Watt = 1 Joule / second. Therefore, 1 Wh = 3,600 Joules.
    E = 2,250 Wh × 3,600 J/Wh = 8,100,000 J = 8.1 MJ

Problem 2: ESP32 Deep Sleep Cycle (Embedded DC)

Scenario: An ESP32-WROOM-32 operates on a 3.3V rail. It stays active (transmitting via WiFi) at 80mA for 5 seconds, then enters deep sleep at 15μA for 355 seconds. Calculate the total energy per 360-second cycle in Joules.

  1. Active Phase Energy:
    E_active = V × I_active × t_active
    E_active = 3.3 V × 0.080 A × 5 s = 1.32 J
  2. Sleep Phase Energy:
    E_sleep = V × I_sleep × t_sleep
    E_sleep = 3.3 V × 0.000015 A × 355 s = 0.01757 J
  3. Total Cycle Energy:
    E_total = 1.32 J + 0.01757 J = 1.33757 J

Takeaway: The active transmission consumes over 98% of the energy, despite occupying less than 2% of the time. This is why optimizing wake-time is critical for battery-powered IoT.

Real-World Scenario: Sizing a 12V LiFePO4 Bank

Let us look at a scenario where the math was technically correct, but the real-world physics caused a system failure.

The Setup: You are sizing a battery bank for an off-grid cabin to run a 12V DC compressor fridge. The fridge nameplate states an average draw of 45W. You need it to run for 24 hours without solar input.

The Numbers:
E_required = P × t
E_required = 45 W × 24 h = 1,080 Wh.
You purchase a 100Ah 12V LiFePO4 battery. The label says 12V × 100Ah = 1,200 Wh. You have a 120Wh buffer. You wire it up using 10 AWG copper wire over a 15-foot run.

The Outcome: The fridge runs perfectly on day one. On day two, at roughly the 20-hour mark, the fridge shuts off. The battery BMS (Battery Management System) has triggered a Low Voltage Disconnect (LVD).

What Went Wrong:
The formula E = V × I × t assumes constant voltage and ignores system losses. Three real-world factors broke the assumption:

  1. Nominal vs. Actual Voltage: A '12V' LiFePO4 battery has a nominal voltage of 12.8V. 12.8V × 100Ah = 1,280Wh. However, as the battery discharges, the voltage sags from 14.4V down to 12.0V. The usable energy curve is not linear.
  2. Depth of Discharge (DoD) Limits: To achieve a 4,000-cycle lifespan, LiFePO4 manufacturers recommend an 80% DoD. 1,280 Wh × 0.80 = 1,024 Wh of practically usable energy. Your 1,080Wh requirement already exceeded the safe buffer.
  3. Voltage Drop and Startup Surges: Compressor fridges have a Locked Rotor Amperage (LRA) startup surge. While running at 4A (approx 45W at 12V), the startup surge can hit 25A. According to NEC Chapter 9 Table 8, 10 AWG copper has a resistance of ~1.24 ohms per 1,000 ft. A 30-foot round trip at 25A causes a voltage drop of nearly 1V. If the battery terminal is at 11.8V (near empty), the wire drop pulls the voltage at the BMS sense line below the 11.0V LVD threshold, tripping the system instantly.

Fix: Upsize to a 150Ah battery, use 6 AWG wire to minimize transient voltage drop, and calculate based on 80% DoD. For more on estimating appliance energy use, refer to the U.S. Department of Energy guidelines.

Assumptions, Unit Traps, and Realistic Magnitudes

To use the formula for energy and power reliably, you must understand its boundaries and the common traps that lead to catastrophic sizing errors.

When the Formula Applies (and When It Doesn't)

The equations P = V × I and E = P × t apply perfectly to DC circuits and purely resistive AC circuits (like incandescent bulbs or resistive heating elements).

If you are calculating energy for an inductive or capacitive AC load (like an AC motor, a transformer, or a switching power supply), you must account for the Power Factor (PF). The true power formula becomes P = V × I × cos(θ). If you ignore a motor's power factor of 0.8, your calculated energy will be 20% lower than what the utility meter actually bills you for. For a deeper dive into DC power concepts, All About Circuits provides excellent foundational theory.

Unit Mistakes That Break the Math

  • Mixing Seconds and Hours: The SI unit for time is the second. If you multiply Watts (Joules/second) by Hours, you do not get Joules; you get Watt-hours. To convert Wh to Joules, you must multiply by 3,600. Failing to do this when sizing a capacitor bank or a thermal mass will result in an answer that is off by three orders of magnitude.
  • Milliamps vs. Amps: When calculating IoT battery life, forgetting to convert μA or mA to base Amps before multiplying by Voltage will yield wildly incorrect Joule calculations.
  • kW vs W: Utility companies bill in kWh. If your appliance draws 1,500W, you must convert to 1.5kW before multiplying by hours to match your electricity bill's units.

What a Realistic Answer Magnitude Looks Like

Developing an intuition for energy magnitudes prevents 'decimal place' errors. Keep these benchmarks in mind:

  • 1 Joule: The energy required to lift a small apple (100g) one meter straight up. In electronics, it is roughly the energy of a single smartphone camera flash.
  • 1 Watt-hour (Wh): 3,600 Joules. Enough to run a 5W LED bulb for 12 minutes.
  • 1 Kilowatt-hour (kWh): 3.6 Megajoules (3,600,000 J). This is the standard unit of household electricity. It equals running a 1,000W microwave for exactly one hour, or a 100W incandescent bulb for 10 hours. The average US home consumes roughly 29 kWh per day.

By tracking your units rigorously, respecting the physical limitations of your components, and applying the correct AC/DC assumptions, the formula for energy and power transitions from a textbook abstraction into a reliable tool for system design.