To realize auto-selection of analytical lines for quantitative analysis of materials with laser-induced breakdown spectroscopy, two parameters, i. e. the relative detected-to-theory intensity ratio (RDTIR) and wavelength difference of detected and theory (WDDT) were defined. The spectral lines seriously disturbed by self-absorption and spectral interference were excluded automatically by setting reasonable thresholds of RDTIR and WDDT. By analyzing the experimental data of high-alloy steel (GBW01605), the analytical lines of iron (Fe), chromium (Cr), nickel (Ni), manganese (Mn) and copper (Cu) were selected, and the results were in line with the principle of lines selection.