The fundamental formula for electrical energy is E = P × t (Energy equals Power multiplied by Time). When expanded using Watt’s Law, it becomes E = V × I × t (Voltage × Current × Time). In the SI system, energy is measured in Joules (J), where 1 Joule = 1 Watt × 1 second. In utility billing and battery capacity, it is practically measured in Watt-hours (Wh) or kilowatt-hours (kWh).

The Core Formula and Symbol Map

To use the energy formula correctly on the bench or in the field, you must map every variable to its strict SI or practical unit. Mixing these is the primary cause of calculation failures in DIY solar and battery builds.

Symbol Quantity Standard Unit Practical/Bench Unit
E Energy Joules (J) Watt-hours (Wh), kilowatt-hours (kWh)
P Power Watts (W) Kilowatts (kW)
t Time Seconds (s) Hours (h)
V Voltage Volts (V) Volts (V)
I Current Amperes (A) Milliamps (mA), Amps (A)

Rearranged Forms

Depending on what your multimeter or clamp meter can measure, you will need to isolate different variables. Here are the algebraic rearrangements solving for each parameter:

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

Operating Assumptions and Unit Traps

The formula E = V × I × t is deceptively simple. It relies on strict assumptions that, when violated in real-world AC or dynamic DC circuits, yield dangerously optimistic results.

When the Formula Applies

This base formula applies perfectly to purely resistive DC circuits (like a nichrome wire heater or a simple LED resistor network) where voltage and current remain constant over time. For AC circuits, you must introduce the Power Factor (PF). The true AC energy formula is E = V × I × PF × t. If you calculate the energy of an induction motor without accounting for a PF of 0.85, your calculated energy will be 15% higher than the real work performed. For varying DC loads (like an ESP32 waking from deep sleep to transmit via WiFi), the simple multiplication fails. You must use calculus: E = ∫ p(t) dt, integrating the instantaneous power over the time interval.

Unit Mistakes That Break the Math

The most common bench mistake is mixing time bases. If you multiply Watts by Hours, you get Watt-hours. If you multiply Watts by Seconds, you get Joules.

1 Watt-hour = 3,600 Joules.

If you calculate a battery's capacity in Joules but compare it to a load rated in Watt-hours without dividing by 3,600, you will overestimate your runtime by a factor of 3,600. Always convert time to seconds for Joules, and time to hours for Watt-hours.

Realistic Answer Magnitudes

Knowing what a 'normal' answer looks like prevents decimal errors.

  • Joules (J): Used for fast, high-power transients. A 10,000µF capacitor charged to 50V stores roughly 12.5 Joules. A camera flash uses about 5 to 20 Joules.
  • Watt-hours (Wh): Used for portable electronics and battery packs. A standard 18650 Li-ion cell holds about 10 to 14 Wh.
  • Kilowatt-hours (kWh): Used for household appliances and grid billing. A US home uses roughly 29 kWh per day.

Solved Problems: Tracking Units from Bench to Breaker

Let's walk through two distinct scenarios, tracking the units at every step to ensure the final magnitude makes physical sense.

Problem 1: DC LED Strip Run Time

Scenario: You are powering a 12V DC LED strip that draws 1.5 Amps. You have a 12V 7Ah (Amp-hour) sealed lead-acid battery. How long will it run, and what is the total energy in Joules?

  1. Identify Knowns: V = 12V, I = 1.5A, Battery Capacity = 7Ah.
  2. Calculate Load Power: P = V × I = 12V × 1.5A = 18 Watts.
  3. Calculate Battery Energy (Wh): E_batt = V × Capacity = 12V × 7Ah = 84 Wh.
  4. Solve for Time (Hours): t = E / P = 84 Wh / 18 W = 4.66 hours.
  5. Convert Energy to Joules: First, convert time to seconds: 4.66 hours × 3,600 s/h = 16,776 seconds. Then, E = P × t = 18W × 16,776s = 301,968 Joules.

Note: In reality, discharging a lead-acid battery at a 1.5A draw (a C/4.6 rate) triggers Peukert's Law, reducing effective capacity. Real runtime will be closer to 3.8 hours.

