It is important to minimize lung dose during intensity‐modulated radiation therapy (IMRT) of nonsmall cell lung cancer (NSCLC). In this study, an approach was proposed to reduce lung dose by relaxing the constraint of target dose homogeneity during treatment planning of IMRT. Ten NSCLC patients with lung tumor on the right side were selected. The total dose for planning target volume (PTV) was 60 Gy (2 Gy/fraction). For each patient, two IMRT plans with six beams were created in Pinnacle treatment planning system. The dose homogeneity of target was controlled by constraints on the maximum and uniform doses of target volume. One IMRT plan was made with homogeneous target dose (the resulting target dose was within 95%–107% of the prescribed dose), while another IMRT plan was made with inhomogeneous target dose (the resulting target dose was more than 95% of the prescribed dose). During plan optimization, the dose of cord and heart in two types of IMRT plans were kept nearly the same. The doses of lungs, PTV and organs at risk (OARs) between two types of IMRT plans were compared and analyzed quantitatively. For all patients, the lung dose was decreased in the IMRT plans with inhomogeneous target dose. On average, the mean dose, V5, V20, and V30 of lung were reduced by 1.4 Gy, 4.8%, 3.7%, and 1.7%, respectively, and the dose to normal tissue was also reduced. These reductions in DVH values were all statistically significant (P < 0.05). There were no significant differences between the two IMRT plans on V25, V30, V40, V50 and mean dose for heart. The maximum doses of cords in two type IMRT plans were nearly the same. IMRT plans with inhomogeneous target dose could protect lungs better and may be considered as a choice for treating NSCLC.