Elecmetric

LED Formulas: Resistor Value and Power

LED formulas for the series resistor from supply voltage, forward voltage and current, resistor power, LEDs in series, with worked examples and a table.

The formulas

To findFormula
Series resistorR = (Vs − Vf) / I
Resistor with n LEDs in seriesR = (Vs − n × Vf) / I
Power in the resistorPR = I² × R
Power in the LEDPLED = Vf × I
Current with a chosen resistorI = (Vs − Vf) / R

Vs is the supply voltage, Vf the forward voltage of the LED (from the data sheet, often about 2 V for red and 3 V or more for white and blue) and I the current you want, in amperes. Vs must be larger than n × Vf. LEDs in parallel should each have their own resistor.

Worked example: one LED on 12 V

The LED has a forward voltage of 3.2 V and a target current of 20 mA.

  1. R = (12 − 3.2) / 0.02 = 440 Ω
  2. The next standard value (E12 series) is 470 Ω, which gives I = 8.8 / 470 = 18.72 mA
  3. PR = 18.72² mA × 470 Ω = 164.8 mW, and PLED = 3.2 × 0.01872 = 59.91 mW

Worked example: three LEDs in series on 12 V

  1. R = (12 − 3 × 3.2) / 0.02 = 120 Ω

Resistor for one 3.2 V LED at 20 mA

SupplyResistor
5 V90 Ω
9 V290 Ω
12 V440 Ω
24 V1,040 Ω

Frequently asked questions

Why round up to the next standard value?

A larger resistor gives a slightly lower current, which is safer for the LED. A smaller value would push the current above the target.

What power rating should the resistor have?

Use at least twice the calculated dissipation. A quarter-watt resistor is ample for a single indicator LED at 20 mA.

Can I connect LEDs in parallel with one resistor?

It is risky. The forward voltages differ slightly, so one LED can take most of the current. Give each LED its own resistor.

Does the forward voltage change?

Yes. It varies with current and temperature, and between batches. A constant-current driver is better for high-power LEDs.

Related

