Ohm's Law Calculator
12 V across 470 Ω gives a current of 25.53 mA (I = V ÷ R) and a power of 306.4 mW (P = V² ÷ R). Enter any two of voltage, current, resistance and power, pick the prefix (µ, m, k or M) next to each, and the calculator returns the other two with the formula and your numbers shown. Below it are resistors in series and parallel (up to 10), an LED resistor with the next E12 or E24 value, and a voltage divider. It is for learning and low-voltage electronics, and no substitute for a qualified electrician: do not use it as a guide to work on mains wiring.
Updated Runs in your browser: nothing you enter is uploadedHow this tool works
Find voltage, current, resistance or power
I = 25.53 mA, P = 306.4 mW
- I = V ÷ R = 12 V ÷ 470 Ω = 25.53 mA
- P = V² ÷ R = (12 V)² ÷ 470 Ω = 306.4 mW
Two known values fix the other two: each result comes from one of the twelve forms of Ohm’s law and the power law.
- Voltage (V) entered
- 12 V
- Current (I) result
- 25.53 mA (0.02553191489 A)
- Resistance (R) entered
- 470 Ω
- Power (P) result
- 306.4 mW (0.3063829787 W)
Resistors in series and parallel
Series 650 Ω, parallel 56.9 Ω
- Series: R = R1 + R2 + R3 = 100 Ω + 220 Ω + 330 Ω = 650 Ω
- Parallel: 1/R = 1/R1 + 1/R2 + 1/R3 = 1/100 Ω + 1/220 Ω + 1/330 Ω, so R = 56.9 Ω
Series adds the values, so the total is larger than any one. Parallel gives less than the smallest (100 Ω).
- Resistors counted
- 3
- In series
- 650 Ω
- In parallel
- 56.9 Ω (56.89655172 Ω)
LED current-limiting resistor
390 Ω (E12), calculated 350 Ω
- R = (Vs − Vf × n) ÷ I = (9 V − 2 V × 1) ÷ 20 mA = 350 Ω
- Power in the resistor P = (Vs − Vf × n)² ÷ R = (7 V)² ÷ 390 Ω = 125.6 mW; with a 2× margin, use a resistor rated 251.3 mW or more
The E12 value at or above the calculated one keeps the LED current at or below 20 mA: 17.95 mA with the 390 Ω resistor. The 2× margin points to a typical 500 mW rating.
- Calculated resistance
- 350 Ω
- Next E12 value at or above
- 390 Ω
- Voltage across the resistor
- 7 V
- LED current with that resistor
- 17.95 mA
- Resistor power
- 125.6 mW
- Minimum rating with 2× margin
- 251.3 mW
Voltage divider
Vout = 3.837 V
- Vout = Vin × R2 ÷ (R1 + R2) = 12 V × 4.7 kΩ ÷ (10 kΩ + 4.7 kΩ) = 3.837 V
Holds only if whatever Vout feeds draws little current: a load much smaller than about 10 × R2 pulls the output down.
- Output voltage
- 3.837 V (3.836734694 V)
- Output as share of input
- 31.97%
- Current through the divider
- 816.3 µA
- Power in R1
- 6.664 mW
- Power in R2
- 3.132 mW
For learning and low-voltage electronics, not a substitute for an electrician. Do not use these results to work on mains wiring: wire size, protection, earthing and code depend on more than V, I and R. Real parts have tolerances, and an LED’s forward voltage varies, so check the datasheet.
The twelve Ohm’s law and power formulas
| You know | Find | Formula | Worked example |
|---|---|---|---|
| Voltage and current | Resistance (R) | R = V ÷ I | 6 Ω |
| Voltage and current | Power (P) | P = V × I | 24 W |
| Voltage and resistance | Current (I) | I = V ÷ R | 2 A |
| Voltage and resistance | Power (P) | P = V² ÷ R | 24 W |
| Voltage and power | Current (I) | I = P ÷ V | 2 A |
| Voltage and power | Resistance (R) | R = V² ÷ P | 6 Ω |
| Current and resistance | Voltage (V) | V = I × R | 12 V |
| Current and resistance | Power (P) | P = I² × R | 24 W |
| Current and power | Voltage (V) | V = P ÷ I | 12 V |
| Current and power | Resistance (R) | R = P ÷ I² | 6 Ω |
| Resistance and power | Voltage (V) | V = √(P × R) | 12 V |
| Resistance and power | Current (I) | I = √(P ÷ R) | 2 A |
SI prefixes used on input and output
| Prefix | Symbol | Multiply by | Example |
|---|---|---|---|
| Micro | µ | 10^-6 | 4.7 µΩ = 0.0000047 Ω |
| Milli | m | 10^-3 | 4.7 mΩ = 0.0047 Ω |
| Kilo | k | 10^3 | 4.7 kΩ = 4,700 Ω |
| Mega | M | 10^6 | 4.7 MΩ = 4,700,000 Ω |
E12 and E24 standard resistor values (IEC 60063)
| Series | Tolerance | Values per decade | Values |
|---|---|---|---|
| E12 | 10 % | 12 | 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2 |
| E24 | 5 % | 24 | 1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.8, 2.0, 2.2, 2.4, 2.7, 3.0, 3.3, 3.6, 3.9, 4.3, 4.7, 5.1, 5.6, 6.2, 6.8, 7.5, 8.2, 9.1 |
Typical LED forward voltages
| LED colour | Typical forward voltage (Vf) |
|---|---|
| Red | 1.8 to 2.2 V |
| Yellow or amber | 2.0 to 2.2 V |
| Green | 2.0 to 3.2 V |
| Blue | 3.0 to 3.4 V |
| White | 3.0 to 3.4 V |
How to use Ohm’s law to find the missing values
- Pick any two known values. Enter two of voltage (V), current (I), resistance (R) and power (P) and leave the other two boxes empty.
- Set the prefix next to each value. Choose µ, m, k or M so you can type 20 with mA, or 4.7 with kΩ, instead of 0.02 and 4700. That pair gives V = 94 V, P = 1.88 W.
- Read the result and the formula. The calculator picks the matching formula for your pair and shows it with your numbers. For the example: I = V ÷ R = 12 V ÷ 470 Ω = 25.53 mA.
- Check the units. Volts ÷ ohms gives amps, and amps × volts gives watts. The example dissipates 306.4 mW, more than the 250 mW a typical 1/4 W resistor can take, so it would run hot.
- Use the extras for circuits. Add resistors in series or parallel, size a resistor for an LED, or find the output of a voltage divider in the sections below the calculator.
Frequently asked questions
- What is Ohm’s law?
- Ohm’s law says the current through a conductor is proportional to the voltage across it: V = I × R, where R is the resistance in ohms. For example, V = I × R = 20 mA × 4.7 kΩ = 94 V. It holds for resistors and most metal conductors at a steady temperature; it does not describe parts such as LEDs and diodes, whose current is not proportional to voltage.
- What are the formulas for power, voltage, current and resistance?
- Combining V = I × R with P = V × I gives twelve forms: R = V ÷ I; P = V × I; I = V ÷ R; P = V² ÷ R; I = P ÷ V; R = V² ÷ P; V = I × R; P = I² × R; V = P ÷ I; R = P ÷ I²; V = √(P × R); I = √(P ÷ R). The table above lists which two knowns each one needs.
- How do I find current from power and voltage?
- Divide power by voltage: I = P ÷ V. A 1.5 kW heater on 120 V draws 12.5 A, and its resistance is R = V² ÷ P = 9.6 Ω.
- How do I use milli-, kilo- and micro- prefixes?
- Type the number you read and choose the prefix next to it. 20 mA is 0.02 A, 4.7 kΩ is 4,700 Ω, 500 µA is 0.0005 A and 2.2 MΩ is 2,200,000 Ω. Results are shown with the prefix that keeps the number between 1 and 1000, to four significant digits, with the exact value in base units beside it. 20 mA through 4.7 kΩ gives V = 94 V, P = 1.88 W.
- What happens to resistance in series and in parallel?
- In series resistances add: R = R1 + R2 + R3 = 100 Ω + 220 Ω + 330 Ω = 650 Ω. In parallel the reciprocals add: 1/R = 1/R1 + 1/R2 + …, so the total is always less than the smallest resistor (56.9 Ω for the same three). Two equal resistors in parallel halve: 50 Ω from two 100 Ω. The calculator accepts up to 10 values, such as 100, 4.7k or 4k7.
- How do I choose a resistor for an LED?
- Subtract the LEDs’ forward voltage from the supply and divide by the current you want: R = (Vs − Vf × n) ÷ I. For a 9 V supply, one 2 V LED and 20 mA that is 350 Ω. Three 2 V LEDs in series from 12 V need 300 Ω, so use 330 Ω from E12. LEDs in parallel each need their own resistor.
- Why choose the standard value at or above, not the nearest one?
- A smaller resistor passes more than the current you chose, which can overdrive the LED; the next value up passes slightly less and is safe. In the example the exact 350 Ω is not a standard value: 390 Ω in E12 gives 17.95 mA, and 360 Ω in E24 is closer. E12 has 12 values per decade (10 % parts) and E24 has 24 (5 % parts).
- What power rating should the LED resistor have?
- Resistor power is P = (Vs − Vf × n)² ÷ R, here 125.6 mW. Resistors run cool and last when they dissipate at most half their rating, so the calculator doubles the power: 251.3 mW. Typical ratings are 1/8 W, 1/4 W, 1/2 W, 1 W and 2 W, so pick the next one above: 500 mW (1/2 W).
- How does a voltage divider work, and when does it fail?
- Two resistors in series split the input. With 12 V, R1 = 10 kΩ and R2 = 4.7 kΩ: Vout = Vin × R2 ÷ (R1 + R2) = 12 V × 4.7 kΩ ÷ (10 kΩ + 4.7 kΩ) = 3.837 V. The formula assumes nothing is drawing current from the output. A load smaller than about ten times R2 sits in parallel with R2 and pulls Vout down (a 4.7 kΩ load on this divider gives 2.283 V), so use a divider for signals and references, not to power things.
- Does Ohm’s law work for AC?
- For a purely resistive load, yes, using RMS values: a 23 Ω resistive element on 230 V RMS draws 10 A and dissipates 2.3 kW. Motors, transformers, capacitors and anything with reactance need impedance and power factor, which this calculator does not model.
- Can I use this for mains wiring?
- No. It is a learning aid and a bench tool for low-voltage electronics. Mains voltage can kill, and wire size, protection, earthing and code compliance depend on more than V, I and R. Have a qualified electrician do or check any mains work; for wire runs see the voltage drop and wire size calculators.
- How do I find voltage from power and resistance?
- Power and resistance give voltage and current through square roots: V = √(P × R) and I = √(P ÷ R). For 1 W in 100 Ω: V = 10 V, I = 100 mA. Resistance from power and current is R = P ÷ I².
How it works
Each result comes from one of the twelve forms of V = I × R and P = V × I (the table above); the pair you enter selects the two that apply. Values are converted to base units (volts, amps, ohms, watts) with the prefix you pick, computed in double-precision floating point, and shown to four significant digits with the SI prefix that keeps the number between 1 and 1000. The exact base-unit value, to ten significant digits, is shown beside it. Beyond µ and M the number simply grows or shrinks (5,000 MW, 0.4 µA). Series resistance is the sum, parallel is the reciprocal of the sum of reciprocals. The LED resistor is R = (Vs − Vf × n) ÷ I; the value shown is the smallest E12 or E24 value (IEC 60063 preferred numbers) that is at least R, so the LED current is at or below the one you chose. Its power is the square of the voltage across the resistor divided by the standard value, and the 2× margin is a rule of thumb for lasting service, not a derating curve; typical ratings are 1/8, 1/4, 1/2, 1 and 2 W. The divider is the unloaded formula. Assumptions: ideal resistors, steady DC or the RMS value of a resistive AC load, no temperature effects, no component tolerance (a 5 % resistor can be 5 % off) and an LED treated as a fixed forward voltage. It is not a substitute for an electrician for mains work. Everything runs in your browser; nothing you enter is sent anywhere.
Sources
- OpenStax, University Physics Volume 2, §9.3 Resistivity and Resistance and §9.4 Ohm’s Law (Chapter 9, Current and Resistance)
- OpenStax, University Physics Volume 2, §9.5 Electrical Energy and Power, and §10.2 Resistors in Series and Parallel (Chapter 10, Direct-Current Circuits)
- IEC 60063, Preferred number series for resistors and capacitors (the E series, E12 and E24 values)
- BIPM, The International System of Units (SI Brochure), SI prefixes
More free tools
- Voltage Drop CalculatorSingle-phase and 3-phase voltage drop for copper or aluminum wire: volts and percent lost, voltage at the load, and the smallest AWG size within 3% or 5%.
- Wire Size CalculatorFind the smallest copper or aluminum wire size for a load: checks NEC ampacity, the 240.4(D) small-wire limits and voltage drop, and shows which governs.
- Wavelength and Frequency CalculatorConvert between wavelength and frequency for light, radio and sound (λ = v / f), with photon energy in joules and eV, the band name and antenna lengths.
- LED Resistor CalculatorFind the series resistor for an LED from supply, forward voltage and current: exact and E12/E24 value, color bands, power rating and efficiency.
- Electrical Box Fill CalculatorCheck electrical box fill under NEC 314.16: count conductors, grounds, clamps, devices and loops, compare with the box volume, and see pass or fail.
- Battery Life CalculatorEstimate how long a battery lasts from its capacity (mAh, Ah or Wh) and load, with a usable-capacity setting and duty cycle. Or find the capacity needed.