Ohm's law is the fundamental electrical principle stating that the current flowing through a linear conductor is directly proportional to the applied voltage and inversely proportional to its resistance (I = V/R). When makers and electricians ask "what's the ohm's law," they are usually trying to solve a practical problem: figuring out why a component is overheating, what size resistor to use, or why a motor is starving for current at the end of a long wire run. It is the mathematical anchor for every circuit you will ever build, dictating everything from microcontroller GPIO protection to residential branch circuit sizing.
The Core Triangle: Volts, Amps, and Ohms in Action
To use the formula effectively, you need to understand the three variables and how they interact. The standard Georgia State University HyperPhysics model breaks it down into three interchangeable equations:
- V = I × R (Voltage = Current × Resistance)
- I = V / R (Current = Voltage / Resistance)
- R = V / I (Resistance = Voltage / Current)
The Single Analogy: Think of a pressurized water tank connected to a hose. Voltage (V) is the water pressure pushing the fluid. Current (I) is the actual flow rate (gallons per minute) moving through the hose. Resistance (R) is the diameter of the hose or a kink restricting the flow. If you increase the pressure (Voltage) but keep the kink (Resistance) the same, the flow rate (Current) increases. If you pinch the hose tighter (increase Resistance), the flow rate drops.
In real-world electrical work, this relationship is not just theoretical; it dictates thermal limits. When current pushes through resistance, it generates heat. If you miscalculate the resistance in a high-current DC solar array or an AC branch circuit, the resulting current will exceed the ampacity of your wire, melting insulation and creating a fire hazard.
Worked Example: Sizing an ESP32 GPIO Current-Limiting Resistor
Let's apply this to a common workbench scenario. You are wiring a standard 5mm red LED to a GPIO pin on an ESP32-WROOM-32 DevKit v1.
The Knowns:
- Source Voltage (V_s): 3.3V (ESP32 logic level)
- LED Forward Voltage (V_f): 2.0V (typical for a standard red LED)
- Target Current (I): 15mA (0.015A) — well within the ESP32's 20mA recommended GPIO limit.
The Calculation:
First, find the voltage that the resistor must drop. The LED consumes 2.0V, leaving the rest for the resistor.
V_resistor = V_s - V_f = 3.3V - 2.0V = 1.3V
Now, apply Ohm's law to find the required resistance:
R = V / I = 1.3V / 0.015A = 86.6 Ω
Since 86.6 Ω is not a standard E12 resistor value, you round up to the next available value to ensure you don't exceed your current limit. The closest standard value is 100 Ω.
Power Verification (Joule's Law):
Ohm's law gives us resistance, but we must verify the resistor won't melt. Power (P) = I² × R.
P = (0.015A)² × 100 Ω = 0.000225 × 100 = 0.0225 Watts.
A standard 1/4W (0.25W) through-hole carbon film resistor (like the Yageo CFR-25JB series) is more than sufficient, as it can handle ten times the generated heat.
Where You Meet This in Practice: Beyond the Breadboard
Understanding what's the ohm's law changes how you approach physical installations, specifically regarding voltage drop and wire sizing. Ohm's law applies to the copper wire itself, not just the components at the end of it.
Consider a 12V DC solar setup where you are pulling 10A from a LiFePO4 battery bank to a charge controller located 50 feet away. The total wire loop (out and back) is 100 feet. If you use 14 AWG copper wire, the resistance is approximately 0.25 Ω per 100 feet.
Real-World Voltage Drop:
Using V = I × R:
V_drop = 10A × 0.25 Ω = 2.5V
Your 12.8V battery is now delivering only 10.3V to the charge controller. This massive 19% voltage drop will cause the controller to underperform or trigger a low-voltage disconnect. Ohm's law dictates that to fix this, you must lower the resistance by stepping up to 8 AWG wire (0.062 Ω per 100 ft), which drops the voltage loss to a highly acceptable 0.62V.
Decision Tree: Picking the Right Component Rating
Use this decision path to terminate your calculations into a concrete hardware pick. Never leave a design at the raw math stage; always select a physical part with a safety margin.
| Scenario | Known Variables | Formula to Apply | Action Required | Concrete Hardware Pick |
|---|---|---|---|---|
| 3.3V Logic LED Indicator | V=3.3V, Vf=2.0V, I=15mA | R = (V - Vf) / I | Limit current to protect GPIO | 100 Ω, 1/4W Carbon Film Resistor |
| 12V DC Feeder (10A, 50ft run) | V=12V, I=10A, Max Drop=3% | R = V_drop / I | Minimize voltage drop | 8 AWG THHN Stranded Copper |
| 120V AC Space Heater (1500W) | V=120V, P=1500W | I = P / V | Size breaker and branch wire | 14 AWG NM-B on a 15A AFCI Breaker |
| 5V Arduino Sensor Pull-up | V=5V, I=1mA (target) | R = V / I | Pull I2C line high without shorting | 4.7 kΩ, 1/8W SMD or Through-hole |
Common Confusions: What Ohm's Law Doesn't Tell You
While foundational, All About Circuits and other electrical texts warn against misapplying this law to non-linear systems.
Confusion 1: Ohm's Law vs. Joule's Law (Power)
People frequently use Ohm's law to calculate wattage, but Ohm's law strictly defines the relationship between Voltage, Current, and Resistance. To find heat dissipation or power consumption, you must use Joule's First Law: P = I × V (or its derivatives, P = I²R and P = V²/R). If you are sizing a fuse or calculating a heat sink requirement, you are doing power math, not just Ohm's law math.
Confusion 2: Linear vs. Non-Linear Loads
Ohm's law assumes resistance (R) is a constant value. This is true for standard resistors and short lengths of copper wire. It is false for incandescent light bulbs, motors, and semiconductors. An incandescent bulb has a very low "cold" resistance when you first measure it with a multimeter, but as the filament heats up, its resistance spikes dramatically. Similarly, an LED does not obey a linear V/I curve; it has an exponential forward voltage threshold. You cannot simply measure an LED with a multimeter's resistance setting and plug that number into V=IR.
FAQ: Quick Answers for the Workbench
Does Ohm's law apply to AC circuits?
Yes, but with a modification. In AC circuits containing capacitors or inductors (like motors or fluorescent ballasts), resistance is replaced by Impedance (Z), which accounts for phase shifts and reactance. The formula becomes V = I × Z. For purely resistive AC loads like baseboard heaters, standard Ohm's law (V = I × R) applies perfectly using RMS voltage values.
What happens to resistance when wire gets hot?
For copper and aluminum, resistance increases as temperature rises. A 10 AWG THHN wire at 30°C ambient has a specific resistance, but if you bundle it in a hot attic at 50°C, the resistance increases, and its ampacity must be derated according to NEC Table 310.16. This positive temperature coefficient means a wire that is marginally sized will draw slightly less current as it heats up, but it will also suffer a higher voltage drop.
What is the default recommendation if I forget the math?
If you are prototyping on a breadboard with a 3.3V or 5V microcontroller and a standard 5mm indicator LED, do not paralyze yourself with calculations. Use a 220 Ω or 330 Ω, 1/4W resistor. This default pick safely limits current to between 9mA and 15mA for almost all standard LED colors, providing excellent brightness without risking your microcontroller's GPIO pins.






