Simple Counter is now an Android app.Our Android app is here. Become a founding tester and try it before anyone else.

Join the testers

Electrical calculator · Free · No upload

Ohm’s Law Calculator

Short answer

An Ohm's law calculator finds the missing electrical quantities from two you know. Choose any two of voltage, current, resistance and power, enter them, and this page returns the other two, using V = I × R and P = V × I, with the formula for each result, a check against a resistor's power rating and the nearest standard resistor values.

Enter two values, read the other two.

I = 12 mAP = 144 mW144 mW is 58% of a ¼ W rating: inside the rating, but above the half-rating margin often used as a rule of thumb.
All four quantities, and how each one was found
QuantityValueIn base unitsHow it was found
Voltage (V)12 V12 VYou entered this
Current (I)12 mA0.012 AI = V ÷ R
Resistance (R)1 kΩ1000 ΩYou entered this
Power (P)144 mW0.144 WP = V² ÷ R

Nearest standard resistor values for 1 kΩ: E24 1 kΩ (exact), E12 1 kΩ (exact).

LED series resistor

R = (5 − 2) ÷ 0.02 A = 150 Ω

The resistor dissipates 60 mW. That is a standard E24 value, so the current is exactly 20 mA.

Everything is worked out in this browser and never sent anywhere; only the boxes are kept here so the page reopens as you left it.

Enter any two of voltage, current, resistance and power. The other two come back with the formula used for each, a power-rating check for a resistor, the nearest E12 and E24 values, and an LED resistor block.

Ohm’s law states that the current through a conductor is proportional to the voltage across it: V = I × R. Combined with the power formula P = V × I, any two of voltage, current, resistance and power give the other two.

  • No sign-up
  • Nothing uploaded
  • Works offline
  • Every formula shown
  • Resistor rating check

Key facts

Ohm's law calculator at a glance
DetailAnswer
InputsAny two of voltage, current, resistance and power, each above zero
UnitsMicro to mega for voltage and power, micro to kilo for current, milli to giga for resistance
FormulasV = I × R and P = V × I, in all twelve rearranged forms
Resistor checkPower against a rating of ⅛, ¼, ½, 1, 2, 5 or 10 W
Preferred valuesNearest E12 and E24 value, marked exact when it is one
Where your values goNowhere: they are worked out in this browser

How to use the Ohm's law calculator

Pick the two quantities you know, then read the other two.

  1. Choose the first quantity

    Pick voltage, current, resistance or power, then type its value and unit.

  2. Choose the second

    Pick a different quantity and enter its value; the two must not be the same.

  3. Read the other two

    They appear at the top, and all four are in the table with the formula for each.

  4. Check a resistor

    Choose its power rating to see whether the heat is inside it.

  5. Pick a real part

    Read the nearest E12 and E24 values for the resistance.

  6. Size an LED resistor

    Enter the supply, the LED's forward voltage and its current in the LED block.

Who uses an Ohm's law calculator

Anyone who has two electrical values and needs the other two, or the part to buy.

  • Electronics hobbyists

    The series resistor for an LED, and whether it will run hot.

  • Students

    Checking the working for a physics or electronics exercise.

  • Makers and Arduino users

    Current drawn by a part from a known supply and resistance.

  • Technicians

    A quick resistive load check, from watts and volts to amps and ohms.

  • Teachers

    Examples with all four quantities and every formula visible.

  • Anyone choosing a resistor

    The rating that suits the power, and the value on the shelf.

The Ohm's law formulas, and a mistake to avoid

Ohm’s law says that the current through a conductor is proportional to the voltage across it, V = I × R, with the resistance R as the constant of proportionality (Wikipedia). Electric power is the rate at which energy is transferred, and for a steady current it is P = V × I (Wikipedia). Put the two together and each of the four quantities can be written from any two of the others. That gives twelve forms, and this page uses the one that matches the two values you know.

The twelve forms of Ohm’s law and the power formula
To findFrom V and IFrom V and RFrom V and PFrom I and RFrom I and PFrom R and P
Voltage V–––I × RP ÷ I√(P × R)
Current I–V ÷ RP ÷ V––√(P ÷ R)
Resistance RV ÷ I–V² ÷ P–P ÷ I²–
Power PV × IV² ÷ R–I² × R––

The letters mean voltage (V, in volts), current (I, in amperes), resistance (R, in ohms, written with the capital omega Ω) and power (P, in watts). Four worked examples, each checked by the calculator above:

