Skip to main content
ELECTRICAL

Ohm's Law Calculator

Solve voltage, current, resistance, and power in watts using Ohm's law circle (V=IR, P=VI, P=I²R). Free step-by-step DC circuit calculations.

DOCUMENTED FORMULA beginner
Interactive Workbench
beginner
Quick PresetsClick to autofill values
Parameters4 variables
Enter the electrical potential in volts.
Enter the current in amperes.
Enter the resistance in ohms.
Calculation ResultAwaiting Input
Voltage
--.--

Computed electrical potential.

Interactive DC Series Circuit Schematic

circuit
Loading diagram...
Voltage (V)Current (A)Power P=I²R
Live SVG Render

On this page Jump to section ▾

Worked Numerical Example

Direct calculation demonstrating the mathematical formula with step-by-step substitution.

Problem Statement

An electronics design engineer is interfacing a standard indicator LED with a 5.0 V5.0 \text{ V} microcontroller digital output pin.

  • Supply Voltage (VCCV_{\text{CC}}) = 5.0 V5.0 \text{ V}
  • LED Forward Voltage Drop (VfV_{\text{f}}) = 2.0 V2.0 \text{ V}
  • Desired Forward Current (IfI_{\text{f}}) = 15 mA=0.015 A15 \text{ mA} = 0.015 \text{ A}

Calculate:

  1. The required resistance value RR for the current-limiting resistor.
  2. The power dissipated by the resistor PresistorP_{\text{resistor}}.

Step-by-Step Numerical Solution

Step 1: Determine Net Voltage Across Resistor (VresistorV_{\text{resistor}})

Vresistor=VCC−Vf=5.0 V−2.0 V=3.0 VV_{\text{resistor}} = V_{\text{CC}} - V_{\text{f}} = 5.0 \text{ V} - 2.0 \text{ V} = 3.0 \text{ V}

Step 2: Calculate Required Resistance (RR)

Using R=VIR = \frac{V}{I}: R=3.0 V0.015 A=200  ΩR = \frac{3.0 \text{ V}}{0.015 \text{ A}} = 200 \,\,\Omega

Step 3: Compute Resistor Power Dissipation (PP)

Using P=I2⋅RP = I^2 \cdot R: P=(0.015 A)2×200  Ω=0.000225×200=0.045 W=45 mWP = (0.015 \text{ A})^2 \times 200 \,\,\Omega = 0.000225 \times 200 = 0.045 \text{ W} = 45 \text{ mW}

Result Summary: Select a standard 200  Ω200 \,\,\Omega (or next higher E24 standard value 220  Ω220 \,\,\Omega) resistor rated for at least 0.125 W0.125 \text{ W} (1/8 W1/8 \text{ W}).

Variables & Units Reference

Input parameters, calculated outputs, and supported SI/US customary units.

Mathematical Variables and Units Summary Table
Variable Symbol Parameter Name & Description Role Supported Units
solveFor Solve for Input SI Base Unit
voltage Voltage Enter the electrical potential in volts. Input mV, V, kV
current Current Enter the current in amperes. Input mA, A, kA
resistance Resistance Enter the resistance in ohms. Input mΩ, Ω, kΩ, MΩ
voltage Voltage Computed electrical potential. Output V
current Current Computed current. Output A
resistance Resistance Computed resistance. Output Ω
ℹ

Result Interpretation & Practical Meaning

Physical significance, evaluation guidelines, and domain context for the calculated output.

The computed value defines the linear steady-state relationship between voltage, current, and resistance in a conductive circuit element, alongside the resulting Joule heating dissipation (P = V·I = I²R). This model assumes an ideal ohmic material operating at constant temperature. Real conductor resistance increases with operating temperature (R(T) = R₀[1 + αΔT]), and non-linear elements (such as semiconductor junctions or gas discharge tubes) exhibit dynamic resistance rather than a constant V/I ratio.

What is Ohm’s Law?

Definition:
Ohm’s law governs the fundamental relationship in steady DC electrical circuits, defined as V=I⋅RV = I \cdot R and P=V⋅I=I2RP = V \cdot I = I^2 R, where VV is potential difference in Volts, II is current in Amperes, RR is resistance in Ohms, and PP is power dissipated in Watts.

