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
Solve for voltage, current, resistance or power. Get all four values at once, plus the resistor wattage you actually need.
Voltage across the component. Accepts 5, 3v3, 1.5.
Accepts 4k7, 1k, 220, 2M2.
Dissipating 144 mW — specify at least a 0.5 W resistor (2× safety factor).
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
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
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
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
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.
Given any two of voltage, current, resistance and power, the other two are fully determined. In practice four rearrangements cover almost everything:
| To find | From | Formula | Typical situation |
|---|---|---|---|
| Current | V and R | I = V / R | How much will this pull-up draw? |
| Resistance | V and I | R = V / I | What resistor limits my LED to 20 mA? |
| Voltage | I and R | V = I × R | What voltage appears across my sense shunt? |
| Power | V and I | P = V × I | How 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.
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 VR = 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.
A 0.1 Ω shunt carrying 2 A produces a measurable voltage for an amplifier to read:
V = 2 A × 0.1 Ω = 200 mVP = 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.
Values you will meet constantly in low-voltage design:
| Voltage | Resistance | Current | Power | Where it shows up |
|---|---|---|---|---|
| 3.3 V | 10 kΩ | 330 µA | 1.09 mW | I²C / GPIO pull-up |
| 5 V | 220 Ω | 22.7 mA | 114 mW | LED series resistor |
| 12 V | 1 kΩ | 12 mA | 144 mW | Relay driver base resistor |
| 12 V | 4.7 Ω | 2.55 A | 30.6 W | Power resistor — needs a heatsink |
| 230 V | 26.4 Ω | 8.7 A | 2.0 kW | Mains heating element |
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 dissipation | Specify at least | Common package |
|---|---|---|
| Under 60 mW | 0.125 W | 0805 SMD / mini through-hole |
| 60–125 mW | 0.25 W | 1206 SMD / standard through-hole |
| 125–250 mW | 0.5 W | 2010 SMD / carbon film |
| 0.25–0.5 W | 1 W | Metal film, larger body |
| Over 2.5 W | 5 W and up | Wirewound, often heatsinked |
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:
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.
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.
Select voltage, current, resistance or power. The calculator shows only the two inputs that quantity depends on.
Type values in engineering notation — 4k7, 220, 20m, 3v3 all work. Units are handled automatically.
The quantity you selected is highlighted, but voltage, current, resistance and power are all shown so you can sanity-check the whole circuit.
Use the recommended wattage, which applies a 2× safety factor over the calculated dissipation, to choose a resistor that will run cool.
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.
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.
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.
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.
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.
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.
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.
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.
Last reviewed .