An electronic device comprising: a foldable housing including a first housing structure and a second housing structure foldably connected to the first housing structure, wherein the first housing structure and the second housing structure form a recess together; and a flexible display (101, 102) located in the recess, wherein the second housing structure comprises a sensor area and the flexible display (101, 102) comprises a notch that is cut according to the sensor area, wherein the first housing structure and the second housing structure are foldable toward each other with respect to a first axis extending in a first direction to face each other in a folded state and to form a planar structure in an unfolded state, wherein the recess, when viewed from above the recess in the unfolded state, includes a first area between a first portion of the first housing structure and a first portion of the second housing structure that is formed on the periphery of the sensor area and a second area between a second portion of the first housing structure and a second portion of the second housing structure that does not correspond to the sensor area, the first area having a first width extending in a second direction perpendicular to the first direction and the second area having a second width extending in the second direction, wherein the second width is longer than the first width, and the first portion of the second housing structure is closer to the first axis than the second portion of the second housing structure, and wherein the flexible display (101, 102) includes: a first part located in the first area of the recess, the first part including a first peripheral portion facing the first portion of the second housing structure and having a first gap from the first portion of the second housing structure in the unfolded state; and a second part located in the second area of the recess, the second part including a second peripheral portion facing the second portion of the second housing structure and having a second gap from the second portion of the second housing structure in the unfolded state, wherein the second gap is smaller than the first gap in the unfolded state, wherein the flexible display includes a plurality of layers (1201,1202) stacked one above another, and wherein the first peripheral portion and the second peripheral portion each form a step structure by the plurality of layers (1201, 1202) in the folded state of the electronic device. a foldable housing including a first housing structure and a second housing structure foldably connected to the first housing structure, wherein the first housing structure and the second housing structure form a recess together; and a flexible display (101, 102) located in the recess, wherein the second housing structure comprises a sensor area and the flexible display (101, 102) comprises a notch that is cut according to the sensor area, wherein the first housing structure and the second housing structure are foldable toward each other with respect to a first axis extending in a first direction to face each other in a folded state and to form a planar structure in an unfolded state, wherein the recess, when viewed from above the recess in the unfolded state, includes a first area between a first portion of the first housing structure and a first portion of the second housing structure that is formed on the periphery of the sensor area and a second area between a second portion of the first housing structure and a second portion of the second housing structure that does not correspond to the sensor area, the first area having a first width extending in a second direction perpendicular to the first direction and the second area having a second width extending in the second direction, wherein the second width is longer than the first width, and the first portion of the second housing structure is closer to the first axis than the second portion of the second housing structure, and wherein the flexible display (101, 102) includes: a first part located in the first area of the recess, the first part including a first peripheral portion facing the first portion of the second housing structure and having a first gap from the first portion of the second housing structure in the unfolded state; and a second part located in the second area of the recess, the second part including a second peripheral portion facing the second portion of the second housing structure and having a second gap from the second portion of the second housing structure in the unfolded state, a first part located in the first area of the recess, the first part including a first peripheral portion facing the first portion of the second housing structure and having a first gap from the first portion of the second housing structure in the unfolded state; and a second part located in the second area of the recess, the second part including a second peripheral portion facing the second portion of the second housing structure and having a second gap from the second portion of the second housing structure in the unfolded state, wherein the second gap is smaller than the first gap in the unfolded state, wherein the flexible display includes a plurality of layers (1201,1202) stacked one above another, and wherein the first peripheral portion and the second peripheral portion each form a step structure by the plurality of layers (1201, 1202) in the folded state of the electronic device.