Ohm's law calculator
Fill in any two of the four boxes: voltage, current, resistance or power. The calculator works out the other two and names the formula it used, so you can follow the working by hand. Leave the two you want to find empty.
Example: 12 V, 12 mA, 1 kΩ, 144 mW
Worked out with I = V ÷ R and P = V² ÷ R.
| Voltage (given) | 12 V |
|---|---|
| Current | 12 mA = 0.012 A |
| Resistance (given) | 1 kΩ |
| Power | 144 mW |
Worked from the formula shown for low-voltage DC circuits. Part values vary within their tolerance, so confirm with a multimeter and the parts' datasheets before you rely on a figure.
Ohm's law describes a plain resistor. Lamps, motors, LEDs and heaters change their resistance as they warm or as the current changes, so for them these figures hold only at the operating point you entered.
The formula, with a worked example
- Ohm's law: V = I × R, which rearranges to I = V ÷ R and R = V ÷ I, with V in volts, I in amps and R in ohms.
- Power: P = V × I. Substituting Ohm's law gives P = I² × R and P = V² ÷ R, so any two known quantities fix the other two.
- Worked example: 12 V across a 1 kΩ resistor. I = 12 ÷ 1,000 = 0.012 A, or 12 mA, and P = 12 × 0.012 = 0.144 W, or 144 mW.
- From current and power: 20 mA and 0.5 W give V = 0.5 ÷ 0.02 = 25 V and R = 0.5 ÷ 0.02² = 1,250 Ω.
- From resistance and power: a 470 Ω quarter-watt part reaches its rating at V = √(0.25 × 470) = 10.84 V, where it passes I = √(0.25 ÷ 470) = 23.06 mA.
- The current box takes milliamps, because that is how small circuits are usually described. Divide by 1,000 to get amps before using the formulas by hand.
What the four quantities mean
Voltage is the push, measured in volts. Current is the flow it drives, in amps; for most hobby circuits milliamps, thousandths of an amp, are the handier unit. Resistance, in ohms, is how hard a part pushes back against the flow. Power, in watts, is the rate at which energy turns into heat, light or motion.
Ohm's law ties the first three together and the power law brings in the fourth. Know any two and the other two are fixed, which is why the calculator asks for exactly two. Three values could contradict each other, so it asks you to clear one.
Rearranging V = I × R
Many people remember the law as a triangle with V at the top and I and R side by side underneath. Cover the one you want and the other two show the sum: cover V and you see I × R, cover I and you see V over R, cover R and you see V over I.
Units have to match. Volts and amps give ohms. Volts and milliamps give kilohms, which is a handy shortcut: 5 V at 2 mA is 2.5 kΩ with no zeros to count. Mixing them, say volts with milliamps but expecting an answer in plain ohms, is the most common slip when working by hand.
Checking a resistor's power rating
A resistor turns all the power it handles into heat, and its rating, often 1/4 W for through-hole parts, is the most it can shed at room temperature. Enter the resistance and the voltage across it to see the watts. Running a part at half its rating or less keeps it cooler and its value steadier.
You can also work backwards: enter the resistance, and the rating as the power, to find the highest voltage the part can take before it reaches that limit. The worked example above does this for a 470 Ω quarter-watt part.
Where Ohm's law stops working
The law assumes the resistance stays put. That holds for ordinary resistors over their normal range, but not for many other parts. A filament lamp has several times more resistance hot than cold. An LED or a diode hardly conducts below its forward voltage and then conducts heavily, so it has no single resistance to speak of.
Batteries and bench supplies have internal resistance too, so their voltage sags as the load current rises. If a measured voltage is lower than the label, that internal drop is often why. Measure under load to get the figure the formulas need.
Measuring the values you enter
A multimeter measures voltage across a part, with the circuit running. It measures current in series, with the circuit broken, the meter bridging the gap and the leads moved to the current sockets. Resistance is measured with the power off and, ideally, one end of the part lifted out of the circuit.
Measured numbers never line up perfectly with the formula, because meters, wires and parts all carry small errors. Agreement within a few percent means the calculation and the circuit match. This calculator stops at 60 V and 50 A, the range of battery packs, bench supplies and hobby boards.
Current through common resistors at common voltages
| Resistor | At 3.3 V | At 5 V | At 9 V | At 12 V | At 24 V |
|---|---|---|---|---|---|
| 100 Ω | 33 mA | 50 mA | 90 mA | 120 mA | 240 mA |
| 220 Ω | 15 mA | 22.727 mA | 40.909 mA | 54.545 mA | 109.091 mA |
| 470 Ω | 7.021 mA | 10.638 mA | 19.149 mA | 25.532 mA | 51.064 mA |
| 1 kΩ | 3.3 mA | 5 mA | 9 mA | 12 mA | 24 mA |
| 4.7 kΩ | 0.702 mA | 1.064 mA | 1.915 mA | 2.553 mA | 5.106 mA |
| 10 kΩ | 0.33 mA | 0.5 mA | 0.9 mA | 1.2 mA | 2.4 mA |
I = V ÷ R. Multiply the current by the voltage for the power in the resistor.
Frequently asked questions
How many amps is 12 volts through 1k ohms?
12 mA, or 0.012 A. Divide the volts by the ohms: 12 ÷ 1,000.
What resistance draws 20 mA from 5 V?
250 Ω, from R = V ÷ I = 5 ÷ 0.02. It dissipates 0.1 W, so a quarter-watt part has room to spare.
How do I find watts from volts and ohms?
Square the voltage and divide by the resistance. 9 V across 162 Ω is 81 ÷ 162 = 0.5 W.
What is the formula for current?
I = V ÷ R, or I = P ÷ V when you know the power instead of the resistance.
Does Ohm's law work for AC?
For plain resistors it does, using RMS voltage and current. Coils and capacitors add reactance that depends on frequency, which this calculator leaves out.
Why can I only fill in two boxes?
Two values fix the other two. A third could disagree with them, and the calculator would have to guess which one you meant.
Want to know how much of a supply one resistor takes, and how much reaches the rest of the circuit? Work it out with the Resistor voltage drop calculator.
Other calculators on this site
-
Resistor color code calculator
Read 4, 5 and 6-band resistors: value, tolerance and the range a meter should show.
-
Voltage divider calculator
Output voltage, current and power of a two-resistor divider, with the R2 for a target voltage.
-
LED resistor calculator
The series resistor for one LED or a string, rounded to a stock value, with its power rating.
-
Parallel and series resistor calculator
Total resistance of two to six resistors in parallel and in series, with each one's current and power.
-
Resistor voltage drop calculator
The voltage across a resistor from the current, or from the supply and the rest of the circuit.
-
SMD resistor code calculator
Decode 3-digit, 4-digit, R and EIA-96 codes on surface-mount resistors.
-
RC time constant calculator
τ = RC, the capacitor voltage at each time constant, and the filter cutoff.