Ohm’s Law is the foundational principle of electrical engineering and circuit theory, formulated in 1827 by German physicist Georg Simon Ohm. It states that the electric current flowing through an ideal conductor between two points is directly proportional to the potential difference (voltage) across the two points, and inversely proportional to the resistance of the conductor.

Ohm’s Law provides the basic mathematical model for designing power distribution networks, analyzing printed circuit board (PCB) traces, sizing current-limiting resistors, and troubleshooting electrical equipment.


Governing Mathematical Equations

             +-----------------------+
             |      Voltage (V)      |
             |       [ Volts ]       |
             +-----------+-----------+
                         |
           +-------------+-------------+
           |                           |
 +---------+---------+       +---------+---------+
 |    Current (I)    |   ×   |  Resistance (R)   |
 |    [ Amperes ]    |       |    [  Ohms Ω  ]   |
 +-------------------+       +-------------------+

1. The Three Forms of Ohm’s Law

Depending on which electrical parameter is unknown, the fundamental equation rearranges directly into three operational forms:

  • Solve for Voltage (VV): V=I⋅RV = I \cdot R (Voltage equals current multiplied by resistance).

  • Solve for Current (II): I=VRI = \frac{V}{R} (Current equals voltage divided by resistance, valid for R>0R > 0).

  • Solve for Resistance (RR): R=VIR = \frac{V}{I} (Resistance equals voltage divided by current, valid for I>0I > 0).

2. Electrical Power Relationships (Joule Heating)

Electric power (PP), measured in Watts (W\text{W}), represents the rate at which electrical energy is converted into work or dissipated as thermal heat. Combining Ohm’s Law with the definition of electric power (P=V⋅IP = V \cdot I) yields the complete power formulas:

P=V⋅I=I2⋅R=V2RP = V \cdot I = I^2 \cdot R = \frac{V^2}{R}


Variable Definitions & Standard Units

VariablePhysical QuantityStandard SI UnitCommon UnitsPhysical Interpretation
VVPotential DifferenceV (Volts)\text{V (Volts)}mV\text{mV}, kV\text{kV}Electrical potential energy per unit charge (1 V=1 J/C1\text{ V} = 1\text{ J/C}).
IIElectric CurrentA (Amperes)\text{A (Amperes)}mA\text{mA}, μA\mu\text{A}, kA\text{kA}Rate of electric charge flow through a cross-section (1 A=1 C/s1\text{ A} = 1\text{ C/s}).
RRElectrical ResistanceΩ (Ohms)\Omega\text{ (Ohms)}mΩ\text{m}\Omega, kΩ\text{k}\Omega, MΩ\text{M}\OmegaMaterial opposition to the flow of electric charges (1 Ω=1 V/A1\ \Omega = 1\text{ V/A}).
PPDissipated PowerW (Watts)\text{W (Watts)}mW\text{mW}, kW\text{kW}, MW\text{MW}Rate of energy transformation (1 W=1 J/s=1 V⋅A1\text{ W} = 1\text{ J/s} = 1\text{ V}\cdot\text{A}).

Step-by-Step Worked Examples

Example 1: Solving for Current in a DC Circuit (Sizing a Load)

A 12.0 V12.0\text{ V} automotive battery is connected across a ceramic heating resistor with a resistance of 6.0 Ω6.0\ \Omega. Calculate the continuous current drawn and total power dissipated.

  1. Select Formula: I=VRI = \frac{V}{R}
  2. Substitute Values: I=12.0 V6.0 Ω=2.0 AmperesI = \frac{12.0\text{ V}}{6.0\ \Omega} = 2.0\text{ Amperes}
  3. Compute Power Dissipation: P=V⋅I=12.0 V×2.0 A=24.0 WattsP = V \cdot I = 12.0\text{ V} \times 2.0\text{ A} = 24.0\text{ Watts}

Interpretation: The circuit draws 2.0 A2.0\text{ A} from the battery and dissipates 24 W24\text{ W} of heat. The resistor must have a power rating of at least 50 W50\text{ W} for reliable continuous operation.

Example 2: Sizing an LED Current-Limiting Resistor

