Please enable JavaScript to use CodeHS

Electronics · Maker Lab

How to Use a Breadboard

Build circuits without solder

A breadboard lets you snap a circuit together, test it, and pull it apart in minutes. Look inside to see the hidden metal clips, then wire up a glowing LED in a breadboard simulator.

Hardware ~12 min Middle / High school
The Big Idea

What is a breadboard?

A breadboard is a plastic board full of small holes that lets you build electronic circuits without solder. (Solder is melted metal that glues parts together for good.) On a breadboard you just push a part's metal legs into the holes. Hidden metal clips under the holes grab the legs and connect them.

That makes a breadboard perfect for prototyping, which means building a quick test version of an idea. If something doesn't work, you pull a wire out and try again. Nothing gets burned or glued, and you can reuse every part.

The funny name is real history. About a hundred years ago, radio hobbyists built circuits on actual wooden bread boards from the kitchen, hammering in nails to wrap wires around. Today's plastic version is sometimes called a solderless breadboard.

The one rule to remember: two legs are connected if they sit in the same connected group of holes. Everything else on this page builds on that rule.

Breadboards come in a few sizes. A half-size board has 400 holes, and a full-size board has 830. Each hole is also called a tie point. The holes are spaced exactly 0.1 inch (2.54 mm) apart, which matches the leg spacing on most chips and sensors.


X-ray Vision

Inside: rows, the center gap, and power rails

If you peeled the back off a breadboard, you'd see strips of springy metal (usually nickel-plated, sometimes copper colored). Each strip connects a small group of holes. Once you know the groups, a breadboard stops being a mystery.

Terminal strips

The main area. Rows are numbered 1, 2, 3, and so on. In each numbered row, the 5 holes a to e are connected, and the 5 holes f to j are connected.

The center gap

A groove down the middle, sometimes called the ravine. It splits each row into two halves that are not connected. Chips straddle it so each pin gets its own row.

Power rails

Long lines of holes along the edges, marked + (red) and − (blue). Each rail is connected along its length, so power is easy to reach from anywhere.

Try it below. Hover over any hole, tap it, or use the arrow keys, and every hole that is electrically connected to it lights up. Turn on X-ray view to see the metal clips. Our picture shows the board turned sideways, so each numbered row runs up and down.

X-ray breadboard

Click the board, then use ← ↑ → ↓ to move between holes.

Why some rails are split in the middle

On many full-size boards, each power rail is cut into a left half and a right half. The stripe often has a small break to show it, but not always. Press Split rails above and hover a rail hole to see the difference. If your parts on the right side get no power, add a short jumper wire across the break.

Why the gap matters: a chip in a DIP package (Dual In-line Package) has two rows of legs. Set across the gap, every leg lands in its own numbered row. Put it on one side and pins on opposite sides would be connected to each other, which would short the chip.


Hands On

Build your first LED circuit

An LED (light-emitting diode) is a tiny light. To make it glow, current has to flow in one complete loop:

+5V → resistor → LED long leg (anode) → LED short leg (cathode) → ground (−)

You'll need three kinds of parts:

  • Jumper wires: short wires with stiff pin ends. They connect one hole group to another, like a bridge.
  • A resistor: a small part that limits how much current can flow. 220 ohms is a good choice for 5 volts.
  • An LED: it has a long leg, the anode (+), and a short leg, the cathode (−).

Why the resistor?

An LED barely resists current once it turns on. Hook it straight to 5 volts and far too much current rushes through, and the LED can burn out in a flash. The resistor takes up the extra voltage and keeps the current at a safe level, about 15 milliamps here. If you want the math behind that number, see Ohm's Law and Simple Circuits.

LED polarity: it only works one way

