TeachyLeaf library

What are you looking for?

Search practical tutorials and browser-based tools.

Electronics · Circuit fundamentals · Beginner

Ohm’s law and resistor power: calculate voltage, current, and heat

Connect voltage, current, and resistance with Ohm’s law, calculate power dissipation, and prevent component damage with proper wattage ratings.

Who this is for: Beginners learning electronics fundamentals.

What you will learn: calculate voltage, current, and resistance using the three forms of Ohm’s law, calculate electrical power dissipation in watts and milliwatts, and compare the result with a resistor’s rated power.

Prerequisites: basic DC voltage and the concept of electrical resistance in ohms (Ω).

Use the browser-based Ohm’s law calculator to explore any two known values while you follow the examples.

Calculation scope: The worked examples are direct calculations for ideal DC sources and fixed resistances, checked arithmetically. They are not measurements of a physical circuit; actual component temperature and operating limits depend on the datasheet and build conditions.

Checked examples: All equations and worked examples below have been verified by direct arithmetic. The safe example uses a 12 V source and 1 kΩ resistor, matching values used in our voltage-divider and Thevenin learning tracks.

The core Ohm’s law relationship

For an ohmic component under the stated operating conditions, Ohm’s law relates the voltage across it ($V$ in volts), current through it ($I$ in amperes), and resistance ($R$ in ohms):

Find Voltage (V)

V = I × R

When current and resistance are known.

Find Current (I)

I = V / R

When voltage and resistance are known.

Find Resistance (R)

R = V / I

When voltage and current are known.

If you increase the voltage across a resistor, the current increases proportionally. If you increase the resistance while keeping the voltage fixed, the current decreases proportionally.

Ohm’s law & power dissipation · Vs = 12 V, R = 1 kΩ
DC circuit demonstrating Ohm's law and power dissipation A 12 volt DC source connects to a 1 kilo-ohm resistor in a closed loop. The resulting current is 12 milliamperes, and power dissipated as heat is 144 milliwatts. + − Vs = 12 V I = 12 mA R = 1 kΩ (1000 Ω) Heat (P) V = 12 V · I = 12 mA · P = 144 mW

Metric prefixes without calculation errors

In low-power electronics and microcontroller projects, current is rarely a full ampere, and resistors are rarely just a few ohms. Calculations frequently mix volts (V), milliamperes (mA), and kilo-ohms (kΩ). Instead of converting back and forth to base scientific notation every time, keep these paired prefix rules in mind:

  • Volts / Kilo-ohms = Milliamperes: 12 V / 1 kΩ = 12 mA (because $10^0 / 10^3 = 10^{-3}$).
  • Milliamperes × Kilo-ohms = Volts: 12 mA × 1 kΩ = 12 V (because $10^{-3} \times 10^3 = 1$).
  • Volts × Milliamperes = Milliwatts: 12 V × 12 mA = 144 mW ($0.144\text{ W}$).

Using matching metric pairs prevents decimal-place errors that can lead to incorrect component selection.

Resistor power dissipation: electrical energy becomes heat

As current flows through a resistor, electrical energy is converted into thermal energy (Joule heating). Electrical power $P$ is the rate at which energy is dissipated, measured in watts (W):

P = V × I

By substituting Ohm’s law ($V = I \times R$ and $I = V / R$), we get three equivalent equations for power:

Voltage and Current

P = V × I

Current and Resistance

P = I² × R

Voltage and Resistance

P = V² / R

Resistor power ratings

When you decode a resistor using our resistor color-code guide or the resistor color code calculator, the bands tell you only the nominal resistance and tolerance. Color bands do not indicate power rating.

A resistor’s power rating is determined by its physical size, construction materials, and maximum allowable operating temperature:

  • 1/8 Watt (0.125 W / 125 mW): miniature through-hole or small surface-mount packages.
  • 1/4 Watt (0.25 W / 250 mW): the most common standard through-hole resistor in breadboarding and hobbyist electronics.
  • 1/2 Watt (0.5 W / 500 mW): larger axial body for moderate current circuits.
  • 1 Watt, 2 Watts, or higher: ceramic, power metal-oxide, or wirewound packages designed for high heat dissipation.

Worked example 1: compare with the nominal rating

A 12 V DC source connects across a 1 kΩ (1000 Ω) through-hole resistor. First, find the current:

I = V / R
  = 12 V / 1000 Ω
  = 0.012 A = 12 mA

Now calculate the power dissipated as heat:

P = V × I
  = 12 V × 0.012 A
  = 0.144 W = 144 mW

Or directly from voltage and resistance:

P = V² / R
  = 12² / 1000
  = 144 / 1000
  = 0.144 W = 144 mW

Below the nominal rating: 144 mW < 250 mW

The calculated 144 mW is below the nominal 250 mW rating. That comparison alone does not establish a safe operating temperature or design margin; check the resistor’s datasheet and its power derating for ambient temperature and mounting conditions.

Worked example 2: dangerous overload hazard

Now connect the same 12 V supply across a 100 Ω resistor:

I = 12 V / 100 Ω = 0.12 A = 120 mA
P = 12² / 100 = 144 / 100 = 1.44 W (1440 mW)

Over the nominal rating: 1.44 W vs 0.25 W (5.76× rating)

A 1/4 W resistor is not an appropriate choice for this calculated dissipation. Operating above a component’s rating can cause excessive temperature and failure; the outcome depends on the part, environment, and circuit. Select a suitable part with margin using its datasheet and derating curve rather than assuming a specific failure time or behavior.

The 50% derating engineering rule

Do not assume a resistor can dissipate its full nameplate power in every installation. Ambient temperature, lead spacing, board layout, enclosure, and airflow can affect the allowable dissipation.

Design practice: Leave appropriate margin for the application and follow the manufacturer’s power-versus-temperature derating curve. A fixed “50% rule” is only a possible starting point, not a universal safety requirement; the right margin depends on the component and operating conditions.

Try it yourself

A 5 V microcontroller output powers an LED through a current-limiting resistor. If the LED drops 2 V, the remaining 3 V appears across a 330 Ω resistor. What is the resistor current and power dissipation, and is a standard 1/4 W resistor sufficient?

Show the worked calculation

1. Calculate current: $I = V / R = 3\text{ V} / 330\ \Omega \approx 0.00909\text{ A}$, which is 9.09 mA.

2. Calculate power: $P = V \times I = 3\text{ V} \times 0.00909\text{ A} \approx 0.0273\text{ W}$, which is 27.3 mW. (Alternatively, $P = 3^2 / 330 = 9 / 330 \approx 0.0273\text{ W}$).

3. Compare with the nominal rating: 27.3 mW is approximately 11% of a 1/4 W (250 mW) rating. Check the component datasheet and circuit conditions before deciding whether its operating margin is adequate.

Real-world circuit cautions

  • Ohm's law assumes linear resistance: Real resistors change resistance slightly as temperature rises (measured by the temperature coefficient in PPM/°C). Non-linear devices like diodes, transistors, and LEDs do not follow a fixed $V = I \times R$ relationship.
  • Source limits: An ideal voltage source maintains its voltage regardless of current. Real batteries and power supplies have internal resistance and maximum current limits.
  • Measure safely: When measuring resistance with an ohmmeter, always disconnect power from the circuit. Measuring resistance in a powered circuit can damage your multimeter and give meaningless readings.

Continue learning

Learn how to identify physical resistor values with the resistor color-code guide or decode bands interactively with the resistor color code calculator. Then see how two resistors divide voltage in the voltage-divider lesson and simplify complex networks with the Thevenin equivalent calculator.