A microcontroller with a 5.0 V5.0\text{ V} output pin powers a red indicator LED. The LED has a forward voltage drop of VF=2.0 VV_F = 2.0\text{ V} and requires a forward current of IF=15 mAI_F = 15\text{ mA} (0.015 A0.015\text{ A}). Calculate the required series resistor value.

  1. Calculate Voltage across Resistor: VR=VCC−VF=5.0 V−2.0 V=3.0 VV_R = V_{CC} - V_F = 5.0\text{ V} - 2.0\text{ V} = 3.0\text{ V}
  2. Apply Ohm’s Law for Resistance: R=VRIF=3.0 V0.015 A=200 ΩR = \frac{V_R}{I_F} = \frac{3.0\text{ V}}{0.015\text{ A}} = 200\ \Omega
  3. Select Nearest Standard E24 Resistor: 220 Ω220\ \Omega (which results in IF≈13.6 mAI_F \approx 13.6\text{ mA}).

Ohmic vs Non-Ohmic Conductors

Ohm’s Law is an empirical material law rather than an immutable fundamental law of the universe. It applies strictly to ohmic conductors:

        Ohmic Resistor (Linear)              Non-Ohmic Diode (Non-Linear)
    Current (I)                          Current (I)
         ^     /                              ^         /
         |    /                               |        /
         |   /                                |       /
         |  /                                 |      /
         | /                                  |_____/ (Threshold V_F)
         +------------> Voltage (V)           +------------> Voltage (V)
  1. Ohmic Materials: Metallic conductors (copper, aluminum, gold) and standard carbon/metal-film resistors maintain a constant resistance over wide voltage ranges at steady temperatures, exhibiting a straight-line I−VI-V characteristic.
  2. Non-Ohmic Devices: Semiconductor components (diodes, LEDs, transistors), vacuum tubes, and gas discharge tubes exhibit non-linear I−VI-V curves. For example, a diode conducts negligible current until the threshold forward voltage (VF≈0.7VV_F \approx 0.7\text{V} for silicon) is reached, after which current increases exponentially.

Common Calculation Mistakes

  • Applying DC Formulas Directly to AC Peak Voltages: Using peak voltage (VpeakV_{\text{peak}}) instead of RMS voltage (VRMS=Vpeak/2V_{\text{RMS}} = V_{\text{peak}}/\sqrt{2}) when calculating AC power and heating currents.
  • Neglecting Temperature Coefficient of Resistance: Assuming resistance remains static under heavy heating loads. An incandescent light bulb filament has a cold resistance roughly 10×10\times lower than its hot operating resistance, causing a high inrush current spike at switch-on.
  • Ignoring Battery Internal Resistance (rintr_{\text{int}}): Under high current discharge (such as automotive engine cranking), battery terminal voltage sags significantly due to internal chemical resistance (Vterm=VOC−I⋅rintV_{\text{term}} = V_{\text{OC}} - I \cdot r_{\text{int}}).

Practical Engineering Applications

  • Embedded Microelectronics: Sizing pull-up and pull-down resistors (4.7kΩ–10kΩ4.7\text{k}\Omega\text{--}10\text{k}\Omega) on microcontroller I2C communication buses.
  • Circuit Protection & Fusing: Calculating short-circuit fault currents (Ifault=Vsource/RloopI_{\text{fault}} = V_{\text{source}} / R_{\text{loop}}) to select appropriate circuit breaker and fuse trip ratings.
  • Power Transmission Grid Optimization: Using high voltage step-up transformers (500 kV500\text{ kV}) to reduce line current II, thereby dramatically decreasing transmission line I2RI^2 R heat losses across long distances.


References & Technical Sources

  1. Boylestad, R. L. (2015). Introductory Circuit Analysis (13th ed.). Pearson. (Chapter 3: Ohm’s Law, Power, and Energy).
  2. Alexander, C. K., & Sadiku, M. N. (2020). Fundamentals of Electric Circuits (7th ed.). McGraw-Hill Education. (Chapter 2: Elementary Circuit Laws).
  3. Horowitz, P., & Hill, W. (2015). The Art of Electronics (3rd ed.). Cambridge University Press. (Chapter 1: Foundations — Voltage, Current, and Resistance).

Mathematical Derivation & Formula

