A refrigerator comprising: a body comprising an inner case in which a storage compartment is formed, an outer case that is coupled to an outside of the inner case and constitutes an exterior of the refrigerator, and an insulating material foamed between the inner case and the outer case; and an electric apparatus box provided in an upper portion of the body, wherein the electric apparatus box comprises: a base accommodated in the upper portion of the body, the base comprising: a base portion coupled to the upper portion of the body; a cover provided to cover an upper portion of the base such that an accommodation space is provided between the base and the cover, and a printed circuit board PCB provided in the accommodation space and having a surface on which an electronic component is mounted, the surface oriented downwards, characterized in that the base further comprises an accommodation groove accommodated in an electric apparatus box installation hole provided in the upper portion of the body, wherein the accommodation groove has a rectangular shape that is recessed downward from the base portion, the base portion forming edges of the accommodation groove, and wherein the accommodation groove is recessed downward with respect to an upper surface of the body, so that a height of the accommodation space is greater than an interval between the cover and the upper surface of the body. a body comprising an inner case in which a storage compartment is formed, an outer case that is coupled to an outside of the inner case and constitutes an exterior of the refrigerator, and an insulating material foamed between the inner case and the outer case; and an electric apparatus box provided in an upper portion of the body, wherein the electric apparatus box comprises: a base accommodated in the upper portion of the body, the base comprising: a base portion coupled to the upper portion of the body; a cover provided to cover an upper portion of the base such that an accommodation space is provided between the base and the cover, and a printed circuit board PCB provided in the accommodation space and having a surface on which an electronic component is mounted, the surface oriented downwards, characterized in that the base further comprises an accommodation groove accommodated in an electric apparatus box installation hole provided in the upper portion of the body, wherein the accommodation groove has a rectangular shape that is recessed downward from the base portion, the base portion forming edges of the accommodation groove, and wherein the accommodation groove is recessed downward with respect to an upper surface of the body, so that a height of the accommodation space is greater than an interval between the cover and the upper surface of the body. a base accommodated in the upper portion of the body, the base comprising: a base portion coupled to the upper portion of the body; a base portion coupled to the upper portion of the body; a cover provided to cover an upper portion of the base such that an accommodation space is provided between the base and the cover, and a printed circuit board PCB provided in the accommodation space and having a surface on which an electronic component is mounted, the surface oriented downwards, characterized in that the base further comprises an accommodation groove accommodated in an electric apparatus box installation hole provided in the upper portion of the body, wherein the accommodation groove has a rectangular shape that is recessed downward from the base portion, the base portion forming edges of the accommodation groove, and wherein the accommodation groove is recessed downward with respect to an upper surface of the body, so that a height of the accommodation space is greater than an interval between the cover and the upper surface of the body.