Know two of volts, amps and ohms? Get the third plus the power in watts, or size an LED series resistor and see the next E12 and E24 values with the current each one gives.
What resistor does a red LED need on 12 V?
Know two of volts, amps and ohms? Get the third plus the power in watts, or size an LED series resistor and see the next E12 and E24 values with the current each one gives.
The calculator below is set to size the series resistor for a red LED on a 12 V supply, in LED mode. It assumes a forward voltage of 2 V, the top of the 1.7 V to 2.0 V range given for red LEDs, and a current of 20 mA, a common rating for small LEDs. The resistor takes the rest of the voltage, so its value is (12 V minus 2 V) divided by 20 mA.
Resistors come in standard values, and the result rounds up to the next E24 and E12 value, which keeps the current at or just below 20 mA, and shows the heat each choice has to shed. If your LED datasheet lists a different forward voltage or current, change those two boxes and the numbers follow.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
Ohm's law and the LED resistor, summed up by four results
Twelve volts pushing half an amp means 24 Ω of resistance and 6 W of heat. Give the calculator any two of voltage, current and resistance and it returns the third plus the power; switch to the LED mode and it sizes the series resistor from the supply voltage, the LED's forward voltage and the current you want, then rounds up to a resistor you can actually buy.
Setting up a calculation
- What to calculate - resistance, voltage, current, or the series resistor for an LED.
- Voltage and its unit - mV, V or kV. In LED mode this is the supply: a 5 V USB rail, a 9 V battery, a 12 V car socket.
- Current and its unit - µA, mA or A. Type 500 with mA selected rather than 0.5 with A if that is how the number is printed.
- Resistance and its unit - Ω, kΩ or MΩ. A resistor marked 4k7 is 4.7 with kΩ selected.
- LED forward voltage - LED mode only, in volts, from the datasheet.
- Read the result - the answer with a sensible prefix, the formula with your numbers, all four quantities, and in LED mode the next standard resistor values with the current each one gives.
Enter sizes without a sign. The direction a current flows in does not change the arithmetic, and a negative resistance has no meaning for a resistor.
The relationship behind every mode
Ohm's law is one sentence: the current through a conductor equals the voltage across it divided by its resistance. Written three ways it becomes I = V ÷ R, V = I × R and R = V ÷ I, which is why knowing any two numbers is enough. Voltage is the push, measured in volts; current is the flow, in amperes; resistance is how hard the component makes that flow, in ohms. One volt across one ohm drives exactly one ampere.
Power comes along for free. Multiply voltage by current and you get watts, the rate at which the resistance turns electrical energy into heat. That heat is the whole point in a toaster and a nuisance in a circuit board, where a resistor rated for a quarter of a watt will run hot or fail if it has to shed more. The calculator prints the power in every mode so you can check the rating before you solder anything.
An LED does not behave like a resistor. Its voltage stays close to the forward voltage printed in the datasheet while the current can swing a long way, so connecting it straight to a supply lets the current run away. A resistor in series takes up the difference between the supply and the forward voltage, and Ohm's law sizes it: R = (Vs − Vf) ÷ I. With a 5 V supply, a 2 V LED and a 20 mA target, the resistor sees 3 V and needs 150 Ω.
Resistance itself depends on the material and the shape. A wire's resistance is its resistivity times its length, divided by its cross-section. Resistivity is the property of the material alone, and it spans an enormous range, from silver and copper to plastics that barely conduct at all.
Doing the arithmetic on paper, prefixes included
Most mistakes with Ohm's law are not in the formula but in the prefixes. Three habits keep them out.
Resistivity of common metals at 20 °C
Values from the resistivity table on Wikipedia. The last column is the resistance of a piece 1 m long with a 1 mm² cross-section, a round size that makes the comparison concrete.
| Material | Resistivity (Ω·m) | 1 m × 1 mm² | Where it shows up |
|---|---|---|---|
| Silver | 1.59 × 10⁻⁸ | 15.9 mΩ | Exposed contact points |
| Copper | 1.68 × 10⁻⁸ | 16.8 mΩ | Building wiring, cables |
| Annealed copper | 1.72 × 10⁻⁸ | 17.2 mΩ | The 100% IACS reference |
| Gold | 2.44 × 10⁻⁸ | 24.4 mΩ | Electrical contacts |
| Aluminum | 2.82 × 10⁻⁸ | 28.2 mΩ | Overhead power lines |
| Tungsten | 5.60 × 10⁻⁸ | 56 mΩ | Lamp filaments |
| Iron | 9.70 × 10⁻⁸ | 97 mΩ | Structural, magnetic cores |
| Lead | 22.0 × 10⁻⁸ | 220 mΩ | Battery plates |
| Stainless steel (18/8) | 69.0 × 10⁻⁸ | 690 mΩ | Hardware, housings |
| Nichrome | 110 × 10⁻⁸ | 1.1 Ω | Heating elements |
The spread explains the choice of materials. Nichrome resists about 65 times as much as copper for the same size, which is exactly what a heating element wants and exactly what a supply cable does not.
Typical LED values and what they give
Forward voltage depends on the color. Wikipedia's LED circuit article gives about 1.7 to 2.0 V for red, about 2.8 to 4.0 V for violet and around 1.2 V for infrared, and lists 2 mA, 10 mA and 20 mA as common indicator currents. The rows below are calculator results; always take the real forward voltage and maximum current from your part's datasheet.
| Supply | Forward voltage | Target current | Exact resistor | Next E12 value |
|---|---|---|---|---|
| 3.3 V | 1.8 V | 10 mA | 150 Ω | 150 Ω |
| 5 V | 2 V | 2 mA | 1.5 kΩ | 1.5 kΩ |
| 5 V | 2 V | 20 mA | 150 Ω | 150 Ω |
| 9 V | 2 V | 20 mA | 350 Ω | 390 Ω |
| 12 V | 3.2 V | 20 mA | 440 Ω | 470 Ω |
Did you know?
Five people with a V, an I and an R
Short answers about volts, amps and ohms
Related tools
Speed of Sound Calculator
Sound in air, water and seventeen materials, and the distance to a thunderstorm - Open the calculator
Echo Distance Calculator
Round-trip echoes, sonar depth and ultrasonic thickness readings - Open the calculator
Mechanical Power Calculator
Watts from work and time, the mechanical side of the same unit - Open the calculator
Specific Heat Calculator
How far the heat from a resistor or element warms a material - Open the calculator
Thermal Efficiency Calculator
Useful output against energy in, from boilers to electric heaters - Open the calculator
Thermal Conductivity Calculator
Heat flow through a material, the thermal cousin of resistivity - Open the calculator
Calculator verified by the LiczGrupa.pl team
Content, formulas and results have been reviewed for accuracy and relevance by our team of specialists.

Reviewed by: Natalia Skrzek