The Circuit Maker
Projects7 min read

Simple LED Circuit: Your First Electronics Project

Build a simple LED circuit with a battery, resistor, and LED. Step-by-step instructions with schematic and resistor calculation.

·

A simple LED circuit is the most basic electronics project you can build — a battery, a resistor, and an LED connected in series. It demonstrates the core principles of voltage, current, and resistance in a hands-on way and takes less than five minutes to build. If you have never built a circuit before, this is where to start.

What You Need to Build a Simple LED Circuit

ComponentSpecificationApproximate Cost
Battery9V battery (or 2× AA with holder)$2–5
LEDStandard 5mm, any color$0.10
Resistor330Ω–470Ω, ¼W$0.05
BreadboardAny size$3–5
Jumper wires22 AWG solid core$3 (kit)
Battery snap connector9V snap with leads$1

Total cost is under $15, and most of these components are reusable for hundreds of future electronics projects.

How a Basic LED Circuit Works

The battery provides voltage — the electrical pressure that pushes current through the circuit. Current flows from the battery's positive terminal, through the resistor, through the LED (which emits light), and back to the negative terminal. This forms a complete loop — a basic circuit.

The resistor limits the current to a safe level. Without it, the LED's low internal resistance would allow too much current to flow, destroying the LED almost instantly. The resistor and LED are connected in series, so the same current flows through both components.

The voltage splits between the resistor and the LED. The LED drops a fixed voltage called the forward voltage (typically 1.8V–3.5V depending on the LED color). The resistor drops the remainder. For a 9V battery and a red LED with a 2V forward voltage, the voltage drop across the resistor is 7V.

This is Ohm's Law in action: the current flowing through the circuit is determined by the voltage across the resistor divided by the resistance value.

Interactive LED circuitA battery, resistor, and LED in series with adjustable controls.9.0 V330 ΩV = 7.2 VV_f = 1.8 VON+I = (9.0 − 1.8) / 330 = 21.8 mAP = 0.16 W (resistor: ¼W OK)Current is high — LED may have a shorter lifespan.
9.0 V
330 Ω

LED Polarity: Anode and Cathode

An LED is a light-emitting diode — and like all diodes, it only allows current to flow in one direction. If you connect the LED backwards, it will not light up. Getting the polarity right is essential.

How to identify the positive and negative sides of an LED:

  • Longer leg = anode (positive side). Connect this toward the battery's positive terminal (through the resistor).
  • Shorter leg = cathode (negative side). Connect this toward the battery's negative terminal.
  • Flat edge on the LED body — on most 5mm LEDs, the body has a small flat spot on the cathode side.
  • If the legs have been trimmed, look inside the LED: the larger internal metal piece is the cathode, and the smaller piece is the anode.

What happens if you connect an LED backwards? At low voltages (3V–9V from common batteries), the LED simply will not illuminate — no harm done. Just flip it around. At high voltages above the LED's reverse breakdown voltage (typically 5V–20V), reverse polarity can permanently damage the LED.

Calculating the Resistor Value

The resistor value depends on three things: the supply voltage, the LED's forward voltage, and the desired LED current. The formula is:

R = (Vsupply − VLED) / ILED

Calculate it instantly: LED Resistor Calculator →

Example: 9V Battery with a Red LED

ParameterValue
Supply voltage (Vsupply)9V
LED forward voltage (VLED)2V (typical red LED)
LED current (ILED)20mA (0.02A)

R = (9V − 2V) / 0.02A = 7V / 0.02A = 350Ω

The nearest standard resistor values are 330Ω (slightly brighter, about 21mA) or 470Ω (slightly dimmer, about 15mA). Both are safe. When in doubt, go with the higher value — a dimmer LED is better than a dead one.

Need help reading the color bands on a resistor? Use the Resistor Color Code Calculator to decode any resistor.

LED Forward Voltages by Color

Different LED colors have different forward voltages. Check the LED's datasheet for exact values, or use these typical numbers:

LED ColorTypical Forward Voltage
Red1.8–2.2V
Orange2.0–2.2V
Yellow2.0–2.4V
Green2.0–3.5V
Blue3.0–3.5V
White3.0–3.5V

Notice that blue and white LEDs have much higher forward voltages than red LEDs. This means you need a smaller resistor value for blue/white LEDs with the same battery voltage, because less voltage needs to be dropped across the resistor. With a 3V supply (two AA batteries), a blue LED with a 3.2V forward voltage may not light up at all — the supply voltage is lower than the LED's forward voltage.

Power Source Considerations

The power source you choose affects the resistor value, circuit life, and LED brightness:

Power SourceVoltageBest For
Single AA/AAA battery1.5VOnly red/orange LEDs with very low or no resistor
2× AA batteries in series3VRed, yellow, green LEDs with small resistor
3× AA batteries4.5VAny LED color, good balance
9V battery9VMultiple LEDs in series, higher resistor needed
USB power supply5VBench projects, Arduino integration
Coin cell (CR2032)3VSmall/wearable projects, low current

Important: The supply voltage must always be higher than the LED's forward voltage. If Vsupply ≤ VLED, the LED will not illuminate because there is not enough electrical pressure to push current through the diode.

Building the Circuit Step by Step

Method 1: Build the Circuit on a Breadboard

