Ohm's law, LED resistor and voltage divider
Ohm's law from any two values, the LED series resistor with the next E12 and E24 value and its power rating, and a voltage divider.
Values
Result
What it does
The Ohm's law calculator (Ohmsches Gesetz Rechner) has three jobs. First, give any two of voltage, current, resistance and power and it works out the other two. Second, the LED series resistor: enter the supply voltage, the LED voltage and the current, and it gives the exact resistor, the next E12 and E24 standard value, the real current with that part and the power rating to buy. For 5 V, 2 V and 20 mA the answer is 150 ohm. Third, a voltage divider from two resistors. You can type values like 4,7k or 1M. It runs in your browser.
How to use it
- 1Choose Ohm's law, LED resistor or Divider.
- 2Enter the values. Resistors accept k and M, like 4,7k or 1M.
- 3Read the result, the standard resistor value and the power rating, and copy it.
Common uses
- Find the series resistor for an LED on 3.3 V, 5 V or 12 V.
- Check the current through a resistor and how much heat it makes.
- Pick the next E12 or E24 value from a parts drawer.
- Design a voltage divider to scale a sensor signal down for a microcontroller input.
- Check homework on voltage, current, resistance and power.
- Know whether a 1/8 W, 1/4 W or 1/2 W resistor is enough.
Questions
How do I find the LED resistor?
R = (supply voltage - LED voltage) / LED current. For 5 V, a red LED at 2 V and 20 mA: (5 - 2) / 0.02 = 150 ohm.
Why does it round up to the next standard value?
A slightly higher resistor means a slightly lower current, so the LED is never driven harder than you asked. A lower value would overdrive it.
What are E12 and E24?
Standard series of resistor values: E12 has 12 values per decade (10, 12, 15, 18, 22 ...), E24 has 24. Parts in shops are almost always from these series.
How is the power rating chosen?
The tool takes the heat in the resistor (current squared times resistance) and picks the smallest standard rating that is at least twice that, so the part stays cool.
Which two values can I fill in for Ohm's law?
Any two of voltage, current, resistance and power. If you fill in more than two, the tool asks for exactly two.
What does the voltage divider formula say?
Vout = Vin x R2 / (R1 + R2). The divider is only accurate when whatever you connect draws far less current than the divider itself.
Is my data uploaded?
No. Everything is calculated on your device.