Electrical Trade & Electronics DC Circuit Fundamentals Ohm's law and Joule's law (IEEE Std 280 quantity symbols)

Ohm's Law Calculator

Pick the two quantities you already know — any two of voltage, current, resistance and power — and this calculator returns the other two, with the rearrangement it used written out. It also flags the dissipation, because the number that ruins more breadboards than any other is not the current, it is the watts the resistor has to survive. Every result comes from Ohm's law, V = I·R, combined with Joule's law, P = V·I.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Which two values do you know?Choose the pair you measured or that the datasheet gives you; the fields below change to match.Voltage and current
VoltageThe potential difference across the component, not the supply rail, unless they are the same thing.12 V
CurrentThe current flowing through the component, in amperes unless you switch the unit.0.5 A
ResistanceThe DC resistance of the component — read the colour bands or measure it out of circuit.470 Ω
PowerThe power the component dissipates or delivers, from a datasheet or a nameplate.6 W

It returns

  • Current — Current through the component, in amperes.
  • Voltage
  • Resistance
  • Power dissipated
  • Current in milliamperes
  • Minimum resistor rating (2× rule of thumb) — Twice the calculated dissipation — the usual derating margin for a resistor in still air.

The formula

V=IR
P=VI=I2R=V2R

In plain text: V = I · R

  • VPotential difference across the element (volts (V))
  • ICurrent through the element (amperes (A))
  • RResistance of the element (ohms (Ω))
  • PPower dissipated by the element (watts (W))

Ohm's law holds for ohmic (linear) elements at a fixed temperature. Joule's law, P = V·I, holds for any two-terminal element regardless of linearity.

Updated Category DC Circuit Fundamentals Verified against published test cases Reading time 13 min

What Ohm's law actually says

Ohm's law states that the current through a conductor between two points is proportional to the voltage across those two points, and the constant of proportionality is the conductor's resistance. Written as V = I·R, it is the single most-used relationship in electrical work — it sizes an LED's series resistor, explains why a long extension cord dims a heater, and underpins every voltage drop calculation an electrician performs.

Georg Ohm published the relationship in 1827. What made it a law rather than an observation is the discovery that for metals at a constant temperature, the ratio V/I does not change as you vary the voltage. Double the voltage across a 100 Ω resistor and you get exactly double the current. That linearity is what the word ohmic means, and it is also the assumption you are making every time you use this calculator.

Joule's law is the companion relationship. Power — the rate at which electrical energy turns into heat — is the product of voltage and current: P = V·I. Substituting Ohm's law into it gives the two forms that matter most in practice, P = I²·R and P = V²/R. Between them, these three equations connect four quantities, so knowing any two lets you compute the remaining two. That is precisely what this tool does.

The four quantities and the twelve rearrangements

You never memorise twelve formulas. You memorise two — V = I·R and P = V·I — and rearrange them. The reference table below lists all twelve results so you can check your algebra, but understanding where they come from is faster than looking them up.

Start with the pair you know. If you know voltage and resistance, current follows directly: I = V/R. Power then comes from substituting that current back in, giving P = V·(V/R) = V²/R. If instead you know power and resistance, you have to go the other way and take a square root, because power depends on the square of the voltage: V = √(P·R).

That square is the reason two of the six pairings behave differently from the rest. Current and voltage each scale linearly with one another, but power scales with the square. Raise the voltage across a fixed resistor by 40% and the current rises by 40% while the heat rises by 96%. This is the single most useful intuition in the whole subject, and it is why a resistor that is comfortable at 5 V can char at 12 V.

Watch the units. The calculator normalises whatever you pick — milliamperes, kilohms, milliwatts — to volts, amperes, ohms and watts before it does anything, because the equations are only valid in coherent SI units. Enter 20 mA as 20 with the mA unit selected, or as 0.02 with A selected; both give the same answer, and mixing them (entering 20 with A selected when you meant milliamperes) is the most common source of a result that is off by a factor of 1,000.

Worked example: sizing a resistor for a 12 V LED indicator

You want to run a red LED from a 12 V supply. The datasheet gives a forward voltage of 2.1 V at a forward current of 20 mA. Work it through by hand.

  1. Find the voltage the resistor must absorb. The LED holds 2.1 V, so the resistor takes the rest: 12 − 2.1 = 9.9 V.
  2. Convert the target current to amperes. 20 mA = 0.020 A.
  3. Apply Ohm's law for resistance. R = V/I = 9.9 ÷ 0.020 = 495 Ω.
  4. Pick a real part. 495 Ω is not a stocked value. The nearest standard E24 value below it is 470 Ω, which gives more current, and the nearest above is 510 Ω, which gives less. Choose 470 Ω.
  5. Recompute the actual current. I = 9.9 ÷ 470 = 0.021064 A = 21.06 mA. That is 5% above the target, which is fine for an indicator LED.
  6. Compute the resistor's dissipation. P = V·I = 9.9 × 0.021064 = 0.2085 W.
  7. Check the cross-form. P = V²/R = 9.9² ÷ 470 = 98.01 ÷ 470 = 0.2085 W. The two forms agree, which is the arithmetic check worth doing every time.

