How to use the Ohm’s law calculator
- Type any two of voltage, current, resistance and power. Leave the other two boxes empty.
- Use prefixes if you like: 4.7k for 4,700 ohms, 20m for 0.02 amps, 1M for a megohm. Units after the number, such as 20mA or 4.7kΩ, are fine too.
- Read the two missing values, the steps, the formulas used and, when the resistance was worked out, the nearest standard resistors.
- For alternating current with a motor, transformer or other load that is not a plain resistance, choose AC and enter the phase angle.
What Ohm’s law says
In the words of Wikipedia’s article on Ohm’s law, in an ohmic conductor “the electric current between two points is directly proportional to the voltage” across them. The constant that links the two is the resistance, so V = I × R: voltage in volts equals current in amperes times resistance in ohms. Double the voltage across a resistor and twice the current flows; double the resistance at the same voltage and the current halves.
The units are tied together in the same way. NIST, the US national measurement institute, defines them directly: “The SI unit of electric resistance is the ohm (Ω). 1 Ω = 1 V/A.” A resistor of one ohm lets one ampere through for every volt across it. Its reciprocal, conductance, is measured in siemens, where 1 S = 1 A/V; the calculator shows it as G = 1/R.
The law holds for resistors, wires and heating elements at a steady temperature. Some parts do not follow it: a diode or LED passes almost no current until its voltage reaches a threshold, and a filament lamp’s resistance rises as it heats up. For those, use the calculator for the resistor in series with them, not for the part itself.
Electric power: P = V × I
Power, the rate at which energy is used, is voltage times current. NIST gives the volt as “1 V = 1 W/A”, which is the same equation turned around: one watt is one volt times one ampere. Combining P = V × I with V = I × R gives two more forms, P = I² × R and P = V² / R, and together the two laws give the 12 formulas listed in the result, three for each quantity. Any two known values are enough to find the other two.
Every resistor turns that power into heat, which is why resistors are sold with power ratings. The power shown in the result is what the resistor has to get rid of; choose a part rated comfortably above it. The energy line shows the same power over an hour in watt-hours, which is how electricity is billed.
Worked examples
A hair dryer. NIST lists “hair dryers (15 amps for an 1,800-watt model)” among everyday currents. With 15 A and 1,800 W, the calculator gives V = 120 V, R = 8 Ω: V = P / I = 1,800 ÷ 15, and R = P / I² = 1,800 ÷ 225, the resistance of the heating element while it is hot.
A light bulb. A 60-watt bulb on a 120-volt supply draws I = P / V = 500 mA (0.5 A), and its hot filament has a resistance of 240 Ω. Measured cold with a meter, the filament reads much lower, because its resistance rises with temperature.
An LED resistor. An LED on a 5-volt supply needs a series resistor to limit its current. For a red LED that drops about 2 volts at 20 milliamps, the resistor sees 3 volts. Enter 3 V and 20mA to get R = 150 Ω, P = 60 mW, then pick a standard value from the list below the result.
Standard resistor values
Resistors are not made in every value. Manufacturers settled on the E series of preferred numbers, published by the IEC as IEC 60063, “for resistors, capacitors, inductors, and zener diodes.” The E12 series has 12 values per decade for 10% tolerance parts: 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8 and 8.2, times any power of ten. E24 adds 12 more for 5% parts, and E96 has 96 values for 1% parts.
When the resistance is the answer, the calculator lists the standard values just below and just above it in each series, how far each is from the exact value, and the current and power it would give with your voltage or current. A slightly larger resistor gives slightly less current, which is usually the safe side to choose for an LED.
Ohm’s law for alternating current
Household electricity is alternating current, and meters show its rms value: the steady voltage or current that would deliver the same power. For a plain resistance, such as a heater or a kettle, the DC formulas work unchanged with rms values. Motors, transformers, fluorescent ballasts and power supplies also have inductance or capacitance. Their opposition to current is the impedance |Z|, and their current is shifted in time against the voltage by a phase angle φ.
Then voltage times current is the apparent power S, in volt-amperes. Wikipedia’s article on AC power puts it simply: “apparent power is the product of the RMS values of voltage and current.” Only part of it does work: the real power P = S × cos φ, in watts. The rest, the reactive power Q = S × sin φ in var, flows back and forth between the source and the load. The power factor cos φ is “the ratio of the real power absorbed by the load to the apparent power flowing in the circuit.”
For example, a motor on 120 V drawing 10 A with its current lagging the voltage by 30° takes an apparent power of 1.2 kVA (1200 VA), but its real power is only 1.039 kW (1039 W), with 600 var of reactive power and a power factor of 0.866 lagging (inductive). The wiring still has to carry the full 10 A: “conductors, transformers and generators must be sized to carry the total current, not just the current that does useful work.” A positive angle means the current lags, as in motors and other inductive loads; a negative angle means it leads, as in capacitive loads.
A note on safety
The calculator works out ideal values. Real wires, switches and connections add resistance, batteries sag under load, and parts heat up and change value. Mains voltage can kill: leave work on household wiring to a qualified electrician, and use these numbers for planning and learning, not as a substitute for proper measurement.
Your values stay on your device
Everything is worked out in your browser. Nothing you type is sent anywhere or stored.
Frequently asked questions
How do I find current from voltage and resistance?
Divide the voltage by the resistance: I = V / R. A 12-volt supply across a 220-ohm resistor drives 12 ÷ 220 = 0.0545 amps, or 54.5 milliamps. Type 12 in the voltage box and 220 in the resistance box and the calculator shows the current, the power and the steps.
Can I type 4.7k or 20mA?
Yes. Each box understands the usual prefixes: p, n, µ or u, m, k, M and G, so 4.7k is 4,700 ohms and 20m is 0.02 amps. You can add the unit, as in 20mA or 4.7kΩ, and resistor codes such as 4k7 or 2R2 also work. Note that m is milli and M is mega.
What resistor do I need for an LED?
Subtract the LED’s forward voltage from the supply voltage, then enter that difference and the LED current. For a 5-volt supply, a 2-volt LED and 20 milliamps, enter 3 V and 20mA: the calculator gives 150 ohms and lists the nearest standard resistor values with the current each one would give.
Does Ohm’s law work for AC?
For a plain resistance, yes, using rms values of voltage and current. When the load has inductance or capacitance, the current is out of step with the voltage, so choose the AC mode and enter the phase angle. The calculator then separates real power in watts from reactive power in var and apparent power in volt-amperes.
Why is my answer shown with a prefix like mA or kΩ?
Prefixes keep the numbers readable: 0.05455 A is easier to read as 54.55 mA. The value in plain units is shown in brackets next to it whenever the two look different.
Is anything I type sent anywhere?
No. Everything is worked out in your browser and nothing you type is sent anywhere or stored.