But this method of identifying the leads will not always work. Consider the case in which the legs of the LEDs are already cut into same lengthfor using in a circuit. Even in such cases the following method works.
Just take a close look at the geometry of a standard 5mm LED.
The one side is rounded shape and the other side has been made a little straighter (right hand side drawing in the image). The leg in the straight side is always negative and the leg in the rounded side is always positive.
Set the digital multimeter on the continuity mode. If you touch the testing leads to each other the multimeter will give a continuous beep sound. The beep sound means that the multimeter is working perfectly.
In the above multimeter, the knob is turned to the continuity mode which is at 400 ohm section. Testing leads should be plugged into the multimeter as shown in the above image.
probes are connected to the LED terminal according to their polarity. Longer leg is connected to the positive supply and shorter to negative (grounded).
Checking the continuity
Power ON the multimeter
Set the knob on the continuity mode.LED will glow indicating that it is in working condition
If the LED doesn’t glows then check the connections else the LED is faulty.