When you are sizing a battery pack for an off-grid ESP32 sensor node or calculating the thermal dissipation of a bench dummy load, abstract physics concepts will not help you. You need exact numbers. The fundamental equation for electrical energy is E = P × t (Energy equals Power multiplied by Time). By substituting Ohm's Law, this expands to E = V × I × t (Voltage × Current × Time).

While the concept is simple, 90% of bench and jobsite calculation errors happen because of mismatched units—like mixing seconds with hours or forgetting to account for AC power factor. Below is the complete breakdown of the formula, its rearranged forms, and step-by-step worked examples with strict unit tracking.

The Core Energy Equation and Symbol Definitions

In electrical engineering, energy is the capacity to do work over a specific period. The base formula relies on power (the rate of energy transfer) and time. Here is the primary equation and its expanded forms:

  • Base Form: E = P × t
  • Expanded DC Form: E = V × I × t
  • Resistance Form (Joule's Law): E = I² × R × t or E = (V² / R) × t
Symbol Definitions and Standard SI Units
SymbolQuantityStandard SI UnitCommon Practical Unit
EEnergyJoule (J)Kilowatt-hour (kWh), Watt-hour (Wh)
PPowerWatt (W)Kilowatt (kW)
VVoltage (Potential Difference)Volt (V)Millivolt (mV), Kilovolt (kV)
ICurrentAmpere (A)Milliampere (mA)
tTimeSecond (s)Hour (h), Minute (min)
RResistanceOhm (Ω)Kilo-ohm (kΩ)

For a deeper understanding of how these SI units are standardized globally, refer to the NIST Guide to the SI.

Rearranged Forms: Solving for Every Variable

On the workbench, you rarely have all the variables handed to you. Here is the rearranged formula list to solve for any missing parameter, assuming a standard DC or purely resistive AC circuit:

  • To find Power (P): P = E / t
  • To find Time (t): t = E / P
  • To find Voltage (V): V = E / (I × t)
  • To find Current (I): I = E / (V × t)
  • To find Resistance (R): R = E / (I² × t) or R = (V² × t) / E

When the Formula Applies (And When It Breaks)

Assumptions and Limits

The equations E = V × I × t and E = I²Rt assume a DC circuit or a purely resistive AC load (like an incandescent bulb or a nichrome heating element) where the power factor is exactly 1.0. If you apply this to an AC circuit with inductive loads (like an induction motor or a transformer), the formula breaks because it ignores reactive power. For AC inductive loads, you must multiply by the Power Factor (PF): E = V × I × PF × t.

Unit Mistakes That Break the Math

Warning: The Time-Unit Trap
The SI unit for time in the Joule calculation is the second. 1 Watt = 1 Joule per second. If you multiply Watts by hours, your result is in Watt-hours (Wh), not Joules. Mixing these up will result in calculations that are off by a factor of 3,600, leading to drastically undersized battery packs or overloaded inverters.

Realistic Answer Magnitudes

To sanity-check your math, you need to know what a realistic magnitude looks like. The Joule is a remarkably small unit. A single 100W incandescent bulb running for one hour consumes 360,000 Joules. Because utility companies and battery manufacturers deal in macroscopic energy, they use the Kilowatt-hour (kWh). 1 kWh is exactly 3,600,000 Joules (3.6 Megajoules). If your calculation for a household appliance yields an answer in the low hundreds of Joules, you forgot to convert your time from hours to seconds.

Worked Examples with Strict Unit Tracking

Problem 1: DC Battery Pack Sizing (Joules and Watt-Hours)

Scenario: You are powering a remote weather station with a single 18650 lithium-ion cell. The cell has a nominal voltage of 3.7V and a capacity of 3000mAh. The circuit draws a steady 1.5A. Calculate the total energy stored in the cell in both Watt-hours (Wh) and Joules (J).

  1. Convert capacity to standard units: 3000mAh = 3.0Ah. (Note: Ah is a unit of charge, not energy. We must multiply by voltage to get energy).
  2. Calculate Energy in Watt-hours (Wh):
    E = V × Ah
    E = 3.7V × 3.0Ah = 11.1 Wh
  3. Calculate runtime (t) in seconds for the Joule conversion:
    t = Capacity / Current = 3.0Ah / 1.5A = 2.0 hours.
    Convert hours to seconds: 2.0 hours × 3600 s/hr = 7200 seconds.
  4. Calculate Power (P):
    P = V × I = 3.7V × 1.5A = 5.55W.
  5. Calculate Energy in Joules (J):
    E = P × t (in seconds)
    E = 5.55W × 7200s = 39,960 Joules.
  6. Verify the magnitude: 11.1 Wh × 3600 J/Wh = 39,960 J. The math holds.

Problem 2: AC Mains Load and Utility Cost

Scenario: A 1500W resistive space heater is plugged into a standard 120V AC outlet and runs for 4 hours. Your local utility rate is $0.16 per kWh. Calculate the energy consumed in kWh, the cost to run it, and the total thermal energy output in Megajoules (MJ).

  1. Identify knowns and convert Power to kW:
    P = 1500W = 1.5 kW.
    t = 4 hours.
  2. Calculate Energy in kWh:
    E = P × t
    E = 1.5 kW × 4 h = 6.0 kWh.
  3. Calculate Utility Cost:
    Cost = E × Rate
    Cost = 6.0 kWh × $0.16/kWh = $0.96.
  4. Convert to Thermal Energy in Megajoules (MJ):
    Since 1 kWh = 3.6 MJ (3,600,000 Joules):
    E = 6.0 kWh × 3.6 MJ/kWh = 21.6 MJ (or 21,600,000 Joules).

For more context on how the Department of Energy estimates appliance energy use and costs, see their official appliance energy guidelines.

Frequently Asked Questions

What is the equation for energy in physics versus electrical engineering?

In classical mechanics, the equation for kinetic energy is E = ½mv² and potential energy is E = mgh. In electrical engineering, we deal with the work done by moving charges through an electric field, which is defined by E = V × I × t. While the physical manifestations differ (motion vs. heat/light/electromagnetism), both are measured in Joules and represent the exact same fundamental quantity of work.

What is the equation for energy when calculating battery mAh?

Milliamp-hours (mAh) is a measure of electrical charge, not energy. To find the actual energy equation for a battery, you must multiply the charge by the nominal voltage. The formula is: Energy (Wh) = (mAh / 1000) × Nominal Voltage. For example, a 5000mAh power bank at 3.7V holds 18.5Wh of energy, regardless of whether it outputs at 5V or 12V via an internal boost converter (ignoring conversion losses).

What is the equation for energy in AC circuits with power factor?

When dealing with inductive or capacitive AC loads (like HVAC compressors or fluorescent ballasts), voltage and current waveforms fall out of phase. The base equation must be modified to calculate true energy (Real Power). The formula becomes: E = V × I × PF × t, where PF is the Power Factor (a dimensionless number between 0 and 1). If you ignore PF and just use V × I × t, you are calculating Apparent Energy (VAh), which will overstate the actual work being done and the real utility cost. For a detailed breakdown of true vs. reactive power, consult All About Circuits' guide on AC power.

What is the equation for energy to convert Joules to kWh?

Because 1 Watt is 1 Joule per second, and there are 3,600 seconds in an hour, 1 Watt-hour equals 3,600 Joules. Therefore, 1 Kilowatt-hour (1,000 Wh) equals 3,600,000 Joules. The conversion equation is: kWh = Joules / 3,600,000. Conversely, to find Joules from a utility bill: Joules = kWh × 3,600,000.