Electromagnetism

Ohm's Law

V = I·R — voltage drives current through resistance, the foundational electrical relation

Ohm's law states that voltage equals current times resistance — V = IR. For ohmic materials (most metals), current is proportional to voltage. Resistance R is the proportionality constant. Critical for designing every electronic circuit, from light bulbs to integrated circuits. Discovered by Georg Ohm (1827) by carefully measuring voltage and current in metal wires.

  • EquationV = I · R
  • UnitsV (volts), A (amps), Ω (ohms)
  • 1 ohm1 V/A
  • Power dissipatedP = VI = I²R = V²/R
  • Ohmic vs non-ohmicMost metals follow Ohm's law; diodes, transistors don't
  • Resistivity ρR = ρL/A (depends on material, length, cross-section)

Interactive visualization

Press play, or step through manually. The visualization is yours to drive — try it before reading on.

Open visualization fullscreen ↗

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

Ohm's law

V = I · R

For an ohmic resistor:

  • V — voltage across the resistor (V = volts).
  • I — current through it (A = amps).
  • R — resistance (Ω = ohms).

Equivalent forms — I = V/R, R = V/I.

Resistance from geometry

R = ρ · L / A

where:

  • ρ — resistivity (Ω·m), material property.
  • L — length (m).
  • A — cross-sectional area (m²).
MaterialResistivity ρ (Ω·m at 20°C)Type
Silver1.59 × 10⁻⁸Best conductor
Copper1.68 × 10⁻⁸Most common conductor
Gold2.44 × 10⁻⁸
Aluminum2.65 × 10⁻⁸
Iron9.71 × 10⁻⁸
Mercury9.6 × 10⁻⁷Liquid metal
Nichrome1.10 × 10⁻⁶Heating elements
Carbon (graphite)7 × 10⁻⁵Pencil lead
Silicon (pure)~640Semiconductor
Glass10¹⁰-10¹⁴Insulator
Quartz10¹⁶Excellent insulator
Teflon10²³-10²⁵Best insulator

Power in resistor

P = V · I = I² · R = V² / R

All three forms equivalent for ohmic resistor. Watts dissipated as heat.

Real-world resistances

ObjectResistance (Ω)
1 m of 1 mm² copper wire0.017
1 m of 0.1 mm² copper0.17
Standard incandescent bulb (60 W, 120 V)240
Toaster heating element10-25
Standard 1/4 W resistor (typical values)10 to 1 MΩ
Human body (dry skin, hand-to-hand)10⁵ to 10⁶
Human body (wet skin)1,000 to 10,000
Distilled water~18 MΩ·cm

JavaScript — Ohm's law calculations

// Basic Ohm's law
function current(V, R) { return V / R; }
function voltage(I, R) { return I * R; }
function resistance(V, I) { return V / I; }
function power(V, I) { return V * I; }

console.log(`9V across 100Ω: ${current(9, 100)} A`);   // 0.09 A
console.log(`Power: ${power(9, 0.09).toFixed(2)} W`);  // 0.81 W

// Resistance from geometry
function wireResistance(rho, length_m, area_m2) {
  return rho * length_m / area_m2;
}

// 1 mm² copper, 10 m
console.log(`10m of 1mm² copper: ${wireResistance(1.68e-8, 10, 1e-6).toFixed(3)} Ω`);
// 0.168 Ω

// Heating element: power dissipation
function heatingElement(voltage, resistance) {
  // P = V²/R
  return voltage * voltage / resistance;
}

// 120 V across 10 Ω
console.log(`Heating element: ${heatingElement(120, 10)} W`); // 1440 W

// Resistance with temperature
function resistanceAtTemp(R_0, alpha, T_celsius) {
  // R(T) = R_0 · (1 + α·ΔT)
  return R_0 * (1 + alpha * (T_celsius - 20));
}

// Copper coil at 100°C
console.log(`Copper +80°C: R = ${resistanceAtTemp(1, 0.00393, 100).toFixed(2)} (× R_0)`);
// 1.314 × — 31% higher

// Voltage divider
function voltageDivider(V_in, R1, R2) {
  return V_in * R2 / (R1 + R2);
}

// Current through parallel branch
function currentInParallel(V, branchR, otherBranchR) {
  // Current flows through branch with R = branchR
  return V / branchR;
}

// Power loss in transmission lines
function transmissionLoss(P_load, V_line, R_line) {
  // I = P/V, then P_loss = I²R
  const I = P_load / V_line;
  return I * I * R_line;
}

