This study aimed to propose automated treatment planning approaches based on similar cases with beam angle optimizations using water equivalent path length (WEPL) to avoid lung and rib doses for lung stereotactic body radiation therapy (SBRT). Similar cases to an objective case were defined as cases, which were close to the objective case with respect to the Euclidean distances based on geometrical features. Initial similar-case-based (ISC) plans were generated by applying lung SBRT plans of similar cases to objective cases. Similar cases were selected using the Euclidean distances based on lung shape and geometrical features from a radiation treatment planning database with 174 cases. Beam angles of the ISC plans were optimized using a greedy algorithm based on a cost function to include absorbed doses in the lung and ribs in the WEPL. The 12 dose evaluation indices for the planning target volume, lung, spinal cord, and ribs were evaluated in the original plans, ISC plans, and optimized similar-case-based (OSC) plans with and without WEPL for 20 test cases to investigate its dosimetric impact. These findings revealed that V10 and the mean dose for the lung and V20, V30, and V40 for the ribs in the OSC plan with WEPL improved more significantly than those in the original and ISC plans. This study indicates a potential of similar cases, whose beam angle configurations were optimized with WEPL to avoid lung and rib doses in lung SBRT plans.