Calculators

Ohm's law calculator

Ohm's law says current equals voltage divided by resistance: I = V ÷ R. The power the resistor turns into heat is P = V × I, and its rating should be at least twice that.

I = V ÷ RP = V × I = V² ÷ R
Current25.5 mA
Power in the resistor306 mW
Resistor rating (2× margin)1 W
The circuit, running liveOpen in the playground →

The ammeter in the circuit reads the same current as the formula.

Worked example

12 V across 470 Ω: I = 12 ÷ 470 = 25.5 mA, and P = 12 × 0.0255 = 0.31 W. A 1/4 W resistor would run hot; with a 2× margin, use a 1 W part.

Questions

Why choose a resistor rated at twice the power?

A resistor at its full rating runs very hot. Doubling the rating keeps it cool and reliable.

Does Ohm's law work for LEDs and diodes?

Not directly: their resistance changes with current. Use the LED resistor calculator, which subtracts the LED's forward voltage first.

More calculators

Want a whole circuit rather than one value? Describe it and the AI designs and simulates it.