In the thesis, we study the light pattern variation in the mid-field of an LED. A quasi-far field distance is therefore defined. We change the parameters such as lens geometry, chip size and package error to figure out the effects to the quasi-far field distance. Besides, we design a glare-proof LED lamp with low veiling luminance.