Resistor color code calculator
All tools

Ohm's law calculator

Enter any two values and the other two are calculated instantly. The two fields you changed last are kept; the rest are worked out (shaded).

Ohm's law formulas

Ohm's law says the current through a resistor is proportional to the voltage across it: V = I × R. Combined with the power equation P = V × I, any two quantities give the other two:

FindFrom V and IFrom V and RFrom I and RFrom P and…
Voltage V——I × RP ÷ I, √(P × R)
Current I—V ÷ R—P ÷ V, √(P ÷ R)
Resistance RV ÷ I——V² ÷ P, P ÷ I²
Power PV × IV² ÷ RI² × R—

Worked examples

CircuitKnownResult
5 V across a 220 Ω resistor5 V, 220 Ω5 V, 22.73 mA, 220 Ω, 113.6 mW
20 mA through 150 Ω20 mA, 150 Ω3 V, 20 mA, 150 Ω, 60 mW
12 V, 0.5 A load12 V, 500 mA12 V, 500 mA, 24 Ω, 6 W
A 1/4 W, 1 kΩ resistor at full power250 mW, 1 kΩ15.81 V, 15.81 mA, 1 kΩ, 250 mW

The last row shows the most useful check in practice: a 1/4 W 1 kΩ resistor can only take 15.8 V before it reaches its rating. Keep at least a 2× margin — see resistor power ratings. For LEDs, use the dedicated LED resistor calculator.

FAQ

What is Ohm's law?

Voltage equals current times resistance (V = I × R). It holds for resistors and most conductors at a constant temperature.

How do I calculate the power of a resistor?

P = V × I = I² × R = V² ÷ R. Choose a resistor rated at least twice the calculated power.

How do I enter kilohms?

Type 4.7k, 4k7 or 4700 in the resistance field — all mean 4.7 kΩ.