LED Resistor Calculator
Size the series resistor for your LED in seconds
Result
How it is calculated
The resistor must drop the voltage the LED does not use, at the current you want. With the supply voltage Vs in volts, the LED forward voltage Vf in volts and the current I in milliamps: R = (Vs − Vf) ÷ (I ÷ 1000) ohms, and the heat in the resistor is P = (Vs − Vf) × I ÷ 1000 watts. The third result is the smallest E12 standard value that is equal to or larger than R, never a smaller one, so the real current is a little below your target and the LED is safe. The exact resistance is shown rounded to whole ohms and the power to three decimals. The supply must be higher than the forward voltage and the current above zero, otherwise there is no result. For values under 10 Ω the tool suggests 10 Ω.
Worked example
A 9 V supply, a red LED with a 2 V forward voltage, and a target of 20 mA. Voltage across the resistor: 9 − 2 = 7 V. Current in amps: 20 ÷ 1000 = 0.02 A. Resistance: 7 ÷ 0.02 = 350 Ω. Power: 7 × 0.02 = 0.140 W. The E12 series has 330 and 390, and 330 is below 350, so the tool picks 390 Ω. With 390 Ω the actual current is 7 ÷ 390 = about 18 mA.
Common mistakes
- Typing the current in amps (0.02) instead of milliamps (20); the field is in mA, so the resistor comes out a thousand times too large.
- Using the wrong forward voltage. It differs by LED colour, so check the data sheet of your LED, not a generic value.
- Choosing the exact resistance as a part number. Resistors come in standard steps, so use the E12 value shown, which rounds up to protect the LED.
- Ignoring the power rating: 0.140 W is above a 1/8 W resistor, so choose a 1/4 W or larger part, or a lower current.
- Entering the supply of a battery that is not fresh. Voltage drops as the battery drains, so the LED current changes as well.
About this calculator
This calculator sizes the series resistor an LED needs using R = (Vsupply − Vf) / I — supply voltage minus the LED's forward voltage, divided by the target current — then shows the power the resistor dissipates and the nearest standard E12 resistor value you can actually buy.
Electronics hobbyists, Arduino and Raspberry Pi builders, and students use it every time they wire an LED to a circuit, since running an LED without the right resistor either burns it out (too little resistance) or leaves it dim (too much).
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
The resistor is only half the story, because forward voltage differs by LED colour and part, so take Vf from the datasheet. For two 3 V LEDs in series on 12 V, enter 6 as the forward voltage: the tool returns 300 Ω and picks 330 Ω. On a 3.3 V supply with a 2 V LED at 20 mA it returns 65 Ω and picks 68 Ω, leaving little margin. Which supply voltages do you wire your LEDs to?