Ohm’s Law Calculator

Solve for voltage, current, resistance or power. Get all four values at once, plus the resistor wattage you actually need.

Inputs

Solve for
V

Voltage across the component. Accepts 5, 3v3, 1.5.

Ω

Accepts 4k7, 1k, 220, 2M2.

Results

Current12 mAI = V / R
Voltage
12 VV = I × R
Resistance
1 kΩR = V / I
Power
144 mWP = V × I

Dissipating 144 mW — specify at least a 0.5 W resistor (2× safety factor).

Worked examples

LED current-limiting resistor (5 V, 20 mA)

Driving a red LED (≈2 V forward drop) from a 5 V rail. The resistor must drop the remaining 3 V at 20 mA.

R = 3 V / 20 mA = 150 Ω, dissipating 60 mW

Pull-up resistor current draw (3.3 V, 10 kΩ)

A typical I²C or GPIO pull-up. Check the current the pin sinks when the line is pulled low.

I = 3.3 V / 10 kΩ = 330 µA, dissipating 1.09 mW

Current-sense shunt (0.1 Ω at 2 A)

A low-value shunt resistor in a current-measuring circuit. Watch the dissipation — this is where shunts fail.

V = 2 A × 0.1 Ω = 200 mV, dissipating 400 mW

Mains heating element (230 V, 2 kW)

Working backwards from a rated appliance to its equivalent resistance and current draw.

R = 230 V / 8.7 A ≈ 26.4 Ω, dissipating 2.0 kW

How Ohm’s law works

When to use this: reach for Ohm’s law whenever you need to know how much current a circuit will draw, what resistor value drops a given voltage, or how much heat a part will have to get rid of. It is the first calculation in almost every design and the first check when something is running hot.

Ohm’s law says that the current flowing through a resistor is proportional to the voltage across it. Double the voltage and you double the current; double the resistance and you halve it. That single relationship, V = I × R, connects the three quantities you can actually measure with a multimeter, which is why it underpins essentially all practical circuit work.

The useful mental model is water in a pipe. Voltage is the pressure pushing the water, current is the flow rate, and resistance is how narrow the pipe is. Raise the pressure and more water flows. Narrow the pipe and less does. The analogy breaks down for anything involving semiconductors, but for resistors it is exact enough to reason with.

Power follows immediately. Every electron pushed through a resistance gives up energy as heat, and the rate of that energy loss is P = V × I. Substituting Ohm’s law gives two more forms — P = I²R and P = V²/R — which are algebraically identical but let you compute dissipation from whichever pair of values you happen to have. This is the part beginners skip, and it is the part that causes scorched circuit boards.

The four forms you actually use

Given any two of voltage, current, resistance and power, the other two are fully determined. In practice four rearrangements cover almost everything:

To findFromFormulaTypical situation
CurrentV and RI = V / RHow much will this pull-up draw?
ResistanceV and IR = V / IWhat resistor limits my LED to 20 mA?
VoltageI and RV = I × RWhat voltage appears across my sense shunt?
PowerV and IP = V × IHow hot will this part get?

The calculator above returns all four regardless of which one you asked for, because the other three are almost always worth a glance. A resistor value that looks perfectly reasonable can still be dissipating half a watt.

Worked design examples

Sizing an LED series resistor

A red LED has a forward voltage of roughly 2 V and wants about 20 mA. Running it from a 5 V supply means the resistor has to absorb the difference:

V_R = 5 V − 2 V = 3 V
R = 3 V / 0.02 A = 150 Ω
P = 3 V × 0.02 A = 60 mW

150 Ω is an E24 standard value, so no compromise is needed. At 60 mW a 0.125 W resistor would technically survive, but a 0.25 W part costs the same and runs cooler. Note that you round the resistor up in current-limiting applications — a higher resistance means less current, which is the safe direction to err.

Checking a current-sense shunt

A 0.1 Ω shunt carrying 2 A produces a measurable voltage for an amplifier to read:

V = 2 A × 0.1 Ω = 200 mV
P = I²R = 2² × 0.1 = 0.4 W

200 mV is a comfortable signal level. The 0.4 W of dissipation is the real design constraint: it demands at least a 1 W shunt, and the resulting self-heating will shift the resistance slightly, which is exactly why precision shunts are specified with a low temperature coefficient.

Common values reference

Values you will meet constantly in low-voltage design:

VoltageResistanceCurrentPowerWhere it shows up
3.3 V10 kΩ330 µA1.09 mWI²C / GPIO pull-up
5 V220 Ω22.7 mA114 mWLED series resistor
12 V1 kΩ12 mA144 mWRelay driver base resistor
12 V4.7 Ω2.55 A30.6 WPower resistor — needs a heatsink
230 V26.4 Ω8.7 A2.0 kWMains heating element

Choosing a resistor wattage

A resistor’s power rating is the dissipation it can sustain in free air at 70 °C without drifting or failing. Running one at 100% of its rating is legal but unwise: it will reach well over 100 °C, discolour the board, and shift in value over time. Standard practice is a 2× safety factor — size the part for twice the calculated dissipation.

