BenchOhm

Ohm's Law Calculator

Current equals voltage divided by resistance: I = V ÷ R. A 9 V battery across a 470 Ω resistor drives 9 ÷ 470 = 19.15 mA, and the resistor turns 172 mW into heat, so use a 1/2 W part.

Enter any two values

Known: voltage and resistance. Type in any box to change which two are known.

9 Vsource 470 Ω172.3 mW 19.15 mAcurrent →
Dissipates 172.3 mW: buy a 1/2 W resistor (at least 2× the heat). 470 Ω is a standard E6 value.

Steady DC and resistive loads. Values stay in your browser. How we calculate.

The Ohm's law formulas

Ohm's law links three quantities: voltage V in volts, current I in amperes and resistance R in ohms. Power P in watts follows from them. With any two known, the other two come out of one of these:

Use base units (V, A, Ω, W) in the formulas. 20 mA is 0.02 A, 4.7 kΩ is 4,700 Ω.
You knowCurrent IVoltage VResistance RPower P
V and RV ÷ R——V² ÷ R
V and I——V ÷ IV × I
I and R—I × R—I² × R
P and VP ÷ V—V² ÷ P—
P and I—P ÷ IP ÷ I²—
P and R√(P ÷ R)√(P × R)——

Ohm's law wheel

The wheel packs all twelve formulas into one picture. Find the quantity you want in the center; the three formulas in its quarter give it from different pairs of known values. The triangle version (V on top, I and R below) covers only the first three and leaves out power.

V × II² × RV² ÷ RPV ÷ RP ÷ V√(P ÷ R)IV ÷ IV² ÷ PP ÷ I²RI × RP ÷ I√(P × R)V

Worked examples

1. Series resistor for an LED on 5 V

A red LED drops about 2.0 V and should run at 15 mA. The resistor sees what is left: 5 − 2.0 = 3.0 V. R = 3.0 ÷ 0.015 = 200 Ω. The nearest standard value above it is 220 Ω, giving (3.0 ÷ 220) = 13.6 mA, a little dimmer and a little safer. Power: 3.0 × 0.0136 = 41 mW, so a 1/8 W or 1/4 W part is fine.

2. Is this resistor going to cook?

A 100 Ω resistor sits across a 12 V rail. I = 12 ÷ 100 = 120 mA and P = 12² ÷ 100 = 1.44 W. A 1/4 W resistor would overheat within seconds. It needs a 3 W part, or a higher resistance if the current is not the point.

3. Pull-up current on a microcontroller pin

A 10 kΩ pull-up to 3.3 V, with the button pressed to ground: I = 3.3 ÷ 10,000 = 0.33 mA and P = 1.1 mW. That is why 10 kΩ is the default pull-up: small enough to beat noise, large enough to waste almost nothing.

4. What resistance is a 60 W heater element at 120 V?

R = V² ÷ P = 14,400 ÷ 60 = 240 Ω and I = 60 ÷ 120 = 0.5 A. Measured cold, the element will show less than 240 Ω, because the resistance of metal rises as it heats.

Current through common resistors

A quick reference for breadboard work: the current through each resistor and the power it dissipates at four common supply voltages. Anything over 125 mW needs more than a 1/4 W resistor once you apply the 2× margin.

Each cell: current · power. Calculated with I = V ÷ R and P = V² ÷ R.
Resistor3.3 V5 V9 V12 V
100 Ω33 mA · 109 mW50 mA · 250 mW90 mA · 810 mW120 mA · 1.44 W
220 Ω15 mA · 49.5 mW22.7 mA · 114 mW40.9 mA · 368 mW54.5 mA · 655 mW
330 Ω10 mA · 33 mW15.2 mA · 75.8 mW27.3 mA · 245 mW36.4 mA · 436 mW
470 Ω7.02 mA · 23.2 mW10.6 mA · 53.2 mW19.1 mA · 172 mW25.5 mA · 306 mW
1 kΩ3.3 mA · 10.9 mW5 mA · 25 mW9 mA · 81 mW12 mA · 144 mW
2.2 kΩ1.5 mA · 4.95 mW2.27 mA · 11.4 mW4.09 mA · 36.8 mW5.45 mA · 65.5 mW
4.7 kΩ702 µA · 2.32 mW1.06 mA · 5.32 mW1.91 mA · 17.2 mW2.55 mA · 30.6 mW
10 kΩ330 µA · 1.09 mW500 µA · 2.5 mW900 µA · 8.1 mW1.2 mA · 14.4 mW

Choosing the resistor wattage

Every answer above comes with a wattage. We pick the smallest standard rating (1/8, 1/4, 1/2, 1, 2, 3, 5, 10 W and up) that is at least twice the power the resistor dissipates. A resistor run at its full rating gets very hot, and manufacturers cut the allowed power further above about 70 °C ambient. The 2× rule is a common design margin rather than a code requirement; for enclosed or hot boxes, check the derating curve in the datasheet.

Practice problems

  1. A 1.5 kΩ resistor carries 4 mA. What is the voltage across it? Answer: 1,500 × 0.004 = 6 V.
  2. A 24 V supply feeds 0.8 A into a load. What is its resistance and power? Answer: 30 Ω, 19.2 W.
  3. What is the most current a 1/4 W, 1 kΩ resistor can safely carry at full rating? Answer: I = √(0.25 ÷ 1000) = 15.8 mA; with a 2× margin, about 11 mA.
  4. You need 2.5 mA from 5 V. Which resistor? Answer: 2 kΩ; the nearest E12 part is 2.2 kΩ, giving 2.27 mA.

When Ohm's law does not apply

Safety: these formulas describe low-voltage hobby circuits. Anything connected to household mains can kill; leave mains wiring to a licensed electrician. To read the value of the resistor in your hand, use the resistor color code calculator; to combine resistors, the parallel and series resistor calculators.

Questions people ask

What is Ohm's law?

The current through a resistor equals the voltage across it divided by its resistance: I = V ÷ R. Rearranged it gives V = I × R and R = V ÷ I. It holds for resistors and wires at a steady temperature.

How do I use the Ohm's law calculator?

Type any two of voltage, current, resistance and power, with their units. The other two are filled in, and the last two boxes you typed are always the ones treated as known.

How is power related to Ohm's law?

Power is P = V × I. Substituting Ohm's law gives P = I² × R and P = V² ÷ R, which is why power rises with the square of the current: double the current through a resistor and it heats four times as much.

What wattage resistor do I need?

Work out the power it will dissipate, then pick a rating at least twice that. A resistor dropping 0.17 W should be a 1/2 W part, not 1/4 W. The calculator does this pick for you under every answer.

Does Ohm's law work for LEDs?

Not directly: an LED is not a resistor, its voltage stays near its forward voltage across a wide range of current. Apply Ohm's law to the series resistor only, using the voltage left over: (supply − LED forward voltage) ÷ desired current.

Can I use Ohm's law for AC circuits?

For purely resistive loads such as heaters, yes, with RMS voltage and current. With capacitors, inductors or motors, resistance is replaced by impedance and power depends on the phase angle, so the simple formulas no longer give the right power.