Energy is the capacity to do work, and in electrical engineering, quantifying it accurately separates successful designs from melted traces and undersized battery banks. While power ($P$) is the rate at which work is done, energy ($E$) is the total accumulated work over time. Whether you are sizing a LiFePO4 bank for an off-grid solar array, calculating the thermal dissipation of a busbar, or determining the discharge curve of a capacitor bank, you must rely on precise mathematical models.

This guide breaks down the fundamental formulas of energy used in DC and AC circuits, providing exact symbol definitions, algebraic rearrangements, and rigorously tracked worked examples.

The Core Formulas of Energy: Symbols and Real-World Magnitudes

Before manipulating equations, we must define the variables. In the International System of Units (SI), energy is measured in Joules (J), where 1 Joule equals 1 Watt-second NIST Guide to the SI. In practical electrical billing and battery sizing, we often use Watt-hours (Wh) or kilowatt-hours (kWh), but the foundational physics formulas require base SI units.

Symbol Quantity SI Unit Unit Abbreviation
$E$ Energy Joule J
$P$ Power Watt W
$t$ Time Second s
$V$ Voltage (Potential Difference) Volt V
$I$ Current Ampere A
$R$ Resistance Ohm $\Omega$
$C$ Capacitance Farad F
$L$ Inductance Henry H

Realistic Energy Magnitudes in Practice

A common point of failure for hobbyists is lacking an intuitive sense of what a Joule actually represents. Because a Joule is a relatively small amount of energy, electrical systems often deal in millions of Joules (Megajoules, MJ). Below is a data-dense reference table to calibrate your expectations when calculating the formulas of energy for common components and loads.

System / Component Energy Type Calculated Energy (Joules) Practical Equivalent
4700µF Capacitor at 63V Electrostatic (Stored) 9.32 J Enough to briefly flash a high-power LED or reset a microcontroller.
10mH Inductor carrying 15A Magnetic (Stored) 1.125 J Generates a massive voltage spike (inductive kickback) if switched off without a flyback diode.
CR2032 Coin Cell Battery Chemical (Total Capacity) ~1,100 J Can power a 10mA, 3V RTC circuit for roughly 100 hours.
1500W Space Heater (1 Hour) Thermal (Joule Heating) 5,400,000 J (5.4 MJ) Equivalent to 1.5 kWh of grid energy; requires 14 AWG wire minimum on a 15A breaker.
Tesla Model 3 (60 kWh Battery) Chemical (Total Capacity) 216,000,000 J (216 MJ) Enough energy to lift a 100,000 kg mass over 200 meters straight up.

Rearranged Forms, Assumptions, and Application Boundaries

The foundational equations for electrical energy are derived from the relationship between power, voltage, current, and time. Below are the primary formulas of energy alongside their algebraically rearranged forms, allowing you to solve for any missing variable.

1. General Electrical Energy (Constant Load)

  • Base: $E = P \times t$
  • Expanded (DC): $E = V \times I \times t$
  • Rearranged for P: $P = E / t$
  • Rearranged for t: $t = E / (V \times I)$

2. Joule Heating (Resistive Dissipation)

  • Base: $E = I^2 \times R \times t$
  • Alternate (using V): $E = (V^2 / R) \times t$
  • Rearranged for R: $R = E / (I^2 \times t)$
  • Rearranged for I: $I = \sqrt{E / (R \times t)}$

3. Stored Electrostatic Energy (Capacitors)

Derived by integrating power over the charging process ($P = v \cdot i$, where $i = C \frac{dv}{dt}$), yielding $E = \int v \cdot C \, dv$. The integration of $v$ yields the $1/2$ factor HyperPhysics: Capacitor Energy.

  • Base: $E = \frac{1}{2} C V^2$
  • Rearranged for C: $C = 2E / V^2$
  • Rearranged for V: $V = \sqrt{2E / C}$

4. Stored Magnetic Energy (Inductors)

  • Base: $E = \frac{1}{2} L I^2$
  • Rearranged for L: $L = 2E / I^2$
  • Rearranged for I: $I = \sqrt{2E / L}$

Application Boundaries and Assumptions

These formulas assume constant DC values or steady-state conditions. If your load is variable (e.g., a microcontroller waking from sleep, or a motor starting up), you cannot use simple multiplication. You must use the integral form: $E = \int_{t_1}^{t_2} P(t) \, dt$.

For AC circuits, you must use RMS (Root Mean Square) values for voltage and current when calculating Joule heating ($E = I_{rms}^2 R t$). Using peak voltage ($V_{peak}$) in a standard AC heating calculation will overestimate your energy dissipation by a factor of 2 for a pure sine wave.

Worked Examples with Strict Unit Tracking

The most common reason engineers and hobbyists arrive at wildly incorrect answers is poor unit tracking. Below are two real-world scenarios solved step-by-step, maintaining strict dimensional analysis throughout.

Problem 1: Joule Heating in a Long DC Wire Run

