Ohm’s Law Calculator

Enter any two of voltage, current, resistance and power – the calculator works out the other two with Ohm’s law and P = U · I.

Runs locally in your browser
V
A
Ω
W
Fill in exactly two fields. Prefixes work: 4k7, 20m (= 0.02), 100µ.
Voltage U · given12 V
Current I · I = U / R25.53 mA
Resistance R · given470 Ω
Power P · P = U² / R306.4 mW

About this tool

Ohm’s law U = R · I links voltage, current and resistance; together with power P = U · I, two known quantities are enough to work out the other two. The calculator takes any pair of values and shows which formula it uses for the rest.

Enter values the way they appear on parts and schematics: 4k7 for 4.7 kΩ, 20m for 20 mA, 100µ for 100 µA. Results are shown with a fitting prefix. Everything is calculated in your browser.

How it works

  1. Enter two of the four values, for example voltage and resistance.
  2. The two missing quantities appear right below, each with the formula used.
  3. Use “Clear” to reset all fields and calculate another combination.

Frequently asked questions

What is Ohm’s law?

U = R · I: the voltage in volts equals the resistance in ohms times the current in amperes. Rearranged, I = U / R and R = U / I. Power is P = U · I, which gives P = I² · R and P = U² / R.

Does Ohm’s law apply to every component?

Strictly speaking only to ohmic resistors, whose resistance does not depend on current or voltage. Diodes, LEDs and light bulbs behave differently. That is why you calculate an LED series resistor with the LED Resistor Calculator calculator.

What power rating does my resistor need?

The calculated power P turns into heat in the resistor. Choose a resistor whose rated power is well above it – a common rule of thumb is at least twice, so a 0.25 W resistor for 0.1 W.

How do I enter milliamps or kilohms?

With an SI prefix right after the number: 20m is 0.02 A, 4k7 or 4.7k is 4700 Ω, 1M is 1 MΩ. You can omit the unit or add it (20 mA).

How do I read the value of a resistor?

For through-hole resistors use the Resistor Color Code. What a device with a certain power costs in electricity per year is shown by the Electricity Cost Calculator.