Tools / Ohm’s Law & Power
How to use Ohm's law and the power law
Voltage, current and resistance are tied by one rule. Here is the working with your numbers.
R = V/I, P = VI
Result
- Resistance
- 250 Ω
- Power
- 100 mW
Step by step
The working with your numbers
- Resistance from voltage and current
R = V ÷ I = 5 ÷ 0.02 = 250 Ω - Power
P = V × I = 5 × 0.02 = 100 mW - The same power from the other two forms
I² × R = 0.02² × 250 = 100 mW, V² ÷ R = 5² ÷ 250 = 100 mW - Pick a wattage with headroom
Rating ≥ 2 × P = 200 mW → 1/4 W
Does the answer make sense?
- OK: Triangle check: V = I × R = 0.02 × 250 = 5 V.
- OK: 100 mW is within a ⅛ W resistor.
Pick a real part
- Nearest standard resistor (E12): 270 Ω, which carries 18.5 mA at 5 V.
Common mistakes
- Mixing milliamps and amps. 20 mA is 0.02 A.
- Using Ohm's law on an LED or a diode. They are not fixed resistances.
- Choosing a resistor rated exactly at the power it dissipates. It will run very hot.
Learn it, try it, build it
Calculated, not measured. Check the exact part datasheet and your real circuit before powering anything.
Just need the number? Use the Ohm’s law & power calculator on Geekobot.
Common questions
What is Ohm's law?
V = I × R. The voltage across a resistor equals the current through it times its resistance. 5 V across 250 Ω gives 20 mA.
How do you work out resistor power?
P = V × I = I² × R = V² ÷ R. Pick a resistor rated at least twice that, so a part that dissipates 0.1 W should be ¼ W.
