When students search for the formula of electricity in physics, they are usually looking for the mathematical bridge between abstract charge and real-world work. On the workbench, this boils down to two inseparable equations: Electrical Power (P = IV) and Electrical Energy (W = VIt). Understanding how these derive from fundamental mechanics—and knowing where they break down in real circuits—is what separates a textbook student from a competent builder.
The Core Formula of Electricity in Physics: Deriving Power and Energy
In classical mechanics, work is force applied over a distance. In electrical physics, we swap mechanical force for electromotive force (voltage), and distance for electrical charge. The fundamental definition of electrical work (or energy) is the amount of charge moved across a potential difference:
W = Q × V
Since current (I) is defined as the rate of charge flow over time (I = Q / t), we can rearrange that to Q = I × t. Substituting this into our work equation gives us the master energy formula:
W = V × I × t
Power is simply the rate at which work is done (P = W / t). Dividing both sides by time strips out the t, leaving us with the most used formula in electrical engineering:
P = V × I
| Symbol | Quantity | SI Unit | Unit Abbreviation |
|---|---|---|---|
| P | Power | Watt | W (Joules/second) |
| W | Work / Energy | Joule | J (Watt-seconds) |
| V | Voltage / Potential Difference | Volt | V (Joules/Coulomb) |
| I | Current | Ampere | A (Coulombs/second) |
| t | Time | Second | s |
| Q | Electric Charge | Coulomb | C |
Assumptions, Boundaries, and Unit Traps
The P = IV formula is universal, but how you apply it depends heavily on the circuit environment. According to Georgia State University HyperPhysics, this formula calculates instantaneous power. For pure DC circuits, voltage and current are constant, so instantaneous power equals average power.
When it applies and its assumptions:
For AC circuits, P = IV only gives you true average power if the load is purely resistive (like a heating element). If the load has inductance or capacitance (like a motor), voltage and current fall out of phase. You must introduce the power factor (cos θ), making the formula P = IV × cos θ. Furthermore, the basic derivation assumes 100% efficiency; in reality, switching regulators and motors dissipate energy as heat.
Which unit mistakes break it:
The most catastrophic unit trap on the bench is confusing the letter W. In physics derivations, W stands for Work (measured in Joules). On a power supply label, W stands for Watts (measured in Joules/second). Mixing these up will cause you to size a battery bank 3,600 times too small. Another common failure is using milliamp-hours (mAh) directly in the formula without converting to Ampere-seconds (Coulombs) or Ampere-hours.
Realistic answer magnitudes:
If your math says an ESP32 sensor node draws 450 W, you missed a decimal point (it should be milliwatts). Conversely, if a 120V space heater calculation yields 1.5 W, you forgot to multiply by the 12.5A current. Typical magnitudes: micro-watts (µW) for RTC chips, single-digit watts for microcontrollers, hundreds of watts for power tools, and kilo-watts (kW) for HVAC and EV chargers.
Worked Example 1: Sizing a 24V DC Solar Water Pump
Let’s track units explicitly to find the energy consumed by a submersible well pump.
- Identify the knowns: The pump operates at V = 24V DC and draws I = 4.5A. It runs for t = 2 hours.
- Convert time to SI base units (seconds): t = 2 hours × 60 min/hr × 60 s/min = 7,200 s.
- Calculate Power (P):
P = V × I
P = 24V × 4.5A = 108 W (or 108 Joules/second). - Calculate Energy in Joules (W):
W = P × t
W = 108 J/s × 7,200 s = 777,600 J. - Convert to Watt-hours (Wh) for battery sizing:
Since 1 Wh = 3,600 Joules, Energy = 777,600 J / 3,600 J/Wh = 216 Wh.
Alternatively: W = 108W × 2h = 216 Wh.
Worked Example 2: Calculating LiFePO4 Battery Runtime for an ESP32 Node
An ESP32-WROOM-32 draws an average of 80 mA at 3.3V while transmitting via WiFi. It is powered by a 3.7V, 2000 mAh lithium cell through a linear regulator (LDO) with 85% efficiency. How long will it run?
- Calculate the load power:
P_load = V_load × I_load
P_load = 3.3V × 0.080A = 0.264 W. - Calculate total battery energy:
E_batt = V_batt × Capacity
E_batt = 3.7V × 2.0 Ah = 7.4 Wh. - Apply regulator efficiency:
E_usable = 7.4 Wh × 0.85 = 6.29 Wh. - Solve for time (t):
t = E_usable / P_load
t = 6.29 Wh / 0.264 W = 23.82 hours.
Note: As detailed in the All About Circuits DC Power Chapter, using an LDO wastes 15% of the energy as heat. Swapping to a 90% efficient buck converter would extend this runtime to 25.2 hours.
Real-World Scenario Walkthrough: The Melted 12V Fridge Wire
Physics formulas don't exist in a vacuum; they interact with wire resistance and motor inductance. Here is a scenario that destroys a lot of DIY van-build setups.
Setup: A DIYer installs a 12V DC compressor fridge rated at 60W. They calculate the current draw (I = 60W / 12V = 5A) and run a 15-foot pair of 18 AWG copper wire from the battery bank. 18 AWG is rated for roughly 10A in free air, which seems like a safe 50% margin.
Numbers: Under ideal conditions, I = 5A. However, 15 feet of 18 AWG wire has a resistance of about 0.128 ohms round-trip. At 5A, the voltage drop is V_drop = I × R = 5A × 0.128Ω = 0.64V. The voltage at the fridge terminals drops to 11.36V.
Outcome: After three weeks, the insulation on the 18 AWG wire melts near the crimp terminal, triggering a short circuit and blowing the main fuse.
What went wrong: The DIYer assumed the fridge was a fixed resistor. It is not; it contains a switching power supply designed to deliver constant mechanical power to the compressor. When the voltage dropped to 11.36V, the fridge's internal controller pulled more current to maintain the 60W output (I = 60W / 11.36V = 5.28A). This higher current caused a slightly higher voltage drop, creating a thermal runaway feedback loop at the crimp. Furthermore, compressor motors have a Locked Rotor Amp (LRA) startup surge of up to 15A for a few seconds. The continuous 5.28A baseline, combined with the 15A surge and the localized I²R heating at a less-than-perfect crimp, exceeded the thermal limits of the 18 AWG PVC insulation. The fix? Use 10 AWG wire to minimize voltage drop, ensuring the fridge receives a full 12V and doesn't artificially inflate its current draw.
Quick Reference: Rearranged Forms and Unit Conversions
When troubleshooting, you rarely have all the variables. Use these rearranged forms to isolate the unknown. For deeper SI standard definitions, refer to the NIST International System of Units (SI) guidelines.
- Solving for Voltage: V = P / I (Use to find required supply voltage for a given wattage and current limit).
- Solving for Current: I = P / V (Use to size breakers, fuses, and wire AWG).
- Solving for Time: t = W / P (Use to calculate battery runtime or capacitor discharge time).
- Solving for Charge: Q = W / V (Use to calculate total Coulombs delivered during a pulse).
- Combining with Ohm's Law (V = IR):
P = I² × R (Crucial for calculating heat dissipation in resistors and wire losses).
P = V² / R (Useful when resistance and voltage are known, such as sizing a dummy load).
Mastering the formula of electricity in physics isn't about memorizing abstract symbols; it's about understanding the physical reality of electrons doing work. When you track your units rigorously and respect the boundaries of constant-power vs. constant-resistance loads, the math will always warn you before a wire melts or a battery dies.






