Ohm’s law is three equations wearing the same coat: V = IR, I = V/R, R = V/I. Which one you need depends on which two quantities you already have, and most circuit mistakes come from applying the wrong one.
This simulator fixes voltage and resistance, computes current and power, and plots the V–I line so the slope — the conductance — is visible rather than abstract.
Three quantities, one relationship
Voltage is the push, current is the flow, resistance is the restriction. Fix any two and the third is determined — which means a resistor is really a device that converts a voltage into a current, and vice versa.
Power is the product of the two: P = VI. Substituting Ohm’s law gives P = I²R and P = V²/R, which are the forms you use when only one of the two is known.
Choosing a resistor rating
A resistor dissipating 0.3 W in a 0.25 W body will run hot and drift. The usual practice is to derate by at least 50% at the expected ambient, so a 0.3 W duty calls for a 1 W part in a warm enclosure.
Power rating is quoted at a reference temperature, often 70 °C, and falls linearly to zero at the maximum body temperature. A part rated 1 W at 70 °C may be good for only 0.5 W at 100 °C.
Worked values
The last two rows dissipate the same power at very different voltages — a reminder that power is a product, and that high voltage at low current can be just as hot as low voltage at high current.
| Voltage | Resistance | Current | Power |
|---|---|---|---|
| 5 V | 470 Ω | 10.6 mA | 53 mW |
| 12 V | 1 kΩ | 12 mA | 144 mW |
| 24 V | 100 Ω | 240 mA | 5.76 W |
| 240 V | 10 kΩ | 24 mA | 5.76 W |
Where Ohm’s law does not apply
It fails for anything non-ohmic: diodes, filaments, thermistors, and any component whose resistance changes with voltage or temperature. A diode is not a resistor with a small value; it has an exponential characteristic and needs a different model.
It also fails for reactive components in AC. A capacitor has impedance 1/(jωC) and a inductor jωL — the ratio of voltage to current is still defined, but it depends on frequency and the two are out of phase.
Frequently asked questions
Why does the current fall when I increase resistance?
Because the voltage is held constant. Current is voltage divided by resistance, so doubling the resistance halves the current — and quarters the power, since power goes with current squared.
How do I pick a resistor for an LED?
R = (V_supply − V_LED)/I_LED. For a 5 V supply, a 2 V red LED and 10 mA, that is 300 Ω — and the nearest standard value is 330 Ω, which gives slightly less current and a longer-lived LED.
Does the resistor value drift with temperature?
Yes. A typical metal film part is 50–200 ppm/°C, so a 25 K rise moves a 1 kΩ resistor by 1–5 Ω. That is negligible for most circuits but matters for precision references.
What happens if I exceed the power rating?
The body temperature rises beyond its rated limit, the value drifts, and eventually the film or the solder joint fails. In practice the failure is often a slow drift that ruins calibration before it becomes visible.