Polarity means a part has a plus side and a minus side. A diode is like a one-way door for current, so an LED put in backwards just stays dark. (It usually isn't damaged at these low voltages. Flip it and try again.) Press the button to flip the LED.

Polarity flip
3V batt + − resistor anode (+) cathode (−) close-up long leg short leg

Now build it on a breadboard

This simulator has a 5 volt supply already plugged into the top + and − rails. Pick a part, then click two holes to place it. For the LED, click the long leg (anode) hole first. A checker uses the board's hidden connections to decide if the LED lights up.

Circuit builder

Keyboard: focus the board, move with the arrow keys, and press Enter to pick a hole.


    Spot the Bug

    Common breadboard mistakes

    Almost every broken breadboard circuit has one of these four problems:

    • Both legs in the same row. If a resistor or LED has both legs in one connected group, the metal clip carries the current around the part. The part is shorted (skipped), as if it weren't there.
    • LED backwards. Long leg must face +. Backwards means no light.
    • Rails not connected. The top and bottom rails are separate. If you power the top rails and plug parts into the bottom ones, add jumper wires between them.
    • Wire in the wrong row. Being one hole off is easy, and it puts the wire in a totally different group.

    Now be the detective. Each build below has exactly one mistake. Click (or tab to and press Enter on) the part that causes it.

    Solved 0 of 4


    Add a Brain

    Connect a microcontroller

    A microcontroller is a tiny computer on a chip, like the one on an Arduino or Raspberry Pi Pico board. It can switch a pin on and off with code, so instead of a battery lighting the LED all the time, your program decides when it glows. (New to microcontrollers? Start with What Is a Microcontroller?)

    Here's how the wiring changes. The microcontroller becomes the power source, and one of its pins replaces the + rail at the start of the LED's path.

    Board pinGoes toWhy
    GNDBreadboard − railGives every part the same ground. Always connect this first.
    3V3 or 5VBreadboard + railPowers sensors and other parts. Check which voltage your board uses.
    GP15 (a pin)Resistor, then LED anodeCode turns this pin on and off. LED cathode goes to the − rail.

    Then a few lines of code make the LED blink. This example is MicroPython for a Raspberry Pi Pico:

    blink.py
    from machine import Pin
    import time
    
    led = Pin(15, Pin.OUT)   # pin GP15 goes to the resistor
    
    for i in range(3):
        led.on()                # current flows, LED glows
        print("LED on")
        time.sleep(0.5)
        led.off()               # no current, LED dark
        print("LED off")
        time.sleep(0.5)

    Output

    LED on
    LED off
    LED on
    LED off
    LED on
    LED off

    Pins are delicate. A microcontroller pin can only supply a small current (a few milliamps up to about 20). Always use a resistor with an LED, and never connect a pin straight to + or −.


    When It Doesn't Work

    Troubleshooting checklist and safety

    Every maker's first circuit fails sometimes. That's normal. Work through this list from top to bottom and tick off each check.

    0 of 8 checked

    Safety: low voltage only

    • Never plug a breadboard into a wall outlet. Wall power can kill. Breadboards are made for small voltages only, like batteries, a USB power module, or a microcontroller's 3.3V and 5V pins.
    • If something gets hot, smells, or smokes, unplug the power right away and don't touch the hot part.
    • Never connect + directly to −. That short circuit can make a battery dangerously hot.
    • Ask an adult before using rechargeable lithium batteries, and never use a battery that is puffy or damaged.

    Quick Answers

    Breadboard FAQ

    How are the holes on a breadboard connected?

    Metal clips inside the breadboard connect the holes in groups. Each numbered row has five connected holes on each side of the center gap: a to e on one side and f to j on the other. The long power rails along the edges are connected along their length. Holes in different groups are not connected unless you add a wire or a part.

    Which leg of an LED goes to positive?

    The longer leg, called the anode, goes toward the positive (+) side. The shorter leg, called the cathode, goes toward the negative (−) side, also called ground. The plastic rim of an LED is usually flat on the cathode side.

    Why is my breadboard circuit not working?

    The most common causes are both legs of a part in the same row, an LED put in backwards, a wire one row off, or power rails that are not connected to the power source. Follow the path from + to − one connection at a time until you find the break.

    What is the gap in the middle of a breadboard for?

    The center gap splits every row into two separate halves. Chips called DIP ICs sit across the gap so each pin lands in its own row. Without the gap, the pins on opposite sides of the chip would be connected to each other.

    Do you need a resistor with an LED on a breadboard?

    Yes, almost always. A resistor limits how much current flows through the LED. Without one, an LED on a 5 volt supply can draw too much current and burn out. A 220 to 330 ohm resistor is a common choice for 5 volts.

    Is it safe to use a breadboard?

    Yes, when you use low voltage power such as batteries, a USB power module, or a microcontroller board. Never connect a breadboard to a wall outlet. Wall power can kill, and breadboards are only made for small voltages and currents.


    Check Yourself

    Quick quiz

    1. Which holes are connected to hole c12?

    2. You put a resistor with both legs in row 7, holes a7 and d7. What happens?

    3. Your LED circuit is complete, but the LED stays dark. What should you check first?

    4. Why do chips sit across the center gap?

    Keep building

    You can read a breadboard now: rows, gap, rails, and the path from + to −. Next, learn the math that picks the right resistor, or give your circuit a brain.