Now the part everyone skips: 0.2085 W is more than 80% of a 1/4 W resistor's rating. Applying the usual doubling margin you want a part rated for at least 0.417 W, so fit a 1/2 W resistor. A 1/4 W part will work, run hot, drift upward in value, and eventually discolour the board. For the full LED calculation including multiple LEDs in series, use the LED resistor calculator.

How to read the result: current tells you if it works, power tells you if it survives

Two of the four outputs answer different questions. Current tells you whether the circuit does what you wanted — the LED lights, the relay pulls in, the sensor gets its bias. Power tells you whether the part lives long enough to matter. Beginners check the first and ignore the second, and that is where components fail.

Standard through-hole resistor ratings are 1/8 W, 1/4 W, 1/2 W, 1 W and 2 W; surface-mount parts run 0.063 W for an 0402 up to about 0.25 W for a 1206. Those are ratings at 70 °C ambient in free air, and manufacturers derate them linearly to zero at 155 °C or so. The practical rule of thumb technicians use is to specify a part rated for at least twice the calculated dissipation, which is what the minimum resistor rating output on this page reports. If the part sits inside a sealed enclosure or under a heatsinked device, double it again.

Resistance is worth a sanity check too. If you measured a component and Ohm's law hands back a resistance far from what you expected, you are usually looking at one of three things: a non-ohmic device (see below), a meter loading the circuit, or a measurement taken with the component still soldered in parallel with the rest of the board. Always lift one leg before you measure resistance in circuit.

Finally, treat the voltage figure as a hazard indicator. Anything at or above 50 V is inside the range NFPA 70E treats as an electrical hazard requiring shock protection boundaries and appropriate PPE. Bench work below 50 V and a few amperes is comparatively forgiving; a 240 V circuit is not.

Ohm's law wheel: all twelve rearrangements

Every form of Ohm's law and Joule's law. Read across the row for the quantity you want, and pick the column matching the pair you already know.
Solve forFrom V and IFrom V and RFrom I and RFrom P and one other
Voltage V (V)V = I · RV = P / I  or  V = √(P · R)
Current I (A)I = V / RI = P / V  or  I = √(P / R)
Resistance R (Ω)R = V / IR = V² / P  or  R = P / I²
Power P (W)P = V · IP = V² / RP = I² · R

Twelve expressions in total. The two containing a square root are the ones needed when power is known alongside resistance.

What each resistor size can safely dissipate

Nominal free-air ratings for common resistor packages, with the dissipation each can carry under the usual 50% derating margin.
PackageNominal ratingComfortable working dissipation (half the rating)Current at 470 Ω before that limit
0603 SMD0.10 W0.050 W10.3 mA
0805 SMD0.125 W0.063 W11.5 mA
1206 SMD0.25 W0.125 W16.3 mA
Axial 1/4 W0.25 W0.125 W16.3 mA
Axial 1/2 W0.50 W0.250 W23.1 mA
Axial 1 W1.00 W0.500 W32.6 mA
Axial 2 W2.00 W1.000 W46.1 mA

The last column is I = √(P/R) with R = 470 Ω — for example √(0.125 ÷ 470) = 0.0163 A. Nominal ratings are the industry-standard package sizes; always confirm against the manufacturer's datasheet, which specifies the ambient temperature the rating assumes.

Mistakes that produce a wrong answer

  • Mixing units. Entering 20 for a 20 mA current with amperes selected is a factor-of-1,000 error, and it makes a 495 Ω resistor look like 0.495 Ω. Set the unit selector before you type.
  • Using the supply voltage instead of the voltage across the component. In the LED example the resistor sees 9.9 V, not 12 V. Ohm's law applies to the voltage across the element you are analysing, nothing else.
  • Ignoring dissipation. The current can be perfect and the part still fails. Always read the power output and compare it to the package rating.
  • Applying it to a non-ohmic device. Diodes, LEDs, lamps, thermistors, transistors and battery internal resistance are all non-linear. Ohm's law gives their operating-point resistance at one specific voltage, not a constant.
  • Measuring resistance in circuit. Parallel paths on the board pull the reading low. Lift one lead, or power the circuit and measure V and I instead.
  • Forgetting temperature. A copper conductor's resistance rises roughly 0.39% per °C, and an incandescent lamp's cold resistance can be an order of magnitude below its hot resistance. Ohm's law holds at each temperature, not across them.
  • Using DC resistance in an AC circuit. With capacitance or inductance present you need impedance, not resistance.

Where Ohm's law stops being enough

Ohm's law is a statement about resistive elements carrying direct current. Three situations take you outside it.

Alternating current with reactance. Once a capacitor or an inductor is in the path, the opposition to current is impedance Z, a complex quantity, and current lags or leads the voltage. The relationship still looks like Ohm's law — V = I·Z — but the magnitudes no longer multiply to give real power, and you need the power factor as well. Work those cases with the RLC impedance calculator and the electrical power calculator.

Networks rather than single elements. Ohm's law applies element by element. To combine elements you need Kirchhoff's two laws: the currents into a node sum to zero, and the voltages around a loop sum to zero. Those give you the standard series and parallel results — see the series resistance calculator and the parallel resistance calculator — and from there the voltage divider calculator.

