Worked example: a 12 V car headlamp

DC Circuits · Ohm's Law · Example

Let's put Ohm's Law to work on a real, concrete circuit. A car headlamp circuit uses a 3 Ω resistive bulb. What current flows, and how much power does the lamp dissipate?

  1. Given. A 12 V car battery (V=12 VV = 12\,\text{V}) connected across a 3 Ω resistive headlamp (R=3 ΩR = 3\,\Omega). Find current II and power PP.
  2. Equation. Ohm's Law rearranged for current is I=V/RI = V / R. Power follows from P=V⋅IP = V \cdot I.
  3. Substitution.
    I=12 V3 ΩI = \frac{12\,\text{V}}{3\,\Omega}
  4. Result. I=4 AI = 4\,\text{A}, so P=12 V⋅4 A=48 WP = 12\,\text{V} \cdot 4\,\text{A} = 48\,\text{W}. A typical car headlamp draws 4 A and burns 48 W — heat mostly, light as a side effect.
Every Ohm's Law problem follows this shape: identify the two knowns, pick the algebraic form that gives you the unknown, substitute, and state the answer with units.

Worked example — LED series resistor

You want to drive a red LED (forward voltage ≈ 2 V, target current 20 mA) from a 5 V supply. The resistor must drop the leftover voltage: VR = 5 − 2 = 3 V. From Ohm's Law, R = VR / I = 3 V / 0.02 A = 150 Ω. The resistor dissipates P = VR × I = 3 × 0.02 = 0.06 W, so any ⅛ W (0.125 W) resistor is comfortable. Pick the nearest standard value — 150 Ω is an E12 value, so no rounding is needed; if it weren't, you'd round up to keep the current at or below target.

Common questions

Does Ohm's Law work for AC circuits?
For purely resistive AC loads, yes — using RMS voltage and current. When capacitors or inductors are involved, resistance R is replaced by impedance Z (a complex quantity), and you use V = I × Z with phasors.
Why isn't a diode or transistor “ohmic”?
Their current does not rise in proportion to voltage — the V–I curve is non-linear — so a single fixed R doesn't describe them. Ohm's Law only holds for linear elements.
How much power does my resistor need to handle?
Compute P = I² × R (or V² / R) and choose a resistor rated at least ~2× that value for headroom. A 100 Ω resistor carrying 100 mA dissipates 1 W — use a 2 W part.

Hands-on

Try it in the Circuit Toolkit

Drag the voltage and resistance sliders and watch the current change, the resistor heat up and every value update live.
Open the Ohm's Law tool →