Theoretical formulation derived from standard physics and engineering textbooks and models.

Step-by-Step Mathematical Proof

Step 1

Microscopic Current Density & Conductivity

J=σE=1ρE\mathbf{J} = \sigma \mathbf{E} = \frac{1}{\rho} \mathbf{E}

Drude conductive transport relates current density J to electric field E through material conductivity sigma.

Step 2

Macroscopic Integration along Conductor Geometry

V=∫E⋅dl,I=∫J⋅dA  ⟹  V=I(ρLA)=IRV = \int \mathbf{E} \cdot d\mathbf{l}, \quad I = \int \mathbf{J} \cdot d\mathbf{A} \implies V = I \left(\rho \frac{L}{A}\right) = I R

Integrating field and current density across length L and cross-section A yields the macroscopic circuit law V = IR.

Common Pitfalls & Mistakes

Frequent calculation errors, unit confusion, and model boundary conditions.

Neglecting Resistor Power Rating (Joule Burnout)

Why it happens: Calculating resistance correctly but using a 0.25 W resistor in a circuit dissipating 1 W of thermal power.

Correct approach: Always evaluate thermal dissipation P = I²R and select components with at least a 2× thermal derating margin.

Applying Ohm's Law Directly to Semiconductor Diodes

Why it happens: Assuming diodes possess a fixed ohmic resistance value.

Correct approach: Use the Shockley diode equation for PN junctions; diodes exhibit exponential, non-ohmic I-V behavior.

Unit Prefix Errors with Milliamperes and Kilohms

Why it happens: Multiplying current in mA directly by resistance in Ω without converting mA to 10⁻³ A.

Correct approach: Convert all quantities to base SI units (Amperes, Volts, Ohms) or note that mA × kΩ = V.

Measuring In-Circuit Resistance while Energized

Why it happens: Placing an ohmmeter across a live circuit component.

Correct approach: De-energize the circuit and disconnect at least one lead of the target component to avoid shunt paths and meter damage.

Real-World Engineering Applications

Industry deployment scenarios, practical design constraints, and field applications.

Electronic Circuit Design

LED Current Limiting

Sizing series drop resistors to protect diodes from overcurrent under known supply rail voltages.

Power Distribution

Cable Voltage Drop Evaluation

Checking that line resistance over long conductor runs does not cause excessive voltage drop under load.

Instrumentation

Current Shunt Resistor Sizing

Converting high circuit current to a proportional low millivolt drop for ADC measurement.

Frequently Asked Questions

Technical explanations grounded in governing physical laws and textbook derivations.

Frequently Asked Questions

When should I use Ohm’s Law?

Use Ohm’s Law whenever you are analyzing a linear (ohmic) DC circuit or purely resistive AC circuit where two of voltage (VV), current (II), and resistance (RR) are known and you need to calculate the third quantity (V=I⋅RV = I \cdot R, I=VRI = \frac{V}{R}, or R=VIR = \frac{V}{I}).

Does Ohm’s Law apply to all materials?

No. Materials that follow Ohm’s Law are called ohmic conductors (e.g. copper, aluminum). Non-ohmic devices like diodes, transistors, LEDs, and gas discharge lamps exhibit non-linear current-voltage relationships where resistance varies with applied voltage.

How does Ohm’s Law apply in Alternating Current (AC) circuits?

In AC circuits containing capacitors and inductors, pure resistance RR is replaced by complex Impedance (ZZ): V=I⋅ZV = I \cdot Z Where ZZ incorporates both resistance and reactive elements (Z=R+jXZ = R + jX).

What happens to resistance as conductor temperature increases?

For metallic conductors, resistance increases with temperature according to R(T)=R0[1+α(T−T0)]R(T) = R_0 [1 + \alpha (T - T_0)], where α\alpha is the temperature coefficient of resistance.

Academic References & Textbooks

Curated academic sources, engineering textbooks, and relevant technical references.

  • Introductory Circuit Analysis (13th Edition)
    Authors: Robert L. Boylestad • Source: Pearson • Year: 2016
  • The Art of Electronics (3rd Edition)
    Authors: Paul Horowitz, Winfield Hill • Source: Cambridge University Press • Year: 2015