How to Make an LED Circuit: Beginner's Wiring Guide

Build your first LED circuit with this easy step-by-step guide. Covers series and parallel wiring, resistor calculation, and common mistakes.

GADGETSTECHNOLOGYELECTRONIC AND HARDWARE

3/19/20265 min read

A blinking or glowing LED might seem trivial, but the LED circuit is where most electronics enthusiasts take their first real step. It is the 'Hello, World' of hardware — simple enough to complete in minutes, yet packed with lessons that apply to every circuit you will ever build.

In this guide, you will learn how LEDs work, why they need resistors, how to calculate the correct resistor value, and how to wire single-LED, series, and parallel LED circuits. By the end, you will have the knowledge to add LEDs confidently to any project.

What Is an LED?

LED stands for Light Emitting Diode. It is a semiconductor device that emits light when current flows through it. The 'diode' part is critical — a diode only allows current to flow in one direction. Connect an LED the wrong way around, and it will not light up (and if you do this with too much voltage, it can be permanently damaged).

LEDs are defined by two key electrical parameters: Forward Voltage (Vf) and Maximum Forward Current (If). Common values for standard 5mm through-hole LEDs are: Red: Vf = 1.8–2.2V, If = 20mA; Green: Vf = 2.0–2.4V, If = 20mA; Blue/White: Vf = 3.0–3.5V, If = 20mA. Always check the datasheet for your specific LED.

Why LEDs Need Resistors

Unlike a light bulb, an LED does not have an inherent resistance that limits current. If you connect an LED directly to a 5V supply without a resistor, current will surge through it uncontrolled — exceeding the maximum current almost instantly, overheating the junction, and burning out the LED in seconds.

A resistor connected in series with the LED limits the current to a safe level. This is called a current-limiting resistor, and it is non-negotiable in virtually every LED circuit.

Calculating the Correct Resistor Value

The formula for the current-limiting resistor is derived directly from Ohm's Law: R = (Vsupply - Vf) / If

Where Vsupply is your power supply voltage, Vf is the LED's forward voltage, and If is the desired current (typically 10–20mA for standard LEDs; running at 10mA rather than 20mA increases LED lifespan significantly with minimal brightness reduction).

Example: Arduino 5V Pin with a Red LED

Vsupply = 5V, Vf = 2.0V, If = 15mA (0.015A). R = (5 - 2.0) / 0.015 = 3.0 / 0.015 = 200 Ohms. Choose the nearest standard value: 220 Ohms. This gives If = 3.0 / 220 = 13.6mA — perfectly safe.

Example: 3.3V Supply with a Blue LED

Vsupply = 3.3V, Vf = 3.2V, If = 10mA. R = (3.3 - 3.2) / 0.010 = 0.1 / 0.010 = 10 Ohms. Note how a blue LED barely works on a 3.3V supply — the voltage headroom is only 0.1V. This is why blue LEDs are sometimes problematic in low-voltage circuits.

Identifying LED Polarity

Before wiring, identify which leg of the LED is the anode (positive) and which is the cathode (negative). There are three ways to tell:

  • Longer leg = anode (positive). This is the most reliable method on new LEDs.

  • Flat side on the rim of the LED body = cathode side.

  • Look inside the LED: the larger metal plate is the cathode.

Always connect the anode toward the positive supply (through the resistor) and the cathode toward ground (negative).

What You Need

  • 1x LED (5mm, any colour)

  • 1x resistor (220 Ohm for 5V supply)

  • Breadboard

  • Jumper wires

  • Power source: Arduino 5V pin, 9V battery with voltage regulator, or USB power bank

Wiring a Single LED Circuit: Step by Step

  1. Place the LED on the breadboard with the anode (longer leg) in row 10, column e, and cathode in row 11, column e.

  2. Place the 220 Ohm resistor connecting the LED anode row (row 10) to a positive rail, spanning columns a to e.

  3. Connect a jumper wire from the positive power rail to your 5V source.

  4. Connect a jumper wire from the LED cathode row (row 11) to the ground (negative) rail.

  5. Connect the negative rail to the GND pin of your power source.

  6. Apply power. The LED should glow. If it does not, check polarity and connections.

The circuit is: 5V -> Resistor -> LED Anode -> LED Cathode -> GND.

Wiring LEDs in Series

In a series circuit, LEDs are connected end-to-end (cathode of LED1 to anode of LED2, etc.). The supply voltage must exceed the sum of all forward voltages plus the resistor drop.

Series formula: R = (Vsupply - (Vf1 + Vf2 + Vf3)) / If

Example: Three red LEDs (Vf = 2.0V each) in series on a 12V supply at 15mA: R = (12 - 6.0) / 0.015 = 6.0 / 0.015 = 400 Ohms. Choose 390 Ohm or 470 Ohm.

Advantages of series: Only one resistor needed. Disadvantage: All LEDs go out if one fails, and you need a higher supply voltage.

Wiring LEDs in Parallel

In a parallel circuit, all LED anodes connect to the positive rail and all cathodes connect to ground. Each LED gets its own current-limiting resistor.

Important rule: Never share a single resistor among multiple parallel LEDs. Even tiny variations in forward voltage between LEDs will cause current hogging — the LED with slightly lower Vf draws more current, heats up, lowers its Vf further, draws even more current, and eventually burns out.

With individual resistors, the parallel circuit is more reliable: if one LED fails, the others continue working. This is why LED strips use individual resistors per LED group.

Controlling LEDs with Arduino

When connected to an Arduino digital pin (rather than directly to a power supply), the LED circuit works the same way — but now your code controls whether the pin is HIGH (3.3V or 5V) or LOW (0V).

Connect the resistor to the Arduino digital pin (e.g. pin 13), then to the LED anode, then cathode to GND. In your sketch: pinMode(13, OUTPUT); and digitalWrite(13, HIGH); to turn on, digitalWrite(13, LOW); to turn off.

For dimming, use a PWM-capable pin and analogWrite(pin, value) with a value from 0 (off) to 255 (full brightness). See our guide to PWM on the Circuit Diary Blog for more details.

Common Mistakes and How to Avoid Them

  • LED connected backwards: Will not light up. Swap the legs.

  • No resistor: LED will immediately burn out with any direct 5V connection.

  • Wrong resistor value: Too high = dim LED. Too low = LED overheats and fails early.

  • Connecting LED directly to 3.3V without a resistor on a blue or white LED — the Vf is very close to 3.3V so current may be low enough to get away with it briefly, but always use a resistor.

  • Using the 3.3V or 5V pin on an Arduino to drive many LEDs: each pin is limited to 40mA. For 5+ LEDs, use a transistor driver or dedicated LED driver chip.

LED Specifications Quick Reference

  • Red: Vf 1.8-2.2V, If max 20mA, use 150-220 Ohm on 5V

  • Yellow/Orange: Vf 2.0-2.2V, If max 20mA, use 150-220 Ohm on 5V

  • Green: Vf 2.0-2.4V, If max 20mA, use 150-220 Ohm on 5V

  • Blue/White: Vf 3.0-3.5V, If max 20mA, use 47-100 Ohm on 5V

  • Infrared (IR): Vf 1.2-1.5V, If max 100mA (burst), use 68-100 Ohm on 5V

Conclusion

The LED circuit is simple, but it teaches essential skills: understanding polarity, applying Ohm's Law, calculating resistor values, and wiring both series and parallel configurations. These are skills you will use in almost every electronics project you ever build.

Once you are comfortable with LEDs, the logical next step is controlling them with a microcontroller. Visit the Circuit Diary Projects page for full Arduino LED project guides, and browse more beginner electronics tutorials on the Circuit Diary Blog.