Ohm's Law Calculator

Fill in exactly two fields and leave the other two empty. Use volts, amperes, ohms and watts; for milliamps divide by 1,000 first.

Results

Enter your values and select Calculate.

V=IR,P=VI=I2R=V2RV=IR,\quad P=VI=I^2R=\frac{V^2}{R}

About this tool

Ohm's law states that the voltage across a resistor equals the current through it multiplied by its resistance. Together with the power formula, it links the four basic quantities of a DC circuit, so knowing any two lets you calculate the rest. Students, hobbyists and electricians use it to size resistors, check power ratings and estimate current draw.

How it works

Enter any two of the four quantities: voltage in volts, current in amperes, resistance in ohms or power in watts. Leave the other two fields empty and select Calculate.

The calculator combines Ohm's law, V=IRV = IR, with the power equation, P=VIP = VI, to solve the two missing values. All six possible pairs work, so you can, for example, find the current a 60 W bulb draws at 230 V or the resistor that drops 5 V at 20 mA.

V=IR,P=VI=I2R=V2RV=IR,\quad P=VI=I^2R=\frac{V^2}{R}

Example

A 12 V supply drives a current of 2 A through a load. The resistance is R=V/I=12/2=6 ΩR = V/I = 12/2 = 6\ \Omega and the power is P=VI=12×2=24 WP = VI = 12 \times 2 = 24\ \text{W}.

For an LED circuit, a resistor must drop 3 V at 20 mA (0.02 A): R=3/0.02=150 ΩR = 3 / 0.02 = 150\ \Omega, dissipating 3×0.02=0.06 W3 \times 0.02 = 0.06\ \text{W}, so a common 0.25 W resistor is enough.

Assumptions and limits

The formulas describe ideal resistive loads with direct current, or AC circuits using RMS values with a power factor of 1. Motors, transformers, LEDs and other components whose resistance changes with voltage, temperature or frequency need more detailed models. Values must be positive; enter base units rather than kilo- or milli- prefixes.

Frequently asked questions

What is Ohm's law?

Ohm's law says V=IRV = IR: voltage equals current times resistance. Rearranged, current is I=V/RI = V/R and resistance is R=V/IR = V/I.

How do I calculate power from voltage and current?

Multiply them: P=VIP = VI. If you know the resistance instead, use P=I2RP = I^2R or P=V2/RP = V^2/R.

How do I convert milliamps and kilohms?

Divide milliamps by 1,000 to get amperes (20 mA = 0.02 A) and multiply kilohms by 1,000 to get ohms (4.7 kΩ = 4,700 Ω) before entering them.

Does Ohm's law work for AC circuits?

For purely resistive AC loads such as heaters and incandescent lamps, it works with RMS voltage and current. Circuits with inductance or capacitance need impedance and power factor, which this calculator does not include.

How do I choose a resistor's power rating?

Calculate the power it dissipates and choose a rating comfortably above it, commonly at least twice the calculated value, so the resistor stays cool.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
voltage_vVoltagenumber; allowed > 0give 2 of voltage_v, current_a, resistance_ohm, power_w
current_aCurrentnumber; allowed > 0give 2 of voltage_v, current_a, resistance_ohm, power_w
resistance_ohmResistancenumber; allowed > 0give 2 of voltage_v, current_a, resistance_ohm, power_w
power_wPowernumber; allowed > 0give 2 of voltage_v, current_a, resistance_ohm, power_w

Examples

  • ?voltage_v=230&resistance_ohm=46
  • ?current_a=0.5&power_w=60

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="ohms_law_calculator"]