Ohm's law defines the linear relationship between voltage, current, and resistance in an electrical circuit, stating that current is directly proportional to voltage and inversely proportional to resistance (I = V/R). In a real circuit or installation, this fundamental law of physics dictates the physical limits of your components—determining whether a wire will overheat, a breaker will trip, or a sensitive microcontroller pin will fry. You cannot bypass it, and ignoring it is the primary reason DIY electronics end up as melted plastic on the workbench.
The Core Science: What Ohm's Law Actually Dictates
At the atomic level, Ohm's law describes how electrons behave when pushed through a conductive lattice. Voltage (V) is the electromotive force pushing the electrons, current (I) is the actual volume of electrons flowing past a point per second, and resistance (R) is the friction the lattice exerts against that flow. If you need a physical analogy, picture a municipal water system: voltage is the pressure from the water tower, current is the gallons-per-minute flowing through the pipe, and resistance is the physical diameter of the pipe restricting the flow.
Georg Simon Ohm published this relationship in 1827, but for modern makers and electricians, it is a daily calculation tool. The Georgia State University HyperPhysics database outlines the standard algebraic manipulations of the law, which we use to solve for whichever variable is unknown.
To find Voltage:
V = I × RTo find Current:
I = V / RTo find Resistance:
R = V / I
Understanding this triad is the difference between guessing component values and engineering a reliable circuit. When you know any two of these values, the third is mathematically locked in.
Worked Numeric Example: Sizing an LED Current-Limiting Resistor
Let's move from abstract theory to the bench. You are building a custom 12V DC dashboard indicator and need to wire a standard 5mm red LED. If you connect the LED directly to 12V, it will draw excessive current, overheat, and fail in milliseconds. We use Ohm's law to size a current-limiting resistor.
- Source Voltage (Vs): 12.0V DC
- LED Forward Voltage (Vf): 2.0V (from the datasheet)
- Target LED Current (I): 20mA (0.020A)
Step 1: Calculate the voltage drop across the resistor.
The resistor must absorb the voltage the LED doesn't use.
V_R = Vs - Vf = 12.0V - 2.0V = 10.0V
Step 2: Apply Ohm's law to find the resistance.
R = V_R / I = 10.0V / 0.020A = 500Ω
Step 3: Select the standard component.
500Ω is not a standard value in the E24 resistor series. We round up to the nearest standard value to ensure we don't exceed the 20mA limit. The closest E24 value is 510Ω.
Step 4: Verify the power rating (Joule's Law integration).
Ohm's law tells us the resistance, but we must ensure the resistor won't catch fire. Power (P) = I² × R.
P = (0.020A)² × 510Ω = 0.0004 × 510 = 0.204W
A standard 1/4W (0.25W) resistor is technically rated for this, but running a resistor at 81% of its maximum capacity leads to thermal drift and reduced lifespan. The concrete pick here is a 510Ω 1/2W (0.5W) metal film resistor, giving you a comfortable 60% derating margin.
Where You Meet This in Practice (And Common Confusions)
You will encounter Ohm's law in nearly every electrical task, but it manifests differently depending on the domain:
- Home Wiring (Voltage Drop): When running a 50-foot 12 AWG copper branch circuit to a 15A receptacle, the wire itself has resistance (roughly 0.001588Ω per foot). Using V = I × R, a 15A load will drop about 0.47V per conductor. This is how electricians verify they are within the NEC-recommended 3% voltage drop limit.
- Embedded Systems (GPIO Pull-ups): When wiring an I2C sensor to an ESP32-WROOM-32, the Espressif ESP32 datasheet specifies a maximum GPIO sink current of roughly 28mA. To keep the bus safe while maintaining fast rise times at 400kHz, you use Ohm's law (R = 3.3V / 0.003A) to select a 4.7kΩ pull-up resistor, limiting current to a safe ~0.7mA.
1. Resistance vs. Impedance: Ohm's law in its pure V=IR form applies strictly to DC circuits or purely resistive AC loads. In AC circuits with motors or capacitors, you must substitute Resistance (R) with Impedance (Z), which accounts for phase shifts and reactance.
2. Non-Ohmic Devices: Diodes, transistors, and incandescent lightbulbs do not obey a strict linear Ohm's law curve. A bulb's filament resistance changes drastically as it heats up. You cannot use a single static 'R' value to model them across all operating states.
3. Ohm's Law vs. Power Law: Ohm's law calculates V, I, and R. It does not calculate wattage or heat directly. That is Joule's First Law (P = I²R), though the two are almost always used together in component sizing.
Decision Tree: Sizing Current-Limiting Components
When designing or repairing a circuit, use this decision path to move from a theoretical requirement to a specific, purchasable component. Never leave your design at the raw calculated number; always map it to a physical part with a safety margin.
| Scenario (If...) | Calculation Action (Then...) | Concrete Component Pick |
|---|---|---|
| Limiting current for a standard 5mm indicator LED on a 12V DC bus. | Calculate R = (12V - 2V) / 0.02A = 500Ω. Power = 0.2W. | 510Ω 1/2W 1% Metal Film Resistor (Provides thermal headroom over a 1/4W part). |
| Pulling up an I2C SDA/SCL line on a 3.3V microcontroller running at 400kHz. | Calculate R = 3.3V / 0.003A (target 3mA for fast edge rise). R = 1100Ω minimum, but 4.7kΩ is standard for lower idle current. | 4.7kΩ 1/4W 1% Metal Film Resistor (Standard I2C pull-up value). |
| Dropping a 24V DC supply down to 12V to drive a 500mA relay coil. | Calculate R = (24V - 12V) / 0.5A = 24Ω. Power = I²R = 6W. | 24Ω 10W Wirewound Chassis-Mount Resistor (Must be bolted to a heatsink; standard axial resistors will burn). |
| Sizing a bleeder resistor for a 400V DC power supply filter capacitor (100µF). | Target 1mA bleed current. R = 400V / 0.001A = 400kΩ. Power = 0.4W. | 470kΩ 2W Metal Oxide Resistor (Higher voltage rating required; 2W provides physical size for high-voltage creepage clearance). |
Frequently Asked Questions
Does Ohm's law apply to AC household wiring?
Yes, but with a critical modification. In AC circuits containing inductive loads (like HVAC compressors or fluorescent ballasts), the load resists changes in current, creating 'reactance'. You must use the expanded formula V = I × Z, where Z is Impedance (the vector sum of resistance and reactance). If you try to calculate the current of an AC motor using only its DC winding resistance, your math will be dangerously wrong, and you will undersize your breaker.
Why doesn't my multimeter reading match my Ohm's law calculation?
Real-world components have tolerances and environmental factors. A standard carbon film resistor might have a ±5% tolerance, meaning a calculated 100Ω could physically measure anywhere from 95Ω to 105Ω. Furthermore, resistance changes with temperature (the temperature coefficient). If you measure a high-current shunt resistor while it is hot under load, its resistance will be higher than the cold measurement you took with your multimeter. For precision analog sensing, always specify 0.1% tolerance thin-film resistors.
Can I use Ohm's law to size a breaker for a DC solar array?
Only indirectly. Ohm's law helps you calculate the voltage drop across the wire (V = I × R) to ensure your wire gauge is sufficient. However, breaker sizing for a solar array is governed by the maximum short-circuit current (Isc) of the panels and the National Electrical Code (NEC) Article 690 continuous load multipliers (typically 1.56x the Isc), not just the nominal operating resistance of the circuit. Always defer to the NEC-style ampacity tables and local code for overcurrent protection sizing.






