Electrical calculator · Free · No upload
Ohm’s Law Calculator
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.
| Quantity | Value | In base units | How it was found |
|---|---|---|---|
| Voltage (V) | 12 V | 12 V | You entered this |
| Current (I) | 12 mA | 0.012 A | I = V ÷ R |
| Resistance (R) | 1 kΩ | 1000 Ω | You entered this |
| Power (P) | 144 mW | 0.144 W | P = 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
| Detail | Answer |
|---|---|
| Inputs | Any two of voltage, current, resistance and power, each above zero |
| Units | Micro to mega for voltage and power, micro to kilo for current, milli to giga for resistance |
| Formulas | V = I × R and P = V × I, in all twelve rearranged forms |
| Resistor check | Power against a rating of ⅛, ¼, ½, 1, 2, 5 or 10 W |
| Preferred values | Nearest E12 and E24 value, marked exact when it is one |
| Where your values go | Nowhere: 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.
Choose the first quantity
Pick voltage, current, resistance or power, then type its value and unit.
Choose the second
Pick a different quantity and enter its value; the two must not be the same.
Read the other two
They appear at the top, and all four are in the table with the formula for each.
Check a resistor
Choose its power rating to see whether the heat is inside it.
Pick a real part
Read the nearest E12 and E24 values for the resistance.
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.
| To find | From V and I | From V and R | From V and P | From I and R | From I and P | From R and P |
|---|---|---|---|---|---|---|
| Voltage V | – | – | – | I × R | P ÷ I | √(P × R) |
| Current I | – | V ÷ R | P ÷ V | – | – | √(P ÷ R) |
| Resistance R | V ÷ I | – | V² ÷ P | – | P ÷ I² | – |
| Power P | V × I | V² ÷ 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:
| You know | Working | Result |
|---|---|---|
| 12 V across 1 kΩ | I = 12 ÷ 1000; P = 12² ÷ 1000 | 12 mA and 144 mW |
| 0.02 A through 150 Ω | V = 0.02 × 150; P = 0.02² × 150 | 3 V and 60 mW |
| 230 V across 46 Ω | I = 230 ÷ 46; P = 230² ÷ 46 | 5 A and 1150 W |
| 5 V and 20 W | I = 20 ÷ 5; R = 5² ÷ 20 | 4 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.
| Rating | Half the rating | Volts across 1 kΩ at the full rating |
|---|---|---|
| ⅛ W (0.125 W) | 62.5 mW | 11.18 V |
| ¼ W (0.25 W) | 125 mW | 15.81 V |
| ½ W (0.5 W) | 250 mW | 22.36 V |
| 1 W | 500 mW | 31.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.
| Supply, LED, current | Resistor needed | Next E24 value up | Current with that value | Resistor heat |
|---|---|---|---|---|
| 5 V, 2 V, 20 mA | 150 Ω | 150 Ω | 20 mA | 60 mW |
| 5 V, 3 V, 20 mA | 100 Ω | 100 Ω | 20 mA | 40 mW |
| 3.3 V, 2 V, 10 mA | 130 Ω | 130 Ω | 10 mA | 13 mW |
| 12 V, 2 V, 20 mA | 500 Ω | 510 Ω | 19.61 mA | 200 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.
| Series | Values per decade | Typical tolerance | Values from 1 to 10 |
|---|---|---|---|
| E6 | 6 | ±20% | 1.0, 1.5, 2.2, 3.3, 4.7, 6.8 |
| E12 | 12 | ±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 |
| E24 | 24 | ±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.
| It does | It does not |
|---|---|
| Take any two of voltage, current, resistance and power | Take three values at once |
| Return all four with the formula for each | Show the answer for a negative or zero value |
| Accept micro to giga units | Convert between units of different quantities |
| Check power against a resistor rating | Check a resistor’s maximum working voltage or temperature derating |
| Name the nearest E12 and E24 values | Pick finer tolerance series such as E96 |
| Size an LED series resistor | Drive several LEDs, or a constant-current supply |
| Work in this browser only | Upload 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 calculator | A typical answer-only calculator | |
|---|---|---|
| Cost | Free, no sign-up | Free |
| Pairs it accepts | Any two of V, I, R and P | Any two, or fewer |
| Shows the formula used | One per result, including V² ÷ P and P ÷ I² | Often only I = V ÷ R |
| Resistor power-rating check | Over, inside, or room to spare | No |
| Standard resistor values | Nearest E12 and E24 | No |
| LED series resistor | Built in | A separate page, if any |
| AC with phase angles | No, steady or RMS values only | Sometimes |
More calculators
Every calculator on the site runs in your browser, needs no sign-up, and sends nothing anywhere.
Electrical6
Voltage, current, resistance and power from any two, with the formula for each and the part to buy.
Watt to amp calculator
Watts to amps for DC, single-phase and three-phase AC with power factor, the sum shown and a breaker size check.
Open watt to amp calculator →Amp to watt calculator
Amps to watts for DC, single-phase and three-phase AC with power factor, the sum shown and a breaker's continuous limit.
Open amp to watt calculator →Voltage drop calculator
Voltage drop of copper or aluminium wire in AWG or mm² for DC, single and three phase, at your temperature, with every size checked against your limit.
Open voltage drop calculator →kWh to watt calculator
Kilowatt-hours to average watts over a time from minutes to years, with the sum shown and the answer checked backwards.
Open kwh to watt calculator →Energy cost calculator
Appliance running cost per hour, day, month and year from watts, hours and price, with standby and on-time share.
Open energy cost calculator →Battery life calculator
How long a battery lasts from mAh, Ah or Wh, voltage and load, with usable share, efficiency, Peukert's law and the airline Wh tiers.
Open battery life calculator →
All 42 calculators, by category: Basic maths (1) · Percentages (8) · Fractions & decimals (3) · Statistics (1) · Money (3) · Dates & time (11) · School & grades (2) · Health & fitness (1) · Electrical (7) · Counting & sport (5)
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.
Related guides
Longer answers to the questions behind the numbers.