An LED (Light Emitting Diode) is a polarized semiconductor device that allows current to flow in only one direction. To illuminate an LED, you must connect its positive and negative terminals correctly within your circuit.

  • The Anode (+) is the positive terminal. Conventional current enters the LED through this pin.
  • The Cathode (-) is the negative terminal. Current exits the LED through this pin toward ground.

On standard through-hole LEDs, the longer leg and the rounded side represent the anode, while the shorter leg and the flat edge on the plastic rim represent the cathode. If your LED leads have been trimmed, or if you are working with Surface-Mount Device (SMD) packages, you can determine polarity using a digital multimeter or the component datasheet.

TerminalPolarity SignPhysical Lead LengthPackage CasingDiode Symbol Feature
AnodePositive (+)Longer leadRounded rimBase of triangle (arrow)
CathodeNegative (-)Shorter leadFlat edge / notchVertical bar

What Are the Anode and Cathode of an LED?

An LED is a specialized p-n junction diode. Light is produced via electroluminescence when charge carriers recombine across the junction under forward bias.

What is the LED Anode?

The anode is connected to the p-type semiconductor material of the diode. Conventional electric current enters the device through the anode. In a basic DC circuit, the anode must be connected toward the positive potential (VCC) of your power supply, always in series with a current-limiting resistor or dedicated driver circuit.

What is the LED Cathode?

The cathode is connected to the n-type semiconductor material. Current leaves the device through the cathode. In standard low-side switching circuits, the cathode connects to the circuit ground (0V) or the negative terminal of the DC source. On a schematic diagram, the cathode is represented by the line/bar perpendicular to the circuit trace.

Conventional Current vs. Electron Flow

In electronics, two descriptions of current are used:

  • Conventional Current: Assumes positive charge movement flowing from the anode (+) to cathode (-). Circuit schematics, diode symbols, and engineering conventions follow this model.
  • Electron Flow: Describes the physical movement of subatomic electrons, which travel from the negative potential to the positive potential—meaning electrons enter the cathode (-) and exit through the anode (+).

Why Does LED Polarity Matter?

Because an LED contains a p-n junction, its electrical behavior depends entirely on voltage orientation:

  1. Forward Bias: When the anode is at a higher electrical potential than the cathode (exceeding the diode’s forward voltage drop, Vf), the depletion region collapses, allowing current to flow and emitting light.
  2. Reverse Bias: When the cathode is placed at a higher potential than the anode, the depletion region widens, creating an open-circuit condition that blocks current.

Connecting an LED in reverse prevents it from illuminating and can disrupt other components placed in series.

While small reverse voltages (such as 3V to 5V on standard indicator LEDs) typically will not cause instantaneous failure, exceeding the LED’s Maximum Reverse Breakdown Voltage (VR)—often rated at only 5V for standard LEDs—can cause junction breakdown, permanent degradation, or device failure.

How to Identify the Anode and Cathode of a Through-Hole LED

Standard 3mm, 5mm, and 10mm through-hole LEDs provide multiple physical indicators to determine polarity.

through hole led

Method 1: Check the Leg Length

Unmodified through-hole LEDs feature uneven leads straight from the factory:

  • Longer lead: Anode (+)
  • Shorter lead: Cathode (-)

Limitation: This method is unusable once the leads are clipped during breadboarding, prototyping, or PCB assembly.

Method 2: Find the Flat Edge

Inspect the base of the colored or clear plastic epoxy lens:

  • Flat rim edge: Cathode (-)
  • Fully rounded rim: Anode (+)

Run your fingernail around the base rim to locate the flat section.

Method 3: Inspect the Internal Electrodes

Look through the clear epoxy casing toward the internal metal lead frame:

  • Anvil (Larger metal piece): Cathode (-). This piece holds the reflective cup containing the semiconductor die.
  • Post (Smaller metal post): Anode (+). A thin bond wire connects this post to the die.

Limitation: Opaque, diffused, or colored casings can obscure internal elements.

Method 4: Check the PCB Markings

Printed circuit boards use silkscreen markings to guide placement:

  • + / – or A / K: A denotes Anode, K (from the Greek Kathodos) denotes Cathode.
  • Diode Symbol: The triangle points toward the cathode bar.
  • Component Silkscreen: A circle with one flattened side indicates where the cathode should sit.
Identification MethodAnode (+)Cathode (−)Limitation
Lead LengthLonger leadShorter leadUnreliable once leads are trimmed
Package ShapeRounded rimFlat edgeRare manufacturing variants omit flat side
Internal StructureSmall postLarge anvil/cupDifficult to see in diffused/colored packages
PCB Silkscreen+ or A– or KRelies on correct PCB design layout
DatasheetPin 1 / Marked pinPin 2 / Marked pinRequires specific manufacturer part number

How to Identify SMD LED Polarity

