Guide

LED polarity and pinout: which leg is which, and how to be sure

Every LED has a right way round, and getting it wrong rarely breaks anything — it just gives you a dark circuit and a long, confusing evening. The good news is that LED packages carry their polarity on their bodies: a longer leg, a flat side on the rim, a bigger piece of metal inside the dome, a green dot or a notch on a surface-mount chip. This post walks through every one of those clues, for through-hole, SMD, COB and RGB packages — and then is honest about their limits, because markings follow each maker's habits, not one world standard. It finishes with the two authorities that never lie: the part's datasheet, and a ten-second test with a multimeter in diode mode that names the anode and cathode beyond argument.

Solder an LED in backwards and nothing dramatic happens. No smoke, no pop — just a circuit that sits there dark while you re-check everything except the one thing that's wrong. Polarity mistakes are the most common beginner fault in LED work precisely because they're silent. The defence is boring and total: learn the clues printed and moulded onto the package, know which ones to distrust, and confirm with a meter before the solder sets. This post is that lesson, in that order.

LED polarity: the leg, flat-side and dot clues — and the meter test that settles it

Why an LED cares which way round it is

An LED is a diode — the D is right there in the name — and a diode is a one-way street. Current flows from the anode, the positive terminal, to the cathode, the negative terminal. Connected that way, the LED lights. Connected backwards, it blocks: no current, no light, nothing. Less like a bulb, which couldn't care less about direction, and more like a valve.

Because direction matters, manufacturers build clues into every package. Because the clues are conventions rather than laws, they occasionally disagree. And because a reversed LED can take a whole string down with it — more on that below — "probably the right way round" is worth upgrading to "checked".

The through-hole clues: legs, rim, and the view inside

The classic LED — a coloured or clear dome on two wire legs — gives you three clues, and on a fresh part all three should agree.

The legs. On a new, untrimmed LED, the longer leg is the anode (+), the shorter leg the cathode (−). It's the first clue everyone learns, and on a part straight from the packet it's dependable. Its weakness is your own toolbox: once legs are trimmed for a board, or a part is desoldered from an old project, this clue is gone.

The rim. Run a fingernail around the flange at the base of the dome. One side is flattened. That flat side sits over the cathode (−) leg. Unlike leg length, the flat survives trimming, which makes it the better clue on reused parts. On small 3 mm LEDs it's shallower — look from above, where the dome's outline stops being a perfect circle.

The view inside. Hold a clear LED up to the light and you'll see two metal pieces: a slim post, and a much bigger flag with a little cup on top, the tiny chip sitting in the cup. The big flag and cup belong, usually, to the cathode (−); the slim post is the anode (+), joined to the chip by a hair-thin wire. Now the honest warning: it is a usually, not an always. Some large LEDs are built with the plates the other way round, and a mis-made batch of cheap parts can break any of these rules. When the three clues disagree, believe none of them — skip ahead to the meter test.

SMD clues: marks that mean what the maker says

Surface-mount LEDs have no legs to compare, so polarity moves into printed and moulded marks — and this is where certainty goes to die, because there is no single world standard for them. The common patterns:

A green dot or line is the most frequent mark, and in most makers' conventions it sits on the cathode side. A notched or chamfered corner on the body also usually flags the cathode. Some packages carry a T or arrow shape in the metal on their underside, pointing whichever way the maker's drawing says. And some makers mark the anode instead, cheerfully reversing everything above.

Notice what that list is really saying: the marks tell you where to look, and the package's datasheet drawing tells you what the mark means. For an SMD chip, the datasheet is not extra credit — it is the identification. The board's silkscreen deserves the same suspicion: it's only as trustworthy as the footprint it was drawn from. The meter, below, settles any argument before you commit.

COB boards and modules: trust the print

COB modules and LED boards solve the problem the grown-up way: they print it. Beside the solder pads you'll find a + and a − stamped, etched or silkscreened. That print is the authority for that module — wire to it exactly, and don't let wire colours talk you out of it. Pre-wired leads are a weaker guide: colour habits vary between products, and a red wire is a custom, not a contract. When a module offers both, believe the print.

RGB packages: one shared pin, two wirings

An RGB LED is three LEDs in one package, so instead of six pins it has four: one per colour, plus a shared pin that does the work of three. The shared pin is, on a fresh part, the longest leg — that much is consistent. What it is depends on the type:

  • Common anode: the shared pin is the + side and goes to the positive supply. Each colour lights when its own pin is connected toward negative — so switched electronically, the logic feels backwards: pulling a colour's pin down turns it on.
  • Common cathode: the shared pin is the − side and goes to negative or ground. Each colour lights when its own pin is fed positive — the way round most people expect.

