Ohm's Law Calculator — Voltage, Current, Resistance, and Power
Ohm's law (V = IR) is the foundational relationship in electrical circuit analysis. Combined with the power equations, it lets you calculate any electrical quantity from any two known quantities. The free Ohm's law calculator on PublicSoftTools computes all four values — voltage, current, resistance, and power — with step-by-step working for educational and practical use.
The Four Electrical Variables
| Symbol | Quantity | Unit | Definition |
|---|---|---|---|
| V | Voltage | Volts (V) | Electrical potential difference — the "pressure" driving current through a circuit |
| I | Current | Amperes (A) | Rate of flow of electric charge — how many electrons pass a point per second |
| R | Resistance | Ohms (Ω) | Opposition to current flow in a conductor — converts electrical energy to heat |
| P | Power | Watts (W) | Rate of energy conversion — how much energy the circuit uses per second |
Ohm's Law Formulas
| Find | Primary formula | Alternative 1 | Alternative 2 |
|---|---|---|---|
| Voltage (V) | V = I × R | V = P / I | V = √(P × R) |
| Current (I) | I = V / R | I = P / V | I = √(P / R) |
| Resistance (R) | R = V / I | R = V² / P | R = P / I² |
| Power (P) | P = V × I | P = I² × R | P = V² / R |
How to Use the Ohm's Law Calculator
- Open the Ohm's law calculator.
- Enter any two of the four values (V, I, R, or P). Leave the other two fields blank.
- Click Calculate. The tool selects the appropriate formula combination and computes both missing values.
- The result shows the formula used, the substituted values, and the numerical answer with appropriate units.
Worked Examples
| Scenario | Given | Solution | Practical note |
|---|---|---|---|
| LED lighting | V = 12V, R = 470Ω | I = 12/470 ≈ 0.026A (26 mA); P = 12 × 0.026 ≈ 0.31W | Check LED datasheet: max forward current is typically 20–30 mA |
| Household appliance | P = 1200W, V = 230V (UK) | I = 1200/230 ≈ 5.2A | Used to select correct fuse rating (6A fuse appropriate) |
| Battery pack | V = 9V, I = 0.5A | R = 9/0.5 = 18Ω; P = 9 × 0.5 = 4.5W | Total power draw from battery in the circuit |
Understanding the Ohm's Law Triangle
The classic Ohm's law triangle is a memory aid for the three primary relationships. Place V at the top of the triangle, I and R at the bottom corners. To find any variable, cover it and read the remaining formula:
- Cover V: multiply I × R → V = IR
- Cover I: V divided by R → I = V/R
- Cover R: V divided by I → R = V/I
The power triangle is analogous with P at the top, V and I at the bottom: P = VI (cover P), V = P/I (cover V), I = P/V (cover I). These triangles are visual shortcuts, but understanding the physics behind each formula produces more reliable calculation than mechanical formula selection.
Series vs. Parallel Circuits
Series circuits
In a series circuit, components are connected end-to-end in a single path. Key properties:
- Current is the same through all components: I_total = I₁ = I₂ = ...
- Voltage divides across components: V_total = V₁ + V₂ + ...
- Resistance adds: R_total = R₁ + R₂ + ...
Apply Ohm's law to the total circuit (using R_total and V_total) to find total current, then apply it again to individual components to find individual voltages.
Parallel circuits
In a parallel circuit, components are connected across the same two nodes. Key properties:
- Voltage is the same across all parallel branches: V_total = V₁ = V₂ = ...
- Current divides: I_total = I₁ + I₂ + ...
- Resistance decreases: 1/R_total = 1/R₁ + 1/R₂ + ... (equivalent resistance is less than any individual resistor)
For two resistors in parallel: R_total = (R₁ × R₂) / (R₁ + R₂). This is often called the "product over sum" formula.
Practical Applications
Selecting resistors for LEDs
LEDs require a current-limiting resistor to prevent burning out. To choose the correct resistor:
- Find the LED's forward voltage (V_f) from the datasheet — typically 1.8–3.3V depending on colour.
- Find the LED's recommended forward current (I_f) — typically 10–20 mA.
- Apply Ohm's law: R = (V_supply − V_f) / I_f
- Example: 5V supply, red LED (V_f = 2V, I_f = 20 mA): R = (5−2) / 0.02 = 150Ω. Use the nearest standard resistor value (150Ω or 180Ω).
Fuse selection
Fuses protect circuits by breaking the circuit when current exceeds a safe level. To select the correct fuse: calculate normal operating current using I = P/V (for a 230V appliance drawing 500W: I = 500/230 ≈ 2.2A). Choose a fuse rated slightly above normal current (3A fuse) — not 10 times above, which would not protect the circuit.
Cable sizing
Long cable runs add resistance, causing voltage drop. The resistance of a copper cable is R = ρL/A, where ρ is the resistivity (1.68 × 10⁻⁸ Ω·m for copper), L is the length (m), and A is the cross-sectional area (m²). For significant cable runs, calculate the voltage drop V = I × R_cable and ensure it stays within acceptable limits (typically <3% of supply voltage for UK/IET regulations).
Battery life estimation
If you know a battery's capacity in mAh and the circuit's current draw in mA, battery life = capacity / current. But current draw often requires Ohm's law first: if you know voltage (battery voltage) and resistance (circuit load), then I = V/R. Battery life = capacity / I.
Limitations of Ohm's Law
Ohm's law applies to linear (ohmic) components — resistors at constant temperature. Many real-world components are non-linear and do not follow V = IR with constant R:
- Diodes: Current-voltage relationship is exponential (Shockley diode equation), not linear.
- LEDs: A special case of diode. Resistance changes dramatically with applied voltage.
- Incandescent light bulbs: Resistance increases significantly with temperature (tungsten filament at operating temperature is ~10× higher resistance than at room temperature).
- Capacitors and inductors: Impedance depends on frequency (AC circuits); simple DC Ohm's law does not apply.
- Semiconductors: Transistors, FETs, and integrated circuits have complex voltage-current relationships that Ohm's law does not capture.
For DC circuits with resistors, Ohm's law is exact. For AC circuits, use impedance (Z) instead of resistance (R), and the relationship becomes V = IZ where Z is a complex number. The calculator handles DC resistive circuits only.
Safety Note for Practical Applications
Always verify calculations before working on live circuits. Mains voltage (230V in Europe, 120V in North America) is lethal — even seemingly small currents above 100 mA through the body can be fatal. For any mains-connected work, consult a qualified electrician. The Ohm's law calculator is provided for educational and low-voltage hobby electronics use.
Common Questions
What is the difference between AC and DC for Ohm's law?
For pure resistors, Ohm's law works the same in both AC and DC circuits using peak or RMS values consistently. For AC circuits with capacitors or inductors, resistance must be replaced with impedance (Z), which includes a reactive component. Use the calculator for DC resistive circuits or AC circuits where only resistors are involved.
Why does more resistance mean less current?
From I = V/R: with constant voltage, increasing R decreases I proportionally. Resistance opposes the flow of charge — the more opposition, the fewer electrons can flow per second. Think of voltage as water pressure in a pipe and resistance as the pipe's narrowness: higher pressure (voltage) drives more flow; narrower pipe (resistance) restricts it.
Can resistance be negative?
In passive components (resistors), resistance is always positive. However, some active circuit configurations (like tunnel diodes in their negative-resistance region, or active feedback circuits) can exhibit apparent negative resistance — where increasing voltage decreases current. These are advanced concepts outside the scope of simple Ohm's law; the calculator assumes positive resistance.
What is the relationship between watts and joules?
Power (watts) is the rate of energy (joules) conversion: 1 watt = 1 joule per second. A 100W light bulb converts 100 joules of electrical energy to light and heat every second. To find total energy consumed, multiply power by time: E = P × t. One kilowatt-hour (kWh, as used in electricity bills) = 1,000 W × 3,600 s = 3,600,000 J = 3.6 MJ.
Calculate Voltage, Current, Resistance, and Power
Enter any two electrical values to instantly find the other two — with step-by-step working.
Open Ohm's Law Calculator