A breadboard lets you build the circuit without soldering — push the component legs into the holes and they connect through internal metal strips.

  1. Connect the 9V battery snap's red wire to the breadboard's positive power rail.
  2. Connect the battery snap's black wire to the negative (ground) rail.
  3. Place one end of the 330Ω resistor in the positive power rail. Place the other end in any row in the main area (e.g., row 10).
  4. Place the LED's longer leg (anode) in the same row as the resistor's free end (row 10).
  5. Place the LED's shorter leg (cathode) in a different row (e.g., row 12).
  6. Use a jumper wire to connect row 12 to the negative power rail.
  7. Connect the battery. The LED should light up.

Method 2: Direct Wiring (No Breadboard)

  1. Twist one leg of the resistor around the LED's longer leg (anode).
  2. Connect the other end of the resistor to the battery's positive terminal (red wire).
  3. Connect the LED's shorter leg (cathode) to the battery's negative terminal (black wire).
  4. The LED lights up.

For a permanent project, you can solder the connections onto a prototype board or printed circuit board (PCB). But for learning and experimenting, the breadboard method is best.

Adding a Switch to Control the LED

To control the LED with a push button or toggle switch, place the switch in series with the circuit — anywhere in the loop between the battery, resistor, and LED. The simplest approach:

  1. Disconnect the resistor from the positive rail.
  2. Connect one terminal of the switch to the positive rail.
  3. Connect the other terminal of the switch to the resistor.

When the switch is open, the circuit is broken and no current flows. When closed, current flows through the resistor and LED as before. This is the basic principle behind every light switch, flashlight, and electronic device with an on/off button.

Adding More LEDs: Series vs Parallel

LEDs Connected in Series

To connect multiple LEDs in series, place them end-to-end — the anode of one LED connects to the cathode of the next LED. The entire string of LEDs shares a single current-limiting resistor because the same current flows through all of them.

The supply voltage must be higher than the sum of all LED forward voltages. With a 9V battery and red LEDs (2V each), you can connect at most 3 LEDs in series (6V total forward voltage drop, leaving 3V for the resistor).

Resistor calculation for 3 red LEDs in series with a 9V battery:

R = (9V − (2V × 3)) / 0.02A = 3V / 0.02A = 150Ω

Advantages of a series circuit: fewer resistors needed, all LEDs have identical brightness (same current through each). Disadvantage: if one LED fails, the entire string goes dark.

LEDs Connected in Parallel

In a parallel circuit, each LED has its own separate branch from the power source. Each LED needs its own current-limiting resistor. This is critical — without individual resistors, the LED with the lowest forward voltage will draw most of the current and burn out, while the others stay dim.

Each branch is calculated independently using the same formula. For two red LEDs in parallel with a 9V supply:

Each branch: R = (9V − 2V) / 0.02A = 350Ω (use 330Ω or 470Ω)

Advantages of a parallel circuit: if one LED fails, the others keep working. LEDs of different colors (with different forward voltages) can be mixed. Disadvantage: requires more resistors, and the total current draw from the battery is higher.

LED Protection: Why the Resistor Matters

A standard LED has a maximum continuous current rating of about 20mA. Exceeding this current — even briefly — can damage or destroy the LED. The current-limiting resistor is the simplest and most common form of LED protection.

What happens without a resistor? An LED has very low internal resistance (a few ohms at most once it reaches its forward voltage). Without a current-limiting resistor, the circuit has almost no resistance to limit the current flow. Connecting a red LED directly to a 9V battery would push hundreds of milliamps through it — far above the 20mA maximum. The LED will flash brightly for a fraction of a second, then burn out permanently.

Can you ever run an LED without a resistor? In some cases, yes — if the power source itself limits the current. A coin cell battery (CR2032) has high internal resistance and can only deliver a few milliamps, so a red LED connected directly to a 3V coin cell will light up without damage. But this only works because the battery's own resistance limits the current. For any other power source, always use a resistor.

Troubleshooting Your LED Circuit

If the LED does not light up, check these common issues:

  • LED is backwards. The most common mistake. Flip the LED around — connect the longer leg (anode) toward the positive side of the battery.
  • Battery is dead. Test the battery with a multimeter or try a fresh one.
  • Loose breadboard connections. Push the components firmly into the breadboard holes. Make sure the LED and resistor are in the same row (connected internally).
  • Wrong breadboard row. Remember that breadboard rows run horizontally, not vertically. Components in different rows are not connected unless you add a jumper wire.
  • Resistor value too high. A very large resistor (like 10kΩ) will limit the current so much that the LED appears off. Try a smaller resistor value (330Ω–470Ω for a 9V supply).
  • LED is burned out. If you previously connected the LED without a resistor, it may be destroyed. Try a new LED.
  • Supply voltage too low. If using a 3V supply with a blue or white LED (forward voltage 3.0–3.5V), there is not enough voltage to drive the LED. Use a higher voltage supply or switch to a red LED.

Next Steps: Beyond the Basic LED Circuit

Once you have your simple LED circuit working, here are some electronics projects to try next:

Summary

A simple LED circuit consists of three components connected in series: a power source (battery), a current-limiting resistor, and an LED. The resistor protects the LED by limiting the current to a safe level (typically 20mA). The resistor value is calculated using R = (Vsupply − VLED) / ILED.

ConceptKey Point
Resistor formulaR = (Vsupply − VLED) / ILED
LED polarityLonger leg = anode (+), shorter leg = cathode (−)
LEDs in seriesOne shared resistor, same current through all
LEDs in parallelEach LED needs its own resistor
Without a resistorLED will burn out from excessive current
LED not lighting?Check polarity first — flip the LED around

Use the LED Resistor Calculator to find the correct resistor value for any LED and supply voltage.