Scenario: You are wiring a 12V DC solar water pump located 50 feet away from the battery bank. You use 10 AWG copper wire. The pump draws a steady 30A. How much energy is wasted as heat in the wire over a 2-hour pumping cycle?

Step 1: Identify knowns and convert to base SI units.

  • Current ($I$) = 30 A
  • Time ($t$) = 2 hours = $2 \times 3600$ = 7200 seconds
  • Wire Resistance: 10 AWG copper is approximately 0.0009989 $\Omega$/ft at 20°C.
  • Total wire length = 50 ft out + 50 ft return = 100 ft.
  • Total Resistance ($R$) = $100 \text{ ft} \times 0.0009989 \text{ } \Omega/\text{ft} = 0.09989 \text{ } \Omega$.

Step 2: Apply the Joule heating formula.

$E = I^2 \times R \times t$

$E = (30 \text{ A})^2 \times 0.09989 \text{ } \Omega \times 7200 \text{ s}$

$E = 900 \text{ A}^2 \times 0.09989 \text{ } \Omega \times 7200 \text{ s}$

$E = 647,287.2 \text{ A}^2 \cdot \Omega \cdot \text{s}$

Step 3: Verify units and convert to practical terms.

Since $1 \text{ A}^2 \cdot \Omega = 1 \text{ Watt}$, and $1 \text{ W} \cdot \text{s} = 1 \text{ Joule}$, our answer is 647,287 Joules (or 647.3 kJ).

To find the Watt-hours wasted: $647,287 \text{ J} / 3600 \text{ J/Wh} = \textbf{179.8 Wh}$. This is a significant loss, indicating 10 AWG is too thin for this 30A continuous load over 50 feet; upgrading to 6 AWG or 4 AWG is required to reduce $R$ and minimize wasted energy.

Problem 2: Energy Stored in a Solar Inverter Capacitor Bank

Scenario: A 48V nominal off-grid solar inverter uses a DC bus capacitor bank consisting of six 2200µF, 100V electrolytic capacitors wired in parallel. The system charges to a peak of 54.5V. Calculate the total stored electrostatic energy.

Step 1: Identify knowns and convert to base SI units.

  • Capacitance per cap ($C_{single}$) = 2200 µF = $2200 \times 10^{-6}$ F = 0.0022 F.
  • Total Capacitance ($C_{total}$) = $6 \times 0.0022 \text{ F} = 0.0132 \text{ F}$.
  • Voltage ($V$) = 54.5 V.

Step 2: Apply the capacitor energy formula.

$E = \frac{1}{2} C V^2$

$E = 0.5 \times 0.0132 \text{ F} \times (54.5 \text{ V})^2$

$E = 0.0066 \text{ F} \times 2970.25 \text{ V}^2$

$E = 19.60365 \text{ F} \cdot \text{V}^2$

Step 3: Verify units.

Since $1 \text{ Farad} = 1 \text{ Coulomb/Volt}$ and $1 \text{ Volt} = 1 \text{ Joule/Coulomb}$, $F \cdot V^2$ simplifies directly to Joules. The bank stores 19.6 Joules. While 19.6 J sounds small compared to a battery, if short-circuited, this energy discharges in milliseconds, resulting in instantaneous peak currents of thousands of amps—enough to vaporize a small screwdriver and cause severe arc flash burns.

Unit Mistakes That Break Your Calculations

Warning: The formulas of energy are unforgiving of unit prefix errors. A single missed micro ($10^{-6}$) or milli ($10^{-3}$) prefix will result in an answer that is off by a factor of a million, leading to catastrophic component selection errors.

When your calculations yield physically impossible results, check these three common traps:

  1. Time in Hours vs. Seconds: The SI unit for time in these formulas is the second. If you multiply Watts by Hours, you get Watt-hours (Wh), not Joules. If your formula requires Joules (such as calculating thermal mass heating or capacitor discharge), you must multiply hours by 3600. For reference, 1 kWh equals exactly 3,600,000 Joules EIA Energy Basics.
  2. Capacitance Prefix Blindness: Capacitors are almost never rated in base Farads. A standard through-hole capacitor is rated in microfarads (µF, $10^{-6}$), while decoupling ceramics are in nanofarads (nF, $10^{-9}$) or picofarads (pF, $10^{-12}$). Plugging '4700' directly into $E = \frac{1}{2}CV^2$ instead of '0.0047' will make you think your capacitor stores 4700 Joules—enough to be lethal—when it actually stores a fraction of a Joule.
  3. AC Peak vs. RMS Voltage: If you are calculating the energy dissipated by a resistive heater on an AC mains line (e.g., 120V AC), that 120V is already an RMS value. If you measure the line with an oscilloscope and see a peak voltage of ~170V, do not use 170V in the $E = (V^2 / R) \times t$ formula. Using peak voltage will calculate an energy value exactly double the true thermal dissipation.

By strictly defining your variables, converting all prefixes to base SI units before calculating, and tracking your dimensional units through to the final answer, the formulas of energy become a reliable tool for predicting real-world electrical behavior.