Surface-Mount Device (SMD) LEDs (e.g., 0603, 0805, 1206, 2835, 3535, 5050) do not have wire leads. Because markings vary across manufacturers, polarity must be identified using package indicators.

smd led polarity

Common SMD LED Polarity Marks

  • Green Line or Dot: Often printed on the top or bottom of the package, most commonly marking the cathode side.
  • Cathode Cut/Chamfer: A small beveled corner or notch on the package body indicates the cathode.
  • Under-Package Markings: On packages like 0805 or 1206, the bottom metallization may display a “T” shape, arrow, or triangle. The crossbar of the “T” or the base of the arrow points to the anode, while the tip points to the cathode.
  • Direct Cathode Pads: Larger thermal pads on high-power packages (like 2835 or 5050) frequently connect to the cathode for heat dissipation.

Caution: Marking conventions are not universally standardized across all manufacturers. Always cross-reference the part number with the manufacturer’s datasheet footprint drawing before soldering.

How to Test LED Polarity With a Multimeter

When visual inspection is inconclusive, a digital multimeter (DMM) provides a definitive check.

Step-by-Step Diode Mode Test

  1. Set the multimeter rotary selector to the Diode Test Mode (symbolized by a diode icon: →|).
  2. Insert the red lead into the V/Ω/Diode port and the black lead into the COM port.
  3. Touch the probe tips to the two LED leads.
  4. Observe the results:
    • If the LED glows faintly and the meter displays a voltage reading (typically 1.6V to 3.2V): The red probe is touching the Anode (+) and the black probe is touching the Cathode (-). The displayed number is the LED’s forward voltage drop (Vf).
    • If the meter displays “OL” (Over Limit) or remains at 0V: Reverse the probes and retest.
multimeter

What If the LED Does Not Light Up in Either Direction?

  • High Forward Voltage (Vf): Standard blue, white, and UV LEDs typically require 2.8V to 3.4V. Some multimeters supply only 2.0V in diode mode, which is insufficient to illuminate these colors.
  • Blown LED: The internal bond wire or semiconductor junction may be damaged.
  • Multi-Die/Series LED: Packages with multiple internal dies connected in series (e.g., 6V or 12V SMD packages) cannot be tested with standard 3V multimeter test currents.

How to Connect an LED Correctly

Basic LED Circuit Configuration

An LED must never be connected directly across a voltage source without current regulation; doing so causes thermal runaway and destroys the device within milliseconds.

basic led circuit configuration

The standard path is:

Supply Voltage (VCC) → Resistor (R) → Anode (+) → Cathode (-) → Ground (0V)

Note: The current-limiting resistor can be placed on either the anode or cathode side. Because it is a series circuit, current is identical at all points.

Sizing the Current-Limiting Resistor

To calculate the appropriate resistance value, apply Ohm’s Law:

Where:

  • Vsupply = Power supply voltage (Volts, V)
  • Vf = LED forward voltage drop (Volts, V; typically 1.8V–2.2V for Red/Yellow; 3.0V–3.3V for Blue/White)
  • If = Desired forward operating current (Amperes, A; typically 0.010A to 0.020A for standard indicator LEDs, equivalent to 10mA–20mA)

Common Anode vs. Common Cathode LEDs

Multi-LED components—such as RGB LEDs, multi-digit 7-segment displays, and LED bargraphs—group multiple internal LED junctions into single packages by sharing one common terminal to reduce the total pin count.

common anode vs. common cathode leds

What is a Common Anode (CA) Configuration?

  • Shared Terminal: All internal positive nodes (anodes) are tied together internally to a single pin.
  • Connection: The common pin connects directly to VCC.
  • Activation Logic: Individual segments or colors are turned on by pulling their respective cathode pins LOW (to Ground / 0V).
  • Driver Operation: The microcontroller or LED driver sinks current.

What is a Common Cathode (CC) Configuration?

  • Shared Terminal: All internal negative nodes (cathodes) are tied together internally to a single pin.
  • Connection: The common pin connects directly to circuit ground (GND).
  • Activation Logic: Individual segments or colors are turned on by driving their respective anode pins HIGH (to VCC).
  • Driver Operation: The microcontroller or LED driver sources current.

Summary Comparison

FeatureCommon Anode (CA)Common Cathode (CC)
Shared PinAnode (+)Cathode (-)
Common Rail ConnectionPower supply (VCC)Ground (GND)
Turn ON ConditionLogic LOW (0V)Logic HIGH (VCC)
Microcontroller RoleCurrent SinkingCurrent Sourcing
Primary Use CasesActive-low display drivers, open-drain ICsStandard logic outputs, direct MCU pins

LED Polarity in RGB LEDs and Seven-Segment Displays

RGB LED Pinout Identification

A 4-pin through-hole RGB LED contains Red, Green, and Blue dies packaged together:

a 4 pin through hole rgb led

Pin 2 (Longest Lead): The Common Pin (Common Anode or Common Cathode).

Pin 1 (Adjacent to common): Red channel (requires a lower forward voltage, around 2.0V).

