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| Current | 25.5 mA |
|---|---|
| Power in the resistor | 306 mW |
| Resistor rating (2× margin) | 1 W |
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
- Resistor color code calculator
- LED resistor calculator
- Voltage divider calculator
- RC time constant calculator
- Series and parallel resistor calculator
- Transistor base resistor calculator
- 555 timer calculator (astable)
- PCB trace width calculator
- Battery life calculator
- RC filter calculator (low-pass)
- Capacitor code calculator
Want a whole circuit rather than one value? Describe it and the AI designs and simulates it.