We have optimized the input pulse width and injection time to achieve the highest possible output pulse energy in a double-pass laser amplifier using two Nd:YAG rods. For this purpose, we have extended the Frantz–Nodvik equation by simultaneously including both spontaneous emission and pump energy variation. The effective pump energy of the flash lamp was 8.84 J for each gain medium. The energy of 1 J could be amplified to an output energy of 12.17 J with the maximum achieved extraction efficiency of 63.18% when an input pulse having a pulse width of 168 $\unicode[STIX]{x03BC}$s is sent 10 $\unicode[STIX]{x03BC}$s after the absorbed pump energy becomes the maximum value.