// 1000 W at 120 V over 10 Ω wire
console.log(`Loss at 120V: ${transmissionLoss(1000, 120, 10).toFixed(0)} W`);
// 694 W LOST — 70% of power!

// Same load at 12,000 V
console.log(`Loss at 12000V: ${transmissionLoss(1000, 12000, 10).toFixed(2)} W`);
// ~0.07 W — 0.007% (why we use high-voltage transmission)

Where Ohm's law matters

  • Circuit design. Selecting resistor values for desired currents and voltages. LED current limiting, voltage dividers, biasing.
  • Power transmission. Why we use high voltage (HVDC, AC at 100 kV+) — minimizes I²R losses in long-distance transmission.
  • Wire sizing. Ampacity tables (max current for wire gauge) come from R-induced heating limits.
  • Heating applications. Toasters, electric stoves, hair dryers, water heaters — controlled by selecting R for desired P.
  • Sensors. Strain gauges, thermistors, photoresistors all change R with stimuli — measured via Ohm's law.
  • Safety. Body resistance determines shock severity. Higher R = safer (shoes, gloves provide insulation).
  • Education. First electrical law taught; foundation for all electrical engineering.

Common mistakes

  • Applying it to non-ohmic devices. Diodes, transistors, fluorescent bulbs don't follow V=IR. Use device-specific I-V curves.
  • Confusing R and ρ. R is the property of the OBJECT (depends on shape). ρ is the property of MATERIAL (intrinsic). R = ρL/A.
  • Ignoring temperature dependence. R changes with T, especially for filaments at incandescence (huge increase).
  • Using DC formulas at AC. AC needs impedance Z (frequency-dependent). For pure R, Z = R; for L and C, Z is frequency-dependent.
  • Forgetting power dissipation. Resistors heat up; max power rating must be respected. ½ W resistor at 1 W will burn.
  • Mixing units. SI uses V, A, Ω. Don't mix mA with Ω directly without converting.

Frequently asked questions

What's an ohmic material?

A material where V is proportional to I — i.e., R is constant regardless of V. Most metals (copper, aluminum, gold, silver) are ohmic at typical conditions. Their R doesn't depend on V or I (only on T, and that varies slowly). Non-ohmic — diodes, transistors, semiconductors, ionic solutions, fluorescent lamps. Ohm's law is empirical, not universal.

How does resistance depend on geometry?

For a wire of length L, cross-section A, made of material with resistivity ρ: R = ρL/A. Longer wire → more R (more atoms to scatter through). Wider wire → less R (more parallel paths for electrons). Resistivity is intrinsic to material — copper ρ ≈ 1.7 × 10⁻⁸ Ω·m, very low. Glass ρ ~ 10¹⁰ Ω·m, very high (insulator).

How does temperature affect resistance?

For metals, R increases with T (more thermal vibrations scatter electrons). Linear approximation: R(T) = R₀(1 + α·ΔT), where α is temperature coefficient (~0.004/K for copper). Heating a copper wire from 20°C to 60°C — R increases ~16%. For semiconductors, R DECREASES with T (more thermal carriers).

How is power dissipated in a resistor?

P = VI (in general). For ohmic resistor with V = IR — three equivalent forms — P = VI = I²R = V²/R. All give the same answer. Power becomes heat (resistive heating). Toaster uses I²R. Light bulb filament glows from this heat. EVs lose energy to motor and battery I²R losses; minimize via low-R conductors.

What's the difference between resistance and resistivity?

Resistance R is a property of the OBJECT (wire, resistor) — depends on geometry. Resistivity ρ is a property of the MATERIAL — independent of shape. R = ρL/A connects them. Two pieces of the same material have same ρ but might have different R. Resistivity tables list materials; resistance is what you measure on a specific component.

How is Ohm's law applied at high speeds (AC)?

For AC, V and I are time-varying. Ohm's law in complex form: V = I·Z, where Z is "impedance" — a complex number generalizing R. For pure resistor, Z = R. For capacitor, Z = 1/(jωC). For inductor, Z = jωL. Combining R, L, C in AC circuits requires complex arithmetic. Reduces to V = IR for DC (ω = 0).

Why does Ohm's law fail for diodes?

Diodes pass current only in one direction (above ~0.7 V threshold for silicon). Below threshold, near-zero current. Above, exponential growth. So I vs V is highly non-linear — not constant R. Treating it as Ohm's-law resistor gives wildly wrong predictions. Diodes have specific I-V curves; designers use those curves directly.