Problem 2: AC Resistive Heater Cost

Scenario: A 120V AC space heater draws 12.5A. It runs for 3 hours. Electricity costs $0.16 per kWh. What is the energy consumed and the cost?

  1. Identify Knowns: V = 120V, I = 12.5A, t = 3 hours, Rate = $0.16/kWh. (Assume PF = 1.0 for a purely resistive heating element).
  2. Calculate Power: P = 120V × 12.5A = 1,500 Watts (or 1.5 kW).
  3. Calculate Energy (kWh): E = P(kW) × t(h) = 1.5 kW × 3 h = 4.5 kWh.
  4. Calculate Cost: Cost = 4.5 kWh × $0.16/kWh = $0.72.

This aligns perfectly with the US Department of Energy's guidelines for estimating appliance energy use, confirming our magnitude is correct for a high-draw thermal load.

Real-World Walkthrough: Why the 500Wh LiFePO4 Pack Died Early

Theoretical formulas often clash with jobsite realities. Here is a narrative breakdown of a common DIY solar cooler failure.

The Setup: A maker wants to run a portable 12V compressor fridge off a 12V 50Ah (600Wh) LiFePO4 battery pack for an 8-hour tailgate. The fridge nameplate states it draws 5A at 12V nominal.

The Numbers: Using E = V × I × t, the fridge requires: 12V × 5A × 8h = 480 Wh. The 600Wh battery pack provides a 120Wh (20%) buffer. The math says it will easily last 8 hours.

The Outcome: The fridge runs fine for 5.5 hours, then abruptly shuts off. The battery's BMS (Battery Management System) has triggered a low-voltage cutoff.

What Went Wrong (The Assumption Failures):

  1. Voltage Sag: The formula assumed V stays at exactly 12.0V. As the LiFePO4 pack discharged, its voltage sagged to 11.4V under load. Because the fridge's compressor requires 60W of mechanical power to run, it compensated for the lower voltage by drawing more current (I = P / V). At 11.4V, the draw spiked to 5.26A, accelerating the drain.
  2. Wiring Losses: The maker used 20 feet of 14 AWG wire. This introduced roughly 0.05 ohms of resistance. At 5A, the wire wasted power as heat (P_loss = I²R = 25 × 0.05 = 1.25W). Over 5.5 hours, the wiring alone consumed nearly 7Wh of energy that never reached the fridge.
  3. Thermal Load: The tailgate ambient temperature was 85°F (29°C). The fridge's duty cycle increased from the nameplate's tested 50% to nearly 80% to maintain internal temperatures, meaning it drew current for a much larger portion of the time variable t.

The Fix: When sizing battery banks for motorized DC loads, never use the raw E = V × I × t output. Apply a 1.25x derating multiplier to account for voltage sag, wiring losses, and thermal inefficiencies. The required pack should have been sized for 600Wh minimum, but practically 750Wh to avoid the BMS cutoff knee.

Energy Unit Conversion Reference

When reading datasheets from international component manufacturers or dealing with HVAC thermal loads, you will encounter energy units outside the standard electrical realm. Use this table to bridge the gap. For deeper definitions of non-SI units, refer to the NIST Guide to the SI.

From Unit To Unit Multiply By Common Use Case
Watt-hour (Wh) Joules (J) 3,600 Capacitor discharge, physics calculations
Kilowatt-hour (kWh) Joules (J) 3,600,000 (3.6 MJ) Grid-scale energy, EV battery packs
Watt-hour (Wh) BTU (British Thermal Unit) 3.412 HVAC cooling/heating capacity
Joules (J) Calories (cal) 0.239 Thermal heating elements, chemistry
Kilowatt-hour (kWh) BTU 3,412 Gas vs Electric water heater comparison

Mastering the electrical energy formula is less about memorizing E = P × t and more about understanding the boundaries of its assumptions. Track your units relentlessly, derate for real-world parasitic losses, and your bench calculations will finally match your field results.