Skip to content
xmoo.app

Tool · Electrical

Ohm’s Law & Power Calculator

Voltage, current, resistance, power: enter any two and the tool works out the other two – with the working shown and in a sensible unit, whether milliamps or kilohms.

Fill in exactly two fields.

Voltage V
Current I
Resistance R
Power P


      

What it is for

The formulas

Two relationships cover everything the tool calculates:

Substituting one into the other gives all six cases:

knownwanted
V and IR = V ÷ I · P = V × I
V and RI = V ÷ R · P = V² ÷ R
V and PI = P ÷ V · R = V² ÷ P
I and RV = I × R · P = I² × R
I and PV = P ÷ I · R = P ÷ I²
R and PV = √(P × R) · I = √(P ÷ R)

A note on symbols: this page writes voltage as V, as most English-language textbooks do. International standards and German textbooks use U for voltage, so you will see U = R · I there – it is the same law.

Units and prefixes

The tool works in volts (V), amperes (A), ohms (Ω) and watts (W). Very small and very large values get a prefix that stands for a power of ten. The tool picks a suitable one for the result by itself:

PrefixSymbolFactorExample
megaM10⁶4.7 MΩ = 4,700,000 Ω
kilok10³2 kW = 2,000 W
millim10⁻³20 mA = 0.02 A
microµ10⁻⁶50 µA = 0.00005 A

The most common mistake is a forgotten prefix: work 20 mA as 20 A and the resistor comes out a thousand times too small.

Decimal point or comma: both work. “3.15” and “3,15” are read as three point one five; “1,000” with a group of three digits after the comma is read as one thousand.

Example 1: series resistor for an LED

A red 5 mm LED, type Kingbright WP7113SRD-D, has a forward voltage of typically 1.85 V at 20 mA according to its datasheet (2.5 V at most); it can take at most 30 mA continuously. It is to run from 5 V at 20 mA (example values).

  1. The resistor gets whatever the LED leaves over: V = 5 V − 1.85 V = 3.15 V
  2. R = V ÷ I = 3.15 V ÷ 0.02 A = 157.5 Ω – these are the values the calculator opens with.
  3. You cannot buy a 157.5 Ω resistor. The next larger value in the standard E24 series is 160 Ω; with it, I = 3.15 V ÷ 160 Ω ≈ 19.7 mA flows. The Resistor Colour Code tool shows which bands that resistor carries.
  4. P = V × I = 3.15 V × 0.0197 A ≈ 62 mW turns into heat in the resistor. How much it can take is in the resistor’s datasheet.

If your LED’s forward voltage is closer to the maximum of 2.5 V, only 2.5 V is left for the resistor and about 15.6 mA flows – the LED is a little dimmer but stays safely below its current limit. That is why it is better to round up to the next larger resistor than down to the next smaller one.

+ 5 V R = 160 Ω across R: 5 V − 1.85 V = 3.15 V LED forward 1.85 V I = 3.15 V ÷ 160 Ω ≈ 19.7 mA Power in the resistor: 3.15 V × 19.7 mA ≈ 62 mW
The series resistor takes up the voltage the LED leaves over and so limits the current. Values from example 1. Own illustration.

Example 2: current drawn by a fan heater

Say the rating plate reads 230 V and 2,000 W (example values). A fan heater is essentially a resistive load:

  1. I = P ÷ V = 2,000 W ÷ 230 V ≈ 8.7 A
  2. R = V² ÷ P = (230 V)² ÷ 2,000 W ≈ 26.45 Ω

That resistance applies while the heater is running. If you measure the cold heater with a multimeter, you may get a different value, because the resistance of a metal changes with its temperature.

Checking with a multimeter

Calculating is good, measuring is better. A digital multimeter measures all three basic quantities, but each one differently:

For measurements on mains voltage the meter must be rated for it (measurement category “CAT” in the manual) – and work on mains wiring belongs in the hands of a qualified electrician.

Limits of this tool

Privacy: the calculator runs entirely in your browser. What you enter is not sent to xmoo.app or anyone else.

Sources

Page last updated: 31 October 2026