Worked examples
You knowWorkingResult
12 V across 1 kΩI = 12 ÷ 1000; P = 12² ÷ 100012 mA and 144 mW
0.02 A through 150 ΩV = 0.02 × 150; P = 0.02² × 1503 V and 60 mW
230 V across 46 ΩI = 230 ÷ 46; P = 230² ÷ 465 A and 1150 W
5 V and 20 WI = 20 ÷ 5; R = 5² ÷ 204 A and 1.25 Ω

A mistake worth avoiding. Resistance from voltage and power is V² ÷ P, not V ÷ P. Dividing 5 V by 20 W gives a number with no meaning (volts per watt is not ohms); the right sum is 25 ÷ 20 = 1.25 Ω. Checking the units is the quickest test: V² ÷ P is volts squared per watt, and a watt is a volt times an ampere, so what is left is volts per ampere, which is an ohm.

Is the resistor big enough? Power ratings

Every resistor turns the power it carries into heat, and each is sold with a power rating, the most it can dissipate under the conditions in its datasheet (Wikipedia on resistors). The calculator above works out the power and compares it with the rating you choose. It says whether the part is over its rating, inside it, or inside it with room to spare, where room means at or below half the rating, a margin many designers use as a rule of thumb. The datasheet’s derating curve is the authority for a real design, since a rating falls as the part gets hotter.

Common ratings, the half-rating margin, and the voltage across 1 kΩ that reaches each rating
RatingHalf the ratingVolts across 1 kΩ at the full rating
⅛ W (0.125 W)62.5 mW11.18 V
¼ W (0.25 W)125 mW15.81 V
½ W (0.5 W)250 mW22.36 V
1 W500 mW31.62 V

The last column is V = √(P × R) with R = 1000 Ω. Resistors also have a maximum working voltage of their own, set by the construction rather than the heat, and it can be the lower limit on a large resistance. This page checks the power only.

LED series resistor: Ohm's law in practice

An LED is not an ohmic part: its current is not proportional to its voltage, and it needs something to limit the current (Wikipedia on LEDs). Ohm’s law still works for the series resistor, using the voltage that is left after the LED has taken its forward voltage: R = (supply − forward voltage) ÷ current. The LED block above does this sum, tells you the heat in the resistor, and gives the nearest E24 value and the next one up. Take the forward voltage and the current from the LED’s datasheet; a red LED is often about 2 V and blue and white ones about 3 V or more, but the datasheet gives the real figure for the part in front of you.

Four LED resistor examples at 20 mA, or 10 mA where noted
Supply, LED, currentResistor neededNext E24 value upCurrent with that valueResistor heat
5 V, 2 V, 20 mA150 Ω150 Ω20 mA60 mW
5 V, 3 V, 20 mA100 Ω100 Ω20 mA40 mW
3.3 V, 2 V, 10 mA130 Ω130 Ω10 mA13 mW
12 V, 2 V, 20 mA500 Ω510 Ω19.61 mA200 mW

The 12 V row is the one to notice: 200 mW is 80% of a ¼ W resistor’s rating, so use a ½ W part there. Rounding the resistor up keeps the current at or below the target; rounding down would push it above.

Standard resistor values: E12 and E24

Resistors are made in preferred values, not in every number. The E series (IEC 60063) spaces its values evenly on a logarithmic scale, so each step is about the same percentage from the last (Wikipedia on the E series). A calculated 347 Ω is not on the shelf; the nearest E24 value is 360 Ω, and the nearest E12 value is 330 Ω. The calculator names both, and says so when the value is exact.

The E series in common use
SeriesValues per decadeTypical toleranceValues from 1 to 10
E66±20%1.0, 1.5, 2.2, 3.3, 4.7, 6.8
E1212±10%1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2
E2424±5%1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.8, 2.0, 2.2, 2.4, 2.7, 3.0, 3.3, 3.6, 3.9, 4.3, 4.7, 5.1, 5.6, 6.2, 6.8, 7.5, 8.2, 9.1

Multiply by 10, 100, 1000 and so on for the other decades: 4.7 becomes 47 Ω, 470 Ω or 4.7 kΩ. Finer series (E48, E96, E192) exist for tighter tolerances and are not listed here; the calculator rounds to E12 and E24 only.

What this Ohm's law calculator does not do

This solves V = I × R and P = V × I for a steady value. It does not handle impedance, phase, power factor or non-ohmic parts, and it is not a design or safety check. For AC it is right when the load is a pure resistance and you enter RMS values; a motor, a transformer, a capacitor or an inductor has reactance, and power then depends on the phase angle as well. The Ohm’s law wheel guide works a 230 V, 5 A example where volts times amps is 1,150 VA but the power is 920 W.