Pin 3: Green channel (typically around 3.1V).

Pin 4: Blue channel (typically around 3.2V).

Seven-Segment Display Polarity

Seven-segment displays contain seven individual bar LEDs (labeled a through g) plus a decimal point (DP):

  • Common Anode Displays: Require a driver that pulls cathode segments low (e.g., standard shift registers like the 74HC595 paired with open-collector arrays).
  • Common Cathode Displays: Require drivers that source positive voltage to segments (e.g., MAX7219 driver ICs).
  • Dedicated Resistors: Every individual segment must have its own current-limiting resistor. Placing a single shared resistor on the common pin causes display brightness to fluctuate as different numbers of segments illuminate.

What Happens If an LED Is Connected Backwards?

When an LED is connected in reverse:

  1. The LED will not light up: The p-n junction blocks current.
  2. Current across the branch drops to near zero: It functions as an open switch, which will also prevent any downstream series components from receiving power.
  3. Damage Risk: If the reverse voltage (Vreverse)remains below the rated peak reverse voltage (VR, usually around 5V), the LED will not be damaged. However, if exposed to voltages above VR, reverse breakdown can overheat and permanently destroy the semiconductor junction.

Polarity Troubleshooting Steps

  1. Disconnect power immediately.
  2. Verify the physical lead length or casing flat edge.
  3. Check the board’s silkscreen polarity marking against the component layout.
  4. Run a multimeter diode-mode test on the isolated component.
  5. Confirm that the calculated series resistor value prevents overcurrent conditions.

Common LED Polarity Mistakes

  • Assuming the flat edge always marks the anode: The flat edge indicates the cathode (negative) terminal.
  • Relying on trimmed leads: Always inspect the package flat edge, look for internal lead-frame geometry, or use a meter once leads have been cut.
  • Assuming all SMD markings follow one standard: Some manufacturers mark the anode with a dot, while most mark the cathode. Always verify with the exact component datasheet.
  • Placing a single shared resistor on multi-segment displays: A single resistor on a common pin causes noticeable brightness changes depending on the digit displayed.
  • Connecting high-voltage AC directly without an anti-parallel protection diode: Reverse breakdown from alternating current cycles will quickly degrade unprotected LEDs.

Quick Reference Summary

QuestionAnswer
Is the LED anode positive or negative?Positive (+) under normal forward-biased operation.
Is the LED cathode positive or negative?Negative (-) under normal forward-biased operation.
Which through-hole leg is longer?The Anode (+).
Which side has the flat edge?The Cathode (-).
Which side of the schematic symbol is the cathode?The vertical line/bar toward which the arrow points.
Which DMM probe connects to the anode?The Red (+) probe.
Which terminal normally connects to ground?The Cathode (-).

Frequently Asked Questions

Is the cathode positive or negative on an LED?

In standard forward-biased DC operation, the cathode is the negative terminal. It connects toward ground or the negative rail of the circuit power supply.

Does the longer LED leg always indicate the anode?

On brand-new, untrimmed through-hole LEDs, the longer leg represents the anode. However, once the component has been trimmed or desoldered, you should rely on the flat edge, internal cup shape, or a multimeter measurement.

How can I identify polarity when both LED legs are cut to the same length?

Look for the flat rim edge on the plastic housing (cathode side) or inspect the internal electrodes through the clear casing (the larger anvil is the cathode). If visual indicators are unclear, use the diode-check function on a digital multimeter.

Can reverse polarity destroy an LED?

If the reverse voltage is lower than the component’s maximum reverse breakdown voltage (typically 5V for standard indicator LEDs), it will simply fail to light without sustaining damage. If the reverse voltage exceeds this threshold, the junction will break down and can permanently destroy the device.

Does the current-limiting resistor go on the anode or cathode?

The resistor can be placed on either side. Because components in a series circuit share the same current path, placing the resistor on the anode or cathode provides identical circuit protection.

What is the difference between common anode and common cathode displays?

In a common anode display, all LED positive terminals connect to VCC, and individual segments are illuminated by grounding their pins (active-low). In a common cathode display, all negative terminals connect to ground, and segments are illuminated by applying positive voltage (active-high).

Conclusion

Correctly identifying LED polarity is essential for protecting your components and ensuring your circuit functions as intended. In standard forward-biased operation, always remember that the anode is the positive (+) terminal and the cathode is the negative (-) terminal.

For standard through-hole LEDs, you can quickly determine orientation by checking the longer lead, locating the flat edge along the casing, or inspecting the larger internal anvil cup. However, when working with surface-mount packages (SMD), RGB modules, or multi-segment displays—where visual cues vary significantly across manufacturers—always verify pinouts using a digital multimeter’s diode mode and the official component datasheet before soldering.

Ready to build your next project? Use our interactive LED resistor calculator to ensure safe current levels, or explore our SMD package footprint guide for your custom PCB layout.