GlobalFree to use

Ohm’s law calculator: voltage, current, resistance and power

Enter any two of voltage, current, resistance and power to get the other two, with SI prefixes such as 4.7k, 20m or 1.5M accepted and the formulas shown.

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Input

Tip: press Ctrl + Enter to run

Your result

Your result will appear here.

About this tool

Ohm’s law ties together the four quantities you meet in every simple circuit: voltage (V), current (I), resistance (R) and power (P). Know any two and the other two follow. This calculator lets you fill in whichever two you have, for example the supply voltage and a resistor value, or a component’s current and power rating, and returns the rest along with the formulas it used.

Values can be typed the way they appear on parts and datasheets: 4.7k or 4k7 for 4,700 ohms, 20m for 20 milliamps, 1.5M for 1.5 megohms. Results are shown with sensible prefixes, so a current of 0.05455 A reads as 54.55 mA, and the power figure helps you choose a resistor with an adequate wattage rating.

How to use it

  1. Fill in exactly two of the four boxes: voltage, current, resistance or power.
  2. Use SI prefixes where convenient, such as 220, 4.7k, 20m or 0.25.
  3. Run it to get all four quantities with prefixes.
  4. Check the power against the rating of your resistor, leaving a safety margin.

How the calculation works

Ohm’s law V = I × R and the power law P = V × I give six combinations. From V and R: I = V ÷ R and P = V² ÷ R. From I and R: V = I × R and P = I² × R. From P and R: V = √(P × R) and I = √(P ÷ R). The remaining pairs are rearranged in the same way. Values are converted to base units before calculating.

V = I × R; P = V × I = I² × R = V² ÷ R

Worked example

A 220 Ω resistor sits directly across a 12 V supply. The current is 12 ÷ 220 = 54.55 mA and the resistor dissipates 12² ÷ 220 = 654.5 mW. A common 1/4 W (250 mW) resistor would overheat, so a 2 W part (about double the power, for a safety margin) or a larger resistance is the better choice.

Sample input and result

12 V across 220 Ω: 54.55 mA and 654.5 mW

Limitations

  • DC or purely resistive AC only; no reactance, impedance or phase angle.
  • Exactly two inputs, all positive.
  • It does not pick standard resistor values; round to the nearest available value yourself.

Last updated:

Frequently asked questions

What size resistor do I need for an LED?

Subtract the LED’s forward voltage from the supply voltage and divide by the LED current. For a 5 V supply, a 2 V LED and 20 mA, enter 3 V and 20m to get 150 Ω, then pick the next standard value up.

How do I enter milliamps or kilohms?

Use SI prefixes: 20m for 20 mA, 4.7k or 4k7 for 4,700 Ω, 1.5M for 1.5 MΩ. A trailing unit letter such as V or A is ignored.

Does Ohm’s law work for AC circuits?

For purely resistive loads, yes, using RMS voltages and currents. Circuits with capacitors, inductors or motors need impedance and phase, which this calculator does not handle.

Why does it need exactly two values?

Two values fix the other two. A third value could contradict them, so the calculator asks for two and computes the rest.

How do I find the resistor for an LED?

Enter the voltage left after the LED’s forward voltage and the LED current, for example 3 V and 20m, to get the resistance (150 Ω) and its power.

Troubleshooting

It asks for exactly two values.

Clear the boxes you do not know so that only two contain numbers.

A value is not recognized.

Write numbers with an optional prefix: p, n, u (or µ), m, k, M or G, for example 470u or 2k2.

Privacy & Free to use

Are my inputs stored?

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Is this tool free?

Yes. No signup or payment is required.

Processed in your browser

Useful next steps