What is Ohm's law?
Ohm's law links three quantities of a simple electric circuit: voltage (V, in volts), current (I, in amperes) and resistance (R, in ohms). It says that V = I × R. A second rule, P = V × I, adds power (P, in watts). Put them together and any two of the four quantities give you the other two. This calculator does exactly that: fill in two of V, I, R and P, leave the other two empty, and it returns the missing pair along with the formula used for each.
You can type values the way electronics people write them. A suffix scales the number: m is milli (one thousandth), k is kilo, M is mega, G is giga, u or µ is micro and n is nano. So 4.7k is 4,700 and 250m is 0.25. Case matters: m is thousandths while M is millions. Results are shown with the best prefix, such as 25.53 mA instead of 0.02553 A.
A second section handles resistors in series and in parallel. Type the values separated by spaces and get the total resistance of both arrangements. Everything is calculated in your browser.
How to use the calculator
- Choose which two quantities you know among voltage, current, resistance and power.
- Type them in their fields. Use suffixes if it is easier, like
20mfor 20 milliamperes. - Leave the other two fields empty. The results appear at once.
- Read each result and its formula. Click a line to copy it.
- To combine resistors, type their values in the last box, separated by spaces, for example
100 220 470. The total in series and in parallel appears at the bottom. - If you see an error, it says which field to fix: filling in three values or only one is the usual cause.
Examples
12 V across 470 Ω
Current: I = V / R = 12 / 470 = 0.02553 A, which is 25.53 mA. Power: P = V × I = 12 × 0.02553 = 306.38 mW. The resistor must be rated for at least a third of a watt, so a 0.5 W part would do.
Sizing an LED resistor
A 9 V supply and an LED that should carry 20 mA, ignoring the LED's own voltage drop: R = V / I = 9 / 0.02 = 450 Ω and P = 9 × 0.02 = 180 mW. Remember to subtract the LED voltage from the supply in a real design.
1 W at 10 V
Current: I = P / V = 1 / 10 = 100 mA. Resistance: R = V² / P = 100 / 1 = 100 Ω.
Any pair gives the same answer
With 12 V and 2 A you get R = 6 Ω and P = 24 W. Enter 2 A and 6 Ω instead and you get V = 12 V and P = 24 W again, which is a good check of your setup.
Series and parallel
Three resistors of 100, 220 and 470 Ω in series add up to 100 + 220 + 470 = 790 Ω. In parallel, 1/R = 1/100 + 1/220 + 1/470, so R is about 59.98 Ω, always lower than the smallest resistor.
Common mistakes
- Mixing m and M.
10mis ten milli,10Mis ten mega. A million-fold difference. - Using decimal commas with suffixes.
4,7kworks, but4k7(the notation printed on some parts) does not; write4.7k. - Filling in three or four values. Two is enough and more could contradict each other.
- Forgetting that power grows with the square. Doubling the current quadruples the power in the same resistor.
- Using the formulas for AC or non-linear parts. Ohm's law as used here is for resistors with steady current. Diodes, motors and AC circuits need more.
Frequently asked questions
What is the formula for each missing value?
I = V / R, R = V / I, V = I × R, P = V × I, P = I² × R and P = V² / R. The calculator shows the one it used under each result.
How do I find a resistor's value from its colors?
Use the resistor color code calculator, which also finds the nearest standard value to what you calculated here.
Why is parallel resistance smaller than each resistor?
More paths for the current mean less opposition overall. Two equal resistors in parallel give half of one.
How much does a device cost to run?
Power times time is energy. Use the energy cost calculator to turn watts into kWh and money.
Can I convert between volts and millivolts here?
Yes, by suffix: 1 V is 1,000 mV. For other units see the unit converter.