Resistor FormulasOhm’s Law FormulasResistor Color CodeElectronics and instrumentation calculatorsThree-Phase Power FormulasPower Factor and the Power TriangleAC Circuit Formulas: Reactance and ImpedanceVoltage Drop Formulas for CablesTransformer Formulas: Current and Fault LevelInduction Motor FormulasLighting Formulas: Lux, Lumens and CandelaBattery Formulas: Capacity and RuntimeSolar PV Formulas: Array Size and StringsCapacitor Formulas: Energy and RC Time ConstantEarthing Formulas: Earth Rod and Fault LoopCable Size Formulas: Current and Short-CircuitEnergy and Cost Formulas: kWh and PaybackGenerator Formulas: kVA, Current and FuelUPS Formulas: kVA, DC Current and BatteryHarmonics Formulas: THD and True Power FactorShort-Circuit Formulas: Fault Level by MVAUnbalance Formulas: Voltage and Neutral CurrentMotor Starting Formulas: DOL, Star-DeltaCircuit Breaker Formulas: Rating and TripCooling Formulas: Airflow and Heat LoadHeating Formulas: Energy and Heater PowerPer-Unit Formulas: Base Values and ImpedanceConduit Fill Formulas: Percent Fill and SizeLightning Protection Formulas: Rolling SphereTransformer Efficiency and Regulation FormulasPump Formulas: Hydraulic, Shaft and Motor PowerFan Formulas: Air Power and Affinity LawsInductor Formulas: Energy and L/R Time ConstantRMS, Peak and Average Value FormulasResonance Formulas: Frequency, Q, BandwidthMotor Efficiency Formulas: Input and SavingsDemand, Load and Diversity Factor FormulasCable Tray Fill Formulas: Area and Cable CountConductor Resistance Formulas and TemperatureTransmission Line Formulas: Drop and LossesStar-Delta Conversion Formulas for Resistors4-20 mA Loop Formulas: Scaling and ResistorCable Loss Formulas: Power and Annual CostOp-Amp Formulas: Inverting and Non-Inverting555 Timer Formulas: Frequency and Duty CycleThévenin and Norton FormulasWheatstone Bridge Formulas: Balance and OutputConductor Force Formulas: Short-Circuit ForcesCT Burden Formulas: Lead Resistance and VAGear and Belt Drive Formulas: Speed and TorqueSkin Effect Formulas: Skin DepthRC Filter Formulas: Cutoff Frequency and GainRectifier Ripple Formulas: Capacitor FilterBuck and Boost Converter Formulas: Duty CycleHeat Sink Formulas: Junction TemperatureBattery Pack Formulas: Series and ParallelMotor Acceleration Time FormulasZener Regulator Formulas: Series ResistorBJT Bias Formulas: Voltage Divider BiasPt100 RTD Formulas: Resistance and TemperatureNTC Thermistor Formulas: Beta EquationFusing Current Formulas: Wire Fuse EstimateFlywheel Formulas: Stored EnergyLinear Regulator Formulas: Power and EfficiencyMOSFET Loss Formulas: Conduction and SwitchingRelay Coil Formulas: Current and ResistorTransformer Inrush Current FormulasBattery Charge Time FormulasWind Turbine Power Formulas: Betz LimitDetuning Reactor Formulas: Capacitor BanksTransformer Tap Changer FormulasCable Pulling Tension FormulasInsulation Resistance Formulas: PI and DARPower Transfer and Power Angle FormulasSolar Panel Temperature Derating FormulasVoltage Change and Flicker FormulasSoft Starter and VFD Sizing FormulasEarth Fault Loop and RCD FormulasBattery Internal Resistance FormulasBusbar Size and Short-Circuit FormulasADC Resolution and Sampling FormulasCapacitor Switching Inrush FormulasCable Charging Current FormulasSolar DC to AC Ratio FormulasMeasurement Uncertainty FormulasParallel Transformer Load Sharing FormulasPeukert Law and Battery Runtime FormulasCapacitor Discharge Time FormulasHydraulic Power and Cylinder Force FormulasThermocouple Voltage FormulasTransformer Vector Group FormulasPower Supply Hold-Up Time FormulasHoist and Lift Power FormulasCompressor Power FormulasRectifier Bridge Sizing FormulasPCB Trace Width and Current FormulasHeat Pump COP FormulasSound Level and dB Addition FormulasDuty Cycle and RMS Load FormulasSupercapacitor Energy FormulasStep and Touch Voltage FormulasContactor Sizing FormulasInverter-Fed Motor Cable FormulasPneumatic Cylinder Force and Air UseBusbar Temperature Rise FormulasMotor Temperature Rise FormulasBattery Storage Round-Trip EfficiencyThermal Time Constant FormulasSolar Charge Controller Sizing FormulasPoint Illuminance FormulasGenerator Droop and Load Sharing FormulasTwo-Wattmeter Method FormulasVFD Braking Resistor FormulasLoad Bank Test FormulasTransformer Cooling Class Rating FormulasEnergy Meter Multiplier FormulasOvercurrent Relay Curve FormulasSingle-Tuned Harmonic Filter FormulasCable Sheath Circulating Current FormulasDifferential Protection Slope FormulasEarth Electrode Spacing FormulasSolar Array Row Spacing FormulasDC Lighting Voltage Drop FormulasTransformer Loss of Life FormulasMotor Start Voltage Dip in the Cable FormulasNeutral Earthing Resistor FormulasCable I²t Withstand Check FormulasMotor Locked-Rotor Code Letter FormulasSynchronous Speed and Pole FormulasBattery C-Rate and Cycle Life FormulasEV Charging Time FormulasConveyor Belt Power FormulasParallel Plate Capacitor FormulasSolenoid and Coil Inductance FormulasPower Factor Correction Payback FormulasTransformer Through-Fault Current FormulasTransformer EMF Equation FormulasDelta-Star Resistor Conversion FormulasCurrent Shunt Resistor FormulasSolar Energy Yield and Degradation FormulasElectrolysis and Faraday’s Law FormulasAGL Series Circuit Load and CCR Sizing FormulasAGL Maximum Fittings on a CCR FormulasAGL Isolating Transformer FormulasAGL CCR Input Power and Energy FormulasAGL Brightness Step FormulasAGL Lamp Life FormulasComplex Number Formulas: Polar and RectangularPhasor Addition Formulas: Sum and DifferencePercentage Error Formulas for MeasurementsTrigonometry Formulas for Electrical EngineersMean and Standard Deviation FormulasQuadratic, Logarithm and Power FormulasPercentage, Ratio and Rounding FormulasProbability, Combinations and Binomial FormulasConversion Centre

Tell us how to improve this page

This opens your email app. Nothing is sent until you press send.