The Core Physics Equations for Electricity: Joule's Law and Power

When you move from abstract circuit diagrams to physically wiring a breadboard or pulling wire through conduit, the most critical physics equations for electricity shift from Kirchhoff’s voltage loops to thermal realities. The fundamental equations governing electrical power dissipation and heat generation are derived from Joule’s First Law. If you want to know why a trace on your PCB melted or why a breaker tripped, you need to master the relationship between current, resistance, and time.

The primary formula for instantaneous electrical power (and heat dissipation in a purely resistive element) is:

P = I²R

To calculate the total thermal energy generated over a specific duration, we multiply by time:

W = I²Rt

Symbol Definitions and SI Units
Symbol Quantity SI Unit Practical Bench Equivalent
P Power (Rate of energy transfer) Watts (W) or Joules/second Heat dissipated by a resistor or wire
W Work / Thermal Energy Joules (J) Total heat accumulated in a component
I Current Amperes (A) Electron flow measured via clamp meter or shunt
R Resistance Ohms (Ω) Opposition to flow (wire, trace, or component)
t Time Seconds (s) Duration the current flows

Rearranged Forms for the Workbench

You rarely have all variables on hand. Here are the algebraic rearrangements you will actually use when debugging or sizing components:

  • Solving for Current (I): I = √(P / R) (Useful for finding max current a resistor can handle)
  • Solving for Resistance (R): R = P / I² (Useful for sizing a current-sense shunt)
  • Solving for Time (t): t = W / (I²R) (Useful for calculating thermal runaway time in a battery pack)
  • Solving for Power via Voltage (P): P = V² / R (Derived by substituting Ohm's Law V = IR into P = VI)

When These Formulas Apply (And When They Fail)

These physics equations for electricity are absolute, but the assumptions we make when plugging in numbers are where projects catch fire.

Core Assumptions

  1. Purely Resistive Loads: P = I²R calculates real power (heat). If you are driving an inductive load like a stepper motor or an AC compressor, you must account for impedance (Z) and power factor. Using DC resistance (DCR) for an AC motor will drastically undercalculate the actual current and heat.
  2. Constant Temperature: The resistance of copper increases by roughly 0.393% per °C. A 10 AWG wire carrying near its ampacity limit will heat up, raising its resistance, which in turn increases I²R heating. The formula assumes a static R, which is only true at low currents or with materials like Manganin (used in precision shunts) that have a near-zero temperature coefficient.
  3. DC or True RMS AC: If you are measuring AC current with a cheap average-responding multimeter on a non-sinusoidal waveform (like the output of a cheap modified sine wave inverter), your 'I' value is wrong. You must use True RMS measurements for the formula to hold.

Unit Mistakes That Break the Math

The most common bench error is failing to square the milli-prefix. If you push 20 mA through a 100 Ω resistor, the power is not 20² × 100 = 40,000 W. You must convert to base SI units first: 0.020 A.
P = (0.020)² × 100 = 0.0004 × 100 = 0.04 W (or 40 mW).

Similarly, when calculating total energy (W = I²Rt), using minutes instead of seconds for time will result in an energy calculation that is 60 times too small, leading to undersized thermal fuses.

What a Realistic Magnitude Looks Like

Context matters. A standard 1/4W through-hole carbon film resistor (like a Yageo CFR-25JB) dissipating 0.25 W will reach roughly 70°C above ambient. It will burn your fingers. If your math says a trace will dissipate 2 W, and it's a standard 1 oz copper 10-mil trace on a PCB, it will act as a fuse and vaporize. Conversely, a 15A branch circuit on 14 AWG THHN wire (which has a resistance of 2.525 Ω per 1000 ft) dissipates only about 0.56 W per foot at full load—enough to warm the wire inside a conduit, but well within the insulation's 90°C rating.

Solved Problems: Tracking Units from Bench to Breaker Panel

Let’s run two scenarios, tracking every unit to ensure the math translates to physical reality.

Problem 1: Sizing a Current Sense Shunt on a PCB

Scenario: You are designing an ESP32-based battery monitor. You need to measure up to 5 A of DC current. You want a maximum voltage drop of 50 mV (0.050 V) across the shunt resistor to feed into the ESP32's ADC (via an op-amp). What resistance do you need, and what wattage rating should you specify?

Step 1: Find Resistance using Ohm's Law
R = V / I
R = 0.050 V / 5 A = 0.01 Ω (or 10 mΩ)

Step 2: Find Power Dissipation using Joule's Law
P = I²R
P = (5 A)² × 0.01 Ω
P = 25 A² × 0.01 Ω = 0.25 W

Step 3: Component Selection
The math yields 0.25 W. If you buy a standard 0.25 W resistor, it will run at its absolute maximum thermal limit, drifting in value and potentially desoldering itself. Engineering best practice dictates a 50% derating. You must source a 0.5 W or 1 W shunt resistor, such as a Bourns CSS 1W series surface-mount shunt.

Problem 2: Voltage Drop and Heating in a Branch Circuit

Scenario: You are wiring a 120V AC space heater drawing 16 A. The run from the panel to the outlet is 50 feet. You are using 12 AWG solid copper THHN. How much power is wasted as heat in the wire?

Step 1: Determine Total Wire Length and Resistance
Current must travel out and back, so total wire length = 50 ft × 2 = 100 ft.
According to NEC Chapter 9, Table 8, 12 AWG solid copper has a resistance of 1.588 Ω per 1,000 ft.
R = (100 ft / 1000 ft) × 1.588 Ω = 0.1588 Ω

Step 2: Calculate Heat Dissipation
P = I²R
P = (16 A)² × 0.1588 Ω
P = 256 A² × 0.1588 Ω = 40.65 W

Outcome: You are generating 40.65 Watts of heat distributed along 100 feet of wire inside your walls. This is why the NEC mandates specific ampacity limits and derating factors when bundling wires in conduit; that heat has to go somewhere.

Real-World Scenario Walkthrough: The Melted 10 AWG Neutral

Abstract math is clean; the jobsite is not. Here is a failure analysis from a DIY solar installation where ignoring the assumptions behind these physics equations for electricity resulted in melted insulation and a near-fire.

⚠️ SAFETY WARNING: Working with DC battery banks and AC mains involves lethal energy levels. Always de-energize circuits, verify dead with a tested CAT III/IV meter, and consult a licensed electrician for grid-tied or high-current service entrance work.
  1. The Setup: A hobbyist wires a 1500 W, 12V DC-to-AC inverter to a lithium iron phosphate (LiFePO4) battery bank. They use a 5-foot run of 10 AWG stranded copper wire (10 ft total out-and-back) with standard ring terminals crimped onto the battery busbar.
  2. The Flawed Math: The builder uses P = VI to find the current. Assuming a nominal 12V battery: I = 1500 W / 12 V = 125 A. They look at a standard automotive wire chart, see 10 AWG is "good for short 12V runs," and proceed.
  3. The Reality (Numbers under load): When the inverter pulls 1500 W, the battery voltage sags to 11.2 V due to internal battery resistance and connection drop. The inverter compensates by pulling more current to meet the 1500 W AC output demand (plus ~10% inverter inefficiency, so ~1650 W DC input).
    Actual Current (I) = 1650 W / 11.2 V = 147.3 A.
  4. The Outcome: 10 AWG wire has a resistance of roughly 1.0 mΩ per foot. Total R = 0.010 Ω.
    Applying Joule's Law to the wire: P = I²R = (147.3)² × 0.010 = 21,697 × 0.010 = 216.9 W.
    The 5-foot cable run is now acting as a 217-Watt heating element. Within three minutes, the PVC insulation softens, melts, and the ring terminal chars the battery busbar.
  5. What Went Wrong: The builder assumed a static 12V and ignored the non-linear relationship of I²R. Because current is squared, pushing 147 A through a wire rated for 30 A (per NEC 310.16 60°C column) doesn't generate 5 times the heat; it generates 25 times the heat. The correct wire size for 150 A in a chassis wiring scenario is at least 1/0 AWG.

Benching the Math: Component Selection and Derating

Knowing the physics equations for electricity is only half the battle; applying engineering margins is what keeps your bench from smelling like ozone and burnt phenolic resin. When you calculate power dissipation using P = I²R or P = V²/R, you must map that number to physical component specifications.

Resistor Derating

Never run a resistor at its calculated maximum. If your math dictates a dissipation of 0.4 W, do not use a 0.5 W resistor. Use a 1 W resistor. High-wattage resistors (like 5W or 10W wirewound ceramics) often require physical spacing from the PCB to allow convective cooling. If you mount a 5W resistor flat against a board and dissipate 4W, the localized heat will delaminate the FR4 fiberglass.

PCB Trace Sizing

Copper traces are just low-value resistors. The IPC-2221 standard provides the baseline physics for PCB trace heating. A standard 1 oz/ft² copper trace that is 10 mils (0.010 inches) wide can safely carry about 1 A with a 10°C temperature rise. If your P = I²R calculation shows you are pushing 3 A through that trace, you must either widen the trace to 30 mils, pour a ground plane, or use the Joule heating principles to justify adding a solder jumper or bare copper wire over the trace to lower the resistance (R) and thereby drop the I²R heating.

Ultimately, these equations are the bridge between theoretical schematic design and the physical limits of materials. Respect the square in I²R, track your base SI units, and always design for the worst-case voltage sag and highest ambient temperature your project will face.