Ohm's law calculator: voltage, current, resistance and power
Calculate voltage, current, resistance or power from any two values, plus the energy lost as Joule heating. With the Ohm's law wheel of formulas.
Ohm's law ties together the three basic quantities of a circuit: the voltage that pushes the current, the current that flows and the resistance that opposes it. Add the power formula and any two of these four values give you the other two. This calculator does it in any unit (mV, kV, mA, kΩ, MΩ, kW…), shows you on the Ohm's law wheel which formula it used and, if you give it a time, the energy turned into heat by Joule heating.
How to use the calculator
- Enter any two values among voltage (U), current (I), resistance (R) and power (P). The other two are calculated. If you type in a calculated field, it becomes an input and the oldest one is recalculated.
- Pick the unit you want in each drop-down: the math is the same with 5 V and 2.2 kΩ as with 0.005 kV and 2200 Ω.
- Change the operating time to see the energy (Joule heating) and the charge that flows in that time. It is set to 1 hour by default.
- In the drawing, the ammeter and voltmeter needles show the values, the electrons move faster the more current there is and the resistor glows red according to the power. Below, the wheel highlights the two formulas that were used.
Ohm's law formula
Where U is the voltage in volts (V), I the current in amperes (A) and R the resistance in ohms (Ω). The power the resistor draws (or dissipates) is:
With the power in watts (W). Combining the two formulas gives the twelve combinations of the Ohm's law wheel:
| To calculate | From U and I | From U and R | From I and R | From P and U | From P and I | From P and R |
|---|---|---|---|---|---|---|
| Voltage U | — | — | I · R | — | P / I | √(P · R) |
| Current I | — | U / R | — | P / U | — | √(P / R) |
| Resistance R | U / I | — | — | U² / P | P / I² | — |
| Power P | U · I | U² / R | I² · R | — | — | — |
Worked example
A 100 Ω resistor connected to 12 V:
In one hour of operation it turns E = P · t = 1.44 W · 1 h = 1.44 Wh into heat, which is 1.44 · 3600 = 5184 J, and a charge of 0.12 A · 1 h = 120 mAh flows through it. Since it dissipates 1.44 W, a 1/4 W or a 1 W resistor will not do: you need at least a 2 W one, preferably 3 W or more.
Energy and Joule heating
All the power a resistor draws is turned into heat. This is Joule heating, the effect put to work in space heaters, ovens, water heaters and fuses, and the one that warms up cables. The energy over a time t is:
With P in watts and t in seconds, E comes out in joules (J). Handy equivalences: 1 Wh = 3600 J, 1 kWh = 3.6 MJ and 1 kcal = 4184 J. Electricity bills use kWh: a 2000 W heater running for 3 hours uses 6 kWh.
In AC: impedance
In AC, inductors and capacitors also oppose the flow of current. That total opposition is the impedance Z, which is measured in ohms and combines the resistance R with the reactance X:
Ohm's law works the same way if you type the impedance in the resistance field, with the RMS values of voltage and current (the 230 V of a wall outlet are RMS). What changes is the power: U · I is then the apparent power S, in volt-amperes (VA). The active power, the one that becomes heat or work, is P = U · I · cos φ, or P = I² · R with the resistive part. In a purely resistive load (heaters, incandescent lamps, water heaters) Z = R, cos φ = 1 and everything matches DC. For loads with a power factor, use the electrical power calculator.
Standard resistor power ratings
Resistors are made for a maximum power. Above it they overheat, drift in value and end up burning out. Always pick one with some margin; the usual choice is twice the power it dissipates:
| Resistor power rating | Use it up to about | Typical use |
|---|---|---|
| 1/8 W (0.125 W) | 0.06 W | Signal electronics, SMD 0805 |
| 1/4 W (0.25 W) | 0.12 W | The most common in through-hole builds |
| 1/2 W (0.5 W) | 0.25 W | LED on 230 V with a capacitor, 24 V pull-up |
| 1 W and 2 W | 0.5 W and 1 W | Current limiting, power supplies |
| 5 W to 50 W (ceramic or aluminum-housed) | half | Braking, precharge, test loads |
Frequently asked questions
What does Ohm's law state?
That the current through a conductor is proportional to the voltage applied and inversely proportional to its resistance: I = U / R. Double the voltage and the current doubles; double the resistance and the current is cut in half.
Which values do I have to enter?
Any two of voltage, current, resistance and power. The other two are calculated automatically with the matching formula from the wheel, which is highlighted in the drawing.
Does it work for AC?
Yes, using the impedance Z in place of the resistance: U = Z · I. But then U · I is the apparent power (VA); the active power, the one that produces heat, is P = I² · R with the resistive part of the impedance, or P = U · I · cos φ.
What is Joule heating?
The heat a conductor gives off when current flows through it. The energy is E = P · t = I² · R · t: a 100 Ω resistor on 12 V dissipates 1.44 W and in one hour turns 1.44 Wh (5184 J) into heat.
What power rating should the resistor have?
Higher than the power it dissipates, with some margin: the usual choice is twice as much. If the calculator gives 0.3 W, a 1/4 W (0.25 W) resistor would burn out; use a 1 W one, or 1/2 W at the very least.
Related calculators
- Electrical power calculator: active, reactive and apparent power and power factor
- kW to amps calculator: three-phase, single-phase and DC current
- Wire resistance calculator: resistivity, length and cross-section
- Series and parallel resistor calculator (and capacitors)
- Voltage divider calculator (and current divider)
- LED resistor calculator (and Zener diode)