Non-linear devices. A semiconductor junction's current rises roughly exponentially with voltage, so a diode has no single resistance. What it has is a dynamic resistance, the slope dV/dI at the operating point, which changes with current. When a datasheet gives you a forward voltage at a stated current, that is a point on the curve, not a resistance you can scale.

For practical electrical work rather than bench electronics, the same equations reappear in code-driven form. Conductor voltage drop is Ohm's law applied to the wire's resistance per unit length; NFPA 70 (the National Electrical Code) recommends limiting branch-circuit voltage drop to 3% in an informational note, and the voltage drop calculator handles the round-trip length and material factors for you.

Key terms

Ohmic
A device whose resistance is constant across the voltage range of interest, so that V/I does not change. Metal-film resistors and copper conductors are close to ohmic; diodes are not.
Dynamic resistance
The slope of a device's V–I curve at a particular operating point, dV/dI. For a non-linear device this is the only resistance that means anything, and it varies with current.
Dissipation
The rate at which a component turns electrical energy into heat, in watts. It sets the package size and the temperature rise, not the electrical behaviour.
Derating
Operating a component below its nameplate rating to allow for ambient temperature, enclosure, and service life. Halving a resistor's rated power is the common bench margin.
E24 series
The standard set of 24 resistor values per decade with 5% tolerance: 10, 11, 12, 13, 15, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 43, 47, 51, 56, 62, 68, 75, 82, 91 and their decade multiples.
Impedance
The AC generalisation of resistance, combining resistance with capacitive and inductive reactance. Measured in ohms, but with a phase angle attached.

Frequently asked questions

Can I use Ohm's law on an AC circuit?

Only if the load is purely resistive — a heating element, an incandescent lamp, a resistive dummy load. In that case use RMS voltage and RMS current and everything works exactly as it does for DC. As soon as motors, transformers, LED drivers or switch-mode supplies are involved, the load has reactance, current and voltage fall out of phase, and you need impedance and power factor instead of plain resistance.

Why does the calculator refuse to give a resistance when I enter zero current?

Because no finite resistance satisfies V = I·R when I is zero and V is not. Physically that is an open circuit: the resistance is infinite. The calculator returns a blank rather than a misleading huge number. If you meant a very small current, check whether your unit selector is set to amperes when you intended milliamperes or microamperes.

What resistor wattage should I actually buy?

At least twice the dissipation this calculator reports, and round up to a stocked size. For 0.21 W, that means a target of 0.42 W, so fit a 1/2 W part. The doubling covers still air inside an enclosure, the ambient derating curve on the datasheet, and the fact that resistors drift permanently upward in value after prolonged operation near their rating. If the part is next to a heatsink or in a sealed box, double again.

Does Ohm's law work for batteries and power supplies?

For the load, yes. For the source, only partly. A real source has internal resistance, so its terminal voltage sags under load: Vterminal = Vopen circuit − I·Rinternal. That internal resistance is itself current-dependent and temperature-dependent in a battery. Measure the terminal voltage under the actual load rather than assuming the nameplate voltage.

How do I go from watts to amps for an appliance?

Divide watts by volts, but only for a resistive load on DC or single-phase AC at unity power factor. A 1,500 W heater on 120 V draws 1,500 ÷ 120 = 12.5 A. For anything with a motor or an electronic supply, divide by volts and by the power factor, which is why a 1,500 VA load at 0.8 power factor still draws 12.5 A while delivering only 1,200 W. The watts to amps calculator handles the phase variants.

What is a typical resistance for a household circuit?

It depends entirely on the appliance, and the useful figures are load-side. A 1,500 W toaster on 120 V presents 120² ÷ 1,500 = 9.6 Ω. A 60 W incandescent lamp on 120 V presents 240 Ω hot, but only about 20 Ω to 30 Ω cold, which is why lamps fail at switch-on. The wiring itself should be far below one ohm end to end — 12 AWG copper is roughly 1.6 Ω per 1,000 feet.

Why do I get a different resistance when I measure with a meter?

Three usual causes. The component is still in circuit, so other paths on the board appear in parallel and pull the reading down. The device is non-ohmic, so the meter's small test current puts it at a different point on its curve than your working conditions do. Or the resistance is genuinely temperature-dependent — measure a warm power resistor and a cold one and you will read different values for the same part.

Is Ohm's law the same as Kirchhoff's laws?

No, and they do different jobs. Ohm's law relates voltage, current and resistance in a single element. Kirchhoff's current and voltage laws relate quantities across a network: current into a node equals current out of it, and voltages around any closed loop sum to zero. You need Ohm's law to describe each resistor and Kirchhoff's laws to connect them, which is exactly how the series and parallel formulas are derived.

Can voltage or current be negative in this calculator?

Yes for voltage and current, which just means you have chosen the opposite reference direction; the magnitudes are what matter. Power comes out negative in that case, which signals that the element is delivering energy rather than absorbing it — a source rather than a load. Resistance and power inputs are restricted to non-negative values because a passive resistance below zero has no physical meaning.

References