When you ask "what is the equation of energy" in an electrical context, the direct answer is E = P × t (Energy equals Power multiplied by time), which expands to E = V × I × t (Voltage × Current × time). While physicists measure energy in Joules (Watt-seconds), electrical engineers and solar installers practically measure it in Watt-hours (Wh) or kilowatt-hours (kWh). Getting the time unit right is the difference between a working off-grid sensor and a dead battery after three days.
The Core Equation of Energy in Electrical Systems
Energy is the capacity to do work over time. In a circuit, it is the total volume of electrical work delivered. The foundational relationship links Power (the rate of work) to Time (the duration). According to the NIST Guide to the SI, the official SI unit for energy is the Joule (J), defined as one Watt of power dissipated over one second. However, as detailed in All About Circuits' chapter on Electric Power, the Watt-hour is the universal currency for battery capacity and utility billing because it scales to human-readable numbers.
On a solar jobsite, you will never hear an installer ask for the Joule capacity of a 48V server rack battery; they will ask for the kilowatt-hours. The Watt-hour is simply a macro-scale unit derived from the base equation, designed to eliminate the massive strings of zeros that occur when calculating household energy over a 30-day billing cycle. 1 kWh is exactly 1,000 Wh, or 3.6 million Joules.
| Symbol | Quantity | SI Unit | Practical Unit |
|---|---|---|---|
| E | Energy | Joules (J) | Watt-hours (Wh) |
| P | Power | Watts (W) | Watts (W) |
| t | Time | Seconds (s) | Hours (h) |
| V | Voltage | Volts (V) | Volts (V) |
| I | Current | Amperes (A) | Amperes (A) |
Symbol Definitions and Rearranged Forms
On the bench, you rarely solve for Energy alone. You usually know your battery's energy capacity and need to find out how long it will last, or you know your load's current draw and need to find the voltage required. Here are the algebraic rearrangements of E = V × I × t:
- Solving for Power (P): P = E / t
- Solving for Time (t): t = E / P (or t = E / (V × I))
- Solving for Voltage (V): V = E / (I × t)
- Solving for Current (I): I = E / (V × t)
When the Formula Applies (and Unit Mistakes That Break It)
The formula E = V × I × t assumes a steady-state Direct Current (DC) circuit or a purely resistive Alternating Current (AC) circuit where the Power Factor (PF) is exactly 1.0. If you are calculating energy for an AC inductive load (like a motor or transformer), you must first calculate True Power (P = V × I × PF) before multiplying by time. Ignoring Power Factor will result in calculated energy values that are 10% to 40% higher than what your meter will actually record.
Modern Battery Management Systems (BMS) use a technique called Coulomb counting to estimate State of Charge (SoC). The BMS essentially acts as a hardware integrator for the I × t portion of the energy equation, measuring current flow in and out of the cell every few milliseconds. However, because battery voltage sags under load and varies with temperature, a BMS must continuously multiply the integrated charge (Ah) by the instantaneous voltage (V) to track true Watt-hours. If your BMS lacks a shunt resistor for accurate current measurement, it falls back to voltage lookup tables, which can introduce 15% or more error in your remaining energy calculations.
Unit Mistakes That Break the Math
- The 3600x Trap (Joules vs. Wh): If you multiply Watts by Hours, you get Watt-hours. If you multiply Watts by Seconds, you get Joules. 1 Wh = 3600 Joules. Mixing these up will cause you to undersize a battery bank by a factor of 3600.
- The mAh Illusion (Charge vs. Energy): Milliamp-hours (mAh) is a unit of electric charge, not energy. A 3000mAh 3.7V Li-ion cell holds 11.1Wh. A 3000mAh 12V lead-acid battery holds 36Wh. You cannot compare mAh across different battery chemistries or voltages without converting to Watt-hours first.
Worked Examples with Strict Unit Tracking
Let's run three scenarios to demonstrate how unit tracking prevents catastrophic sizing errors.
Example 1: Joules in a DC Heating Element
Scenario: A 12V DC nichrome heater draws 5A for 10 minutes. How much energy is dissipated in Joules?
- Identify knowns: V = 12V, I = 5A, t = 10 minutes.
- Convert time to SI base (seconds): 10 min × 60 s/min = 600 seconds.
- Calculate Power: P = V × I = 12V × 5A = 60W.
- Calculate Energy: E = P × t = 60W × 600s = 36,000 Joules.
Example 2: Watt-Hours for an Off-Grid LED Light
Scenario: A 120V AC LED floodlight draws 0.8A with a Power Factor of 0.9. It runs for 4 hours. What is the energy consumption in Wh?
- Identify knowns: V = 120V, I = 0.8A, PF = 0.9, t = 4 hours.
- Calculate True Power: P = V × I × PF = 120V × 0.8A × 0.9 = 86.4W.
- Calculate Energy: E = P × t = 86.4W × 4h = 345.6 Wh.
Example 3: Energy in a Capacitor Bank (The Physics Exception)
Scenario: You are building a spot welder using a bank of supercapacitors. The bank is charged to 12V and has a total capacitance of 100 Farads. How much energy is stored?
Note: The E = V × I × t formula applies to constant-power or constant-current sources over time. For capacitors, voltage drops as energy is depleted, so we must use the physics derivation: E = 0.5 × C × V².
- Identify knowns: C = 100F, V = 12V.
- Calculate Energy: E = 0.5 × 100F × (12V)² = 0.5 × 100 × 144 = 7,200 Joules.
- Convert to Wh (for comparison): 7,200 J / 3600 = 2.0 Wh.
This highlights why we use batteries for long-duration energy (high Wh) and capacitors for instantaneous power delivery (high W, low Wh).
Decision Path: Sizing a Battery for an ESP32 Sensor Node
When designing an off-grid IoT node, you must translate your calculated energy requirement into a physical battery part number. This decision tree assumes a target runtime and accounts for an 80% Depth of Discharge (DOD) limit to preserve cycle life.
| Condition (Calculated E) | Action | Resulting Hardware Class |
|---|---|---|
| E < 1 Wh | Use primary lithium coin cell | CR2032 (0.6 Wh) |
| 1 Wh ≤ E ≤ 12 Wh | Use single-cell secondary Li-ion | 18650 Li-ion (10.8 Wh) |
| 12 Wh < E ≤ 100 Wh | Use multi-cell Li-ion or single LiFePO4 | 3S 18650 pack or 12V 6Ah LiFePO4 |
| E > 100 Wh | Use 12V/24V LiFePO4 prismatic pack | 12V 100Ah LiFePO4 (1280 Wh) |
Applied Scenario: 6-Month ESP32 Deep Sleep Node
Load: ESP32 wakes hourly, transmits for 2 seconds, then sleeps. Average current = 0.5mA at 3.3V.
Time: 6 months (4380 hours).
- Calculate Energy: E = 3.3V × 0.0005A × 4380h = 7.227 Wh.
- Apply Decision Tree: 7.227 Wh falls in the 1 Wh to 12 Wh bracket. Select single-cell Li-ion.
- Apply Derating: At 80% DOD and accounting for low-temperature voltage sag, usable capacity must be ≥ 9.03 Wh.
- Concrete Pick: The standard Samsung INR18650-30Q (3000mAh, 3.6V nominal) provides 10.8 Wh nominal. At 80% DOD, it yields 8.64 Wh usable. Because 8.64 Wh is slightly below our 9.03 Wh derated requirement, the strict engineering choice for a single-cell constraint is to default to the EVE INR18650-33V (3250mAh, 3.6V = 11.7 Wh, yielding 9.36 Wh usable at 80% DOD).
For general DC prototyping and off-grid sensor design, always default to calculating your load in Watt-hours, apply a strict 20% overhead for DOD and temperature losses, and select a battery chemistry that matches the physical volume constraints of your enclosure. Never rely on mAh ratings across mixed chemistries.