Derating matters too. Above about 70 °C ambient, the permissible dissipation falls linearly to zero at the part’s maximum temperature, typically 155 °C. A 0.25 W resistor inside a warm enclosure at 100 °C is effectively a 0.15 W resistor. If the part sits near a regulator, a motor driver or anything else that runs hot, budget accordingly.

Calculated dissipationSpecify at leastCommon package
Under 60 mW0.125 W0805 SMD / mini through-hole
60–125 mW0.25 W1206 SMD / standard through-hole
125–250 mW0.5 W2010 SMD / carbon film
0.25–0.5 W1 WMetal film, larger body
Over 2.5 W5 W and upWirewound, often heatsinked

When Ohm’s law does not apply

Ohm’s law describes ohmic components — those whose resistance stays constant as the applied voltage changes. Plenty of things in a circuit are not ohmic:

  • Diodes and LEDs. Current rises exponentially with forward voltage. A small voltage increase can multiply the current, which is why LEDs need a current-limiting resistor rather than a carefully chosen supply voltage.
  • Transistors. The effective resistance is set by the control terminal, not by the applied voltage.
  • Incandescent lamps. The filament resistance rises sharply as it heats, so the cold inrush current is many times the steady-state figure.
  • Thermistors and varistors. Designed specifically so that resistance varies with temperature or voltage.

You still use Ohm’s law constantly when working with these parts — just around them rather than through them. Sizing an LED resistor is an Ohm’s law problem; modelling the LED is not.

AC circuits and impedance

In an AC circuit containing capacitors or inductors, resistance generalises to impedance, written Z and measured in ohms. The relationship becomes V = I × Z, but both voltage and current now carry a phase as well as a magnitude, and Z varies with frequency. A capacitor’s impedance falls as frequency rises; an inductor’s does the opposite.

For purely resistive AC circuits — a heating element, an incandescent lamp — the simple form still works using RMS values, and the power calculation is unchanged. Once reactance is involved you also have to distinguish real power (watts) from apparent power (volt-amps), which is where power factor enters.

Practical tips

  • Work in the units on the schematic. Type 4k7 rather than 4700; it is faster and matches what is printed on the board.
  • Check the power every time. It takes a second and it is the single most common omission in beginner designs.
  • Snap to a standard value early. There is no point designing around 3,847 Ω. Pick the nearest E24 value and confirm the circuit still works with the resulting error.
  • Remember tolerance. A ±5% resistor at ±5% supply tolerance means your current could be 10% off the calculated figure. Design with margin.

How to use this calculator

  1. Choose what to solve for

    Select voltage, current, resistance or power. The calculator shows only the two inputs that quantity depends on.

  2. Enter the two known values

    Type values in engineering notation — 4k7, 220, 20m, 3v3 all work. Units are handled automatically.

  3. Read all four results

    The quantity you selected is highlighted, but voltage, current, resistance and power are all shown so you can sanity-check the whole circuit.

  4. Check the power rating

    Use the recommended wattage, which applies a 2× safety factor over the calculated dissipation, to choose a resistor that will run cool.

Frequently asked questions

What is Ohm’s law?

Ohm’s law states that the current through a conductor between two points is directly proportional to the voltage across those points, and inversely proportional to the resistance. It is written V = I × R, where V is voltage in volts, I is current in amps and R is resistance in ohms. Georg Ohm published the relationship in 1827.

How do I calculate current from voltage and resistance?

Divide the voltage by the resistance: I = V / R. For example, 12 V across a 1 kΩ resistor gives 12 / 1000 = 0.012 A, or 12 mA.

How do I calculate power from Ohm’s law?

Power has three equivalent forms: P = V × I, P = I² × R, and P = V² / R. All three give the same answer for the same circuit — use whichever one matches the values you already know.

What wattage resistor do I need?

Calculate the dissipation with P = V² / R or P = I² × R, then choose a resistor rated for at least twice that figure. A resistor run at its full rated power gets hot enough to discolour boards and drift in value. A 144 mW dissipation, for instance, calls for a 0.5 W part rather than a 0.25 W one.

Does Ohm’s law apply to AC circuits?

In the simple V = I × R form it applies to resistive circuits only. For AC circuits containing capacitors or inductors, resistance is replaced by impedance Z, and the relationship becomes V = I × Z, where both voltage and current are complex quantities with a phase relationship.

Why doesn’t Ohm’s law work for diodes and LEDs?

Ohm’s law describes components whose resistance is constant regardless of the applied voltage. Diodes, LEDs and transistors are non-ohmic — their effective resistance changes with the operating point. You still use Ohm’s law to size the series resistor around them, but not to model the device itself.

What happens if resistance is zero?

Mathematically the current becomes infinite. In a real circuit it is limited by the source impedance, the wiring resistance and, in the worst case, whatever fails first. A zero-ohm path across a supply is a short circuit, not a valid Ohm’s law problem.

How do I enter values like 4k7 or 100n?

Type them directly. This calculator understands engineering notation, including the embedded-prefix style used on schematics: 4k7 means 4.7 kΩ, 2M2 means 2.2 MΩ, and 20m means 20 mA. RKM codes such as 4R7 also work.

Sources and further reading

Last reviewed .