TheSolderBenchnotes from my electronics bench

Log #02 · Sep 27, 2026

Ohm's Law Explained with Real Examples

Use V = I × R to size LED resistors, build voltage dividers and check whether a part will overheat, with worked numbers for each case.

Basics · 4 min read · Beginner

Ohm's law is the one formula you will use on almost every project. It links the three quantities from our voltage, current and resistance guide:

V = I × R

Voltage in volts equals current in amps times resistance in ohms. Rearrange it and you get the other two forms: I = V ÷ R and R = V ÷ I. This guide skips the theory and goes straight to four situations you will meet on the bench, each with the numbers worked out.

The triangle trick

If rearranging formulas slows you down, draw a triangle with V on top and I and R side by side underneath. Cover the value you want and the triangle shows how to get it: cover V and you see I next to R (multiply); cover R and you see V over I (divide).

Ohm's law triangle with V on top and I and R on the bottom
Cover the quantity you want to find. The other two show whether to multiply or divide.

One rule makes the math painless: convert to base units first. Write 20 mA as 0.020 A and 4.7 kΩ as 4700 Ω. Most wrong answers come from mixing milliamps with amps.

Example 1: an LED on an Arduino pin

An Arduino Uno output pin gives 5 V. A green LED drops about 2.2 V and you want 15 mA through it, a comfortable brightness that keeps the pin well under its limit.

  • Voltage across the resistor: 5 − 2.2 = 2.8 V
  • R = V ÷ I = 2.8 ÷ 0.015 ≈ 187 Ω

The nearest standard value above is 220 Ω. Check the real current with that value: I = 2.8 ÷ 220 ≈ 12.7 mA. Slightly dimmer, and safer for the pin. You will wire exactly this in your first Arduino sketch.

Example 2: how much current does a resistor draw?

You connect a 10 kΩ resistor between 5 V and ground as a pull-down. How much current flows all the time?

  • I = V ÷ R = 5 ÷ 10000 = 0.0005 A = 0.5 mA

That is tiny, which is why 10 kΩ is the usual choice for pull-up and pull-down resistors. A 100 Ω resistor in the same spot would waste 50 mA and get warm for no reason.

Example 3: a voltage divider

A voltage divider is two resistors in series. The output, taken from the middle, is a fixed fraction of the input:

Vout = Vin × R2 ÷ (R1 + R2)

Say you want to measure a battery pack of up to 9 V with an Arduino analog pin, which only accepts up to 5 V. Choose R1 = 10 kΩ on top and R2 = 10 kΩ on the bottom:

  • Vout = 9 × 10000 ÷ 20000 = 4.5 V. Safe.

The current through the divider is 9 ÷ 20000 = 0.45 mA, small enough not to drain the battery quickly. In your code you multiply the reading by 2 to get the real battery voltage. Our analog pin guide shows how to convert the raw 0–1023 value to volts.

One warning: a divider only works for measuring. Do not use it to power something. As soon as a load draws current from the middle point, the output voltage sags. For power, use a voltage regulator.

Example 4: will this resistor overheat?

Ohm's law pairs with the power formula, P = V × I. Substituting gives two handy forms: P = I² × R and P = V² ÷ R.

You are dropping 12 V to power a 3 V LED strip section drawing 60 mA, using a resistor.

  • Resistor voltage: 12 − 3 = 9 V
  • R = 9 ÷ 0.060 = 150 Ω
  • P = 9 × 0.060 = 0.54 W

A common 0.25 W resistor would run far beyond its rating and cook. You would need a 1 W part, or better, a more efficient approach such as a lower supply voltage. This check takes ten seconds and saves a lot of burnt fingers.

Quick reference table

You know You want Use
Current and resistance Voltage V = I × R
Voltage and resistance Current I = V ÷ R
Voltage and current Resistance R = V ÷ I
Voltage and current Power P = V × I
Current and resistance Power P = I² × R

Where Ohm's law does not apply directly

Resistors follow Ohm's law closely. Some parts do not:

  • LEDs and diodes have a roughly fixed voltage drop instead of a fixed resistance. That is why you calculate the resistor using the voltage left over.
  • Motors draw much more current when starting or stalled than when spinning freely.
  • Filament bulbs have lower resistance cold than hot.

In each case you still use Ohm's law on the parts around them, which is what the examples above do.

Practice problems

Try these, then check with the answers below.

  1. A 3.3 V ESP32 pin drives a red LED (2.0 V drop) at 10 mA. What resistor?
  2. What current flows through a 4.7 kΩ resistor across 9 V?
  3. A 47 Ω resistor carries 100 mA. How much power does it dissipate?

Answers: (1) 1.3 ÷ 0.010 = 130 Ω, use 150 Ω. (2) 9 ÷ 4700 ≈ 1.9 mA. (3) 0.1² × 47 = 0.47 W, so use a 1 W resistor.

Next, learn to find those resistor values in your parts drawer with the resistor color code guide.

— TheSolderBench · found a mistake? tell me

More pages from this notebook

What Are Voltage, Current and Resistance?

The three quantities behind every circuit, explained with a water-tank model, real numbers and the mistakes beginners make most often.

→ current is drawn, voltage is supplied

How to Read Resistor Color Codes

Decode 4-band and 5-band resistors in seconds, with a full color chart, worked examples and tips for telling which end to start from.

→ gold band goes on the right

Series vs Parallel Circuits

How current and voltage behave when parts are connected in series or in parallel, with worked examples for resistors, LEDs and batteries.

→ series shares current, parallel shares voltage

What Is a Diode and How Does It Work?

How diodes let current flow one way, what forward voltage means, and how to use rectifier, Schottky and Zener diodes for protection and power.

→ stripe = cathode, current flows toward it