A refrigerator comprising: a main body forming a storage compartment; and a door configured to open and close the storage compartment, wherein the door comprises: a door body rotatably coupled to the main body and comprising an insulator therein, and a door panel detachably mountable on the door body, the door panel including: a panel body positioned in a front of the door body, a first trim provided at a first edge of the panel body and configured to be coupled to the door body, wherein the first trim comprises a first trim body on a rear surface of the panel body and a first trim protrusion protruding from the first trim body to form a first trim groove; and a second trim provided at a second edge opposite to the first edge of the panel body and configured to be coupled to the door body when the first trim is coupled to the door body; wherein the door body comprises a cap protrusion formed to be inserted into the first trim groove and configured to support the first trim to restrict movement of the first trim in a front-rear direction when the first trim is coupled to the door body; and wherein the door body comprises a mounting space formed to allow the cap protrusion to be inserted into the first trim groove when the first trim is coupled to the door body. a main body forming a storage compartment; and a door configured to open and close the storage compartment, wherein the door comprises: a door body rotatably coupled to the main body and comprising an insulator therein, and a door panel detachably mountable on the door body, the door panel including: a panel body positioned in a front of the door body, a first trim provided at a first edge of the panel body and configured to be coupled to the door body, wherein the first trim comprises a first trim body on a rear surface of the panel body and a first trim protrusion protruding from the first trim body to form a first trim groove; and a second trim provided at a second edge opposite to the first edge of the panel body and configured to be coupled to the door body when the first trim is coupled to the door body; wherein the door body comprises a cap protrusion formed to be inserted into the first trim groove and configured to support the first trim to restrict movement of the first trim in a front-rear direction when the first trim is coupled to the door body; and wherein the door body comprises a mounting space formed to allow the cap protrusion to be inserted into the first trim groove when the first trim is coupled to the door body. a door body rotatably coupled to the main body and comprising an insulator therein, and a door panel detachably mountable on the door body, the door panel including: a panel body positioned in a front of the door body, a first trim provided at a first edge of the panel body and configured to be coupled to the door body, wherein the first trim comprises a first trim body on a rear surface of the panel body and a first trim protrusion protruding from the first trim body to form a first trim groove; and a second trim provided at a second edge opposite to the first edge of the panel body and configured to be coupled to the door body when the first trim is coupled to the door body; wherein the door body comprises a cap protrusion formed to be inserted into the first trim groove and configured to support the first trim to restrict movement of the first trim in a front-rear direction when the first trim is coupled to the door body; and wherein the door body comprises a mounting space formed to allow the cap protrusion to be inserted into the first trim groove when the first trim is coupled to the door body. a panel body positioned in a front of the door body, a first trim provided at a first edge of the panel body and configured to be coupled to the door body, wherein the first trim comprises a first trim body on a rear surface of the panel body and a first trim protrusion protruding from the first trim body to form a first trim groove; and a second trim provided at a second edge opposite to the first edge of the panel body and configured to be coupled to the door body when the first trim is coupled to the door body; wherein the door body comprises a cap protrusion formed to be inserted into the first trim groove and configured to support the first trim to restrict movement of the first trim in a front-rear direction when the first trim is coupled to the door body; and wherein the door body comprises a mounting space formed to allow the cap protrusion to be inserted into the first trim groove when the first trim is coupled to the door body.