An outdoor unit for an air-conditioning apparatus, comprising: a casing having an opening portion of an air passage formed in a front panel; and a fan guard, including a plurality of vertical rails and a plurality of horizontal rails that are combined with each other, and being configured to cover the opening portion, wherein the fan guard includes: an upper locking portion (5b4) formed on an upper end portion (5b9) of a vertical rail at one position at a center portion among the vertical rails, or formed on each of upper end portions of at least two vertical rails located so as to be separated away from each other in a right-and-left direction of the casing among the vertical rails; and lower locking portions (5b5) formed on lower end portions (5b7) of a plurality of vertical rails located so as to be separated away from each other in the right-and-left direction of the casing among the vertical rails, characterized in that the upper locking portion (5b4) is formed by bending the upper end portion (5b9) toward the casing so as to be inclined in a downward direction, wherein the lower locking portions (5b5) are formed by bending the lower end portions (5b7) toward the casing, and lower-locking-portion distal end portions (5b10) being portions on distal ends of the lower locking portion (5b5) are bent so that the distal ends are directed in the downward direction, and wherein the front panel has: an upper temporary fixing hole configured to receive the upper locking portion (5b4) to be inserted thereinto and restrict movement of the fan guard in a forward direction; and lower temporary fixing holes configured to receive the lower locking portions (5b5) to be inserted thereinto and restrict movement of the fan guard in the forward direction and the downward direction, wherein the upper temporary fixing hole is opened so as to be directed toward a front side of the casing and has a cylindrical portion formed on an edge portion of the upper temporary fixing hole so as to be upright from a front surface of the casing toward an inner side of the casing, and wherein the upper temporary fixing hole has a curved surface being continued from a front surface of the front panel to the cylindrical portion. a casing having an opening portion of an air passage formed in a front panel; and a fan guard, including a plurality of vertical rails and a plurality of horizontal rails that are combined with each other, and being configured to cover the opening portion, wherein the fan guard includes: an upper locking portion (5b4) formed on an upper end portion (5b9) of a vertical rail at one position at a center portion among the vertical rails, or formed on each of upper end portions of at least two vertical rails located so as to be separated away from each other in a right-and-left direction of the casing among the vertical rails; and lower locking portions (5b5) formed on lower end portions (5b7) of a plurality of vertical rails located so as to be separated away from each other in the right-and-left direction of the casing among the vertical rails, an upper locking portion (5b4) formed on an upper end portion (5b9) of a vertical rail at one position at a center portion among the vertical rails, or formed on each of upper end portions of at least two vertical rails located so as to be separated away from each other in a right-and-left direction of the casing among the vertical rails; and lower locking portions (5b5) formed on lower end portions (5b7) of a plurality of vertical rails located so as to be separated away from each other in the right-and-left direction of the casing among the vertical rails, characterized in that the upper locking portion (5b4) is formed by bending the upper end portion (5b9) toward the casing so as to be inclined in a downward direction, wherein the lower locking portions (5b5) are formed by bending the lower end portions (5b7) toward the casing, and lower-locking-portion distal end portions (5b10) being portions on distal ends of the lower locking portion (5b5) are bent so that the distal ends are directed in the downward direction, and wherein the front panel has: an upper temporary fixing hole configured to receive the upper locking portion (5b4) to be inserted thereinto and restrict movement of the fan guard in a forward direction; and lower temporary fixing holes configured to receive the lower locking portions (5b5) to be inserted thereinto and restrict movement of the fan guard in the forward direction and the downward direction, an upper temporary fixing hole configured to receive the upper locking portion (5b4) to be inserted thereinto and restrict movement of the fan guard in a forward direction; and lower temporary fixing holes configured to receive the lower locking portions (5b5) to be inserted thereinto and restrict movement of the fan guard in the forward direction and the downward direction, wherein the upper temporary fixing hole is opened so as to be directed toward a front side of the casing and has a cylindrical portion formed on an edge portion of the upper temporary fixing hole so as to be upright from a front surface of the casing toward an inner side of the casing, and wherein the upper temporary fixing hole has a curved surface being continued from a front surface of the front panel to the cylindrical portion.