According to one embodiment, an electronic device includes a housing, a storage mechanism, a printed wiring board, an antenna element and a component. The storage mechanism and printed wiring board are accommodated in the housing. The antenna element is mounted on the printed wiring board and executes wireless communication. The component adversely affects the wireless communication by the antenna element. The printed wiring board includes a first surface which is opposed to the component, and a second surface which is located on a side opposite to the first surface. The antenna element is mounted on the second surface.