Skip to content

Ohm's Law Calculator

Ohm’s law is the equation everything else in electronics is built on. Rather than solving it on paper, drive a real circuit: change the supply, the series resistor or the LED itself, and watch the current, the heat and the brightness respond.

Push it too far and the LED blows — which is the point.


V=I×RV = I \times R

I=VRI = \frac{V}{R}

R=VIR = \frac{V}{I}

P=V×I=I2×R=V2RP = V \times I = I^2 \times R = \frac{V^2}{R}

  • V — voltage, in volts
  • I — current, in amperes
  • R — resistance, in ohms
  • P — power, in watts

For an LED in series with a resistor, only what is left over after the LED’s forward voltage lands on the resistor:

I=VsupplyVfRI = \frac{V_{supply} - V_f}{R}


Every LED needs a minimum voltage across it before it conducts at all. Below that it is simply off — no dimming, no partial glow.

LEDTypical VfHeadroom on 3.3 V
Red1.8 V1.5 V — comfortable
Yellow2.1 V1.2 V — fine
Green2.2 V1.1 V — fine
Blue / white3.2 V0.1 V — effectively nothing

This is why a blue LED on a 3.3 V tinyCore GPIO looks broken. It is not: there is no headroom left for the resistor to work with. Drive blue and white LEDs from 5 V, or accept that they will be dim. Switch the LED colour in the tool with 3.3 V selected and you can watch it happen.


R=VsupplyVfItargetR = \frac{V_{supply} - V_f}{I_{target}}

A red LED at 3.3 V, aimed at a comfortable 18 mA:

R=3.31.80.018=83 Ωuse 100 ΩR = \frac{3.3 - 1.8}{0.018} = 83\ \Omega \rightarrow \text{use } 100\ \Omega

Always round up to the next standard value. Rounding down pushes current the wrong way. The tool suggests the E24 value that lands you at roughly 60% of the LED’s rating — bright, and with room for supply variation.


I²C lines need pull-ups. At 3.3 V in fast mode (400 kHz), 4.7 kΩ is the usual pick:

Ipullup=3.347000.7 mAI_{pullup} = \frac{3.3}{4700} \approx 0.7\ mA

Well inside GPIO drive capability, and it keeps bus capacitance manageable.

To read a 5 V signal on a 3.3 V ADC:

Vout=Vin×R2R1+R2V_{out} = V_{in} \times \frac{R_2}{R_1 + R_2}

With R1 = 10 kΩ and R2 = 22 kΩ: Vout=5×22323.4 VV_{out} = 5 \times \frac{22}{32} \approx 3.4\ V — just at the edge, so leave yourself more margin than that in a real design.


A standard through-hole resistor is rated at 1/4 W (250 mW). Check the dissipation whenever current gets serious:

P=I2×RP = I^2 \times R

100 mA through 10 Ω:

P=(0.1)2×10=0.1 WP = (0.1)^2 \times 10 = 0.1\ W

That is 100 mW — inside spec, but the part will be warm to the touch. The tool warns you as soon as the resistor crosses 250 mW.