The Core Electricity Math Formulas: Ohm’s Law Meets Joule’s Law
The foundational electricity math formulas linking power, voltage, current, and resistance are P = VI, P = I²R, and P = V²/R. These are not isolated rules; they are the direct mathematical synthesis of Ohm’s Law (V = IR) and Joule’s First Law of heating. When you are sizing wires, selecting current-limiting resistors, or calculating battery bank sag, you are using these derived forms. Memorizing the abstract concepts is useless on the bench; you need the exact algebraic rearrangements and a strict adherence to base SI units to prevent melted terminals and blown traces.
| Symbol | Quantity | SI Unit | Unit Abbreviation |
|---|---|---|---|
| P | Power (Rate of energy transfer) | Watt | W |
| V | Voltage (Electric potential difference) | Volt | V |
| I | Current (Rate of charge flow) | Ampere | A |
| R | Resistance (Opposition to current) | Ohm | Ω |
Deriving the Power Triangle and Rearranged Forms
Joule’s Law states that the power dissipated in a resistive component is the product of voltage and current: P = VI. Ohm’s Law defines voltage as the product of current and resistance: V = IR. By substituting Ohm’s Law into Joule’s Law, we derive the formulas that allow us to calculate power without knowing all three variables.
Substitute V with (IR):
P = (IR) × I
P = I²R
Alternatively, substitute I with (V/R):
P = V × (V/R)
P = V²/R
Rearranged Forms List
When troubleshooting, you rarely need to solve for P. You usually know the power rating of a device and need to find the current draw, or you know the voltage and need to find the required resistance. Here is the complete rearranged matrix:
- Solving for Voltage (V): V = P / I | V = I × R | V = √(P × R)
- Solving for Current (I): I = P / V | I = V / R | I = √(P / R)
- Solving for Resistance (R): R = V² / P | R = P / I² | R = V / I
- Solving for Power (P): P = V × I | P = I² × R | P = V² / R
Real-World Scenario Walkthrough: The 12V LiFePO4 Melted Lug
Formulas on a whiteboard don't melt copper, but misapplying them on a jobsite does. Here is a narrative breakdown of a catastrophic 12V DC wiring failure I diagnosed last year.
The Setup
A DIYer was wiring a 2000W pure sine wave inverter to a 12V, 280Ah LiFePO4 battery bank. They needed to size the battery cables and the overcurrent protection. They grabbed their calculator and used the most basic electricity math formula for current: I = P / V.
The Numbers
They used the nominal battery voltage of 13.2V (resting voltage of a fully charged LiFePO4).
I = 2000W / 13.2V = 151.5 Amps.
Based on this 151.5A calculation, they selected 2 AWG THHN copper wire (rated for 175A in the 90°C column) and installed a 175A Class T fuse. The physical connection at the battery was made using a standard mechanical set-screw lug, crimped with a hand tool.
The Outcome
Three weeks later, while running a 1800W microwave and a 200W coffee maker simultaneously (2000W total load), the inverter shut down on low voltage. Upon inspection, the 2 AWG wire insulation had melted back two inches from the battery terminal, and the mechanical lug was fused to the busbar, heavily oxidized and pitted from arcing. The 175A fuse had not blown.
What Went Wrong
The math wasn't wrong; the assumption was. Under a heavy 2000W load, battery voltage sags due to internal resistance. The inverter's low-voltage cutoff is 10.5V. Let's recalculate the current at the minimum operational voltage:
I = 2000W / 10.5V = 190.4 Amps.
The system was pulling 190A through a wire and lug sized for 151A. Furthermore, the mechanical lug had a poor crimp, introducing a contact resistance of roughly 0.005Ω. Using P = I²R, the heat generated specifically at that bad crimp was:
P = (190.4)² × 0.005 = 36,252 × 0.005 = 181 Watts of localized heat.
That 181W acted like a soldering iron inside the lug, melting the insulation and oxidizing the copper until the connection failed entirely. The lesson: Always calculate DC inverter current using the minimum operational voltage, not the nominal or resting voltage.
Solved Problems with Strict Unit Tracking
Let’s run through two common bench scenarios. The critical rule here is strict unit tracking: convert all prefixes (milli, kilo) to base SI units before plugging them into the formula.
Problem 1: Sizing a Current-Limiting Resistor for an Indicator LED
Scenario: You are adding a power indicator to a 12V DC control board. The LED has a forward voltage (Vf) of 2.1V and requires a forward current (If) of 20mA. What resistance and power rating do you need?
- Convert units: I = 20mA = 0.020A.
- Find Voltage across resistor (Vr): Vr = V_source - Vf = 12V - 2.1V = 9.9V.
- Calculate Resistance (R = V / I): R = 9.9V / 0.020A = 495 Ω. (Select standard 510 Ω).
- Calculate Power Dissipated (P = I²R): P = (0.020A)² × 495Ω = 0.0004 × 495 = 0.198 W.
Decision: A standard 1/4W (0.25W) through-hole resistor is sufficient, as 0.198W is below the 0.25W limit. If you had forgotten to convert mA to A and used '20' in the I²R formula, you would have calculated 198,000 Watts—a mathematical absurdity that highlights why unit tracking matters.
Problem 2: Voltage Drop and Heating in an AC Extension Cord
Scenario: You are powering a 1500W, 120V AC space heater using a 50-foot, 16 AWG copper extension cord. How much power is wasted as heat in the cord?
- Calculate Current (I = P / V): I = 1500W / 120V = 12.5A.
- Find Wire Resistance: According to NEC Chapter 9, Table 8, 16 AWG copper has a resistance of 4.016 Ω per 1000 feet. A 50-foot cord has 100 feet of total conductor (50ft out, 50ft back).
R = (100 / 1000) × 4.016 Ω = 0.4016 Ω. - Calculate Power Loss (P = I²R): P = (12.5A)² × 0.4016 Ω = 156.25 × 0.4016 = 62.75 W.
Outcome: The extension cord is dissipating nearly 63 Watts of heat along its 50-foot length. While distributed, this is enough to make a coiled 16 AWG cord uncomfortably warm to the touch and represents a 4.1% voltage drop. For continuous 15A loads, always step up to 14 AWG or 12 AWG to minimize I²R losses.
Assumptions, Unit Traps, and Realistic Magnitudes
The electricity math formulas derived above are incredibly powerful, but they are bounded by physical assumptions and prone to specific calculation errors.
When the Formula Applies (and When It Doesn't)
The formulas P = VI and P = I²R apply perfectly to DC circuits and purely resistive AC circuits (like incandescent bulbs or resistive heating elements). If you are calculating power for an AC motor, a transformer, or a switched-mode power supply, you must account for the Power Factor (PF) and phase angle. In AC systems with reactive components (inductors/capacitors), the true power formula becomes P = V × I × PF. Using P = VI on a 120V AC compressor drawing 10A will yield 1200VA (Apparent Power), but if the PF is 0.8, the actual Real Power doing work is only 960W. The I²R heating formula, however, remains universally true for the resistive losses in the supply wires regardless of power factor.
The 'Milli-Amp Squaring' Unit Trap
The most common way hobbyists break the P = I²R formula is by failing to square the unit prefix. If I = 500mA, that is 0.5A. I² = (0.5)² = 0.25A². If you blindly plug 500 into the formula: 500² = 250,000. Your calculated power will be exactly one million times larger than reality. Always strip prefixes (milli, micro, kilo) and convert to base Amps, Volts, and Ohms before executing the math.
What a Realistic Answer Magnitude Looks Like
Developing an intuition for magnitudes prevents you from accepting a calculator typo.
- Signal/Logic Level (Arduino/ESP32 GPIO): Power should be in the milliwatt range (1mW to 50mW). If your I²R calculation for a 3.3V logic pin yields 2 Watts, you have a short circuit or a math error; the silicon will vaporize.
- Appliance/Branch Circuit Level: Hundreds to thousands of Watts (500W to 2400W). A standard US 15A/120V circuit maxes out at 1800W continuous.
- Distribution/Inverter Level: Kilowatts to Megawatts. A 48V solar array pushing 5000W is pulling over 100A.






