Skip to content
Electronics

Ohm's Law Calculator

Solve for any unknown in Ohm's Law — voltage, current, or resistance — by entering the other two. Also calculates power dissipation so you can pick the right resistor wattage rating.

Ohm's Law Fundamentals

Ohm's Law (V = I × R) is the foundation of electronics. Use this tool to find any one of the three parameters when you know the other two. Also shows power dissipation (P = V × I) which tells you if a resistor will overheat.

VRI = V / R

Enter two values to see the circuit

20 mA = 0.020 A

Fill in the two known values.

Ohm's law in one line

V = I × R: the voltage across a resistor equals the current through it times its resistance. Rearranged, I = V ÷ R and R = V ÷ I. Add the power law P = V × I and you can find every quantity from any two of them.

All 12 formulas

To findFrom V and IFrom V and RFrom I and RUsing power
Voltage V——V = I × RV = P ÷ I, V = √(P × R)
Current I—I = V ÷ R—I = P ÷ V, I = √(P ÷ R)
Resistance RR = V ÷ I——R = V² ÷ P, R = P ÷ I²
Power PP = V × IP = V² ÷ RP = I² × R—

Keep units consistent: volts, amps, ohms and watts. A common mistake is using milliamps directly: 20 mA must be entered as 0.020 A in the formula (this calculator handles the units for you).

The Ohm's law triangle

Write V at the top of a triangle and I and R side by side underneath. Cover the quantity you want: covering V leaves I × R, covering I leaves V over R, covering R leaves V over I.

Worked examples from real projects

  • Pull-down resistor current: a 10 kΩ pull-down on a 5 V Arduino input draws 5 ÷ 10 000 = 0.5 mA when the button is pressed.
  • Heater element: a 12 V, 24 W heating pad draws 24 ÷ 12 = 2 A and has a resistance of 12 ÷ 2 = 6 Ω.
  • Current-sense shunt: 1.5 A through a 0.1 Ω shunt drops 0.15 V and turns 0.225 W into heat, so a ½ W resistor is the minimum.

Where Ohm's law stops working

Ohm's law describes linear components. Resistors, wires and heating elements follow it closely. LEDs, diodes, transistors and motors do not: their current is not proportional to voltage, which is why an LED needs a series resistor and why a motor draws far more current at stall than while spinning. For AC circuits with capacitors and inductors, replace R with impedance Z.

Formula, inputs and worked examples

Formula and method

V = IR; P = VI = I²R = V²/R for an ideal resistive element.

Worked examples

Current through a resistor on a 3.3 V rail

A 3.3 V rail across a 220 Ω resistor: I = V / R = 3.3 / 220 = 15 mA. Power: P = V × I = 3.3 × 0.015 = 49.5 mW, far below the 250 mW rating of a typical ¼ W resistor.

Picking a resistor for a fixed current

To pass 20 mA from a 9 V supply: R = V / I = 9 / 0.02 = 450 Ω. Power: P = V × I = 9 × 0.02 = 0.18 W, so a ¼ W part would run near its limit; use a ½ W resistor for margin.

Inputs

  • Known voltage — Unit: V
  • Known current — Unit: A
  • Known resistance — Unit: Ω

What the result means

  • Solved voltage, current, resistance, or power — Unit: V / A / Ω / W

Practical tips and common mistakes

  • Convert units first: 20 mA is 0.02 A and 4.7 kΩ is 4,700 Ω. Most wrong answers come from a missed milli or kilo.
  • Power rises with the square of current (P = I²R). Doubling the current quadruples the heat in the resistor.
  • As a rule of thumb, keep a resistor at or below half of its power rating in continuous use.
  • Ohm's law describes resistive parts. LEDs, diodes and motors are not simple resistors, so use the LED resistor calculator for LEDs.

Assumptions and limitations

  • The simple formulas assume a defined operating point and an ideal resistive load for power equivalences.
  • Check component ratings and avoid treating a GPIO as a general-purpose power supply.

Frequently asked questions

What is Ohm's law in simple terms?

Current through a resistor is proportional to the voltage across it: double the voltage and the current doubles. The constant of proportionality is the resistance, written V = I × R.

How do I calculate current from voltage and resistance?

Divide voltage by resistance: I = V ÷ R. For example, 9 V across 470 Ω gives 9 ÷ 470 = 0.019 A, which is 19 mA.

How do I calculate power from voltage and resistance?

Use P = V² ÷ R. A 5 V supply across a 100 Ω resistor dissipates 25 ÷ 100 = 0.25 W, which is exactly the limit of a ¼ W resistor, so use a ½ W part for margin.

Does Ohm's law apply to LEDs and diodes?

No. Diodes and LEDs are non-linear: they conduct very little until their forward voltage and then current rises steeply. Use Ohm's law on the series resistor instead, with the voltage left over after the LED's forward voltage.

Learn more

More Electronics