Ohm's law states that the current flowing through a conductor between two points is directly proportional to the voltage across the two points and inversely proportional to the resistance between them. If you need a mental model, think of water in a plumbing system: voltage is the water pressure pushing the flow, current is the actual volume of water moving through the pipe, and resistance is the narrowness of the pipe restricting that flow. In a real circuit or electrical installation, this fundamental relationship changes everything—it dictates the exact physical gauge of the wires you run, the wattage rating of the resistors you solder, and the trip curve of the breakers you install to prevent thermal fires.
The Core Equation and a Bench-Tested Example
The mathematical relationship is expressed as V = I × R, where V is voltage (Volts), I is current (Amperes), and R is resistance (Ohms). You can rearrange this algebraically to solve for any missing variable: I = V / R, or R = V / I.
Let's look at a concrete bench example. Suppose you are using an Arduino Nano to drive the base of a 2N2222 NPN transistor, which will in turn switch a 12V relay. The Nano's GPIO pin outputs 5V. The 2N2222 datasheet specifies a base-emitter voltage drop (Vbe) of roughly 0.7V when conducting, and we want to limit the base current to 5mA (0.005A) to safely saturate the transistor without overloading the Arduino's ATmega328P microcontroller (which has a 20mA absolute max per pin).
- Find the voltage across the resistor: The GPIO supplies 5V, but the transistor base consumes 0.7V. The resistor must drop the remaining voltage: 5V - 0.7V = 4.3V.
- Calculate the resistance: Using R = V / I, we divide 4.3V by our target current of 0.005A.
- The raw result: 860Ω.
- Select a standard part: 860Ω is not a standard E12 resistor value. We round up to the next available standard value, which is 1kΩ (1000Ω). This slightly reduces the base current to 4.3mA, which is still more than enough to saturate the transistor for a standard 5V relay coil.
Where You Meet This in Practice
You rarely sit down with a calculator to solve abstract textbook problems; instead, you use this law to size components and predict voltage drops. Here is where it physically manifests on the workbench and in the field:
- LED Current Limiting: Sizing resistors to prevent LEDs from drawing infinite current and burning out.
- Wire Sizing and Voltage Drop: Calculating how much voltage is lost over a 50-foot run of 14 AWG copper wire to a 12V DC water pump.
- Shunt Resistors: Using a known, ultra-low resistance (like a 0.01Ω shunt) to measure high currents by reading the tiny millivolt drop across it.
Below is a practical reference table for sizing current-limiting resistors in a nominal 12V DC system (like a car or solar battery bank), assuming a target current of 20mA.
| LED Color | Typical Forward Voltage (Vf) | Voltage to Drop (12V - Vf) | Calculated Resistance (R = V/0.02) | Standard E12 Value | Power Dissipation (P = I²R) |
|---|---|---|---|---|---|
| Red | 2.0V | 10.0V | 500Ω | 510Ω | 0.20W |
| Green | 2.2V | 9.8V | 490Ω | 510Ω | 0.20W |
| Blue | 3.2V | 8.8V | 440Ω | 470Ω | 0.19W |
| White | 3.4V | 8.6V | 430Ω | 470Ω | 0.19W |
Real-World Scenario Walkthrough: The Melted 1/4W Resistor
The Setup: A hobbyist is building a custom battery monitor panel for an off-grid solar setup using a 12V LiFePO4 battery bank. They want to wire a blue indicator LED (Vf = 3.2V) directly to the battery terminals to show when the system is live. They target a standard 20mA current and grab a standard 1/4W (0.25W) carbon film resistor from their kit.
The Numbers: They calculate based on the battery's '12V' nominal rating. R = (12V - 3.2V) / 0.02A = 440Ω. They install a standard 470Ω resistor. They also check the power at 12V: P = (0.02)² × 470 = 0.188W. Since 0.188W is less than the 0.25W rating of the 1/4W resistor, they assume the design is safe.
The Outcome: Two days later, the hobbyist notices a distinct burning smell. The plastic housing around the resistor has warped and melted, the color bands are charred, and the LED has failed open.
What Went Wrong: The calculation failed because a '12V' LiFePO4 battery is only 12V at rest. During the solar absorption charging phase, the battery voltage rises to 14.4V. Let's run the failure analysis:
- Recalculate Current at Peak Voltage: At 14.4V, the current becomes I = (14.4V - 3.2V) / 470Ω = 23.8mA (0.0238A).
- Recalculate Power Dissipation: P = I²R. P = (0.0238)² × 470 = 0.266W.
- The Thermal Breach: 0.266W exceeds the 0.25W maximum rating of the 1/4W resistor. Operating a resistor above its rated wattage causes its temperature to spike past its thermal limits, leading to physical degradation and eventual failure.
- The Fix: The builder should have designed for the maximum system voltage (14.4V), or better yet, used a constant-current LED driver or a higher wattage resistor (like a 1/2W rated for 0.50W) to provide a safe thermal margin.
Common Confusions: What Ohm's Law Doesn't Cover
While V = I × R is the bedrock of DC circuit analysis, misapplying it is a frequent source of frustration for beginners. Here is what people commonly confuse it with:
Confusing Power (Watts) with Resistance (Ohms): Beginners often conflate a component's resistance with its power consumption. A 100Ω resistor doesn't 'consume' 100 watts. Resistance is just the opposition to flow; power (P = V × I) is the actual work being done or heat being generated. A 100Ω resistor connected to a 1V source dissipates only 0.01W.
Applying DC Ohm's Law to AC Circuits: In Alternating Current (AC) systems, resistance is replaced by Impedance (Z), which includes both resistance and reactance (from capacitors and inductors). Furthermore, AC voltage and current are rarely perfectly in phase. According to Fluke's electrical fundamentals guides, calculating true power in AC requires factoring in the Power Factor (PF). Using basic DC Ohm's law on an AC motor circuit will result in wildly inaccurate wire sizing and breaker selections.
Assuming Batteries are Perfect Voltage Sources: Ohm's law assumes a stable voltage source. In reality, every battery has internal resistance. If you try to pull 50A from a small 12V sealed lead-acid battery, the internal resistance causes a massive internal voltage drop, and the terminal voltage might sag to 9V. You must account for the source's internal resistance when calculating high-current loads.
FAQ: Quick Answers to Common Ohm's Law Questions
Does Ohm's law apply to diodes and LEDs?
No. Diodes are 'non-ohmic' devices. Their resistance is not constant; it changes dynamically based on the voltage applied and the temperature of the junction. Once a diode reaches its forward voltage threshold, its resistance drops near zero, which is why they will draw infinite current and explode if connected directly to a voltage source without a current-limiting resistor.
How does temperature affect Ohm's law calculations?
Resistance is temperature-dependent. For copper wire (used in almost all home wiring and PCB traces), resistance increases as temperature rises. A 10 AWG THHN copper wire might measure 1.2Ω per 1000 feet at 20°C, but at 75°C (its maximum rated operating temperature), that resistance increases by roughly 20%. In precision analog circuits, this thermal drift can introduce significant measurement errors.
Why do we use higher voltages for long-distance power transmission?
This is a direct application of Ohm's law combined with the power equation (P = V × I). To deliver a specific amount of power, increasing the voltage allows you to drastically decrease the current. Since the power lost as heat in the transmission lines is calculated as P_loss = I²R, dropping the current by a factor of 10 reduces the line losses by a factor of 100, allowing the use of much thinner, cheaper wires.