What this Ohm’s law calculator does and does not do
It doesIt does not
Take any two of voltage, current, resistance and powerTake three values at once
Return all four with the formula for eachShow the answer for a negative or zero value
Accept micro to giga unitsConvert between units of different quantities
Check power against a resistor ratingCheck a resistor’s maximum working voltage or temperature derating
Name the nearest E12 and E24 valuesPick finer tolerance series such as E96
Size an LED series resistorDrive several LEDs, or a constant-current supply
Work in this browser onlyUpload the values

Ohm’s law describes an ohmic conductor, one whose resistance stays constant. A diode, an LED, a transistor and a lamp filament do not behave that way, and the law holds for a metallic resistor only while its temperature stays the same. For mains wiring, fuses and anything where an error can cause harm, follow the rules and the qualified advice that apply where you are. To take a square root by hand, as the last form in the table needs, the square root calculator shows it to more places. When the value you have is a power in watts on a label and you want the current, the watt to amp calculator handles single-phase, three-phase and power factor; when you have the current and voltage and want the power, use the amp to watt calculator; and when the figure is energy from a meter or a bill, the kWh to watt calculator turns kilowatt-hours into average watts; and to see what that power costs over a day, a month or a year, use the energy cost calculator; and for how long a battery can supply that power, the battery life calculator.

This calculator or an answer-only one

What this page adds to a typical online Ohm’s law calculator.

This Ohm’s law calculator compared with a typical answer-only one
 This calculatorA typical answer-only calculator
CostFree, no sign-upFree
Pairs it acceptsAny two of V, I, R and PAny two, or fewer
Shows the formula usedOne per result, including V² ÷ P and P ÷ I²Often only I = V ÷ R
Resistor power-rating checkOver, inside, or room to spareNo
Standard resistor valuesNearest E12 and E24No
LED series resistorBuilt inA separate page, if any
AC with phase anglesNo, steady or RMS values onlySometimes

More calculators

Every calculator on the site runs in your browser, needs no sign-up, and sends nothing anywhere.

Frequently asked questions

What are the Ohm's law formulas?

Ohm's law is V = I × R, which rearranges to I = V ÷ R and R = V ÷ I. Combined with the power formula P = V × I it gives P = I² × R and P = V² ÷ R, and from those the square-root forms. The table above lists all twelve, and the calculator picks the one that fits your two known values.

What do the letters in the Ohm's law formula mean?

V is voltage, in volts, the push that drives current. I is current, in amperes, the flow of charge. R is resistance, in ohms, how much the part opposes the current. P is power, in watts, the rate at which energy is turned into heat or work. The letter I stands for intensity of current.

How do I calculate power from voltage and resistance?

Use P = V² ÷ R: square the voltage, then divide by the resistance. At 12 V across 1 kΩ that is 144 ÷ 1000 = 0.144 W, or 144 mW. You can also find the current first, I = V ÷ R, then multiply, P = V × I. Both give the same answer.

How do I find resistance from voltage and power?

Use R = V² ÷ P, not V ÷ P. For 5 V and 20 W, R = 25 ÷ 20 = 1.25 Ω. Dividing volts by watts gives a meaningless unit, a common slip. Another route is to find the current first, I = P ÷ V = 4 A, then R = V ÷ I = 1.25 Ω.

Does Ohm's law apply to AC or DC circuits?

It applies to both when the load is a pure resistance: use DC values, or the RMS values for AC. A capacitor or an inductor adds reactance, so AC calculations there need impedance and the phase angle, which this page does not do. It gives steady or RMS resistive results only.

Does Ohm's law apply to LEDs?

Not to the LED itself, because its current is not proportional to its voltage. It does apply to the series resistor: R = (supply voltage − LED forward voltage) ÷ LED current. The LED block on this page does that sum, with the resistor's heat and the nearest standard value.

How is Ohm's law used in real life?

It sizes the resistor that limits an LED's current, checks that a part is not overheating, estimates the current a heater or lamp draws from the mains, and tests whether a wire or sensor reading makes sense. Anywhere a resistance, a voltage and a current are linked, one of the three can be found from the others.

Is the data I enter sent anywhere?

No. The values are worked out in your browser and the page makes no request with them. They are kept on your device only so the page reopens as you left it, and Back to the default values clears them. There is no sign-up and nothing to install.

Open the ohm’s law calculator

Free, no sign-up, and what you enter stays in your own browser.