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.
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:
| You know | Current I | Voltage V | Resistance R | Power P |
|---|---|---|---|---|
| V and R | V ÷ R | — | — | V² ÷ R |
| V and I | — | — | V ÷ I | V × I |
| I and R | — | I × R | — | I² × R |
| P and V | P ÷ V | — | V² ÷ P | — |
| P and I | — | P ÷ I | P ÷ 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.
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.
| Resistor | 3.3 V | 5 V | 9 V | 12 V |
|---|---|---|---|---|
| 100 Ω | 33 mA · 109 mW | 50 mA · 250 mW | 90 mA · 810 mW | 120 mA · 1.44 W |
| 220 Ω | 15 mA · 49.5 mW | 22.7 mA · 114 mW | 40.9 mA · 368 mW | 54.5 mA · 655 mW |
| 330 Ω | 10 mA · 33 mW | 15.2 mA · 75.8 mW | 27.3 mA · 245 mW | 36.4 mA · 436 mW |
| 470 Ω | 7.02 mA · 23.2 mW | 10.6 mA · 53.2 mW | 19.1 mA · 172 mW | 25.5 mA · 306 mW |
| 1 kΩ | 3.3 mA · 10.9 mW | 5 mA · 25 mW | 9 mA · 81 mW | 12 mA · 144 mW |
| 2.2 kΩ | 1.5 mA · 4.95 mW | 2.27 mA · 11.4 mW | 4.09 mA · 36.8 mW | 5.45 mA · 65.5 mW |
| 4.7 kΩ | 702 µA · 2.32 mW | 1.06 mA · 5.32 mW | 1.91 mA · 17.2 mW | 2.55 mA · 30.6 mW |
| 10 kΩ | 330 µA · 1.09 mW | 500 µA · 2.5 mW | 900 µA · 8.1 mW | 1.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
- A 1.5 kΩ resistor carries 4 mA. What is the voltage across it? Answer: 1,500 × 0.004 = 6 V.
- A 24 V supply feeds 0.8 A into a load. What is its resistance and power? Answer: 30 Ω, 19.2 W.
- 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.
- 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
- Diodes and LEDs have a nearly fixed voltage drop, not a fixed resistance. Calculate the resistor, not the LED.
- Incandescent bulbs and heaters change resistance with temperature. The cold reading can be ten times lower than the hot one.
- AC with capacitors or inductors needs impedance, not resistance, and the power formula gains a power factor.
- Batteries under load have internal resistance, so their terminal voltage sags as current rises.
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.