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

Inputs

V
A

Results update as you type. Prefixes work: 4.7k, 100u, 10n.

Result
Resistance
250 Ω
Power
100 mW
Step by step

The working with your numbers

  1. Resistance from voltage and currentR = V ÷ I = 5 ÷ 0.02 = 250 Ω
  2. PowerP = V × I = 5 × 0.02 = 100 mW
  3. The same power from the other two formsI² × R = 0.02² × 250 = 100 mW, V² ÷ R = 5² ÷ 250 = 100 mW
  4. Pick a wattage with headroomRating ≥ 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.