Skip to content

Ohm's Law Calculator

Ohm’s Law is the foundational equation of electronics. It describes the relationship between voltage, current, and resistance in a circuit. Choose any two values, and the calculator solves for the third — with a live circuit animation showing what’s happening.


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}

Where:

  • V = Voltage in volts (V)
  • I = Current in amperes (A)
  • R = Resistance in ohms (Ω)
  • P = Power in watts (W)

The circuit animation uses the water pipe analogy — the classic way to build intuition for Ohm’s Law:

ElectricityWater
Voltage (V)Water pressure (height of reservoir)
Current (I)Flow rate (litres per second)
Resistance (R)Pipe narrowness / restriction
Power (P)Work done (turning a wheel)

Increasing voltage with the same resistance = more current (more pressure, faster flow). Increasing resistance with the same voltage = less current (narrower pipe, slower flow). The animated electrons in the circuit speed up and slow down accordingly.


A standard red LED has a forward voltage of ~2.0 V and needs ~20 mA. Running from 3.3 V (tinyCore GPIO):

R=VsupplyVLEDILED=3.32.00.020=1.30.020=65 ΩR = \frac{V_{supply} - V_{LED}}{I_{LED}} = \frac{3.3 - 2.0}{0.020} = \frac{1.3}{0.020} = 65\ \Omega

Use the next standard value: 68 Ω or 100 Ω for a slightly dimmer but safer LED.

I2C lines need pull-up resistors. For tinyCore at 3.3 V running I2C at 400 kHz (fast mode), 4.7 kΩ is typical:

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

This is well within GPIO drive capability and keeps bus capacitance manageable.

To measure a 5 V signal with a 3.3 V ADC, use a voltage divider:

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

For R1 = 10 kΩ, R2 = 22 kΩ: Vout=5×22323.4 VV_{out} = 5 \times \frac{22}{32} \approx 3.4\ V — just within range.


Always check how much power a resistor will dissipate. Standard resistors are rated at 1/4 W (250 mW). If your calculation exceeds this, use a higher-rated resistor.

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

Example: 100 mA through a 10 Ω resistor: P=(0.1)2×10=0.1 WP = (0.1)^2 \times 10 = 0.1\ W

That’s 100 mW — within spec for a 1/4 W resistor, but getting warm.