Circuit Basics

Ohm's Law Explained With Practical Examples

By MadVoltage Editorial Team · · 4 min read

Ohm's law is the first equation almost every electronics student learns, and it stays useful for as long as you build circuits. It links three quantities: voltage, current and resistance. Once you can move comfortably between them, you can size resistors, predict how much current a part draws, and diagnose why a circuit is misbehaving.

This article explains the law in plain language and then applies it to a series of practical examples.

The Three Quantities

  • Voltage (V) is the electrical pressure that pushes charge around a circuit. It is measured in volts.
  • Current (I) is the flow of charge. It is measured in amperes, or amps.
  • Resistance (R) is how strongly a component opposes current. It is measured in ohms.

A water analogy helps. Voltage is like water pressure, current is like the flow rate through the pipe, and resistance is like a narrow section that restricts the flow. For the same pressure, a narrower pipe gives less flow.

The Law Itself

Georg Ohm found that, for many materials, the current through a conductor is proportional to the voltage across it. The formula is:

V = I x R

Rearranged, it gives two more useful forms:

I = V / R
R = V / I

A handy way to remember it is a triangle with V on top and I and R at the bottom. Cover the quantity you want, and the remaining two show whether to multiply or divide.

Example 1: Current Through a Resistor

A 9 V battery is connected across a 450 ohm resistor. The current is I = V / R = 9 / 450 = 0.02 A, which is 20 milliamps. Double the resistor to 900 ohms and the current halves to 10 mA.

Example 2: Sizing an LED Resistor

An LED needs a series resistor to limit current. Suppose a red LED drops about 2 V when lit, you power it from 5 V, and you want 10 mA.

The resistor must drop the remaining voltage: 5 V minus 2 V equals 3 V. Then R = V / I = 3 / 0.01 = 300 ohms. Pick the nearest standard value above that, such as 330 ohms, which gives a slightly lower current and a longer life for the LED.

Example 3: Finding an Unknown Resistance

You measure 6 V across a component and 0.03 A flowing through it. Then R = 6 / 0.03 = 200 ohms. This is how a meter's resistance function works internally: it applies a known current, measures the voltage and divides.

Example 4: Resistors in Series

When resistors are connected in a chain, the same current flows through each, and the resistances simply add. A 100 ohm and a 220 ohm in series total 320 ohms. With a 12 V supply, the current is 12 / 320 = 0.0375 A, or 37.5 mA. The voltage across each resistor is its resistance times that current, and the two voltages add up to 12 V.

Example 5: The Voltage Divider

Two resistors in series divide a voltage in proportion to their sizes. The output from the junction is:

Vout = Vin x R2 / (R1 + R2)

With a 5 V input, R1 of 10 kilohms and R2 of 10 kilohms, the output is 2.5 V. Dividers are used to scale a voltage down for an ADC input or to read a resistive sensor. Keep in mind that connecting a load to the output changes the result, because the load acts as another resistor in parallel with R2.

Example 6: Resistors in Parallel

When resistors share the same two connection points, each gets the same voltage and the currents add up. The combined resistance is lower than the smallest one. For two resistors, the shortcut is:

R_total = (R1 x R2) / (R1 + R2)

Two 100 ohm resistors in parallel give 50 ohms.

Adding Power

Power is the rate at which energy is used, measured in watts. It is P = V x I. Combined with Ohm's law, you can also write P = I squared times R, or P = V squared divided by R.

If 20 mA flows through a 300 ohm resistor, the power is 0.02 x 0.02 x 300 = 0.12 W. A common quarter-watt resistor handles that, but a design running close to the limit will get hot, so leave margin.

Where Ohm's Law Does Not Apply Simply

Ohm's law describes ohmic components, whose resistance stays constant. Diodes, LEDs, transistors and many sensors are nonlinear: their current is not proportional to voltage. You can still use the law at a single operating point, but you must know the real voltage and current at that point. Resistance also changes with temperature, as in a heating filament.

Frequently Asked Questions

Why does the current go down when resistance goes up?

For a fixed voltage, a higher resistance restricts the flow of charge more, so fewer charges pass each second. In the water analogy, the pressure stays the same but the pipe is narrower, so the flow falls.

Does Ohm's law work with AC?

Yes for purely resistive loads, using the effective (RMS) values of voltage and current. With capacitors and inductors, the opposition is called impedance and depends on frequency, so the law is extended to V = I x Z.

How do I know what resistor wattage to use?

Calculate the power dissipated using P = I squared times R, then choose a rating of at least twice that value. A resistor that runs near its limit gets hot, ages faster and can change value.

Related reading

  • Power

    How Voltage Regulators Work

    Learn how linear and switching voltage regulators keep a steady output, why they get hot, and how to choose between them for your design.

    · 4 min read