The two types look identical, and fitting one where a circuit expects the other gives a part that never lights, or lights when it shouldn't. The colour pins usually run red, common, green, blue along the row — but variants with a different order exist. One minute with a meter, testing the common pin against each colour pin in diode mode, tells you both the type and the order.

The decider: two probes, ten seconds

Everything above is evidence. This is proof. Set a multimeter to diode mode — the setting marked with a diode symbol — and touch the probes to the LED's two terminals. Two outcomes are possible:

The LED glows faintly and the meter shows a number — roughly 1.6 to 3.2 volts depending on the colour. That number is the LED's forward voltage, and it only appears when current flows the right way. When it does, the red probe is on the anode (+) and the black probe is on the cathode (−). Done — mark the part and move on.

Or the meter shows OL (over limit) and the LED stays dark. Swap the probes and test again; the glow and the reading appear the other way round.

One wrinkle: diode mode runs on a small test voltage, and some meters' is too low to light blue and white LEDs, whose forward voltage sits near the top of that range. If one won't glow either way, read the numbers instead of the light — a reading in one direction and OL in the other identifies the anode just as surely. The test current is around a milliamp, gentle enough for any small LED — which is why this, and not a battery held against the legs, is the way to test.

Wired it backwards? What actually happens

Usually, mercifully little. In a low-voltage circuit a reversed LED simply blocks, the way it was built to, and sits dark until you turn it round. It does not punish one mistake with instant death, the way a backwards electrolytic capacitor can.

The boundary is reverse voltage. Datasheets for small LEDs commonly rate the maximum reverse voltage at about 5 volts — lower than most people expect. Feed an LED more than it's rated for and you're outside the maker's promises: breakdown and permanent damage become a real risk, and the exact point where it happens is not a controlled, guaranteed figure you can design around. That's why reversed LEDs survive in 3- and 5-volt circuits but deserve more respect in higher-voltage strings — and why datasheet limits, not forum folklore, set the rule.

One reversed chip in a string

Series wiring turns a small mistake into a total one. Chips in a string share a single current path, so one LED fitted backwards blocks it for all of them: the whole string stays dark, correctly fitted chips included. On a dead string, "one of these is reversed" belongs on the suspect list alongside "one of these is dead" — the symptoms are identical.

Finding it is a two-probe job again. Work along the string in diode mode, testing each chip in place where the pads allow: a good chip reads its forward voltage one way and OL the other; the reversed one disagrees with all its neighbours. On a long string, test in halves — a half that conducts narrows the search faster than chip-by-chip from one end. Once found: desolder, turn, resolder, and the string forgives you completely.

So the working order, every time: read the clues on the package, distrust any clue standing alone, and let the datasheet or the meter have the last word. Ten seconds of checking is cheaper than an evening of wondering why it's dark.


Sources: Lead-PCB, "LED Anode and Cathode: How to Identify LED Polarity" and its SMD marking notes; Elektroda, "LED Polarity Identification"; West Florida Components, "LED Basics" (including the reversed-plate exception); PCBOnline, "SMD Polarity Identification"; EngineerFix, "How to Test an LED With a Multimeter"; Learning About Electronics, "LED Specifications — Reverse Voltage"; Chemistry LibreTexts, "LED (Light Emitting Diodes)". Full research notes with per-claim citations are kept with this draft.

Featured photo: "5mm Green LED" by oomlout, via Wikimedia Commons — CC BY-SA 2.0.

Frequently asked questions

Which leg of an LED is positive?

On a new through-hole LED, the longer leg — the anode. If the legs have been trimmed, use the rim's flat side instead (that's the cathode side), or settle it with a multimeter in diode mode: the leg under the red probe when the LED glows is the anode.

What happens if you connect an LED backwards?

In a low-voltage circuit, normally nothing lights and nothing is damaged — the LED blocks current in reverse, like any diode. The risk comes with voltage: small LEDs are commonly rated for only about 5 volts in reverse, so a reversed LED in a higher-voltage circuit can be damaged. Turn it round and it usually works as if nothing happened.

Is the flat side of an LED the positive or negative?

Negative. The flat edge moulded into the rim at the base of the dome sits on the cathode side, and the leg nearest it is the cathode (−). It's the most useful body clue on a part whose legs have been cut to the same length.

Why is my whole LED string dark when only one chip is wrong?

Because a series string is one current path. A reversed chip blocks that path exactly like a switch turned off, so every chip in the string — the correct ones included — gets no current. Test along the string with a meter in diode mode; the chip that reads the opposite way to its neighbours is your culprit.

My SMD LED has a green mark. Which side is it?

Probably the cathode — the most common convention — but "probably" is doing real work in that sentence. Marking habits vary between makers, and a few mark the anode instead. The package's datasheet drawing defines the mark; without it, a diode-mode test answers directly.

← All articles Shop LED lights